mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 16:38:14 +00:00
Hide Preview Drag Layer as it is not done.
This commit is contained in:
1 parent
f013373180
commit
6077232cd3
1 file changed
+12
-1
@@ -119,7 +119,8 @@ export class RealTimeDrawEngine {
|
||||
this.captureCanvas.setZIndex(0);
|
||||
this.previewCanvas.setZIndex(1);
|
||||
// Add mouse events for preview canvas copying
|
||||
this.previewCopyListener();
|
||||
//this.previewCopyListener();
|
||||
|
||||
}
|
||||
|
||||
public previewCopyListener() {
|
||||
@@ -128,6 +129,16 @@ export class RealTimeDrawEngine {
|
||||
console.log("No preview image to copy");
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO create it as a node.
|
||||
|
||||
// const imageNode = new ImageNode({
|
||||
// mediaLayerRef: this.mediaLayer,
|
||||
// canvasPosition: this.renderEngine.captureCanvas.position(),
|
||||
// canvasSize: this.renderEngine.captureCanvas.size(),
|
||||
// imageFile: imageFile,
|
||||
// selectionManagerRef: this.selectionManager,
|
||||
// });
|
||||
|
||||
// Create draggable preview copy
|
||||
const previewCopy = new Konva.Image({
|
||||
|
||||
Reference in new issue
Block a user