Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with @svgdotjs/svg.js package #56

Open
76422937 opened this issue May 9, 2019 · 6 comments
Open

Not compatible with @svgdotjs/svg.js package #56

76422937 opened this issue May 9, 2019 · 6 comments

Comments

@76422937
Copy link

76422937 commented May 9, 2019

I use @svgdotjs/svg.js package
"dependencies": {
"@svgdotjs/svg.draggable.js": "^3.0.2",
"@svgdotjs/svg.js": "^3.0.12",
"core-js": "^2.6.5",
"normalize.css": "^8.0.1",
"vue": "^2.6.10",
"vue-router": "^3.0.3"
}

@Fuzzyma
Copy link
Member

Fuzzyma commented May 9, 2019

Yes, the dependencies clearly state svg.js 2.x as dependency and not 3.
However we are working on it...

@alixander
Copy link

Bump. I'm currently using the draggable, filter, resize, and select plugins, and this is the only one that's preventing me from upgrading to 3. Would be eternally grateful for an upgrade on this

@vCloudSail
Copy link

@alixander
You can refer to svgdotjs/svg.js#1146

@YTX0412
Copy link

YTX0412 commented Oct 22, 2021

@vCloudSail
请问您是怎么解决resize不兼容svg3的? 我使用您写的那个set函数,解决其他几个插件问题 但是resize插件报错el.doc is not a function

@vCloudSail
Copy link

vCloudSail commented Oct 22, 2021

@vCloudSail 请问您是怎么解决resize不兼容svg3的? 我使用您写的那个set函数,解决其他几个插件问题 但是resize插件报错el.doc is not a function
你要自己去对比下v2和v3版本改了哪些属性啊,v2中的doc在v3中是什么属性,如下图
v2:
image
v3:
image

@Fuzzyma
Copy link
Member

Fuzzyma commented Sep 13, 2024

svg.select.js and svg.resize.js are now available under the https://github.com/svgdotjs namespace.
You can install them with npm i @svgdotjs/svg.select.js @svgdotjs/svg.resize.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants