Skip to content

Commit

Permalink
make original vueplotly.js work
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Feb 15, 2024
1 parent 31c64f1 commit 4636247
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/js/vueplotly.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ e)), {})
, camelize = cached((e=>e.replace(regex, ((e,t)=>t ? t.toUpperCase() : ""))))
, directives = {};
"undefined" != typeof window && (directives.resize = Vueresize),
window.plotly = {plotly: {
Vue.component("plotly", {
template: '<div :id="id" v-resize:debounce.100="onResize" ></div>',
inheritAttrs: !1,
directives: directives,
Expand Down Expand Up @@ -211,4 +211,4 @@ window.plotly = {plotly: {
Plotly.react(this.$el, this.data, this.innerLayout, this.config)
}
}
}};
});
2 changes: 1 addition & 1 deletion assets/js/vueplotly.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/StipplePlotly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ include("Layouts.jl")
function __init__()
deps_routes()
Stipple.deps!(@__MODULE__, deps)
Stipple.register_global_components("plotly", legacy = true)

@require PlotlyBase = "a03496cd-edff-5a9b-9e67-9cda94a718b5" begin
@static if !isdefined(Base, :get_extension)
Expand Down

0 comments on commit 4636247

Please sign in to comment.