@xyflow/svelte
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -7,2 +7,3 @@ import { SvelteComponentTyped } from "svelte"; | ||
type?: string | undefined; | ||
hidden?: boolean | undefined; | ||
selected?: boolean | undefined; | ||
@@ -9,0 +10,0 @@ selectable?: boolean | undefined; |
@@ -10,2 +10,3 @@ import { SvelteComponentTyped } from "svelte"; | ||
targetPosition?: import("@xyflow/system").Position | undefined; | ||
hidden?: boolean | undefined; | ||
selected?: boolean | undefined; | ||
@@ -12,0 +13,0 @@ dragging?: boolean | undefined; |
import type { XYPosition } from '@xyflow/system'; | ||
import type { Node } from '../../types'; | ||
export type NodeWrapperProps = Pick<Node, 'id' | 'class' | 'connectable' | 'data' | 'draggable' | 'dragging' | 'positionAbsolute' | 'selected' | 'selectable' | 'style' | 'type' | 'width' | 'height' | 'sourcePosition' | 'targetPosition' | 'dragHandle'> & { | ||
export type NodeWrapperProps = Pick<Node, 'id' | 'class' | 'connectable' | 'data' | 'draggable' | 'dragging' | 'positionAbsolute' | 'selected' | 'selectable' | 'style' | 'type' | 'width' | 'height' | 'sourcePosition' | 'targetPosition' | 'dragHandle' | 'hidden'> & { | ||
positionOrigin?: XYPosition; | ||
@@ -5,0 +5,0 @@ 'on:nodeclick'?: (event: MouseEvent) => void; |
@@ -5,3 +5,2 @@ import { get, writable } from 'svelte/store'; | ||
export function useSvelteFlow() { | ||
// how to get the new context here? fit view doesn't work, because the store is not updated (uses old nodes store) | ||
const { zoomIn, zoomOut, fitView, snapGrid, transform, width, height, maxZoom, panZoom, nodes, edges } = useStore(); | ||
@@ -8,0 +7,0 @@ const transformValues = get(transform); |
@@ -14,2 +14,3 @@ export { SvelteFlow } from './container/SvelteFlow'; | ||
export * from './hooks/useSvelteFlow'; | ||
export * from './hooks/useUpdateNodeInternals'; | ||
export type { Edge, EdgeProps, EdgeTypes, DefaultEdgeOptions } from './types/edges'; | ||
@@ -16,0 +17,0 @@ export type { HandleComponentProps, FitViewOptions } from './types/general'; |
@@ -19,2 +19,3 @@ // main component | ||
export * from './hooks/useSvelteFlow'; | ||
export * from './hooks/useUpdateNodeInternals'; | ||
// system types | ||
@@ -21,0 +22,0 @@ export { ConnectionLineType, MarkerType, ConnectionMode, PanOnScrollMode, SelectionMode, Position } from '@xyflow/system'; |
@@ -30,3 +30,3 @@ import type { SvelteComponent, ComponentType } from 'svelte'; | ||
export type DefaultEdgeOptions = DefaultEdgeOptionsBase<Edge>; | ||
export type EdgeLayouted = Pick<Edge, 'type' | 'id' | 'data' | 'style' | 'source' | 'target' | 'animated' | 'selected' | 'selectable' | 'label' | 'labelStyle' | 'interactionWidth' | 'markerStart' | 'markerEnd' | 'sourceHandle' | 'targetHandle' | 'ariaLabel'> & EdgePosition & { | ||
export type EdgeLayouted = Pick<Edge, 'type' | 'id' | 'data' | 'style' | 'source' | 'target' | 'animated' | 'selected' | 'selectable' | 'label' | 'labelStyle' | 'interactionWidth' | 'markerStart' | 'markerEnd' | 'sourceHandle' | 'targetHandle' | 'ariaLabel' | 'hidden'> & EdgePosition & { | ||
sourceHandleId?: string | null; | ||
@@ -33,0 +33,0 @@ targetHandleId?: string | null; |
{ | ||
"name": "@xyflow/svelte", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "Svelte Flow - A highly customizable Svelte library for building node-based editors, workflow systems, diagrams and more.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
204929
193
3417
0