feat: script setup style

* Replace jsx with script setup syntax
* Simplify logic and make it more "composable"
    * Move Zoom functions to useZoom composable
* Update eslint config & tsconfig
This commit is contained in:
Braks
2021-10-20 22:39:54 +02:00
parent fec2ef40da
commit 9307c9066a
28 changed files with 1732 additions and 296 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { ComponentPublicInstance } from 'vue'
import { DefineComponent } from 'vue'
import { XYPosition } from './types'
import { ElementId, Position } from './index'
@@ -57,4 +57,4 @@ export interface NodeProps<T = any> {
isDragging?: boolean
}
export type NodeType = ComponentPublicInstance<NodeProps>
export type NodeType = DefineComponent<NodeProps>