Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xyflow/system

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyflow/system - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

4

dist/esm/utils/edges/general.d.ts

@@ -33,3 +33,3 @@ import { Connection, Transform } from '../..';

*/
export declare const addEdge: <EdgeType extends EdgeBase<Record<string, unknown>, string | undefined>>(edgeParams: Connection | EdgeType, edges: EdgeType[]) => EdgeType[];
export declare const addEdge: <EdgeType extends EdgeBase>(edgeParams: EdgeType | Connection, edges: EdgeType[]) => EdgeType[];
export type UpdateEdgeOptions = {

@@ -46,4 +46,4 @@ shouldReplaceId?: boolean;

*/
export declare const updateEdge: <EdgeType extends EdgeBase<Record<string, unknown>, string | undefined>>(oldEdge: EdgeType, newConnection: Connection, edges: EdgeType[], options?: UpdateEdgeOptions) => EdgeType[];
export declare const updateEdge: <EdgeType extends EdgeBase>(oldEdge: EdgeType, newConnection: Connection, edges: EdgeType[], options?: UpdateEdgeOptions) => EdgeType[];
export {};
//# sourceMappingURL=general.d.ts.map

@@ -9,3 +9,3 @@ import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase, CoordinateExtent, OnError, OnBeforeDeleteBase, NodeLookup } from '../types';

*/
export declare const isEdgeBase: <EdgeType extends EdgeBase<Record<string, unknown>, string | undefined> = EdgeBase<Record<string, unknown>, string | undefined>>(element: any) => element is EdgeType;
export declare const isEdgeBase: <EdgeType extends EdgeBase = EdgeBase>(element: any) => element is EdgeType;
/**

@@ -18,3 +18,3 @@ * Test whether an object is useable as a Node

*/
export declare const isNodeBase: <NodeType extends NodeBase<Record<string, unknown>, string> = NodeBase<Record<string, unknown>, string>>(element: any) => element is NodeType;
export declare const isNodeBase: <NodeType extends NodeBase = NodeBase>(element: any) => element is NodeType;
/**

@@ -28,3 +28,3 @@ * Pass in a node, and get connected nodes where edge.source === node.id

*/
export declare const getOutgoers: <NodeType extends NodeBase<Record<string, unknown>, string> = NodeBase<Record<string, unknown>, string>, EdgeType extends EdgeBase<Record<string, unknown>, string | undefined> = EdgeBase<Record<string, unknown>, string | undefined>>(node: NodeType | {
export declare const getOutgoers: <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(node: NodeType | {
id: string;

@@ -40,3 +40,3 @@ }, nodes: NodeType[], edges: EdgeType[]) => NodeType[];

*/
export declare const getIncomers: <NodeType extends NodeBase<Record<string, unknown>, string> = NodeBase<Record<string, unknown>, string>, EdgeType extends EdgeBase<Record<string, unknown>, string | undefined> = EdgeBase<Record<string, unknown>, string | undefined>>(node: NodeType | {
export declare const getIncomers: <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(node: NodeType | {
id: string;

@@ -62,3 +62,3 @@ }, nodes: NodeType[], edges: EdgeType[]) => NodeType[];

export declare const getNodesBounds: (nodes: NodeBase[], params?: GetNodesBoundsParams) => Rect;
export declare const getNodesInside: <NodeType extends NodeBase<Record<string, unknown>, string>>(nodes: NodeType[], rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => NodeType[];
export declare const getNodesInside: <NodeType extends NodeBase>(nodes: NodeType[], rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => NodeType[];
/**

@@ -70,3 +70,3 @@ * Get all connecting edges for a given set of nodes

*/
export declare const getConnectedEdges: <NodeType extends NodeBase<Record<string, unknown>, string> = NodeBase<Record<string, unknown>, string>, EdgeType extends EdgeBase<Record<string, unknown>, string | undefined> = EdgeBase<Record<string, unknown>, string | undefined>>(nodes: NodeType[], edges: EdgeType[]) => EdgeType[];
export declare const getConnectedEdges: <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(nodes: NodeType[], edges: EdgeType[]) => EdgeType[];
export declare function fitView<Params extends FitViewParamsBase<NodeBase>, Options extends FitViewOptionsBase<NodeBase>>({ nodes, width, height, panZoom, minZoom, maxZoom, nodeOrigin }: Params, options?: Options): boolean;

@@ -73,0 +73,0 @@ /**

import { NodeBase } from '../types';
type NodeData = Pick<NodeBase, 'id' | 'type' | 'data'>;
export declare function shallowNodeData(a: NodeData | NodeData[], b: NodeData | NodeData[]): boolean;
export declare function shallowNodeData(a: NodeData | NodeData[] | null, b: NodeData | NodeData[] | null): boolean;
export {};
//# sourceMappingURL=shallow-node-data.d.ts.map

@@ -23,2 +23,3 @@ import { ConnectionMode, type OnConnect, type OnConnectStart, type HandleType, type Connection, type PanBy, type NodeBase, type Transform, type ConnectingHandle, type OnConnectEnd, type UpdateConnection, type IsValidConnection, type ConnectionHandle } from '../types';

getTransform: () => Transform;
getConnectionStartHandle: () => ConnectingHandle | null;
};

@@ -25,0 +26,0 @@ export type IsValidParams = {

@@ -33,3 +33,3 @@ import { Connection, Transform } from '../..';

*/
export declare const addEdge: <EdgeType extends EdgeBase<Record<string, unknown>, string | undefined>>(edgeParams: Connection | EdgeType, edges: EdgeType[]) => EdgeType[];
export declare const addEdge: <EdgeType extends EdgeBase>(edgeParams: EdgeType | Connection, edges: EdgeType[]) => EdgeType[];
export type UpdateEdgeOptions = {

@@ -46,4 +46,4 @@ shouldReplaceId?: boolean;

*/
export declare const updateEdge: <EdgeType extends EdgeBase<Record<string, unknown>, string | undefined>>(oldEdge: EdgeType, newConnection: Connection, edges: EdgeType[], options?: UpdateEdgeOptions) => EdgeType[];
export declare const updateEdge: <EdgeType extends EdgeBase>(oldEdge: EdgeType, newConnection: Connection, edges: EdgeType[], options?: UpdateEdgeOptions) => EdgeType[];
export {};
//# sourceMappingURL=general.d.ts.map

@@ -9,3 +9,3 @@ import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase, CoordinateExtent, OnError, OnBeforeDeleteBase, NodeLookup } from '../types';

*/
export declare const isEdgeBase: <EdgeType extends EdgeBase<Record<string, unknown>, string | undefined> = EdgeBase<Record<string, unknown>, string | undefined>>(element: any) => element is EdgeType;
export declare const isEdgeBase: <EdgeType extends EdgeBase = EdgeBase>(element: any) => element is EdgeType;
/**

@@ -18,3 +18,3 @@ * Test whether an object is useable as a Node

*/
export declare const isNodeBase: <NodeType extends NodeBase<Record<string, unknown>, string> = NodeBase<Record<string, unknown>, string>>(element: any) => element is NodeType;
export declare const isNodeBase: <NodeType extends NodeBase = NodeBase>(element: any) => element is NodeType;
/**

@@ -28,3 +28,3 @@ * Pass in a node, and get connected nodes where edge.source === node.id

*/
export declare const getOutgoers: <NodeType extends NodeBase<Record<string, unknown>, string> = NodeBase<Record<string, unknown>, string>, EdgeType extends EdgeBase<Record<string, unknown>, string | undefined> = EdgeBase<Record<string, unknown>, string | undefined>>(node: NodeType | {
export declare const getOutgoers: <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(node: NodeType | {
id: string;

@@ -40,3 +40,3 @@ }, nodes: NodeType[], edges: EdgeType[]) => NodeType[];

*/
export declare const getIncomers: <NodeType extends NodeBase<Record<string, unknown>, string> = NodeBase<Record<string, unknown>, string>, EdgeType extends EdgeBase<Record<string, unknown>, string | undefined> = EdgeBase<Record<string, unknown>, string | undefined>>(node: NodeType | {
export declare const getIncomers: <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(node: NodeType | {
id: string;

@@ -62,3 +62,3 @@ }, nodes: NodeType[], edges: EdgeType[]) => NodeType[];

export declare const getNodesBounds: (nodes: NodeBase[], params?: GetNodesBoundsParams) => Rect;
export declare const getNodesInside: <NodeType extends NodeBase<Record<string, unknown>, string>>(nodes: NodeType[], rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => NodeType[];
export declare const getNodesInside: <NodeType extends NodeBase>(nodes: NodeType[], rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => NodeType[];
/**

@@ -70,3 +70,3 @@ * Get all connecting edges for a given set of nodes

*/
export declare const getConnectedEdges: <NodeType extends NodeBase<Record<string, unknown>, string> = NodeBase<Record<string, unknown>, string>, EdgeType extends EdgeBase<Record<string, unknown>, string | undefined> = EdgeBase<Record<string, unknown>, string | undefined>>(nodes: NodeType[], edges: EdgeType[]) => EdgeType[];
export declare const getConnectedEdges: <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(nodes: NodeType[], edges: EdgeType[]) => EdgeType[];
export declare function fitView<Params extends FitViewParamsBase<NodeBase>, Options extends FitViewOptionsBase<NodeBase>>({ nodes, width, height, panZoom, minZoom, maxZoom, nodeOrigin }: Params, options?: Options): boolean;

@@ -73,0 +73,0 @@ /**

import { NodeBase } from '../types';
type NodeData = Pick<NodeBase, 'id' | 'type' | 'data'>;
export declare function shallowNodeData(a: NodeData | NodeData[], b: NodeData | NodeData[]): boolean;
export declare function shallowNodeData(a: NodeData | NodeData[] | null, b: NodeData | NodeData[] | null): boolean;
export {};
//# sourceMappingURL=shallow-node-data.d.ts.map

@@ -23,2 +23,3 @@ import { ConnectionMode, type OnConnect, type OnConnectStart, type HandleType, type Connection, type PanBy, type NodeBase, type Transform, type ConnectingHandle, type OnConnectEnd, type UpdateConnection, type IsValidConnection, type ConnectionHandle } from '../types';

getTransform: () => Transform;
getConnectionStartHandle: () => ConnectingHandle | null;
};

@@ -25,0 +26,0 @@ export type IsValidParams = {

{
"name": "@xyflow/system",
"version": "0.0.19",
"version": "0.0.20",
"description": "xyflow core system that powers React Flow and Svelte Flow.",

@@ -50,5 +50,5 @@ "keywords": [

"typescript": "5.1.3",
"@xyflow/eslint-config": "0.0.0",
"@xyflow/rollup-config": "0.0.0",
"@xyflow/tsconfig": "0.0.0"
"@xyflow/tsconfig": "0.0.0",
"@xyflow/eslint-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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc