Home Reference Source Repository

src/app/core/models/objects/geometric-object.js

import { DynamicObject } from "./dynamic-object";

export class GeometricObject extends DynamicObject {
  /**
   * @param {number} id Id of object
   */
  constructor(id) {
    super(id);
    this.borderColor;
    this.backgroundColor;
    this.edgeThinckness;
    this.draggable = true;
  }
  setBorderColor(color) {
    this.borderColor = color;
  }
  setBackgroundColor(color) {
    this.backgroundColor = color;
  }
  setEdgeThinckness(edgeThinckness) {
    this.edgeThinckness = edgeThinckness;
  }

  /**
 * Update properties of this Intersection
 * @param {DrawerAggregator} aggregator Drawer Aggregator 
 * @param {event} event 
 */
  update(konvaObject, event) {
    throw "not implemented exception";
  }
}