@galacean/effects-plugin-spine 2.6.4 → 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.mjs
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
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -11240,6 +11240,12 @@ var SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11240
11240
|
var p1 = new Vector3(centerX + width / 2, centerY - height / 2, 0);
|
|
11241
11241
|
var p2 = new Vector3(centerX + width / 2, centerY + height / 2, 0);
|
|
11242
11242
|
var p3 = new Vector3(centerX - width / 2, centerY + height / 2, 0);
|
|
11243
|
+
// TODO: 优化 Spine 初始大小逻辑
|
|
11244
|
+
var startSizeScaleFactor = this.startSize * this.scaleFactor;
|
|
11245
|
+
p0.multiply(startSizeScaleFactor);
|
|
11246
|
+
p1.multiply(startSizeScaleFactor);
|
|
11247
|
+
p2.multiply(startSizeScaleFactor);
|
|
11248
|
+
p3.multiply(startSizeScaleFactor);
|
|
11243
11249
|
wm.projectPoint(p0);
|
|
11244
11250
|
wm.projectPoint(p1);
|
|
11245
11251
|
wm.projectPoint(p2);
|
|
@@ -11535,7 +11541,7 @@ registerPlugin("spine", /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
11535
11541
|
}(AbstractPlugin), VFXItem);
|
|
11536
11542
|
/**
|
|
11537
11543
|
* 插件版本号
|
|
11538
|
-
*/ var version = "2.6.
|
|
11544
|
+
*/ var version = "2.6.6";
|
|
11539
11545
|
logger.info("Plugin spine version: " + version + ".");
|
|
11540
11546
|
if (version !== EFFECTS.version) {
|
|
11541
11547
|
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!");
|