New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@osrd-project/ui-spacetimechart

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@osrd-project/ui-spacetimechart

  • 0.0.56
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
907
decreased by-28.36%
Maintainers
0
Weekly downloads
 
Created
Source

ui-spacetimechart

ui-spacetimechart is a React component designed to visualize train paths on a spacetime chart, where the horizontal axis (Ox) represents time and the vertical axis (Oy) represents space.

Paths, graduations and labels are rendered on canvas elements. For interaction detection, shapes are rendered on a separate layer with unique colors using a technique known as "picking".

ui-spacetimechart is solely responsible for rendering and does not manage any state internally. All state management, including paths, offsets, scales, and zoom levels, must be handled by the parent component.

Resources

There are multiple places to get information on how to do things with ui-spacetimechart:

  • Storybook Integration: Discover a variety of usage scenarios and configurations in the Storybook stories located in src/stories.
  • Items Rendering: Consult src/components/PathLayer.tsx for examples on rendering interactive items.
  • Unit Tests: Refer to src/__tests__ for practical demonstrations of helper functions from the src/utils folder.

FAQs

Package last updated on 03 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc