Skip to main content

Module services

Module services 

Source
Expand description

Selection, undo history, snapping, handles and draw ordering for drawings.

DrawingManager coordinates these operations for a chart. Use the individual services when implementing your own drawing interaction or renderer.

Structs§

DrawingInteraction
Self-contained interaction handler for chart drawings.
HandleConfig
Configuration for selection handle appearance and hit testing.
HandleService
Stateless service for selection handle operations on drawings.
HistoryService
History service for undo/redo operations
SelectionService
Selection service for managing drawing selection state
SnapOptions
Options for snap behavior
SnapService
Snap service for applying snap behavior to points
SnapTargets
Snap targets - prices and times to snap to
ZOrderService
Service for managing drawing z-order (render layering)

Functions§

point_to_line_distance
Calculates the perpendicular distance from point to the closest point on the line segment [line_start, line_end].