Skip to content

Release v2.1

Choose a tag to compare

@Stukova Stukova released this 12 Jul 10:06
· 59 commits to main since this release

✨ Added

  • Position Rescaling: Automatic position rescaling with rescalePositions config option and dontRescale parameter for setPointPositions()
  • Simulation During Zoom: New enableSimulationDuringZoom option to continue simulation while zooming
  • Right-Click Repulsion: Added enableRightClickRepulsion for interactive force manipulation
  • Link Width Scaling: New scaleLinksOnZoom configuration option
  • Point Greying: Added pointGreyoutColor for dynamic point dimming
  • Custom Attribution: HTML-based attribution system with attribution config option
  • Enhanced Error Handling: WebGL initialization error handling with custom styling
  • Enhanced Storybook examples, README and API documentation

🔧 Changed

  • Configuration Renaming:
    • disableSimulationenableSimulation
    • disableZoomenableZoom
    • disableRescalePositionsrescalePositions
    • useQuadtreeuseClassicQuadtree
    • showAttributionattribution
  • Default Values: scalePointsOnZoom default changed to false
  • CSS Variables: Updated to --cosmosgl-attribution-color and added --cosmosgl-error-message-color
  • Project Rebranding: Renamed to cosmos.gl (@cosmos.gl/graph)
  • Enhanced Destroy Method

🐛 Fixed

  • Point tracking behavior on position updates
  • Graph initialization for screen and space size
  • Cluster position array length calculation
  • Framebuffer initialization stability

🗑️ Removed

  • setFocusedPointByIndex method (use focusedPointIndex config instead)

📦 Dependencies

  • Updated Vite, ESBuild, Storybook, and other development dependencies
  • Updated Store2 to 2.14.4

⚠️ Breaking Changes

  • Configuration property names changed (see Changed section)
  • setFocusedPointByIndex method removed
  • CSS variable names updated