dyn-art / monorepo-v1

dyn.art monorepo
https://physicaldotart.vercel.app
GNU General Public License v3.0
0 stars 0 forks source link

[PHY-53] Construct SVG xml from DTIF using D3 #30

Open bennobuilder opened 1 year ago

bennobuilder commented 1 year ago

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

From SyncLinear.com | PHY-53