svg.draw.js
svg.draw.js copied to clipboard
Update to support svg.js v3.x and add type definitions
I created this update based on the updated svg.draggable.js and the discussion in PR #48.
this would be very nice to have!!
I am swamped with work atm so I currently have no chance to check this PR. For everyone who needs this, they can install this branch directly via npm and use it that way
can you add the dist/ folder so we can use it in our node modules? Please @plungingChode :)
@hippogrammer dist folder is not commited to git. Only the source files are. But You can just build it yourself locally
@hippogrammer Also, I forgot to add it to the readme, but this is how you would use it from node modules (as ES6 modules)
import { SVG } from '@svgdotjs/svg.js'
import '@svgdotjs/svg.draw.js'
Gotcha, its just i installed directly from this branch and i had to build manually in order for it to work. Also saw that dist was committed in the original svg.draw.js. thanks for the help everyone!
Please, release it officially. Thanks
@Fuzzyma Are you still busy to review this PR?
@plungingChode thank you for your effort. Can you please publish your package to npmjs.com?
In the mean time, I have publish a fork of your code at https://www.npmjs.com/package/svgdotjs-svg3.draw.js Ping me once you publish, and I will remove mine. Thank you.
@jonybekov sorry obviously I forgot about this. I am traveling right now and back in a month so it might still a whole. Feel free to ping me again!