canvas-editor-engine 2.3.73 → 2.3.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4 -0
- package/dist/utils/painter.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -2676,16 +2676,20 @@ var Painter = function() {
|
|
2676
2676
|
Painter.prototype.subscribeOnCanvas = function() {
|
2677
2677
|
var _this = this;
|
2678
2678
|
this.canvasComponent.subscribe("mousedown", (function() {
|
2679
|
+
console.log("TIMER START!");
|
2679
2680
|
_this.focusTimer = setTimeout((function() {
|
2680
2681
|
_this.focusPainter();
|
2682
|
+
console.log("FOCUSED!");
|
2681
2683
|
}), 800);
|
2682
2684
|
}));
|
2683
2685
|
this.canvasComponent.subscribe("mouseup", (function() {
|
2684
2686
|
_this.blurPainter();
|
2685
2687
|
_this.focusTimer = null;
|
2688
|
+
console.log("BLUR!");
|
2686
2689
|
}));
|
2687
2690
|
this.canvasComponent.subscribe("mousemove", (function(event, cursorPosition) {
|
2688
2691
|
if (!_this.isFocused) return;
|
2692
|
+
console.log("MOVE!");
|
2689
2693
|
var x = cursorPosition.x, y = cursorPosition.y;
|
2690
2694
|
var size = _this.drawService.options.image.drawImageArgs.size;
|
2691
2695
|
var condition = size && size !== "initial";
|
package/dist/utils/painter.d.ts
CHANGED
@@ -17,7 +17,7 @@ export default class Painter {
|
|
17
17
|
};
|
18
18
|
isFocused: boolean;
|
19
19
|
isSelected: boolean;
|
20
|
-
|
20
|
+
focusTimer: NodeJS.Timeout | null;
|
21
21
|
constructor(canvasComponent: CanvasComponent, drawLayersService: DrawLayersService, createModel: ICreatePainter);
|
22
22
|
private subscribeOnCanvas;
|
23
23
|
focusPainter(): void;
|