2.0.2
- prop suggestions did not appear on IDE’s because wrong package.json.types path.
2.0.1
- fixed issues with StrictMode #82
V2.0.0
top level Xwrapper context and useXarrow hook added!
new features
- top level API components added:
Xwrapperwrapper anduseXarrowhook. zIndexprop added toXarrow
breaking changes
labelprop renamed tolabelsstartAnchor.offset.rightnessrenamed tostartAnchor.offset.x.startAnchor.offset.bottomnessrenamed tostartAnchor.offset.y.
same forendAnchor.gridBreaktype changed from number to string. API changed(see readme)!headShapeandtailShapebreaking change: custom svg is now supported using jsx only. headShape.svgElem is now jsx element and not a string. headShape.svgProps removed! example:headShape={ svgElem: <path d="M 0 0 L 1 0.5 L 0 1 L 0.25 0.5 z" />, offsetForward: 0.25 }
same for tailShape.
v1.7.2:
bundler is now webpack, optimized and smaller bundle size.
v1.7.1:
- various checks related to the presence of the connected element has been added. now if the elements are not present
the arrow will not be drawn, but the app will be not crush, and a prop-type error will be raised.
related to #77, #72. - one proptype was wrong and was fixed #79
v1.7.0:
big update!
performance improvements:
- much faster and optimized render cycle.
feature update:
- creation animation added (see
animateDrawing,showXarrow) - custom svg now supported,added
circleandheartshapes just for examples.
new properties:
gridBreakshowXarrowanimateDrawingheadShapetailShape
Docs improved!
v1.6.0:
- proptypes - typescript types issues fixed.
- now all pointer events enabled in the arrowhead by default (#50)
- added properties:
SVGcanvasStyleanddivContainerStyle([#42])(https://github.com/Eliav2/react-xarrows/issues/42) - examples: bugfixes(playground) and examples update.
- a new feature! tail support! new properties:
showHead,showTail,tailSize,tailColor,arrowTailProps. - renamed
extendSVGcanvasto_extendSVGcanvas - advanced customization support: newProperties:
_cpx1Offset,_cpy1Offset,_cpx2Offset,_cpy2Offset. - bugfix: in grid mode in some cases exceeded canvas.
- 1.6.1 - typescript fix: optional properties were require
1.5.0
- properties that are completely removed and no longer supported:
consoleWarning,monitorDOMchangesandregisterEvents. - issues related to jest and other issues has fixed.
- dependencies changed: prop-types added in lodash replaced with lodash.isequal and lodash.pick.
- v1.5.1 - minor code and docs updates. [DEPRECATED]
- v1.5.2 - debug element was published by mistake at v1.5.1.
improved documentation:
- added CHANGELOG.md file.
- added TODO.md file.
- docs in the README.md file updated
1.4.0: features update
labelproperty API changed.pathproperty added
1.3.0: bug fixes and features update
- now
startAnchorandendAnchorcan be offset from normal position. seeanchorCustomPositionTypetype in types declaration to see how to offset anchors. - a new powerful feature:
passProps- now its possible to pass methods (such event handlers) or attributes to the inner components of Index. consoleWarningdefault prop changed tofalse.- bug fixes and inner optimizations(arrow head implemnted now purly using path element without marker elements).## 1.2.0 added support for javascript projects that imported the lib locally. many changes to the repo folders structure.
1.2.0 bug fixes and code structure changed
The lib not worked properly on js projects(only worked well on ts). now working well on both.
- v1.2.1 - minor bug fix (intellij suggestinons did not apear)
- v1.2.2 - bug fixes(1#changing anchors refs without remounting broke the arrow. 2#other minors)
1.1.0 bug fixes and features update
props added:label, dashness and advanced.
arrowStyle removed and all his contained properties flattened to be props of xarrow directly. strokeColor renamed
to lineColor.
- v1.1.1 - bug fix now labels not exceed the svg canvas. the headArrow is calcualted now . this means the line ends at the start at the arrow - and this is more natural looking(especially at large headarrows).
- v1.1.2 - bug fix. (the first arrow fixed the headarrow style for all next comming arrows)
- v1.1.3 - an entirely new algorithm to calculate arrow path and curveness. now the arrow acting “smarter”. this include bug fixes,improvements and some adjustments. monitorDOMchanges prop default changed to true.
- v1.1.4 - bug fixes, calculation optimizations, and smart svg canvas size adjusment.
- v1.1.5 - optimazed calculations and label positioning. (Buzier curve extrema point are calculated now using derivatives and not by interpolation) other improvements as well.
- v1.1.6 - errors and warnings improved. smart adjustments for diffrent positioning style(of anchors elemntes and common ancestor element) . minor bug fixes
1.0.0
initial release.