@galacean/effects-plugin-spine 2.0.5 → 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/douyin.mjs
CHANGED
|
@@ -10677,8 +10677,8 @@ var SpineMesh = /*#__PURE__*/ function() {
|
|
|
10677
10677
|
function SpineMesh(renderInfo) {
|
|
10678
10678
|
this.verticesLength = 0;
|
|
10679
10679
|
this.indicesLength = 0;
|
|
10680
|
-
var blendMode = renderInfo.blendMode, texture = renderInfo.texture, priority = renderInfo.priority,
|
|
10681
|
-
var
|
|
10680
|
+
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;
|
|
10681
|
+
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;
|
|
10682
10682
|
this.blendMode = blendMode;
|
|
10683
10683
|
this.lastTexture = texture;
|
|
10684
10684
|
this.priority = priority;
|
|
@@ -10858,7 +10858,7 @@ var SlotGroup = /*#__PURE__*/ function() {
|
|
|
10858
10858
|
this.transform = props.transform;
|
|
10859
10859
|
this.listIndex = props.listIndex;
|
|
10860
10860
|
this.pma = props.pma;
|
|
10861
|
-
this.
|
|
10861
|
+
this.renderOptions = props.renderOptions;
|
|
10862
10862
|
this.engine = props.engine;
|
|
10863
10863
|
}
|
|
10864
10864
|
var _proto = SlotGroup.prototype;
|
|
@@ -10992,7 +10992,7 @@ var SlotGroup = /*#__PURE__*/ function() {
|
|
|
10992
10992
|
name: this.meshName,
|
|
10993
10993
|
priority: this.listIndex += 0.01,
|
|
10994
10994
|
pma: pma,
|
|
10995
|
-
|
|
10995
|
+
renderOptions: this.renderOptions,
|
|
10996
10996
|
engine: this.engine
|
|
10997
10997
|
});
|
|
10998
10998
|
currentIndex = this.meshGroups.length;
|
|
@@ -11069,11 +11069,10 @@ var SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11069
11069
|
return _this;
|
|
11070
11070
|
}
|
|
11071
11071
|
var _proto = SpineComponent.prototype;
|
|
11072
|
-
// TODO 发包后修改
|
|
11073
|
-
// override fromData (data: spec.SpineComponent<TextureAtlas, SkeletonData>)
|
|
11074
11072
|
_proto.fromData = function fromData(data) {
|
|
11075
11073
|
RendererComponent.prototype.fromData.call(this, data);
|
|
11076
11074
|
this.options = data.options;
|
|
11075
|
+
this.rendererOptions = data.renderer || {};
|
|
11077
11076
|
this.item.getHitTestParams = this.getHitTestParams.bind(this);
|
|
11078
11077
|
// 兼容编辑器逻辑
|
|
11079
11078
|
if (!this.resource || !Object.keys(this.resource).length) {
|
|
@@ -11108,8 +11107,6 @@ var SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11108
11107
|
this.initContent(this.cache.atlas, this.cache.skeletonData, this.options);
|
|
11109
11108
|
// @ts-expect-error
|
|
11110
11109
|
this.startSize = this.options.startSize;
|
|
11111
|
-
// @ts-expect-error
|
|
11112
|
-
this.renderer = this.options.renderer;
|
|
11113
11110
|
if (!(this.state && this.skeleton)) {
|
|
11114
11111
|
return;
|
|
11115
11112
|
}
|
|
@@ -11174,7 +11171,7 @@ var SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11174
11171
|
meshName: this.name,
|
|
11175
11172
|
transform: this.transform,
|
|
11176
11173
|
pma: this.pma,
|
|
11177
|
-
|
|
11174
|
+
renderOptions: this.rendererOptions,
|
|
11178
11175
|
engine: this.engine
|
|
11179
11176
|
});
|
|
11180
11177
|
};
|
|
@@ -11484,7 +11481,7 @@ registerPlugin("spine", /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
11484
11481
|
}
|
|
11485
11482
|
return SpineLoader;
|
|
11486
11483
|
}(AbstractPlugin), VFXItem);
|
|
11487
|
-
var version = "2.0.
|
|
11484
|
+
var version = "2.0.7";
|
|
11488
11485
|
logger.info("Plugin spine version: " + version + ".");
|
|
11489
11486
|
if (version !== EFFECTS.version) {
|
|
11490
11487
|
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!");
|