update(script-setup): Refactor additional-components
* Remove jsx files fix: ConnectionLine.vue not recalculating properly
This commit is contained in:
@@ -17,7 +17,7 @@ export default function configureStore(
|
||||
setActivePinia(pinia)
|
||||
|
||||
return defineStore({
|
||||
id: `revue-flow-${Math.random()}`,
|
||||
id: `revue-flow-${Math.floor(Math.random() * 100)}`,
|
||||
state: () => ({
|
||||
...preloadedState,
|
||||
}),
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ export const initialState: RevueFlowState = {
|
||||
connectionNodeId: undefined,
|
||||
connectionHandleId: undefined,
|
||||
connectionHandleType: 'source',
|
||||
connectionPosition: { x: 0, y: 0 },
|
||||
connectionPosition: { x: NaN, y: NaN },
|
||||
connectionMode: ConnectionMode.Strict,
|
||||
|
||||
snapGrid: [15, 15],
|
||||
|
||||
Reference in New Issue
Block a user