@galacean/effects-plugin-spine 2.6.5 → 2.6.6
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/dist/alipay.js +1 -1
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +1 -1
- package/dist/alipay.mjs.map +1 -1
- package/dist/douyin.js +1 -1
- package/dist/douyin.js.map +1 -1
- package/dist/douyin.mjs +1 -1
- package/dist/douyin.mjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/weapp.js +1 -1
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +1 -1
- package/dist/weapp.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects player spine plugin
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 十弦
|
|
6
|
-
* Version: v2.6.
|
|
6
|
+
* Version: v2.6.6
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -11263,6 +11263,12 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11263
11263
|
var p1 = new Vector3(centerX + width / 2, centerY - height / 2, 0);
|
|
11264
11264
|
var p2 = new Vector3(centerX + width / 2, centerY + height / 2, 0);
|
|
11265
11265
|
var p3 = new Vector3(centerX - width / 2, centerY + height / 2, 0);
|
|
11266
|
+
// TODO: 优化 Spine 初始大小逻辑
|
|
11267
|
+
var startSizeScaleFactor = this.startSize * this.scaleFactor;
|
|
11268
|
+
p0.multiply(startSizeScaleFactor);
|
|
11269
|
+
p1.multiply(startSizeScaleFactor);
|
|
11270
|
+
p2.multiply(startSizeScaleFactor);
|
|
11271
|
+
p3.multiply(startSizeScaleFactor);
|
|
11266
11272
|
wm.projectPoint(p0);
|
|
11267
11273
|
wm.projectPoint(p1);
|
|
11268
11274
|
wm.projectPoint(p2);
|
|
@@ -11558,7 +11564,7 @@ EFFECTS.registerPlugin("spine", /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
11558
11564
|
}(EFFECTS.AbstractPlugin), EFFECTS.VFXItem);
|
|
11559
11565
|
/**
|
|
11560
11566
|
* 插件版本号
|
|
11561
|
-
*/ var version = "2.6.
|
|
11567
|
+
*/ var version = "2.6.6";
|
|
11562
11568
|
EFFECTS.logger.info("Plugin spine version: " + version + ".");
|
|
11563
11569
|
if (version !== EFFECTS__namespace.version) {
|
|
11564
11570
|
console.error("注意:请统一 Spine 插件与 Player 版本,不统一的版本混用会有不可预知的后果!", "\nAttention: Please ensure the Spine plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!");
|