Release v2.3
π What's New
New API Methods
getTrackedPointPositionsArray
- Optimized method for tracking point positions with better performancegetSampledPoints
- Retrieve point data as arrays for efficient data processinggetPointColors
- Get point colors as arraysgetPointSizes
- Get point sizes as arraysgetLinkColors
- Get link colors as arraysgetLinkWidths
- Get link widths as arrays
New Configuration Properties
linkOpacity
- Universal opacity control for linkspointOpacity
- Universal opacity control for points
π§ Improvements
Performance Enhancements
- Simulation Optimization: Prevented unnecessary simulation restarts when rendering with alpha=0 after pause
- Tracking Optimization: Added optimized point position tracking with
getTrackedPointPositionsArray
API Improvements
- Method Renaming: Renamed methods for better clarity while maintaining backward compatibility:
getPointsInRange
βgetPointsInRect
(old name kept as deprecated alias)selectPointsInRange
βselectPointsInRect
(old name kept as deprecated alias)- Lasso selection methods renamed to polygon selection methods
π Bug Fixes
- Arrow Rendering: Fixed arrow size width issue in line drawings
π Security
- XSS Protection: Added DOMPurify HTML sanitization to prevent cross-site scripting attacks
π Breaking Changes
Method Renaming
While backward compatibility is maintained through deprecated aliases, the following methods have been renamed:
getPointsInRange
βgetPointsInRect
selectPointsInRange
βselectPointsInRect
- Lasso selection methods β Polygon selection methods
Migration Guide: The old method names will continue to work but are deprecated. Update your code to use the new method names to avoid deprecation warnings.