- prop suggestions did not appear on IDE's because wrong package.json.types path.
- fixed issues with StrictMode #82
top level Xwrapper
context and useXarrow
hook added!
- top level API components added:
Xwrapper
wrapper anduseXarrow
hook. zIndex
prop added toXarrow
label
prop renamed tolabels
startAnchor.offset.rightness
renamed tostartAnchor.offset.x
.startAnchor.offset.bottomness
renamed tostartAnchor.offset.y
.
same forendAnchor
.gridBreak
type changed from number to string. API changed(see readme)!headShape
andtailShape
breaking 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.
bundler is now webpack, optimized and smaller bundle size.
- 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
big update!
performance improvements:
- much faster and optimized render cycle.
feature update:
- creation animation added (see
animateDrawing
,showXarrow
) - custom svg now supported,added
circle
andheart
shapes just for examples.
new properties:
gridBreak
showXarrow
animateDrawing
headShape
tailShape
Docs improved!
- proptypes - typescript types issues fixed.
- now all pointer events enabled in the arrowhead by default (#50)
- added properties:
SVGcanvasStyle
anddivContainerStyle
([#42])(#42) - examples: bugfixes(playground) and examples update.
- a new feature! tail support! new properties:
showHead
,showTail
,tailSize
,tailColor
,arrowTailProps
. - renamed
extendSVGcanvas
to_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
- properties that are completely removed and no longer supported:
consoleWarning
,monitorDOMchanges
andregisterEvents
. - 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
label
property API changed.path
property added
- now
startAnchor
andendAnchor
can be offset from normal position. seeanchorCustomPositionType
type 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. consoleWarning
default 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.
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)
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
initial release.