@urso/core 0.4.42 → 0.4.43
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.
package/package.json
CHANGED
|
@@ -104,7 +104,12 @@ class ModulesObjectsProxy {
|
|
|
104
104
|
let calculationNeed = false;
|
|
105
105
|
|
|
106
106
|
const baseObject = target._baseObject;
|
|
107
|
+
|
|
107
108
|
//Pixi texts have _texture.orig.width. When we call baseObject.width, Pixi runs update text. Its too slow operation.
|
|
109
|
+
if (baseObject._texture && (!baseObject._texture.orig.width || !baseObject._texture.orig.height)) {
|
|
110
|
+
baseObject.updateText(true);
|
|
111
|
+
}
|
|
112
|
+
|
|
108
113
|
const baseObjectWidth = baseObject._texture ? Math.abs(baseObject.scale.x) * baseObject._texture.orig.width : baseObject.width;
|
|
109
114
|
const baseObjectHeight = baseObject._texture ? Math.abs(baseObject.scale.y) * baseObject._texture.orig.height : baseObject.height;
|
|
110
115
|
|