geometric-object.js 500 B

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