|
@@ -12,7 +12,7 @@ export class Drawer {
|
|
|
this.konvaObject;
|
|
|
this.elementClass = undefined;
|
|
|
}
|
|
|
- onDragMove() {}
|
|
|
+ onDragMove() { }
|
|
|
setElementClass(elementClass) {
|
|
|
this.elementClass = elementClass;
|
|
|
}
|
|
@@ -39,10 +39,7 @@ export class Drawer {
|
|
|
batchDraw() {
|
|
|
Drawer.stageBatchDraw();
|
|
|
}
|
|
|
- update(aggregator) {
|
|
|
- throw "Not implemented exception";
|
|
|
- }
|
|
|
- updatePositions(aggregator, event) {
|
|
|
+ update(aggregator, event) {
|
|
|
throw "Not implemented exception";
|
|
|
}
|
|
|
setKonvaObject(konvaObject) {
|
|
@@ -62,17 +59,4 @@ export class Drawer {
|
|
|
static stageBatchDraw() {
|
|
|
DrawerManager.batchDraw();
|
|
|
}
|
|
|
-
|
|
|
- static configureObjectEvents(object) {
|
|
|
- object.on("mouseover", function() {
|
|
|
- this.strokeWidth(HOVER_STYLE.strokeWidth);
|
|
|
- this.stroke(HOVER_STYLE.stroke);
|
|
|
- StageManger.getCurrentKonvaStage().draw();
|
|
|
- });
|
|
|
- object.on("mouseout", function() {
|
|
|
- this.strokeWidth(STYLE.strokeWidth);
|
|
|
- this.stroke(STYLE.stroke);
|
|
|
- StageManger.getCurrentKonvaStage().draw();
|
|
|
- });
|
|
|
- }
|
|
|
}
|