You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add prop nodeProps to FlowChart component and spread down to Node and InnerNode. This allows data to be made available in e.g. dropdown menus in node components. 2dfa8ab
node size is derived internally as defined by the Node custom component. Added that in error to the input node object. 2accdfe
introduced a validation function that allows validating a new ink based on rules implemented in validateLink.ts. Would like to make this validation file customizable outside the package. f1503e8
Additional items I forgot the checkin previously 172720f
Introduce the ability to rotate a node. The node object includes a new key called orientation that specifies the angle of rotation in deg. the custom node definition has to add the necessary CSS to rotate the node. The code here rotates the position of the ports. 510ee7b
Introduce boolean key in chart.properties called snap to indicate whether nodes should snap to the defined grid on move or drop. The grid remains hardwired at 20px defined in CanvasOuter.default. ca14281
call onPortPositionChange from the componentDidUpdate lifecycle method. This change was made so that onPortPositionChange is called on every re-render. This is needed for example for nodes that are rotated, i.e. a node rotated 45 deg to stand on a corner. 1cff19a
Export actions so that the package actions can be used with the FlowChart component. 1770172
Add a ResizeObserver to the node based on the package react-resize-observer. Allows custom InnerNodes to change size, with ports and links re-rendering. 3502d48
default chart.offset to 0,0 so it is optional to provide in the chart object. ddfc366
Fixed a problem in the onDrop handler, where if the canvas origin is not 0,0, then offsetX,offsetY need to be subtraced when a new node is placed. Also added a scroll listener so that updateSize is called on scroll. ed22dec
allow custom Nodes to be React components and not just styled divs 022b2db
Add Backspace key to keyboard events (Mac delete key) 0317fe8