Skip to content

how to inegrate own functions #81

Answered by cduck
joachimheintz asked this question in Q&A
Discussion options

You must be logged in to vote

Your use of a function is not the issue. Path cannot contain other drawing elements. You must use the special "path commands" like p.M(x, y) or p.L(x, y).

See this example for how to use drawSvg.Path: https://github.com/cduck/drawsvg#basic-drawing-elements
How to use SVG paths: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cduck
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants