Skip to content

v0.0.2

Choose a tag to compare

@msteinmn msteinmn released this 12 Jun 09:32
· 4 commits to master since this release
  • correct linter errors 214c6d0
  • package-lock update f967fff
  • package.json update 511ec35
  • remove console.log a110c50
  • 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
  • Add CustomLink example d6a6710
  • Fix onLinkComplete logic 6a3299e
  • Add react-json-view to demo state in story dc0a9ea

0.0.6...v0.0.2