@urso/core 0.9.2-dev → 0.9.4-dev
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/build/js/index.js
CHANGED
|
@@ -68646,8 +68646,8 @@ class LibCache {
|
|
|
68646
68646
|
for (const frameName in atlas._frames) {
|
|
68647
68647
|
const nameSplit = frameName.split(".");
|
|
68648
68648
|
const name = nameSplit.splice(0, nameSplit.length - 1).join(".");
|
|
68649
|
-
const frame = atlas._frames[
|
|
68650
|
-
const region = new TextureAtlasRegion(page,
|
|
68649
|
+
const frame = atlas._frames[frameName];
|
|
68650
|
+
const region = new TextureAtlasRegion(page, name);
|
|
68651
68651
|
region.width = frame.frame.w;
|
|
68652
68652
|
region.height = frame.frame.h;
|
|
68653
68653
|
region.u = frame.frame.x / baseTexture.texture.width;
|
|
@@ -72649,7 +72649,7 @@ class ModulesObjectsProxy {
|
|
|
72649
72649
|
return;
|
|
72650
72650
|
let calculationNeed = false;
|
|
72651
72651
|
const baseObject = target._baseObject;
|
|
72652
|
-
baseObject.updateTransform();
|
|
72652
|
+
baseObject.updateTransform({});
|
|
72653
72653
|
if (baseObject._texture && (!baseObject._texture.orig.width || !baseObject._texture.orig.height)) {
|
|
72654
72654
|
baseObject.updateText(true);
|
|
72655
72655
|
}
|
package/package.json
CHANGED
package/src/js/lib/cache.js
CHANGED
|
@@ -53,8 +53,8 @@ class LibCache {
|
|
|
53
53
|
for (const frameName in atlas._frames) {
|
|
54
54
|
const nameSplit = frameName.split('.');
|
|
55
55
|
const name = nameSplit.splice(0, nameSplit.length - 1).join('.')
|
|
56
|
-
const frame = atlas._frames[
|
|
57
|
-
const region = new spine.TextureAtlasRegion(page,
|
|
56
|
+
const frame = atlas._frames[frameName];
|
|
57
|
+
const region = new spine.TextureAtlasRegion(page, name);
|
|
58
58
|
|
|
59
59
|
region.width = frame.frame.w;
|
|
60
60
|
region.height = frame.frame.h;
|
|
@@ -112,7 +112,7 @@ class ModulesObjectsProxy {
|
|
|
112
112
|
|
|
113
113
|
const baseObject = target._baseObject;
|
|
114
114
|
|
|
115
|
-
baseObject.updateTransform();
|
|
115
|
+
baseObject.updateTransform({});
|
|
116
116
|
|
|
117
117
|
//Pixi texts have _texture.orig.width. When we call baseObject.width, Pixi runs update text. Its too slow operation.
|
|
118
118
|
if (baseObject._texture && (!baseObject._texture.orig.width || !baseObject._texture.orig.height)) {
|