Parent issue: #692
Current state
useGraphAnnotations lives in packages/products/src/shared/graph-annotations/ and is tightly coupled to GraphWithPlugins from product-land. It provides freehand drawing/annotation on top of a canvas graph.
Work
- Audit for product-specific assumptions (colors, brush defaults, priority constants) and make them configurable via options
- Decouple from
GraphWithPlugins — accept a typed graph-with-canvas-plugin interface instead
- Export from
@magic/graph-addons
- Remove from
packages/products once consumers are updated
Parent issue: #692
Current state
useGraphAnnotationslives inpackages/products/src/shared/graph-annotations/and is tightly coupled toGraphWithPluginsfrom product-land. It provides freehand drawing/annotation on top of a canvas graph.Work
GraphWithPlugins— accept a typed graph-with-canvas-plugin interface instead@magic/graph-addonspackages/productsonce consumers are updated