three-svg-js is a library for working with SVG content in a threejs scene.
Its still under active development. Updates and improvements may have breaking changes.
Demonstrates most of the capabilities of the library
- list of SVG examples
- shows live preview of how the SVG looks in a threejs scene
- allows loading SVG files from you local storage
- allows saving SVGShape to .glft file
- provides monaco editor for pasting and editing SVG with live update
- shows JSON equivelent to SVG document. Can be saved to .json file
To install three-svg-js library
npm install three-svg-js
Download or clone this repo, then
npm install
ng serve -o
Angular is only used to demo the library. The library does not depend on Angular.