diff --git a/openspec/changes/line-rectangle-annotations/.openspec.yaml b/openspec/changes/line-rectangle-annotations/.openspec.yaml deleted file mode 100644 index 2a45c1f..0000000 --- a/openspec/changes/line-rectangle-annotations/.openspec.yaml +++ /dev/null @@ -1,2 +0,0 @@ -schema: spec-driven -created: 2026-02-15 diff --git a/openspec/changes/line-rectangle-annotations/design.md b/openspec/changes/line-rectangle-annotations/design.md deleted file mode 100644 index 4cd4138..0000000 --- a/openspec/changes/line-rectangle-annotations/design.md +++ /dev/null @@ -1,92 +0,0 @@ -## Context - -The candle annotator uses lightweight-charts for rendering candlestick data and currently has two rendering layers for annotations: - -1. **Canvas-based (ISeriesPrimitive)**: Used by `SpanRectanglePrimitive.ts` for span annotations. These are attached to the series via `series.attachPrimitive()` and render natively within the chart canvas. They support `hitTest()`, autoscaling, and z-ordering. - -2. **SVG overlay**: Used by `SvgOverlay.tsx` for line annotations. An absolutely-positioned SVG element sits on top of the chart with `zIndex: 1111`, intercepting pointer events when the line or delete tool is active. It duplicates coordinate conversion logic and manages its own interaction state. - -The existing `src/plugins/trend-line.ts` already implements a `TrendLine` class using `ISeriesPrimitive