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

@vue-flow/core

Package Overview
Dependencies
Maintainers
1
Versions
156
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 1.38.3 to 1.38.4

7

dist/composables/useDrag.d.ts

@@ -7,5 +7,6 @@ import type { D3DragEvent, SubjectPosition } from 'd3-drag'

interface UseDragParams {
onStart: (args: Omit<NodeDragEvent, 'intersections'>) => void
onDrag: (event: Omit<NodeDragEvent, 'intersections'>) => void
onStop: (event: Omit<NodeDragEvent, 'intersections'>) => void
onStart: (event: NodeDragEvent) => void
onDrag: (event: NodeDragEvent) => void
onStop: (event: NodeDragEvent) => void
onClick?: (event: MouseEvent) => void
el: Ref<Element | null>

@@ -12,0 +13,0 @@ disabled?: MaybeRefOrGetter<boolean>

@@ -109,8 +109,17 @@ import type { CSSProperties } from 'vue'

export interface FlowExportObject {
/** exported nodes */
nodes: Node[]
/** exported edges */
edges: Edge[]
/** @deprecated use `viewport` instead */
/**
* exported viewport position
* @deprecated use {@link FlowExportObject.viewport} instead
*/
position: [x: number, y: number]
/** @deprecated use `viewport` instead */
/**
* exported zoom level
* @deprecated use {@link FlowExportObject.viewport} instead
*/
zoom: number
/** exported viewport (position + zoom) */
viewport: ViewportTransform

@@ -120,3 +129,6 @@ }

id?: string
/** @deprecated use `nodes` & `edges` instead */
/**
* all elements (nodes + edges)
* @deprecated use {@link FlowProps.nodes} & {@link FlowProps.nodes} instead
*/
modelValue?: Elements

@@ -174,9 +186,9 @@ nodes?: Node[]

/**
* apply default change handlers for position, dimensions, adding/removing nodes. set this to false if you want to apply the changes manually
* @deprecated - will be removed in the next major version, changes will not be auto applied in the future
* apply default change handlers for position, dimensions, adding/removing nodes. set this to false if you want to apply the changes manually
*/
applyDefault?: boolean
/**
* automatically create an edge when connection is triggered
* @deprecated - will be removed in the next major version
* automatically create an edge when connection is triggered
*/

@@ -199,3 +211,6 @@ autoConnect?: boolean | Connector

}
/** @deprecated use `FlowProps` instead */
/**
* All available VueFlow options
* @deprecated use the {@link FlowProps} type instead
*/
export type FlowOptions = FlowProps

@@ -202,0 +217,0 @@ export interface FlowEmits {

@@ -11,2 +11,3 @@ import type { CSSProperties, ComputedRef, ToRefs } from 'vue'

FlowOptions,
FlowProps,
Rect,

@@ -42,3 +43,3 @@ SelectionMode,

}
export interface State extends Omit<FlowOptions, 'id' | 'modelValue'> {
export interface State extends Omit<FlowProps, 'id' | 'modelValue'> {
/** Vue flow element ref */

@@ -237,4 +238,4 @@ vueFlowRef: HTMLDivElement | null

/**
* @deprecated will be removed in the next major, use `addSelectedNodes`/`addSelectedEdges` instead
* manually select elements and add to state
* @deprecated will be removed in the next major, use {@link Actions.addSelectedNodes} or {@link Actions.addSelectedEdges} instead
*/

@@ -308,19 +309,19 @@ addSelectedElements: (elements: FlowElements) => void

/**
* get all elements
* @deprecated - will be removed in next major version
* get all elements (filters hidden elements)
*/
getElements: FlowElements
/** all visible node */
getNodes: GraphNode[]
/** all visible edges */
getEdges: GraphEdge[]
/**
* @deprecated - will be removed in next major version; use `useVisibleNodes` instead
* all visible nodes
* returns a node by id
* @deprecated use {@link Actions.findNode} instead
*/
getNodes: GraphNode[]
getNode: (id: string) => GraphNode | undefined
/**
* @deprecated - will be removed in next major version; use `useVisibleEdges` instead
* all visible edges
* returns an edge by id
* @deprecated use {@link Actions.findEdge} instead
*/
getEdges: GraphEdge[]
/** @deprecated use {@link Actions.findNode} instead; returns a node by id */
getNode: (id: string) => GraphNode | undefined
/** @deprecated use {@link Actions.findEdge} instead; returns an edge by id */
getEdge: (id: string) => GraphEdge | undefined

@@ -334,9 +335,9 @@ /** returns all currently selected elements */

/**
* @deprecated - will be removed in next major version; use `useNodesInitialized` instead
* returns all nodes that are initialized, i.e. they have actual dimensions
* @deprecated - will be removed in next major version; use {@link useNodesInitialized} instead
*/
getNodesInitialized: GraphNode[]
/**
* @deprecated - will be removed in next major version; use `useNodesInitialized` instead
* returns a boolean flag whether all current nodes are initialized
* @deprecated - will be removed in next major version; use {@link useNodesInitialized} instead
*/

@@ -343,0 +344,0 @@ areNodesInitialized: boolean

{
"name": "@vue-flow/core",
"version": "1.38.3",
"version": "1.38.4",
"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 too big to display

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