You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking to build an Excalidraw plugin for a no-code development platform. The plugin-development environment for this platform utilises javascript/jquery. NPM modules are not supported so assume that the Excalidraw browser-embed approach using the unpkg CDN is my only option.
As my development environment does not support importing modules, I am unable to import modules like serializeAsJSON, exportToSvg and exportToBlob. Is there a different way to get at them? I have tried to do a dynamic import to no avail. Can I perhaps reference files for these directly? If so, where can I find them? I have tried to browse them in unpkg without success.
Is it an option to bundle all Excalidraw and its modules as a js file to use locally? Or is it possible that such a file already exists that I can grab from somewhere?
Finally, I can't seem to find an example of using serializeAsJSON - not one that includes how it is imported and then used. Can you please point me to one?
I should probably add that I have no React experience and very limited coding (javascript) knowledge.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I am looking to build an Excalidraw plugin for a no-code development platform. The plugin-development environment for this platform utilises javascript/jquery. NPM modules are not supported so assume that the Excalidraw browser-embed approach using the unpkg CDN is my only option.
As my development environment does not support importing modules, I am unable to import modules like serializeAsJSON, exportToSvg and exportToBlob. Is there a different way to get at them? I have tried to do a dynamic import to no avail. Can I perhaps reference files for these directly? If so, where can I find them? I have tried to browse them in unpkg without success.
Is it an option to bundle all Excalidraw and its modules as a js file to use locally? Or is it possible that such a file already exists that I can grab from somewhere?
Finally, I can't seem to find an example of using serializeAsJSON - not one that includes how it is imported and then used. Can you please point me to one?
I should probably add that I have no React experience and very limited coding (javascript) knowledge.
Beta Was this translation helpful? Give feedback.
All reactions