Fixed a couple type errors
This commit is contained in:
parent
4e7dfe8cbf
commit
0e139785a5
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ export default defineComponent({
|
||||||
getZoomLevel(): number {
|
getZoomLevel(): number {
|
||||||
return (this.$refs.stage as any).$panZoomInstance.getTransform().scale;
|
return (this.$refs.stage as any).$panZoomInstance.getTransform().scale;
|
||||||
},
|
},
|
||||||
onInit: function(panzoomInstance) {
|
onInit: function(panzoomInstance: any) {
|
||||||
panzoomInstance.setTransformOrigin(null);
|
panzoomInstance.setTransformOrigin(null);
|
||||||
},
|
},
|
||||||
startDragging(e: MouseEvent, nodeID: string) {
|
startDragging(e: MouseEvent, nodeID: string) {
|
||||||
|
@ -168,7 +168,7 @@ export default defineComponent({
|
||||||
nodes.push(draggingNode);
|
nodes.push(draggingNode);
|
||||||
|
|
||||||
if (receivingNode) {
|
if (receivingNode) {
|
||||||
this.board.types[receivingNode.type].onDrop(receivingNode, draggingNode);
|
this.board.types[receivingNode.type].onDrop?.(receivingNode, draggingNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dragging = null;
|
this.dragging = null;
|
||||||
|
|
Loading…
Reference in a new issue