@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/alipay.js
CHANGED
|
@@ -10700,8 +10700,8 @@ var SpineMesh = /*#__PURE__*/ function() {
|
|
|
10700
10700
|
function SpineMesh(renderInfo) {
|
|
10701
10701
|
this.verticesLength = 0;
|
|
10702
10702
|
this.indicesLength = 0;
|
|
10703
|
-
var blendMode = renderInfo.blendMode, texture = renderInfo.texture, priority = renderInfo.priority,
|
|
10704
|
-
var
|
|
10703
|
+
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;
|
|
10704
|
+
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;
|
|
10705
10705
|
this.blendMode = blendMode;
|
|
10706
10706
|
this.lastTexture = texture;
|
|
10707
10707
|
this.priority = priority;
|
|
@@ -10881,7 +10881,7 @@ var SlotGroup = /*#__PURE__*/ function() {
|
|
|
10881
10881
|
this.transform = props.transform;
|
|
10882
10882
|
this.listIndex = props.listIndex;
|
|
10883
10883
|
this.pma = props.pma;
|
|
10884
|
-
this.
|
|
10884
|
+
this.renderOptions = props.renderOptions;
|
|
10885
10885
|
this.engine = props.engine;
|
|
10886
10886
|
}
|
|
10887
10887
|
var _proto = SlotGroup.prototype;
|
|
@@ -11015,7 +11015,7 @@ var SlotGroup = /*#__PURE__*/ function() {
|
|
|
11015
11015
|
name: this.meshName,
|
|
11016
11016
|
priority: this.listIndex += 0.01,
|
|
11017
11017
|
pma: pma,
|
|
11018
|
-
|
|
11018
|
+
renderOptions: this.renderOptions,
|
|
11019
11019
|
engine: this.engine
|
|
11020
11020
|
});
|
|
11021
11021
|
currentIndex = this.meshGroups.length;
|
|
@@ -11092,11 +11092,10 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11092
11092
|
return _this;
|
|
11093
11093
|
}
|
|
11094
11094
|
var _proto = SpineComponent.prototype;
|
|
11095
|
-
// TODO 发包后修改
|
|
11096
|
-
// override fromData (data: spec.SpineComponent<TextureAtlas, SkeletonData>)
|
|
11097
11095
|
_proto.fromData = function fromData(data) {
|
|
11098
11096
|
RendererComponent.prototype.fromData.call(this, data);
|
|
11099
11097
|
this.options = data.options;
|
|
11098
|
+
this.rendererOptions = data.renderer || {};
|
|
11100
11099
|
this.item.getHitTestParams = this.getHitTestParams.bind(this);
|
|
11101
11100
|
// 兼容编辑器逻辑
|
|
11102
11101
|
if (!this.resource || !Object.keys(this.resource).length) {
|
|
@@ -11131,8 +11130,6 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11131
11130
|
this.initContent(this.cache.atlas, this.cache.skeletonData, this.options);
|
|
11132
11131
|
// @ts-expect-error
|
|
11133
11132
|
this.startSize = this.options.startSize;
|
|
11134
|
-
// @ts-expect-error
|
|
11135
|
-
this.renderer = this.options.renderer;
|
|
11136
11133
|
if (!(this.state && this.skeleton)) {
|
|
11137
11134
|
return;
|
|
11138
11135
|
}
|
|
@@ -11197,7 +11194,7 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11197
11194
|
meshName: this.name,
|
|
11198
11195
|
transform: this.transform,
|
|
11199
11196
|
pma: this.pma,
|
|
11200
|
-
|
|
11197
|
+
renderOptions: this.rendererOptions,
|
|
11201
11198
|
engine: this.engine
|
|
11202
11199
|
});
|
|
11203
11200
|
};
|
|
@@ -11507,7 +11504,7 @@ EFFECTS.registerPlugin("spine", /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
11507
11504
|
}
|
|
11508
11505
|
return SpineLoader;
|
|
11509
11506
|
}(EFFECTS.AbstractPlugin), EFFECTS.VFXItem);
|
|
11510
|
-
var version = "2.0.
|
|
11507
|
+
var version = "2.0.7";
|
|
11511
11508
|
EFFECTS.logger.info("Plugin spine version: " + version + ".");
|
|
11512
11509
|
if (version !== EFFECTS__namespace.version) {
|
|
11513
11510
|
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!");
|