@xyflow/system
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -7,2 +7,3 @@ import type { XYPosition, Dimensions, NodeBase, EdgeBase } from '.'; | ||
resizing?: boolean; | ||
setAttributes?: boolean; | ||
}; | ||
@@ -9,0 +10,0 @@ export type NodePositionChange = { |
@@ -101,3 +101,3 @@ import type { D3DragEvent, Selection as D3Selection, SubjectPosition, ZoomBehavior } from 'd3'; | ||
export type OnError = (id: string, message: string) => void; | ||
export type UpdateNodePositions = (dragItems: NodeDragItem[] | InternalNodeBase[], dragging?: boolean) => void; | ||
export type UpdateNodePositions = (dragItems: Map<string, NodeDragItem | InternalNodeBase>, dragging?: boolean) => void; | ||
export type PanBy = (delta: XYPosition) => boolean; | ||
@@ -104,0 +104,0 @@ export type UpdateConnection = (params: { |
@@ -71,3 +71,2 @@ import type { XYPosition, Position, CoordinateExtent, HandleElement } from '.'; | ||
z: number; | ||
isParent: boolean; | ||
/** Holds a reference to the original node object provided by the user. | ||
@@ -110,4 +109,4 @@ * Used as an optimization to avoid certain operations. */ | ||
measured: { | ||
width: number | null; | ||
height: number | null; | ||
width: number; | ||
height: number; | ||
}; | ||
@@ -128,2 +127,3 @@ internals: { | ||
export type NodeLookup<NodeType extends InternalNodeBase = InternalNodeBase> = Map<string, NodeType>; | ||
export type ParentLookup<NodeType extends InternalNodeBase = InternalNodeBase> = Map<string, NodeType[]>; | ||
//# sourceMappingURL=nodes.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { Dimensions, XYPosition, CoordinateExtent, Box, Rect, NodeBase, NodeOrigin, SnapGrid, Transform, InternalNodeBase } from '../types'; | ||
import type { Dimensions, XYPosition, CoordinateExtent, Box, Rect, NodeBase, NodeOrigin, SnapGrid, Transform, InternalNodeBase, NodeLookup } from '../types'; | ||
import { type Viewport } from '../types'; | ||
@@ -48,3 +48,12 @@ export declare const clamp: (val: number, min?: number, max?: number) => number; | ||
export declare function isCoordinateExtent(extent?: CoordinateExtent | 'parent'): extent is CoordinateExtent; | ||
export declare function getNodeDimensions<NodeType extends NodeBase = NodeBase>(node: NodeType): { | ||
export declare function getNodeDimensions(node: { | ||
measured?: { | ||
width?: number; | ||
height?: number; | ||
}; | ||
width?: number; | ||
height?: number; | ||
initialWidth?: number; | ||
initialHeight?: number; | ||
}): { | ||
width: number; | ||
@@ -54,2 +63,13 @@ height: number; | ||
export declare function nodeHasDimensions<NodeType extends NodeBase = NodeBase>(node: NodeType): boolean; | ||
/** | ||
* Convert child position to aboslute position | ||
* | ||
* @internal | ||
* @param position | ||
* @param parentId | ||
* @param nodeLookup | ||
* @param nodeOrigin | ||
* @returns an internal node with an absolute position | ||
*/ | ||
export declare function evaluateAbsolutePosition(position: XYPosition, parentId: string, nodeLookup: NodeLookup, nodeOrigin?: NodeOrigin): XYPosition; | ||
//# sourceMappingURL=general.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase, CoordinateExtent, OnError, OnBeforeDeleteBase, NodeLookup, InternalNodeBase } from '../types'; | ||
import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase, CoordinateExtent, OnError, OnBeforeDeleteBase, NodeLookup, InternalNodeBase, NodeDragItem } from '../types'; | ||
/** | ||
@@ -41,3 +41,3 @@ * Test whether an object is useable as an Edge | ||
}, nodes: NodeType[], edges: EdgeType[]) => NodeType[]; | ||
export declare const getNodePositionWithOrigin: (node: InternalNodeBase | NodeBase | undefined, nodeOrigin?: NodeOrigin) => { | ||
export declare const getNodePositionWithOrigin: (node: InternalNodeBase | NodeBase, nodeOrigin?: NodeOrigin) => { | ||
position: XYPosition; | ||
@@ -48,3 +48,2 @@ positionAbsolute: XYPosition; | ||
nodeOrigin?: NodeOrigin; | ||
useRelativePosition?: boolean; | ||
}; | ||
@@ -57,10 +56,9 @@ /** | ||
* @param params.nodeOrigin - Origin of the nodes: [0, 0] - top left, [0.5, 0.5] - center | ||
* @param params.useRelativePosition - Whether to use the relative or absolute node positions | ||
* @returns Bounding box enclosing all nodes | ||
*/ | ||
export declare const getNodesBounds: (nodes: NodeBase[], params?: GetNodesBoundsParams) => Rect; | ||
export type GetInternalNodesBoundsParams = { | ||
export type GetInternalNodesBoundsParams<NodeType> = { | ||
nodeOrigin?: NodeOrigin; | ||
useRelativePosition?: boolean; | ||
filter?: (node: NodeBase) => boolean; | ||
filter?: (node: NodeType) => boolean; | ||
}; | ||
@@ -71,4 +69,4 @@ /** | ||
*/ | ||
export declare const getInternalNodesBounds: (nodeLookup: NodeLookup, params?: GetInternalNodesBoundsParams) => Rect; | ||
export declare const getNodesInside: <NodeType extends NodeBase = NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => InternalNodeBase<NodeType>[]; | ||
export declare const getInternalNodesBounds: <NodeType extends NodeDragItem | InternalNodeBase>(nodeLookup: Map<string, NodeType>, params?: GetInternalNodesBoundsParams<NodeType>) => Rect; | ||
export declare const getNodesInside: <NodeType extends NodeBase = NodeBase>(nodes: Map<string, InternalNodeBase<NodeType>>, rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => InternalNodeBase<NodeType>[]; | ||
/** | ||
@@ -75,0 +73,0 @@ * Get all connecting edges for a given set of nodes |
@@ -1,3 +0,4 @@ | ||
import { NodeBase, CoordinateExtent, InternalNodeUpdate, NodeOrigin, PanZoomInstance, Transform, XYPosition, ConnectionLookup, EdgeBase, EdgeLookup, InternalNodeBase, NodeLookup, NodeDimensionChange, NodePositionChange } from '../types'; | ||
export declare function updateAbsolutePositions<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>, parentNodeIds?: Set<string>): void; | ||
import { NodeBase, CoordinateExtent, InternalNodeUpdate, NodeOrigin, PanZoomInstance, Transform, XYPosition, ConnectionLookup, EdgeBase, EdgeLookup, InternalNodeBase, NodeLookup, NodeDimensionChange, NodePositionChange, ParentLookup } from '../types'; | ||
import { ParentExpandChild } from './types'; | ||
export declare function updateAbsolutePositions<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>): void; | ||
type UpdateNodesOptions<NodeType extends NodeBase> = { | ||
@@ -9,5 +10,5 @@ nodeOrigin?: NodeOrigin; | ||
}; | ||
export declare function adoptUserNodes<NodeType extends NodeBase>(nodes: NodeType[], nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>): void; | ||
export declare function handleParentExpand(nodes: InternalNodeBase[], nodeLookup: NodeLookup): (NodeDimensionChange | NodePositionChange)[]; | ||
export declare function updateNodeInternals<NodeType extends InternalNodeBase>(updates: Map<string, InternalNodeUpdate>, nodeLookup: Map<string, NodeType>, domNode: HTMLElement | null, nodeOrigin?: NodeOrigin): { | ||
export declare function adoptUserNodes<NodeType extends NodeBase>(nodes: NodeType[], nodeLookup: Map<string, InternalNodeBase<NodeType>>, parentLookup: Map<string, InternalNodeBase<NodeType>[]>, options?: UpdateNodesOptions<NodeType>): void; | ||
export declare function handleExpandParent(children: ParentExpandChild[], nodeLookup: NodeLookup, parentLookup: ParentLookup, nodeOrigin?: NodeOrigin): (NodeDimensionChange | NodePositionChange)[]; | ||
export declare function updateNodeInternals<NodeType extends InternalNodeBase>(updates: Map<string, InternalNodeUpdate>, nodeLookup: NodeLookup<NodeType>, parentLookup: ParentLookup<NodeType>, domNode: HTMLElement | null, nodeOrigin?: NodeOrigin): { | ||
changes: (NodeDimensionChange | NodePositionChange)[]; | ||
@@ -14,0 +15,0 @@ updatedInternals: boolean; |
@@ -0,2 +1,8 @@ | ||
import { Rect } from '../types'; | ||
export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>; | ||
export type ParentExpandChild = { | ||
id: string; | ||
parentId: string; | ||
rect: Rect; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
import { type NodeDragItem, type XYPosition, InternalNodeBase, NodeBase, NodeLookup } from '../types'; | ||
export declare function wrapSelectionDragFunc(selectionFunc?: (event: MouseEvent, nodes: NodeBase[]) => void): (event: MouseEvent, _: NodeBase, nodes: NodeBase[]) => void | undefined; | ||
export declare function isParentSelected<NodeType extends NodeBase>(node: NodeType, nodeLookup: NodeLookup): boolean; | ||
export declare function hasSelector(target: Element, selector: string, domNode: Element): boolean; | ||
export declare function getDragItems<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string): NodeDragItem[]; | ||
export declare function getDragItems<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string): Map<string, NodeDragItem>; | ||
export declare function getEventHandlerParams<NodeType extends NodeBase>({ nodeId, dragItems, nodeLookup, }: { | ||
nodeId?: string; | ||
dragItems: NodeDragItem[]; | ||
dragItems: Map<string, NodeDragItem>; | ||
nodeLookup: Map<string, NodeType>; | ||
}): [NodeType, NodeType[]]; | ||
//# sourceMappingURL=utils.d.ts.map |
import type { NodeBase, NodeDragItem, EdgeBase, CoordinateExtent, NodeOrigin, OnError, SnapGrid, Transform, PanBy, OnSelectionDrag, UpdateNodePositions, InternalNodeBase } from '../types'; | ||
export type OnDrag = (event: MouseEvent, dragItems: NodeDragItem[], node: NodeBase, nodes: NodeBase[]) => void; | ||
export type OnDrag = (event: MouseEvent, dragItems: Map<string, NodeDragItem>, node: NodeBase, nodes: NodeBase[]) => void; | ||
type StoreItems<OnNodeDrag> = { | ||
@@ -4,0 +4,0 @@ nodes: NodeBase[]; |
import type { CoordinateExtent, NodeLookup, NodeOrigin, Transform, XYPosition } from '../types'; | ||
import type { OnResize, OnResizeEnd, OnResizeStart, ShouldResize, ControlPosition } from './types'; | ||
declare const initChange: { | ||
x: number; | ||
y: number; | ||
width: number; | ||
height: number; | ||
isXPosChange: boolean; | ||
isYPosChange: boolean; | ||
isWidthChange: boolean; | ||
isHeightChange: boolean; | ||
export type XYResizerChange = { | ||
x?: number; | ||
y?: number; | ||
width?: number; | ||
height?: number; | ||
}; | ||
export type XYResizerChange = typeof initChange; | ||
export type XYResizerChildChange = { | ||
@@ -50,4 +45,4 @@ id: string; | ||
}; | ||
export declare function XYResizer({ domNode, nodeId, getStoreItems, onChange }: XYResizerParams): XYResizerInstance; | ||
export declare function XYResizer({ domNode, nodeId, getStoreItems, onChange, onEnd }: XYResizerParams): XYResizerInstance; | ||
export {}; | ||
//# sourceMappingURL=XYResizer.d.ts.map |
@@ -7,2 +7,3 @@ import type { XYPosition, Dimensions, NodeBase, EdgeBase } from '.'; | ||
resizing?: boolean; | ||
setAttributes?: boolean; | ||
}; | ||
@@ -9,0 +10,0 @@ export type NodePositionChange = { |
@@ -101,3 +101,3 @@ import type { D3DragEvent, Selection as D3Selection, SubjectPosition, ZoomBehavior } from 'd3'; | ||
export type OnError = (id: string, message: string) => void; | ||
export type UpdateNodePositions = (dragItems: NodeDragItem[] | InternalNodeBase[], dragging?: boolean) => void; | ||
export type UpdateNodePositions = (dragItems: Map<string, NodeDragItem | InternalNodeBase>, dragging?: boolean) => void; | ||
export type PanBy = (delta: XYPosition) => boolean; | ||
@@ -104,0 +104,0 @@ export type UpdateConnection = (params: { |
@@ -71,3 +71,2 @@ import type { XYPosition, Position, CoordinateExtent, HandleElement } from '.'; | ||
z: number; | ||
isParent: boolean; | ||
/** Holds a reference to the original node object provided by the user. | ||
@@ -110,4 +109,4 @@ * Used as an optimization to avoid certain operations. */ | ||
measured: { | ||
width: number | null; | ||
height: number | null; | ||
width: number; | ||
height: number; | ||
}; | ||
@@ -128,2 +127,3 @@ internals: { | ||
export type NodeLookup<NodeType extends InternalNodeBase = InternalNodeBase> = Map<string, NodeType>; | ||
export type ParentLookup<NodeType extends InternalNodeBase = InternalNodeBase> = Map<string, NodeType[]>; | ||
//# sourceMappingURL=nodes.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { Dimensions, XYPosition, CoordinateExtent, Box, Rect, NodeBase, NodeOrigin, SnapGrid, Transform, InternalNodeBase } from '../types'; | ||
import type { Dimensions, XYPosition, CoordinateExtent, Box, Rect, NodeBase, NodeOrigin, SnapGrid, Transform, InternalNodeBase, NodeLookup } from '../types'; | ||
import { type Viewport } from '../types'; | ||
@@ -48,3 +48,12 @@ export declare const clamp: (val: number, min?: number, max?: number) => number; | ||
export declare function isCoordinateExtent(extent?: CoordinateExtent | 'parent'): extent is CoordinateExtent; | ||
export declare function getNodeDimensions<NodeType extends NodeBase = NodeBase>(node: NodeType): { | ||
export declare function getNodeDimensions(node: { | ||
measured?: { | ||
width?: number; | ||
height?: number; | ||
}; | ||
width?: number; | ||
height?: number; | ||
initialWidth?: number; | ||
initialHeight?: number; | ||
}): { | ||
width: number; | ||
@@ -54,2 +63,13 @@ height: number; | ||
export declare function nodeHasDimensions<NodeType extends NodeBase = NodeBase>(node: NodeType): boolean; | ||
/** | ||
* Convert child position to aboslute position | ||
* | ||
* @internal | ||
* @param position | ||
* @param parentId | ||
* @param nodeLookup | ||
* @param nodeOrigin | ||
* @returns an internal node with an absolute position | ||
*/ | ||
export declare function evaluateAbsolutePosition(position: XYPosition, parentId: string, nodeLookup: NodeLookup, nodeOrigin?: NodeOrigin): XYPosition; | ||
//# sourceMappingURL=general.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase, CoordinateExtent, OnError, OnBeforeDeleteBase, NodeLookup, InternalNodeBase } from '../types'; | ||
import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase, CoordinateExtent, OnError, OnBeforeDeleteBase, NodeLookup, InternalNodeBase, NodeDragItem } from '../types'; | ||
/** | ||
@@ -41,3 +41,3 @@ * Test whether an object is useable as an Edge | ||
}, nodes: NodeType[], edges: EdgeType[]) => NodeType[]; | ||
export declare const getNodePositionWithOrigin: (node: InternalNodeBase | NodeBase | undefined, nodeOrigin?: NodeOrigin) => { | ||
export declare const getNodePositionWithOrigin: (node: InternalNodeBase | NodeBase, nodeOrigin?: NodeOrigin) => { | ||
position: XYPosition; | ||
@@ -48,3 +48,2 @@ positionAbsolute: XYPosition; | ||
nodeOrigin?: NodeOrigin; | ||
useRelativePosition?: boolean; | ||
}; | ||
@@ -57,10 +56,9 @@ /** | ||
* @param params.nodeOrigin - Origin of the nodes: [0, 0] - top left, [0.5, 0.5] - center | ||
* @param params.useRelativePosition - Whether to use the relative or absolute node positions | ||
* @returns Bounding box enclosing all nodes | ||
*/ | ||
export declare const getNodesBounds: (nodes: NodeBase[], params?: GetNodesBoundsParams) => Rect; | ||
export type GetInternalNodesBoundsParams = { | ||
export type GetInternalNodesBoundsParams<NodeType> = { | ||
nodeOrigin?: NodeOrigin; | ||
useRelativePosition?: boolean; | ||
filter?: (node: NodeBase) => boolean; | ||
filter?: (node: NodeType) => boolean; | ||
}; | ||
@@ -71,4 +69,4 @@ /** | ||
*/ | ||
export declare const getInternalNodesBounds: (nodeLookup: NodeLookup, params?: GetInternalNodesBoundsParams) => Rect; | ||
export declare const getNodesInside: <NodeType extends NodeBase = NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => InternalNodeBase<NodeType>[]; | ||
export declare const getInternalNodesBounds: <NodeType extends NodeDragItem | InternalNodeBase>(nodeLookup: Map<string, NodeType>, params?: GetInternalNodesBoundsParams<NodeType>) => Rect; | ||
export declare const getNodesInside: <NodeType extends NodeBase = NodeBase>(nodes: Map<string, InternalNodeBase<NodeType>>, rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => InternalNodeBase<NodeType>[]; | ||
/** | ||
@@ -75,0 +73,0 @@ * Get all connecting edges for a given set of nodes |
@@ -1,3 +0,4 @@ | ||
import { NodeBase, CoordinateExtent, InternalNodeUpdate, NodeOrigin, PanZoomInstance, Transform, XYPosition, ConnectionLookup, EdgeBase, EdgeLookup, InternalNodeBase, NodeLookup, NodeDimensionChange, NodePositionChange } from '../types'; | ||
export declare function updateAbsolutePositions<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>, parentNodeIds?: Set<string>): void; | ||
import { NodeBase, CoordinateExtent, InternalNodeUpdate, NodeOrigin, PanZoomInstance, Transform, XYPosition, ConnectionLookup, EdgeBase, EdgeLookup, InternalNodeBase, NodeLookup, NodeDimensionChange, NodePositionChange, ParentLookup } from '../types'; | ||
import { ParentExpandChild } from './types'; | ||
export declare function updateAbsolutePositions<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>): void; | ||
type UpdateNodesOptions<NodeType extends NodeBase> = { | ||
@@ -9,5 +10,5 @@ nodeOrigin?: NodeOrigin; | ||
}; | ||
export declare function adoptUserNodes<NodeType extends NodeBase>(nodes: NodeType[], nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>): void; | ||
export declare function handleParentExpand(nodes: InternalNodeBase[], nodeLookup: NodeLookup): (NodeDimensionChange | NodePositionChange)[]; | ||
export declare function updateNodeInternals<NodeType extends InternalNodeBase>(updates: Map<string, InternalNodeUpdate>, nodeLookup: Map<string, NodeType>, domNode: HTMLElement | null, nodeOrigin?: NodeOrigin): { | ||
export declare function adoptUserNodes<NodeType extends NodeBase>(nodes: NodeType[], nodeLookup: Map<string, InternalNodeBase<NodeType>>, parentLookup: Map<string, InternalNodeBase<NodeType>[]>, options?: UpdateNodesOptions<NodeType>): void; | ||
export declare function handleExpandParent(children: ParentExpandChild[], nodeLookup: NodeLookup, parentLookup: ParentLookup, nodeOrigin?: NodeOrigin): (NodeDimensionChange | NodePositionChange)[]; | ||
export declare function updateNodeInternals<NodeType extends InternalNodeBase>(updates: Map<string, InternalNodeUpdate>, nodeLookup: NodeLookup<NodeType>, parentLookup: ParentLookup<NodeType>, domNode: HTMLElement | null, nodeOrigin?: NodeOrigin): { | ||
changes: (NodeDimensionChange | NodePositionChange)[]; | ||
@@ -14,0 +15,0 @@ updatedInternals: boolean; |
@@ -0,2 +1,8 @@ | ||
import { Rect } from '../types'; | ||
export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>; | ||
export type ParentExpandChild = { | ||
id: string; | ||
parentId: string; | ||
rect: Rect; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
import { type NodeDragItem, type XYPosition, InternalNodeBase, NodeBase, NodeLookup } from '../types'; | ||
export declare function wrapSelectionDragFunc(selectionFunc?: (event: MouseEvent, nodes: NodeBase[]) => void): (event: MouseEvent, _: NodeBase, nodes: NodeBase[]) => void | undefined; | ||
export declare function isParentSelected<NodeType extends NodeBase>(node: NodeType, nodeLookup: NodeLookup): boolean; | ||
export declare function hasSelector(target: Element, selector: string, domNode: Element): boolean; | ||
export declare function getDragItems<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string): NodeDragItem[]; | ||
export declare function getDragItems<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string): Map<string, NodeDragItem>; | ||
export declare function getEventHandlerParams<NodeType extends NodeBase>({ nodeId, dragItems, nodeLookup, }: { | ||
nodeId?: string; | ||
dragItems: NodeDragItem[]; | ||
dragItems: Map<string, NodeDragItem>; | ||
nodeLookup: Map<string, NodeType>; | ||
}): [NodeType, NodeType[]]; | ||
//# sourceMappingURL=utils.d.ts.map |
import type { NodeBase, NodeDragItem, EdgeBase, CoordinateExtent, NodeOrigin, OnError, SnapGrid, Transform, PanBy, OnSelectionDrag, UpdateNodePositions, InternalNodeBase } from '../types'; | ||
export type OnDrag = (event: MouseEvent, dragItems: NodeDragItem[], node: NodeBase, nodes: NodeBase[]) => void; | ||
export type OnDrag = (event: MouseEvent, dragItems: Map<string, NodeDragItem>, node: NodeBase, nodes: NodeBase[]) => void; | ||
type StoreItems<OnNodeDrag> = { | ||
@@ -4,0 +4,0 @@ nodes: NodeBase[]; |
import type { CoordinateExtent, NodeLookup, NodeOrigin, Transform, XYPosition } from '../types'; | ||
import type { OnResize, OnResizeEnd, OnResizeStart, ShouldResize, ControlPosition } from './types'; | ||
declare const initChange: { | ||
x: number; | ||
y: number; | ||
width: number; | ||
height: number; | ||
isXPosChange: boolean; | ||
isYPosChange: boolean; | ||
isWidthChange: boolean; | ||
isHeightChange: boolean; | ||
export type XYResizerChange = { | ||
x?: number; | ||
y?: number; | ||
width?: number; | ||
height?: number; | ||
}; | ||
export type XYResizerChange = typeof initChange; | ||
export type XYResizerChildChange = { | ||
@@ -50,4 +45,4 @@ id: string; | ||
}; | ||
export declare function XYResizer({ domNode, nodeId, getStoreItems, onChange }: XYResizerParams): XYResizerInstance; | ||
export declare function XYResizer({ domNode, nodeId, getStoreItems, onChange, onEnd }: XYResizerParams): XYResizerInstance; | ||
export {}; | ||
//# sourceMappingURL=XYResizer.d.ts.map |
{ | ||
"name": "@xyflow/system", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "xyflow core system that powers React Flow and Svelte Flow.", | ||
@@ -51,4 +51,4 @@ "keywords": [ | ||
"@xyflow/eslint-config": "0.0.0", | ||
"@xyflow/rollup-config": "0.0.0", | ||
"@xyflow/tsconfig": "0.0.0" | ||
"@xyflow/tsconfig": "0.0.0", | ||
"@xyflow/rollup-config": "0.0.0" | ||
}, | ||
@@ -55,0 +55,0 @@ "rollup": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
539062
8553