candle-annotator/openspec/changes/span-annotation
Marko Djordjevic 5ea63a613e feat: implement SpanRectanglePrimitive for span annotation rendering
- Created SpanRectanglePrimitive.ts implementing ISeriesPrimitive interface
- Implemented updateAllViews() with coordinate conversion from data-space to pixel-space
- Added semi-transparent rectangle rendering with configurable opacity
- Implemented label tag rendering above rectangles showing pattern names
- Added hitTest() for click detection within span bounds
- Implemented highlight state with thicker borders and increased opacity
- Set zOrder to 'bottom' to render rectangles behind candlesticks
- Completed Section 4 tasks (4.1-4.6) from span-annotation specification

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 06:35:01 +01:00
..
specs/span-annotation openspec: span annotation 2026-02-14 05:51:23 +01:00
.openspec.yaml openspec: span annotation 2026-02-14 05:51:23 +01:00
design.md openspec: span annotation 2026-02-14 05:51:23 +01:00
proposal.md openspec: span annotation 2026-02-14 05:51:23 +01:00
tasks.md feat: implement SpanRectanglePrimitive for span annotation rendering 2026-02-14 06:35:01 +01:00