As a developer, I need to construct a SVG from a DTIF so that the design can be rendered in different formats using SHARP.js without any overhead and lots of computing power.
Precondition
[X] PHY-42 - The implementation into the web interface
Background
The initial implementation of DTIF-to-SVG conversion was done in the context of a ReactJs application. This application was designed to create interactive SVG canvases and hence incorporated a number of features and complexities unnecessary for a static SVG generation.
To ensure scalability and efficiency, a decision was made to develop a separate, lightweight package that focuses solely on converting DTIF to SVG. This would not only simplify the process but also make it more efficient as it wouldn't need to load or run any unnecessary code associated with interactivity.
The new package will use D3 for SVG generation due to its flexibility and widespread usage in data visualization, which will ease future maintenance and potential contributions from other developers.
DoD
[ ] dtif-to-svg contains utility functions to work with DTIF & SVG and exports a function that exports a DTIF into a SVG without relying on ReactJs
[ ] Rendering of SVG canvas in browser is updated with outsourced utility functions like creating ellipse path, ..
As a developer, I need to construct a SVG from a DTIF so that the design can be rendered in different formats using SHARP.js without any overhead and lots of computing power.
Precondition
Background
The initial implementation of DTIF-to-SVG conversion was done in the context of a ReactJs application. This application was designed to create interactive SVG canvases and hence incorporated a number of features and complexities unnecessary for a static SVG generation.
To ensure scalability and efficiency, a decision was made to develop a separate, lightweight package that focuses solely on converting DTIF to SVG. This would not only simplify the process but also make it more efficient as it wouldn't need to load or run any unnecessary code associated with interactivity.
The new package will use D3 for SVG generation due to its flexibility and widespread usage in data visualization, which will ease future maintenance and potential contributions from other developers.
DoD
dtif-to-svg
contains utility functions to work with DTIF & SVG and exports a function that exports a DTIF into a SVG without relying on ReactJsFrom SyncLinear.com | PHY-53