position.js 910 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. class position {
  2. get name() {
  3. throw "This is abstract getter.";
  4. }
  5. get top_css() {
  6. return "auto";
  7. }
  8. get bottom_css() {
  9. return "auto";
  10. }
  11. get left_css() {
  12. return "auto";
  13. }
  14. get right_css() {
  15. return "auto";
  16. }
  17. }
  18. class place_top extends position {
  19. get name() {
  20. return "top";
  21. }
  22. get top_css() {
  23. return "0px";
  24. }
  25. }
  26. class place_bottom extends position {
  27. get name() {
  28. return "bottom";
  29. }
  30. get bottom_css() {
  31. return "0px";
  32. }
  33. }
  34. class place_left extends position {
  35. get name() {
  36. return "left";
  37. }
  38. get left_css() {
  39. return "0px";
  40. }
  41. }
  42. class place_right extends position {
  43. get name() {
  44. return "right";
  45. }
  46. get right_css() {
  47. return "0px";
  48. }
  49. }
  50. export { position, place_top, place_bottom, place_left, place_right };