Skip to content

[graph/plugins/annotations] migrate useGraphAnnotations to @magic/graph-plugins #693

Description

@Yonava

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    magic graphs 📊Pertaining to packages/graph in the Magic Graphs mono-reporefactor 🧱This is about refactoring existing features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions