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
Support for accessor function in linkArrows: Added support for using accessor function in linkArrows to customize the appearance of the arrows. This feature was contributed by WanQiyang.
Support for linking to minified library: Added support for linking to the minified version of the library through jsDelivr CDN links.
Initial zoom behavior updates: The initialZoomLevel configuration parameter is now undefined by default. If initialZoomLevel is set, the view will not be fit to the initial zoom level.
Zoom the view without d3 transition: Zoom the view without d3 transition if the duration parameter is 0.
Support color with transparency in backgroundColor configuration property: For example, rgba(0, 0, 0, 0) would set the background color to black with no opacity. Thanks miklevin for raising issue in the cosmograph-issues repository (cosmograph-org/cosmograph-issues#14).
Improved point detection accuracy on mouse hover
Paddings when Fitting the View: When fitting the view, the paddings are now taken into account as a percentage of the view size.
Fixes
Canvas Resizing: Previously, centering of the view was lost when resizing the canvas. Now, the centering is saved during resizing.
Optimization
Prevent Maximum call stack size exceeded: Calculating the minimum and maximum values using Math.min and Math.max with spread operators can lead to Maximum call stack size exceeded error, especially when dealing with large arrays. To address this issue, the d3-array extend method is used instead, which is more memory-efficient and provides the same functionality.