You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my app, I have a paper.Path.Line item, and when dragging the item with the mouse I perform the following type of operation:
item.removeSegments();
item.add(new Point(100, 20), new Point(170, 75));
After I add and remove (removing items from the view seems to be key, it always starts after a removal) a number of these items to the view, I consistently receive the following exceptions when using Paper 0.9.25:
Uncaught TypeError: Cannot set property '_path' of undefined
PathItem.extend._adjustCurves @ paper-full.js:7336
PathItem.extend._add @ paper-full.js:7324
PathItem.extend.add @ paper-full.js:7359
<my code, doing the the item.add>
The line on paper-full.js:7336 is "curve._path = this;"
Now, I might be doing something wrong in my app, but downgrading to Paper 0.9.24 consistently fixes the issue, and I've tested moving between the two versions several times now.
There's a also a second type of error, where just clicking on the item that no longer can be moved due to the error above also produces a "Uncaught TypeError: Cannot read property 'getNormal' of null" in PathItem.extend.statics._addSquareCap @ paper-full.js:8540, happens inside of Paper's own PaperScopeItem.extend.hitTest in response to my code just printing out event.item.
The text was updated successfully, but these errors were encountered:
In my app, I have a paper.Path.Line item, and when dragging the item with the mouse I perform the following type of operation:
After I add and remove (removing items from the view seems to be key, it always starts after a removal) a number of these items to the view, I consistently receive the following exceptions when using Paper 0.9.25:
Uncaught TypeError: Cannot set property '_path' of undefined
PathItem.extend._adjustCurves @ paper-full.js:7336
PathItem.extend._add @ paper-full.js:7324
PathItem.extend.add @ paper-full.js:7359
<my code, doing the the item.add>
The line on paper-full.js:7336 is "curve._path = this;"
Now, I might be doing something wrong in my app, but downgrading to Paper 0.9.24 consistently fixes the issue, and I've tested moving between the two versions several times now.
There's a also a second type of error, where just clicking on the item that no longer can be moved due to the error above also produces a "Uncaught TypeError: Cannot read property 'getNormal' of null" in PathItem.extend.statics._addSquareCap @ paper-full.js:8540, happens inside of Paper's own PaperScopeItem.extend.hitTest in response to my code just printing out event.item.
The text was updated successfully, but these errors were encountered: