-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Milestone
Description
Latest list of circular dependencies:
- Plots < --- > Annotations
- Plots < --- > Legend
- Plots < --- > Axes (the only
Plotscalls inaxes.jsaretraceIs) - Plots < --- > plotApi
- plotApi < --- > Annotations
- plotApi < --- > Shapes
- plotApi < --- > Titles
- plotApi < --- > Fx
- plotApit < --- > Legend
Possible partial solutions:
- Make a component registry and register the components (e.g. Annotations, Shapes, Titles, Fx, Legend), so
plot_api.jsdoesn't have to require the full component modules (similar to trace and subplot modules). Blocking: we'll need a centralized api for the component module, e.g. all component modules should have adrawmethod and possible andinitmethod. - Use a more OO pattern (in the long term). Attach
relayoutandrestyleto a plot object so that files requiringplot_api.js(e.g Annotations, Shapes and Fx) can usegd.relayout()instead ofplotApi.relayout(gd, ...).
Metadata
Metadata
Assignees
Labels
No labels