🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@vue-flow/core

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue-flow/core - npm Package Compare versions

Comparing version

to
1.3.0

dist/types/plugins.d.ts

1

dist/components/Edges/index.d.ts

@@ -10,1 +10,2 @@ export { default as BaseEdge } from './BaseEdge'

export { default as EdgeWrapper } from './Wrapper'
export { default as EdgeLabelRenderer } from './EdgeLabelRenderer.vue'

@@ -7,3 +7,12 @@ /**

export { default as Handle } from './components/Handle/Handle.vue'
export { StraightEdge, StepEdge, BezierEdge, SimpleBezierEdge, SmoothStepEdge, BaseEdge, EdgeText } from './components/Edges'
export {
StraightEdge,
StepEdge,
BezierEdge,
SimpleBezierEdge,
SmoothStepEdge,
BaseEdge,
EdgeText,
EdgeLabelRenderer,
} from './components/Edges'
export { getBezierPath, getSimpleBezierPath, getSmoothStepPath, getStraightPath } from './components/Edges/utils'

@@ -10,0 +19,0 @@ export {

@@ -20,2 +20,3 @@ import type { EventHook, EventHookOn, EventHookTrigger } from '@vueuse/core'

nodes: GraphNode[]
intersections?: GraphNode[]
}

@@ -42,2 +43,3 @@ export interface EdgeMouseEvent {

nodeDragStop: NodeDragEvent
nodesInitialized: void
updateNodeInternals: string[]

@@ -114,2 +116,3 @@ miniMapNodeClick: NodeMouseEvent

(event: 'nodeDragStop', nodeDragEvent: NodeDragEvent): void
(event: 'nodesInitialized'): void
(event: 'miniMapNodeClick', nodeMouseEvent: NodeMouseEvent): void

@@ -116,0 +119,0 @@ (event: 'miniMapNodeDoubleClick', nodeMouseEvent: NodeMouseEvent): void

import type { CSSProperties, ComputedRef, ToRefs } from 'vue'
import type { KeyFilter } from '@vueuse/core'
import type { Dimensions, ElementData, Elements, FlowElements, FlowExportObject, FlowOptions, SnapGrid, XYPosition } from './flow'
import type {
Dimensions,
ElementData,
Elements,
FlowElements,
FlowExportObject,
FlowOptions,
Rect,
SnapGrid,
XYPosition,
} from './flow'
import type { DefaultEdgeTypes, DefaultNodeTypes, EdgeComponent, NodeComponent } from './components'

@@ -118,2 +128,20 @@ import type { Connection, ConnectionLineOptions, ConnectionLineType, ConnectionMode, Connector } from './connection'

) => GraphEdge<Data, CustomEvents> | undefined
export declare type GetIntersectingNodes = (
node:
| (Partial<Node> & {
id: Node['id']
})
| Rect,
partially?: boolean,
nodes?: GraphNode[],
) => GraphNode[]
export declare type IsNodeIntersecting = (
node:
| (Partial<Node> & {
id: Node['id']
})
| Rect,
area: Rect,
partially?: boolean,
) => boolean
export interface Actions extends ViewportFunctions {

@@ -182,2 +210,6 @@ /** parses elements (nodes + edges) and re-sets the state */

updateNodeDimensions: UpdateNodeDimensions
/** returns all node intersections */
getIntersectingNodes: GetIntersectingNodes
/** check if a node is intersecting with a defined area */
isNodeIntersecting: IsNodeIntersecting
/** reset state to defaults */

@@ -184,0 +216,0 @@ $reset: () => void

@@ -20,2 +20,4 @@ import type {

} from '../types'
export declare const nodeToRect: (node: GraphNode) => Rect
export declare const getOverlappingArea: (rectA: Rect, rectB: Rect) => number
export declare const getDimensions: (node: HTMLElement) => Dimensions

@@ -30,2 +32,3 @@ export declare const clamp: (val: number, min?: number, max?: number) => number

export declare const isGraphNode: <Data = any>(element: MaybeElement) => element is GraphNode<Data, any>
export declare const isRect: (obj: any) => obj is Rect
export declare const parseNode: (node: Node, nodeExtent: CoordinateExtent, defaults?: Partial<GraphNode>) => GraphNode

@@ -77,2 +80,3 @@ export declare const parseEdge: (edge: Edge, defaults?: Partial<GraphEdge>) => GraphEdge

partially?: boolean,
excludeNonSelectableNodes?: boolean,
) => GraphNode<any, any>[]

@@ -79,0 +83,0 @@ export declare const getConnectedEdges: (nodes: GraphNode[], edges: GraphEdge[]) => GraphEdge<any, any>[]

2

package.json
{
"name": "@vue-flow/core",
"version": "1.2.2",
"version": "1.3.0",
"private": false,

@@ -5,0 +5,0 @@ "license": "MIT",

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 too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display