geometric-object.js 718 B

1234567891011121314151617181920212223242526272829303132
  1. import { DynamicObject } from "./dynamic-object";
  2. export class GeometricObject extends DynamicObject {
  3. /**
  4. * @param {number} id Id of object
  5. */
  6. constructor(id) {
  7. super(id);
  8. this.borderColor;
  9. this.backgroundColor;
  10. this.edgeThinckness;
  11. this.draggable = false;
  12. }
  13. setBorderColor(color) {
  14. this.borderColor = color;
  15. }
  16. setBackgroundColor(color) {
  17. this.backgroundColor = color;
  18. }
  19. setEdgeThinckness(edgeThinckness) {
  20. this.edgeThinckness = edgeThinckness;
  21. }
  22. /**
  23. * Update properties of this Intersection
  24. * @param {DrawerAggregator} aggregator Drawer Aggregator
  25. * @param {event} event
  26. */
  27. update(konvaObject, event) {
  28. throw "not implemented exception";
  29. }
  30. }