@galacean/effects-plugin-spine 2.0.0-alpha.26 → 2.0.0-alpha.27
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 +4 -4
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +4 -4
- package/dist/alipay.mjs.map +1 -1
- package/dist/index.js +5 -5
- 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 +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/alipay.js
CHANGED
|
@@ -11141,7 +11141,7 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11141
11141
|
(_this_content = this.content) == null ? void 0 : _this_content.render(renderer);
|
|
11142
11142
|
};
|
|
11143
11143
|
_proto.onDestroy = function onDestroy() {
|
|
11144
|
-
if (this.item.endBehavior === EFFECTS.spec.
|
|
11144
|
+
if (this.item.endBehavior === EFFECTS.spec.EndBehavior.destroy && this.state) {
|
|
11145
11145
|
this.state.clearListeners();
|
|
11146
11146
|
this.state.clearTracks();
|
|
11147
11147
|
}
|
|
@@ -11253,7 +11253,7 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11253
11253
|
if (!this.animationList.length) {
|
|
11254
11254
|
throw new Error("animationList is empty, check your spine file.");
|
|
11255
11255
|
}
|
|
11256
|
-
var loop = this.item.endBehavior === EFFECTS.spec.
|
|
11256
|
+
var loop = this.item.endBehavior === EFFECTS.spec.EndBehavior.restart;
|
|
11257
11257
|
var listener = (_this_state_tracks_ = this.state.tracks[0]) == null ? void 0 : _this_state_tracks_.listener;
|
|
11258
11258
|
if (listener) {
|
|
11259
11259
|
listener.end = function() {};
|
|
@@ -11283,7 +11283,7 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11283
11283
|
var _this, _loop = function() {
|
|
11284
11284
|
var animation = _step.value;
|
|
11285
11285
|
var trackEntry = _this.state.addAnimation(0, animation, false);
|
|
11286
|
-
if (_this.item.endBehavior === EFFECTS.spec.
|
|
11286
|
+
if (_this.item.endBehavior === EFFECTS.spec.EndBehavior.restart) {
|
|
11287
11287
|
var listener = {
|
|
11288
11288
|
end: function() {
|
|
11289
11289
|
var trackEntry = _this1.state.addAnimation(0, animation, false);
|
|
@@ -11474,7 +11474,7 @@ EFFECTS.registerPlugin("spine", /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
11474
11474
|
}
|
|
11475
11475
|
return SpineLoader;
|
|
11476
11476
|
}(EFFECTS.AbstractPlugin), EFFECTS.VFXItem);
|
|
11477
|
-
var version = "2.0.0-alpha.
|
|
11477
|
+
var version = "2.0.0-alpha.27";
|
|
11478
11478
|
EFFECTS.logger.info("Plugin spine version: " + version + ".");
|
|
11479
11479
|
if (version !== EFFECTS__namespace.version) {
|
|
11480
11480
|
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!");
|