CDN Image Support (Older Site) #1504
-
I am working on a legacy site which does not use any compilers and relies on local files. I have downloaded sigma and graphology and gotten a working POC together. I want to be able to render either images or possibly svg's from an icon pack like font-awesome, but noticed that all the examples are using React or are importing the NodeImageProcessor from @sigma/node-image. I would love and plan on revamping to react and either Next/Webpack/Vite at some point, but was curious if I could still set up this image processor with an older site that does not have access to these? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hum, I don't understand why you mention React. It is used by the demo, sure, but no example from the Storybook uses it. You can check these for instance:
Also, the CDN version of sigma includes most satellite packages, including the You can check this example, that reproduces some example from the Storybook, but with nothing more than some vanilla JS code and some scripts linking to the CDN. |
Beta Was this translation helpful? Give feedback.
-
Hum, I don't understand why you mention React. It is used by the demo, sure, but no example from the Storybook uses it. You can check these for instance:
Also, the CDN version of sigma includes most satellite packages, including the You can check this example, that reproduces some example from the Storybook, but with nothing more than some vanilla JS code and some scripts linking to the CDN. |
Beta Was this translation helpful? Give feedback.
Hum, I don't understand why you mention React. It is used by the demo, sure, but no example from the Storybook uses it. You can check these for instance:
Also, the CDN version of sigma includes most satellite packages, including the
createNodeImageProgram
factory from@sigma/node-image
. You can see exactly what is exported here. But I understand now that it is very poorly documented, I'll improve that when I can.You can check this example, that reproduces some example from the Storybook, but with nothing more than …