again reworked the matrix transform logic with drag and drop

This commit is contained in:
Eric Rowell
2012-03-25 12:45:46 -07:00
parent 8ee223584d
commit fbb6d0f706
5 changed files with 34 additions and 12 deletions

View File

@@ -1023,12 +1023,18 @@ Test.prototype.tests = {
stroke: 'black',
strokeWidth: 4,
draggable: true
//rotationDeg: 60
//rotationDeg: Math.PI / 3
});
layer.add(rect);
stage.add(layer);
//stage.rotateDeg(20);
//console.log(rect.getAbsoluteTransform().getTranslation())
stage.rotateDeg(20);
stage.rotate(Math.PI / 3);
stage.setScale(0.5);
stage.draw();