@safe-engine/pixi 8.1.2 → 8.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -82,10 +82,10 @@ class NodeComp {
|
|
|
82
82
|
this.instance.scale.x = val;
|
|
83
83
|
}
|
|
84
84
|
get scaleY() {
|
|
85
|
-
return this.instance.y;
|
|
85
|
+
return this.instance.scale.y;
|
|
86
86
|
}
|
|
87
87
|
set scaleY(val) {
|
|
88
|
-
this.instance.y = val;
|
|
88
|
+
this.instance.scale.y = val;
|
|
89
89
|
}
|
|
90
90
|
get anchorX() {
|
|
91
91
|
if (this.instance instanceof pixi_js_1.Sprite)
|
|
@@ -38,8 +38,8 @@ class RenderSystem {
|
|
|
38
38
|
}
|
|
39
39
|
// node.texture.rotate = 8
|
|
40
40
|
component.node = entity.assign(new __1.NodeComp(node, entity));
|
|
41
|
-
component.node.anchorX = 0.5
|
|
42
|
-
component.node.anchorY = 0.5
|
|
41
|
+
// component.node.anchorX = 0.5
|
|
42
|
+
// component.node.anchorY = 0.5
|
|
43
43
|
});
|
|
44
44
|
event_manager.subscribe(entityx_ts_1.EventTypes.ComponentAdded, RenderComponent_1.MaskRender, ({ component }) => {
|
|
45
45
|
console.log('MaskRender', component);
|