Skip to content

Added dynamic import, bundle choice & event listeners#10

Open
LittleLama wants to merge 3 commits intoVanOord:mainfrom
LittleLama:main
Open

Added dynamic import, bundle choice & event listeners#10
LittleLama wants to merge 3 commits intoVanOord:mainfrom
LittleLama:main

Conversation

@LittleLama
Copy link
Copy Markdown

Added a property bundle to vue3-plotly : it can take values basic/cartesian/geo/gl3d/gl2d/mapbox/finance/strict like the different Plotly.js partial bundles https://github.com/plotly/plotly.js/blob/master/dist/README.md#plotlyjs-basic . It can make builds lighter. No value loads full Plotly.js

Added dynamic import so builds make a file for Plotly and website is lighter to load.

Added event listeners : now you can pass as property an action like @afterplot="graphDrawCallback". Event names are the same as Plotly.js

@LittleLama LittleLama mentioned this pull request Oct 17, 2023
@LittleLama
Copy link
Copy Markdown
Author

When you use Nuxt, I make sens to put

inside a tag and replace this.$el.on( by this.$el.addEventListener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant