update: Add injection keys

This commit is contained in:
Braks
2021-10-20 22:39:54 +02:00
parent 1853c21353
commit a895853b64
19 changed files with 113 additions and 133 deletions
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import SelectionRect from './SelectionRect.vue'
import { RevueFlowStore } from '~/types'
import { getMousePosition } from '~/components/UserSelection/utils'
import { Store } from '~/context/symbols'
const store = inject<RevueFlowStore>('store')!
const store = inject(Store)!
const el = templateRef('user-selection', null)
const onMouseDown = (event: MouseEvent) => {