update(types): Rename FlowStore to Store and ReactiveFlowStore to FlowStore
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+3
-4
@@ -11,12 +11,11 @@ import {
|
||||
FlowExportObject,
|
||||
NodeExtent,
|
||||
Dimensions,
|
||||
FlowStore,
|
||||
GraphNode,
|
||||
FlowElements,
|
||||
GraphEdge,
|
||||
NextElements,
|
||||
ReactiveFlowStore,
|
||||
FlowStore,
|
||||
FlowState,
|
||||
} from '~/types'
|
||||
import { useWindow } from '~/composables'
|
||||
@@ -163,7 +162,7 @@ export const pointToRendererPoint = (
|
||||
return position
|
||||
}
|
||||
|
||||
export const onLoadProject = (currentStore: ReactiveFlowStore) => (position: XYPosition) =>
|
||||
export const onLoadProject = (currentStore: FlowStore) => (position: XYPosition) =>
|
||||
pointToRendererPoint(position, currentStore.transform, currentStore.snapToGrid, currentStore.snapGrid)
|
||||
|
||||
export const parseNode = (node: Node, nodeExtent: NodeExtent): GraphNode => ({
|
||||
@@ -278,7 +277,7 @@ export const getConnectedEdges = (nodes: GraphNode[], edges: GraphEdge[]) => {
|
||||
return edges.filter((edge) => nodeIds.includes(edge.source) || nodeIds.includes(edge.target))
|
||||
}
|
||||
|
||||
export const onLoadGetElements = (currentStore: ReactiveFlowStore) => (): FlowElements => currentStore.elements
|
||||
export const onLoadGetElements = (currentStore: FlowStore) => (): FlowElements => currentStore.elements
|
||||
|
||||
export const onLoadToObject = (currentStore: FlowState) => (): FlowExportObject => {
|
||||
// we have to stringify/parse so objects containing refs (like nodes and edges) can potentially be saved in a storage
|
||||
|
||||
Reference in New Issue
Block a user