How to include this in a native HTML/CSS/JS project #80
Replies: 1 comment
-
FIgurd out how to get this into react, but my drawings definitely do not look like the ones on the website. Would love if someone could help me out, Thank you so much in advance. My code // Helper function to create SVG path data from stroke points const getSvgPathFromStroke = (points, closed = true) => { const len = stroke.length; const average = (a, b) => (a + b) / 2; for (let i = 1; i < len - 1; i++) { if (closed && len > 2) { return result; const DrawingCanvas = () => { useEffect(() => { const handlePointerDown = (e) => { const handlePointerMove = (e) => { const handlePointerUp = () => { return ( export default DrawingCanvas; |
Beta Was this translation helpful? Give feedback.
-
Hi guys, this tool is amazing, but im having trouble using this project in my own native project, as i cant figure out how to get past the Node module portion. I cant figure out how to install the Node module into my project, which technically does not run a backend (yet, im just trying to run the tool via the browser as of right now to allow for scalability in the future). Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions