@galacean/effects-plugin-spine 2.3.2 → 2.4.0-alpha.0

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/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.3.2
6
+ * Version: v2.4.0-alpha.0
7
7
  */
8
8
 
9
9
  'use strict';
@@ -11099,14 +11099,22 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
11099
11099
  /**
11100
11100
  * aabb 包围盒的宽度与高度
11101
11101
  */ _this.size = new Vector2();
11102
+ _this.maskManager = new EFFECTS.MaskProcessor(engine);
11102
11103
  return _this;
11103
11104
  }
11104
11105
  var _proto = SpineComponent.prototype;
11105
11106
  _proto.fromData = function fromData(data) {
11106
11107
  RendererComponent.prototype.fromData.call(this, data);
11107
11108
  this.options = data.options;
11108
- this.rendererOptions = data.renderer || {};
11109
+ this.rendererOptions = _extends({
11110
+ renderMode: EFFECTS.spec.RenderMode.MESH
11111
+ }, data.renderer || {}, {
11112
+ mask: 0,
11113
+ maskMode: EFFECTS.MaskMode.NONE
11114
+ });
11109
11115
  this.item.getHitTestParams = this.getHitTestParams.bind(this);
11116
+ this.rendererOptions.maskMode = this.maskManager.getMaskMode(data);
11117
+ this.rendererOptions.mask = this.maskManager.getRefValue();
11110
11118
  // 兼容编辑器逻辑
11111
11119
  if (!this.resource || !Object.keys(this.resource).length) {
11112
11120
  return;
@@ -11516,7 +11524,7 @@ EFFECTS.registerPlugin("spine", /*#__PURE__*/ function(AbstractPlugin) {
11516
11524
  }(EFFECTS.AbstractPlugin), EFFECTS.VFXItem);
11517
11525
  /**
11518
11526
  * 插件版本号
11519
- */ var version = "2.3.2";
11527
+ */ var version = "2.4.0-alpha.0";
11520
11528
  EFFECTS.logger.info("Plugin spine version: " + version + ".");
11521
11529
  if (version !== EFFECTS__namespace.version) {
11522
11530
  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!");