Title: De-circularize plotly.js require statements · Issue #236 · plotly/plotly.js · GitHub
Open Graph Title: De-circularize plotly.js require statements · Issue #236 · plotly/plotly.js
X Title: De-circularize plotly.js require statements · Issue #236 · plotly/plotly.js
Description: @mdtusz Latest list of circular dependencies: Plots < --- > Annotations Plots < --- > Legend Plots < --- > Axes (the only Plots calls in axes.js are traceIs) Plots < --- > plotApi plotApi < --- > Annotations plotApi < --- > Shapes plotAp...
Open Graph Description: @mdtusz Latest list of circular dependencies: Plots < --- > Annotations Plots < --- > Legend Plots < --- > Axes (the only Plots calls in axes.js are traceIs) Plots < --- > plotApi plotApi < --- > A...
X Description: @mdtusz Latest list of circular dependencies: Plots < --- > Annotations Plots < --- > Legend Plots < --- > Axes (the only Plots calls in axes.js are traceIs) Plots < --- > p...
Opengraph URL: https://github.com/plotly/plotly.js/issues/236
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"De-circularize plotly.js require statements","articleBody":"@mdtusz \n\n**Latest list of circular dependencies:**\n- Plots \u003c --- \u003e Annotations\n- Plots \u003c --- \u003e Legend\n- Plots \u003c --- \u003e Axes (the only `Plots` calls in `axes.js` are `traceIs`)\n- Plots \u003c --- \u003e plotApi\n- plotApi \u003c --- \u003e Annotations\n- plotApi \u003c --- \u003e Shapes\n- plotApi \u003c --- \u003e Titles\n- plotApi \u003c --- \u003e Fx\n- plotApit \u003c --- \u003e Legend\n\n**Possible partial solutions**:\n- Make a component registry and register the components (e.g. Annotations, Shapes, Titles, Fx, Legend), so `plot_api.js` doesn'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 a `draw` method and possible and `init` method.\n- Use a more OO pattern (in the long term). Attach `relayout` and `restyle` to a plot object so that files requiring `plot_api.js` (e.g Annotations, Shapes and Fx) can use `gd.relayout()` instead of `plotApi.relayout(gd, ...)`.\n","author":{"url":"https://github.com/etpinard","@type":"Person","name":"etpinard"},"datePublished":"2016-02-03T17:06:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/236/plotly.js/issues/236"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8778e169-720c-e544-bf13-e0cdb289e494 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90A4:2BD17B:30176CD:41B8ECB:6A549F73 |
| html-safe-nonce | d6cb32aaf3ce76fc822bce4eba84a6b6b0c027d39c378e9fb99376f2cdcc2e94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEE0OjJCRDE3QjozMDE3NkNEOjQxQjhFQ0I6NkE1NDlGNzMiLCJ2aXNpdG9yX2lkIjoiNTg2OTg1MTUzNjU4MzMzNTc5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2e969afe33cb633b18f4eb7549a7e72553294718205cbf6ec3e9dc3dce0f9528 |
| hovercard-subject-tag | issue:131089584 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/236/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fed013afc6b6590facf6f1efd8a853994b39e2632931198d9865302047f75f18/plotly/plotly.js/issues/236 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fed013afc6b6590facf6f1efd8a853994b39e2632931198d9865302047f75f18/plotly/plotly.js/issues/236 |
| og:image:alt | @mdtusz Latest list of circular dependencies: Plots < --- > Annotations Plots < --- > Legend Plots < --- > Axes (the only Plots calls in axes.js are traceIs) Plots < --- > plotApi plotApi < --- > A... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | etpinard |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width