refactor(core): remove exports from barrel files
This commit is contained in:
@@ -203,9 +203,12 @@ export function applyChanges<
|
||||
return elements
|
||||
}
|
||||
|
||||
/** @deprecated Use store instance and call `applyChanges` with template-ref or the one received by `onPaneReady` instead */
|
||||
export function applyEdgeChanges(changes: EdgeChange[], edges: GraphEdge[]) {
|
||||
return applyChanges(changes, edges)
|
||||
}
|
||||
|
||||
/** @deprecated Use store instance and call `applyChanges` with template-ref or the one received by `onPaneReady` instead */
|
||||
export function applyNodeChanges(changes: NodeChange[], nodes: GraphNode[]) {
|
||||
return applyChanges(changes, nodes)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
import type { DefaultEdgeTypes, DefaultNodeTypes } from '../types'
|
||||
|
||||
import DefaultNode from '../components/Nodes/DefaultNode'
|
||||
import OutputNode from '../components/Nodes/OutputNode'
|
||||
import InputNode from '../components/Nodes/InputNode'
|
||||
import StraightEdge from '../components/Edges/StraightEdge'
|
||||
import StepEdge from '../components/Edges/StepEdge'
|
||||
import BezierEdge from '../components/Edges/BezierEdge'
|
||||
import SimpleBezierEdge from '../components/Edges/SimpleBezierEdge'
|
||||
import SmoothStepEdge from '../components/Edges/SmoothStepEdge'
|
||||
|
||||
export const defaultNodeTypes: DefaultNodeTypes = {
|
||||
input: InputNode,
|
||||
default: DefaultNode,
|
||||
output: OutputNode,
|
||||
}
|
||||
|
||||
export const defaultEdgeTypes: DefaultEdgeTypes = {
|
||||
default: BezierEdge,
|
||||
straight: StraightEdge,
|
||||
step: StepEdge,
|
||||
smoothstep: SmoothStepEdge,
|
||||
simplebezier: SimpleBezierEdge,
|
||||
}
|
||||
Reference in New Issue
Block a user