@galacean/effects-plugin-spine 2.0.6 → 2.0.7
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 +7 -10
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +7 -10
- package/dist/alipay.mjs.map +1 -1
- package/dist/douyin.js +7 -10
- package/dist/douyin.js.map +1 -1
- package/dist/douyin.mjs +7 -10
- package/dist/douyin.mjs.map +1 -1
- package/dist/index.js +8 -11
- 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 -11
- package/dist/index.mjs.map +1 -1
- package/dist/slot-group.d.ts +2 -2
- package/dist/spine-component.d.ts +5 -1
- package/dist/spine-mesh.d.ts +1 -1
- package/dist/weapp.js +7 -10
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +7 -10
- 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.0.
|
|
6
|
+
* Version: v2.0.7
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -10708,8 +10708,8 @@ var SpineMesh = /*#__PURE__*/ function() {
|
|
|
10708
10708
|
function SpineMesh(renderInfo) {
|
|
10709
10709
|
this.verticesLength = 0;
|
|
10710
10710
|
this.indicesLength = 0;
|
|
10711
|
-
var blendMode = renderInfo.blendMode, texture = renderInfo.texture, priority = renderInfo.priority,
|
|
10712
|
-
var
|
|
10711
|
+
var blendMode = renderInfo.blendMode, texture = renderInfo.texture, priority = renderInfo.priority, _renderInfo_renderOptions = renderInfo.renderOptions, renderOptions = _renderInfo_renderOptions === void 0 ? {} : _renderInfo_renderOptions, pma = renderInfo.pma, _renderInfo_name = renderInfo.name, name = _renderInfo_name === void 0 ? "MSpine" : _renderInfo_name, engine = renderInfo.engine;
|
|
10712
|
+
var _renderOptions_mask = renderOptions.mask, mask = _renderOptions_mask === void 0 ? 0 : _renderOptions_mask, _renderOptions_maskMode = renderOptions.maskMode, maskMode = _renderOptions_maskMode === void 0 ? 0 : _renderOptions_maskMode;
|
|
10713
10713
|
this.blendMode = blendMode;
|
|
10714
10714
|
this.lastTexture = texture;
|
|
10715
10715
|
this.priority = priority;
|
|
@@ -10889,7 +10889,7 @@ var SlotGroup = /*#__PURE__*/ function() {
|
|
|
10889
10889
|
this.transform = props.transform;
|
|
10890
10890
|
this.listIndex = props.listIndex;
|
|
10891
10891
|
this.pma = props.pma;
|
|
10892
|
-
this.
|
|
10892
|
+
this.renderOptions = props.renderOptions;
|
|
10893
10893
|
this.engine = props.engine;
|
|
10894
10894
|
}
|
|
10895
10895
|
var _proto = SlotGroup.prototype;
|
|
@@ -11023,7 +11023,7 @@ var SlotGroup = /*#__PURE__*/ function() {
|
|
|
11023
11023
|
name: this.meshName,
|
|
11024
11024
|
priority: this.listIndex += 0.01,
|
|
11025
11025
|
pma: pma,
|
|
11026
|
-
|
|
11026
|
+
renderOptions: this.renderOptions,
|
|
11027
11027
|
engine: this.engine
|
|
11028
11028
|
});
|
|
11029
11029
|
currentIndex = this.meshGroups.length;
|
|
@@ -11100,11 +11100,10 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11100
11100
|
return _this;
|
|
11101
11101
|
}
|
|
11102
11102
|
var _proto = SpineComponent.prototype;
|
|
11103
|
-
// TODO 发包后修改
|
|
11104
|
-
// override fromData (data: spec.SpineComponent<TextureAtlas, SkeletonData>)
|
|
11105
11103
|
_proto.fromData = function fromData(data) {
|
|
11106
11104
|
RendererComponent.prototype.fromData.call(this, data);
|
|
11107
11105
|
this.options = data.options;
|
|
11106
|
+
this.rendererOptions = data.renderer || {};
|
|
11108
11107
|
this.item.getHitTestParams = this.getHitTestParams.bind(this);
|
|
11109
11108
|
// 兼容编辑器逻辑
|
|
11110
11109
|
if (!this.resource || !Object.keys(this.resource).length) {
|
|
@@ -11139,8 +11138,6 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11139
11138
|
this.initContent(this.cache.atlas, this.cache.skeletonData, this.options);
|
|
11140
11139
|
// @ts-expect-error
|
|
11141
11140
|
this.startSize = this.options.startSize;
|
|
11142
|
-
// @ts-expect-error
|
|
11143
|
-
this.renderer = this.options.renderer;
|
|
11144
11141
|
if (!(this.state && this.skeleton)) {
|
|
11145
11142
|
return;
|
|
11146
11143
|
}
|
|
@@ -11205,7 +11202,7 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11205
11202
|
meshName: this.name,
|
|
11206
11203
|
transform: this.transform,
|
|
11207
11204
|
pma: this.pma,
|
|
11208
|
-
|
|
11205
|
+
renderOptions: this.rendererOptions,
|
|
11209
11206
|
engine: this.engine
|
|
11210
11207
|
});
|
|
11211
11208
|
};
|
|
@@ -11515,7 +11512,7 @@ EFFECTS.registerPlugin("spine", /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
11515
11512
|
}
|
|
11516
11513
|
return SpineLoader;
|
|
11517
11514
|
}(EFFECTS.AbstractPlugin), EFFECTS.VFXItem);
|
|
11518
|
-
var version = "2.0.
|
|
11515
|
+
var version = "2.0.7";
|
|
11519
11516
|
EFFECTS.logger.info("Plugin spine version: " + version + ".");
|
|
11520
11517
|
if (version !== EFFECTS__namespace.version) {
|
|
11521
11518
|
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!");
|