@vue-flow/core
Advanced tools
Comparing version 1.34.1 to 1.35.0
declare const EdgeWrapper: import('vue').DefineComponent< | ||
Readonly<{ | ||
id?: any | ||
selectable?: any | ||
type?: any | ||
name?: any | ||
focusable?: any | ||
updatable?: any | ||
edge?: any | ||
}>, | ||
@@ -32,8 +26,2 @@ () => | ||
id?: any | ||
selectable?: any | ||
type?: any | ||
name?: any | ||
focusable?: any | ||
updatable?: any | ||
edge?: any | ||
}> | ||
@@ -44,8 +32,2 @@ > | ||
readonly id?: any | ||
readonly selectable?: any | ||
readonly type?: any | ||
readonly name?: any | ||
readonly focusable?: any | ||
readonly updatable?: any | ||
readonly edge?: any | ||
}, | ||
@@ -52,0 +34,0 @@ {} |
declare const NodeWrapper: import('vue').DefineComponent< | ||
Readonly<{ | ||
node?: any | ||
id?: any | ||
selectable?: any | ||
type?: any | ||
connectable?: any | ||
name?: any | ||
draggable?: any | ||
focusable?: any | ||
resizeObserver?: any | ||
}>, | ||
() => import('vue').VNode< | ||
import('vue').RendererNode, | ||
import('vue').RendererElement, | ||
{ | ||
[key: string]: any | ||
} | ||
>, | ||
() => | ||
| import('vue').VNode< | ||
import('vue').RendererNode, | ||
import('vue').RendererElement, | ||
{ | ||
[key: string]: any | ||
} | ||
> | ||
| null, | ||
unknown, | ||
@@ -31,10 +26,3 @@ {}, | ||
Readonly<{ | ||
node?: any | ||
id?: any | ||
selectable?: any | ||
type?: any | ||
connectable?: any | ||
name?: any | ||
draggable?: any | ||
focusable?: any | ||
resizeObserver?: any | ||
@@ -45,10 +33,3 @@ }> | ||
{ | ||
readonly node?: any | ||
readonly id?: any | ||
readonly selectable?: any | ||
readonly type?: any | ||
readonly connectable?: any | ||
readonly name?: any | ||
readonly draggable?: any | ||
readonly focusable?: any | ||
readonly resizeObserver?: any | ||
@@ -55,0 +36,0 @@ }, |
@@ -18,4 +18,4 @@ import type { CustomEvent, ElementData } from '../types' | ||
id: string | ||
edge: import('../types').GraphEdge<Data, CustomEvents, string> | undefined | ||
edge: import('../types').GraphEdge<Data, CustomEvents, string> | ||
edgeEl: import('vue').Ref<SVGElement | null> | ||
} |
import type { ComputedRef, MaybeRefOrGetter } from 'vue' | ||
import type { Connection, HandleType } from '../types' | ||
import type { HandleConnection, HandleType } from '../types' | ||
@@ -8,7 +8,7 @@ export interface UseHandleConnectionsParams { | ||
nodeId?: MaybeRefOrGetter<string | null> | ||
onConnect?: (connections: Connection[]) => void | ||
onDisconnect?: (connections: Connection[]) => void | ||
onConnect?: (connections: HandleConnection[]) => void | ||
onDisconnect?: (connections: HandleConnection[]) => void | ||
} | ||
/** | ||
* Composable that returns existing connections of a handle | ||
* Composable that returns existing connections of a `<Handle />`. | ||
* | ||
@@ -25,2 +25,2 @@ * @public | ||
*/ | ||
export declare function useHandleConnections(params: UseHandleConnectionsParams): ComputedRef<Connection[]> | ||
export declare function useHandleConnections(params: UseHandleConnectionsParams): ComputedRef<HandleConnection[]> |
import type { ComputedRef } from 'vue' | ||
import type { Actions, State } from '../types' | ||
import type { Actions, EdgeLookup, NodeLookup, State } from '../types' | ||
@@ -7,4 +7,4 @@ export declare function useActions( | ||
state: State, | ||
nodeIds: ComputedRef<string[]>, | ||
edgeIds: ComputedRef<string[]>, | ||
nodeLookup: ComputedRef<NodeLookup>, | ||
edgeLookup: ComputedRef<EdgeLookup>, | ||
): Actions |
import type { ComputedRef } from 'vue' | ||
import type { ComputedGetters, State } from '../types' | ||
import type { ComputedGetters, EdgeLookup, NodeLookup, State } from '../types' | ||
export declare function useGetters(state: State, nodeIds: ComputedRef<string[]>, edgeIds: ComputedRef<string[]>): ComputedGetters | ||
export declare function useGetters( | ||
state: State, | ||
nodeLookup: ComputedRef<NodeLookup>, | ||
edgeLookup: ComputedRef<EdgeLookup>, | ||
): ComputedGetters |
@@ -33,2 +33,6 @@ import type { CSSProperties } from 'vue' | ||
} | ||
/** Connection with edge id */ | ||
export interface HandleConnection extends Connection { | ||
edgeId: string | ||
} | ||
export type Connector = ( | ||
@@ -80,1 +84,2 @@ params: Connection, | ||
} | ||
export type ConnectionLookup = Map<string, Map<string, HandleConnection>> |
@@ -69,3 +69,6 @@ import type { Component, VNode } from 'vue' | ||
expandParent?: boolean | ||
/** define node as a child node by setting a parent node id */ | ||
/** | ||
* todo: rename to `parentId` in next major release | ||
* define node as a child node by setting a parent node id | ||
*/ | ||
parentNode?: string | ||
@@ -164,3 +167,6 @@ /** | ||
parent?: string | ||
/** parent node id */ | ||
/** | ||
* todo: rename to `parentId` in next major release | ||
* parent node id | ||
*/ | ||
parentNodeId?: string | ||
@@ -167,0 +173,0 @@ /** is node currently dragging */ |
@@ -22,2 +22,3 @@ import type { CSSProperties, ComputedRef, ToRefs } from 'vue' | ||
ConnectionLineType, | ||
ConnectionLookup, | ||
ConnectionMode, | ||
@@ -34,3 +35,4 @@ ConnectionStatus, | ||
export type ConnectionLookup = Map<string, Map<string, Connection>> | ||
export type NodeLookup = Map<string, GraphNode> | ||
export type EdgeLookup = Map<string, GraphEdge> | ||
export interface UpdateNodeDimensionsParams { | ||
@@ -37,0 +39,0 @@ id: string |
@@ -9,2 +9,3 @@ import type { | ||
GraphNode, | ||
HandleConnection, | ||
Node, | ||
@@ -99,5 +100,5 @@ State, | ||
export declare function handleConnectionChange( | ||
a: Map<string, Connection>, | ||
b: Map<string, Connection>, | ||
cb?: (diff: Connection[]) => void, | ||
a: Map<string, HandleConnection>, | ||
b: Map<string, HandleConnection>, | ||
cb?: (diff: HandleConnection[]) => void, | ||
): void | ||
@@ -104,0 +105,0 @@ /** |
{ | ||
"name": "@vue-flow/core", | ||
"version": "1.34.1", | ||
"version": "1.35.0", | ||
"private": false, | ||
@@ -77,4 +77,4 @@ "license": "MIT", | ||
"vue-tsc": "^1.8.16", | ||
"@tooling/eslint-config": "0.0.0", | ||
"@tooling/tsconfig": "0.0.0" | ||
"@tooling/tsconfig": "0.0.0", | ||
"@tooling/eslint-config": "0.0.0" | ||
}, | ||
@@ -81,0 +81,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1200406
34537