Commit 33c0229d authored by rockyl's avatar rockyl

增加affectChildren属性,矩阵是否影响子节点

parent 53faf713
......@@ -201,7 +201,7 @@ export default class Renderer extends ScillaComponent {
const {transform, _anchorOffset: {x: ax, y: ay}} = this;
if (transform && transform.enabled) {
const {a, b, c, d, tx, ty} = transform.getMatrix(true);
const {a, b, c, d, tx, ty} = transform.getMatrix(true, false, true);
const offX = ax * a + ay * c;
const offY = ax * b + ay * d;
this._context.setTransform(a, b, c, d, tx - offX, ty - offY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment