3.8 KiB
3.8 KiB
0.0.25
- add
toObjecttouseSvelteFlowhook - export
BezierEdge,StepEdgeandSmoothStepEdgecomponents - handle window resize (Minimap updates its viewport)
- fix wrongly selected nodes
- fix connection line z-index
- fix broken edges (
interactionWidthwas missing)
0.0.24
- update node automatically when
type,sourcePositionortargetPositionoption changes - prevent dev tool warnings when using built-in node types
- updates
useSvelteFlowhook: - add node type "group"
- add
classprop for BaseEdge - add
idprop for Background - add
selectedprop for MiniMap Node - rename Controls prop
showInteractivetoshowLock
0.0.23
- updates
useSvelteFlowhook:- add
screenToFlowCoordinateandflowToScreenCoordinate - add
getConnectedEdges,getIncomersandgetOutgoers - add
deleteElements - add
fitBounds - add
getIntersectingNodesandisNodeIntersecting
- add
- add
useConnectionhook - add
useNodeshook - add
useEdgeshook - add
viewportprop (writable viewport) - fix selection style
- fix Background component with lines variant
0.0.22
- add
connectionLineslot for rendering a custom connection line - add
connectionLineStyleandconnectionLineContainerStyleprops - add
useConnectionhook - add
nodeDragThresholdprop - add
fitViewOptionsprop - add
defaultEdgeOptionsprop - add
on:edgecontextmenuevent handler prop - add
connectionModeprop - add
attributionPositionprop
0.0.21
- add
on:nodedragstart,on:nodedragandon:nodedragstop - add
on:nodecontextmenu
0.0.20
- [breaking change] use same convention for all custom events: Always pass the original event if possible and additional data
- before:
on:nodeclick: CustomEvent<Node> - after:
on:nodeclick: CustomEvent<{event: MouseEvent, node: Node}>
- before:
- fix
on:connectstartandon:connectendhandlers - fix default styles for
<Controls />component - fix
dragHandlenode option - expose
styleprop for minimap
0.0.19
- make it possible to change edge type dynamically
- fix
hiddenoption for nodes and edges - add
useUpdateNodeInternalshook
0.0.18
- add
nodesDraggableprop - minimap: add default background
0.0.17
- export
useStoreto access internals
0.0.16
- center edge label by default
0.0.15
- fix wrongly displayed connectionline
0.0.14
- export css correctly
0.0.13
- [breaking change] from now on it's necessary to import the styles like
@xyflow/svelte/styles/style.cssor@xyflow/svelte/styles/base.css. This makes it easier to work with tailwind or overwrite styles with regular CSS.
0.0.7 ... 0.0.12
- fix event handlers and rename from
on:node:clicktoon:nodeclick - add
panActivationKeyprop - elevate nodes by default when selected
- use css vars internally and let users overwrite them
0.0.6
- use svelte 4
0.0.5
this release fixes the path bug introduced in 0.0.4
0.0.4
this version is broken because of a wrong path in the package.json
0.0.3
- add
snapGridprop - add
onlyRenderVisibleElementsprop - cleanup some exports and types
0.0.2
- add
connectionRadius
0.0.1
Svelte Flow alpha is here 🔥 You can expect some changes until we reach 1.0.0 but we try to stick as close as possible to the React Flow API. There are no docs yet, but we are working on it! For now the easiest way is to use the autocomplete of your IDE, lookup the props in the SvelteFlow component or check out the React Flow docs.
This very first release comes with lots of features already:
- pass
nodesandedgesas writables - draggable, selectable and deletable nodes
- support for custom
nodeTypesandedgeTypes - basic viewport settings like
fitView,minZoomandmaxZoom - additional components:
<MiniMap />,<Controls />&<Background />