update(examples): remove pinia

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-04 15:42:18 +01:00
parent 55122ed187
commit 0816bf0c75
2 changed files with 9 additions and 11 deletions
-2
View File
@@ -1,6 +1,5 @@
import { createApp } from 'vue' import { createApp } from 'vue'
import './index.css' import './index.css'
import { createPinia } from 'pinia'
import { DraggablePlugin } from '@braks/revue-draggable' import { DraggablePlugin } from '@braks/revue-draggable'
import App from './App.vue' import App from './App.vue'
import { router } from './router' import { router } from './router'
@@ -10,5 +9,4 @@ const app = createApp(App)
app.config.performance = true app.config.performance = true
app.use(router) app.use(router)
app.use(DraggablePlugin) app.use(DraggablePlugin)
app.use(createPinia())
app.mount('#root') app.mount('#root')
+9 -9
View File
@@ -22,13 +22,13 @@ import { FlowHooks } from './hooks'
export interface FlowState extends Omit<FlowOptions, 'elements'> { export interface FlowState extends Omit<FlowOptions, 'elements'> {
hooks: FlowHooks hooks: FlowHooks
instance: FlowInstance | undefined instance?: FlowInstance
elements: FlowElements elements: FlowElements
d3Zoom: D3Zoom | undefined d3Zoom?: D3Zoom
d3Selection: D3Selection | undefined d3Selection?: D3Selection
d3ZoomHandler: D3ZoomHandler | undefined d3ZoomHandler?: D3ZoomHandler
minZoom: number minZoom: number
maxZoom: number maxZoom: number
translateExtent: TranslateExtent translateExtent: TranslateExtent
@@ -36,16 +36,16 @@ export interface FlowState extends Omit<FlowOptions, 'elements'> {
dimensions: Dimensions dimensions: Dimensions
transform: Transform transform: Transform
selectedElements: FlowElements | undefined selectedElements?: FlowElements
selectedNodesBbox: Rect | undefined selectedNodesBbox?: Rect
nodesSelectionActive: boolean nodesSelectionActive: boolean
selectionActive: boolean selectionActive: boolean
userSelectionRect: SelectionRect userSelectionRect: SelectionRect
multiSelectionActive: boolean multiSelectionActive: boolean
connectionNodeId: ElementId | undefined connectionNodeId?: ElementId
connectionHandleId: ElementId | undefined connectionHandleId?: ElementId
connectionHandleType: HandleType | undefined connectionHandleType?: HandleType
connectionPosition: XYPosition connectionPosition: XYPosition
connectionMode: ConnectionMode connectionMode: ConnectionMode