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§
- Drawing
Interaction - Self-contained interaction handler for chart drawings.
- Handle
Config - Configuration for selection handle appearance and hit testing.
- Handle
Service - Stateless service for selection handle operations on drawings.
- History
Service - History service for undo/redo operations
- Selection
Service - Selection service for managing drawing selection state
- Snap
Options - Options for snap behavior
- Snap
Service - Snap service for applying snap behavior to points
- Snap
Targets - Snap targets - prices and times to snap to
- ZOrder
Service - Service for managing drawing z-order (render layering)
Functions§
- point_
to_ line_ distance - Calculates the perpendicular distance from
pointto the closest point on the line segment[line_start, line_end].