Closed cyrildiagne closed 10 years ago
I cannot reproduce this. Please provide a test-case online so I can see it in action.
Hi, thanks for the feedback! Here is a code snippets that reproduces the issue :
var canvas, circle, circleGroup, view, viewport;
canvas = document.createElement('canvas');
canvas.setAttribute('width', '400');
canvas.setAttribute('height', '400');
canvas.setAttribute('data-paper-hidpi', '');
document.body.appendChild(canvas);
paper.setup(canvas);
view = new paper.Layer();
view.transformContent = false;
circleGroup = new paper.Group();
view.addChild(circleGroup);
circle = new paper.Path.Circle({
center: [0, 0],
strokeColor: "#000000",
radius: 100
});
circle.position.x = 100;
circle.position.y = 100;
circleGroup.addChild(circle);
// No error if the following 2 lines are commented
// or when using v0.9.15
view.position.x = 200;
view.position.y = 200;
paper.view.onFrame = function() {
circle.segments[0].point.x = 0;
};
Thanks! I can reproduce it in sketch. Will investigate:
Found it! Thanks for spotting this. It's a bad one so I'll roll a new version out asap.
The new version's up already!
wow that was quick! thanks a lot!
Hi, I'm making my first steps with paperjs and I'm facing an issue that seems to have been introduced in the latest version.
In the v9.16 release, if I use
transformContent = false
on apaper.Layer
and then try to change the position of a children I get this error :The errors comes from :
with
child
being thepaper.Layer
instance. However the same code works fine in the v9.15.I'm very new to this library so I'm not sure what's going on but I thought I'd report. cheers,