-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
fabric group does't work with the subTargetCheck attribute #4444
Comments
interesting. |
What version are you using? |
I'm using version: "1.7.17", but the latest version have same problem |
Hi, I am also encountering this issue, using the latest version of fabric : 1.7.19. |
Working in 1.7.3 , not after that. |
Hi @durga598 , I tried the 1.7.3 version of fabric, and it works. Thanks for this info. |
@asturur I currently see this issue in 3.6.2 version.We are trying to migrate from 1.5.0 to this stable version 😃
Iam just drawing a line. |
can you replicate this in a minimal fiddle? it deserves a new issue. |
Hi I am facing same issue with latest fabric. Code can be checked at https://jsfiddle.net/L09qmbu8 |
@itsdeekay your fiddle is so much elaborate. |
Create a group and set subTargetCheck as true,
then convert it to json,and reload the Json,
fabric does not work.
let svgGroup = new fabric.Group(svgs, Object.assign({}, {
utype: 'svg',
left: canvas.width / 2, top: canvas.height / 2,
subTargetCheck: true,
id: Date.now() + String.fromCharCode(65 + Math.floor(Math.random() * 26))})
);
fabric.require.js:3 Uncaught TypeError: Cannot read property 'tl' of null
at klass._getImageLines (fabric.require.js:3)
at klass.eval [as _getImageLines] (makeAssimilatePrototype.js:15)
at klass.containsPoint (fabric.require.js:3)
at klass.eval [as containsPoint] (makeAssimilatePrototype.js:15)
at klass.containsPoint (fabric.require.js:3)
at klass._checkTarget (fabric.require.js:3)
at klass._searchPossibleTargets (fabric.require.js:3)
at klass._searchPossibleTargets (fabric.require.js:3)
at klass.findTarget (fabric.require.js:3)
at klass.__onMouseMove (fabric.require.js:3)
_getImageLines @ fabric.require.js:3
(anonymous) @ makeAssimilatePrototype.js:15
containsPoint @ fabric.require.js:3
(anonymous) @ makeAssimilatePrototype.js:15
containsPoint @ fabric.require.js:3
_checkTarget @ fabric.require.js:3
_searchPossibleTargets @ fabric.require.js:3
_searchPossibleTargets @ fabric.require.js:3
findTarget @ fabric.require.js:3
__onMouseMove @ fabric.require.js:3
_onMouseMove @ fabric.require.js:3
The text was updated successfully, but these errors were encountered: