@galacean/effects-plugin-spine 2.9.3 → 2.10.0-alpha.1

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.9.3
6
+ * Version: v2.10.0-alpha.1
7
7
  */
8
8
 
9
9
  'use strict';
@@ -10776,14 +10776,13 @@ var SpineMesh = /*#__PURE__*/ function() {
10776
10776
  function SpineMesh(renderInfo) {
10777
10777
  this.verticesLength = 0;
10778
10778
  this.indicesLength = 0;
10779
- var blendMode = renderInfo.blendMode, texture = renderInfo.texture, priority = renderInfo.priority, _renderInfo_renderOptions = renderInfo.renderOptions, renderOptions = _renderInfo_renderOptions === void 0 ? {} : _renderInfo_renderOptions, _renderInfo_name = renderInfo.name, name = _renderInfo_name === void 0 ? "MSpine" : _renderInfo_name, engine = renderInfo.engine;
10780
- 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;
10779
+ var blendMode = renderInfo.blendMode, texture = renderInfo.texture, priority = renderInfo.priority, _renderInfo_name = renderInfo.name, name = _renderInfo_name === void 0 ? "MSpine" : _renderInfo_name, engine = renderInfo.engine;
10781
10780
  this.blendMode = blendMode;
10782
10781
  this.lastTexture = texture;
10783
10782
  this.priority = priority;
10784
10783
  this.engine = engine;
10785
10784
  this.geometry = this.createGeometry();
10786
- this.material = this.createMaterial(maskMode, mask);
10785
+ this.material = this.createMaterial();
10787
10786
  this.mesh = EFFECTS.Mesh.create(engine, {
10788
10787
  name: name + seed++,
10789
10788
  priority: this.priority,
@@ -10833,7 +10832,7 @@ var SpineMesh = /*#__PURE__*/ function() {
10833
10832
  maxVertex: SlotGroup.MAX_VERTICES
10834
10833
  });
10835
10834
  };
10836
- _proto.createMaterial = function createMaterial(maskMode, maskOrder) {
10835
+ _proto.createMaterial = function createMaterial() {
10837
10836
  var material = EFFECTS.Material.create(this.engine, {
10838
10837
  shader: createShader(this.engine)
10839
10838
  });
@@ -10946,7 +10945,6 @@ var SlotGroup = /*#__PURE__*/ function() {
10946
10945
  this.transform = props.transform;
10947
10946
  this.listIndex = props.listIndex;
10948
10947
  this.pma = props.pma;
10949
- this.renderOptions = props.renderOptions;
10950
10948
  this.engine = props.engine;
10951
10949
  }
10952
10950
  var _proto = SlotGroup.prototype;
@@ -11079,7 +11077,6 @@ var SlotGroup = /*#__PURE__*/ function() {
11079
11077
  texture: texture,
11080
11078
  name: this.meshName,
11081
11079
  priority: this.listIndex += 0.01,
11082
- renderOptions: this.renderOptions,
11083
11080
  engine: this.engine
11084
11081
  });
11085
11082
  currentIndex = this.meshGroups.length;
@@ -11163,16 +11160,11 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
11163
11160
  this.options = data.options;
11164
11161
  this.rendererOptions = _extends({
11165
11162
  renderMode: EFFECTS.spec.RenderMode.MESH
11166
- }, data.renderer || {}, {
11167
- mask: 0,
11168
- maskMode: EFFECTS.MaskMode.NONE
11169
- });
11163
+ }, data.renderer || {});
11170
11164
  this.item.getHitTestParams = this.getHitTestParams.bind(this);
11171
11165
  if (data.mask) {
11172
11166
  this.maskManager.setMaskOptions(this.engine, data.mask);
11173
11167
  }
11174
- this.rendererOptions.maskMode = this.maskManager.maskMode;
11175
- this.rendererOptions.mask = this.maskManager.getRefValue();
11176
11168
  // 兼容编辑器逻辑
11177
11169
  if (!this.resource || !Object.keys(this.resource).length) {
11178
11170
  return;
@@ -11296,7 +11288,6 @@ exports.SpineComponent = /*#__PURE__*/ function(RendererComponent) {
11296
11288
  meshName: this.name,
11297
11289
  transform: this.transform,
11298
11290
  pma: this.pma,
11299
- renderOptions: this.rendererOptions,
11300
11291
  engine: this.engine
11301
11292
  });
11302
11293
  };
@@ -11622,7 +11613,7 @@ var SpineLoader = /*#__PURE__*/ function(Plugin) {
11622
11613
  EFFECTS.registerPlugin("spine", SpineLoader);
11623
11614
  /**
11624
11615
  * 插件版本号
11625
- */ var version = "2.9.3";
11616
+ */ var version = "2.10.0-alpha.1";
11626
11617
  EFFECTS.logger.info("Plugin spine version: " + version + ".");
11627
11618
  if (version !== EFFECTS__namespace.version) {
11628
11619
  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!");