geometric-object.js 557 B

123456789101112131415161718192021222324
  1. import { DynamicObject } from "./dynamic-object";
  2. export class GeometricObject extends DynamicObject {
  3. constructor(id) {
  4. super(id);
  5. this.borderColor;
  6. this.backgroundColor;
  7. this.edgeThinckness;
  8. this.draggable = false;
  9. this.visible = true;
  10. }
  11. setBorderColor(color) {
  12. this.borderColor = color;
  13. }
  14. setBackgroundColor(color) {
  15. this.backgroundColor = color;
  16. }
  17. setEdgeThinckness(edgeThinckness) {
  18. this.edgeThinckness = edgeThinckness;
  19. }
  20. update(konvaObject, event) {
  21. throw "not implemented exception";
  22. }
  23. }