geometric-object.js 513 B

1234567891011121314151617181920212223
  1. import { GenericObject } from "./generic-object";
  2. export class GeometricObject extends GenericObject {
  3. constructor() {
  4. this.borderColor;
  5. this.backgroundColor;
  6. this.edgeThinckness;
  7. this.label;
  8. this.dependencies = [];
  9. }
  10. setBorderColor(color) {
  11. this.borderColor = color;
  12. }
  13. setBackgroundColor(color) {
  14. this.backgroundColor = color;
  15. }
  16. setEdgeThinckness(edgeThinckness) {
  17. this.edgeThinckness = edgeThinckness;
  18. }
  19. update() {
  20. throw "not implemented exception";
  21. }
  22. }