How to pass an svg file along with esm and css files in anywidget ? #655
Unanswered
anmolbhatia05
asked this question in
JavaScript
Replies: 1 comment
-
I haven't passed svg, but I do pass html from a file, loading it into the js widget as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello, i am trying to create this graph editing widget.
my anywidget class looks like this:
my widget.js is based on cytoscape and the node editing capability is from an extension called cytoscape node-editing.
for the node editing to work the extension needs access to this svg file called
resizeCue.svg
., which is passed as a relative file path attribute in the extension, like so -how do i pass this svg file alongwith the esm and css in anywidget class mentioned above ?
maybe some bundling magic, i am using esbuild as a bundler already
Beta Was this translation helpful? Give feedback.
All reactions