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:
Braks
2021-12-04 15:42:18 +01:00
parent 70b44dbc03
commit 3c9840cc50
9 changed files with 22 additions and 23 deletions
+3 -4
View File
@@ -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