svg.draw.js icon indicating copy to clipboard operation
svg.draw.js copied to clipboard

Update to support svg.js v3.x and add type definitions

Open plungingChode opened this issue 4 years ago • 10 comments
trafficstars

I created this update based on the updated svg.draggable.js and the discussion in PR #48.

plungingChode avatar Apr 19 '21 02:04 plungingChode

this would be very nice to have!!

hippogrammer avatar Apr 28 '21 15:04 hippogrammer

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

Fuzzyma avatar Apr 28 '21 15:04 Fuzzyma

can you add the dist/ folder so we can use it in our node modules? Please @plungingChode :)

hippogrammer avatar May 26 '21 20:05 hippogrammer

@hippogrammer dist folder is not commited to git. Only the source files are. But You can just build it yourself locally

Fuzzyma avatar May 27 '21 10:05 Fuzzyma

@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'

plungingChode avatar May 30 '21 13:05 plungingChode

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!

hippogrammer avatar May 30 '21 14:05 hippogrammer

Please, release it officially. Thanks

PooLP avatar Oct 09 '22 06:10 PooLP

@Fuzzyma Are you still busy to review this PR?

jonybekov avatar Feb 09 '24 13:02 jonybekov

@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.

AlexeyPlodenko avatar Mar 21 '24 08:03 AlexeyPlodenko

@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!

Fuzzyma avatar Mar 22 '24 01:03 Fuzzyma