@galacean/effects-threejs 2.0.0-alpha.18 → 2.0.0-alpha.19

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.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime threejs plugin for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.0.0-alpha.18
6
+ * Version: v2.0.0-alpha.19
7
7
  */
8
8
 
9
9
  import * as THREE from 'three';
@@ -264,12 +264,12 @@ function addItem(arr, value) {
264
264
  arr[index] = currentItem;
265
265
  }
266
266
  }
267
- function enlargeBuffer(typeArray, length, increase, maxSize) {
267
+ function enlargeBuffer(typeArray, length, maxSize, increase) {
268
268
  if (increase === void 0) increase = 1;
269
269
  var buffer = typeArray.buffer;
270
270
  if (buffer.byteLength < typeArray.BYTES_PER_ELEMENT * length) {
271
271
  var size = Math.ceil(length * increase);
272
- if (!isNaN(maxSize)) {
272
+ if (!Number.isNaN(maxSize)) {
273
273
  size = Math.min(size, maxSize);
274
274
  }
275
275
  var nbuffer = new ArrayBuffer(typeArray.BYTES_PER_ELEMENT * size);
@@ -790,6 +790,17 @@ function base64ToFile(base64, filename, contentType) {
790
790
  });
791
791
  return file;
792
792
  }
793
+ function applyMixins(derivedCtrl, baseCtrls) {
794
+ baseCtrls.forEach(function(baseCtrl) {
795
+ Object.getOwnPropertyNames(baseCtrl.prototype).forEach(function(name) {
796
+ var propertyDescriptor = Object.getOwnPropertyDescriptor(baseCtrl.prototype, name);
797
+ if (!propertyDescriptor) {
798
+ throw new Error("Cannot find property descriptor of class " + baseCtrl);
799
+ }
800
+ Object.defineProperty(derivedCtrl.prototype, name, propertyDescriptor);
801
+ });
802
+ });
803
+ }
793
804
 
794
805
  function _defineProperties(target, props) {
795
806
  for(var i = 0; i < props.length; i++){
@@ -9939,6 +9950,9 @@ var StaticValue = /*#__PURE__*/ function(ValueGetter) {
9939
9950
  this.value = func(val);
9940
9951
  return this;
9941
9952
  };
9953
+ _proto.getMaxTime = function getMaxTime() {
9954
+ return 0;
9955
+ };
9942
9956
  return StaticValue;
9943
9957
  }(ValueGetter);
9944
9958
  var RandomSetValue = /*#__PURE__*/ function(ValueGetter) {
@@ -17243,7 +17257,10 @@ function randomArrItem(arr, keepArr) {
17243
17257
  */ var ParticleBehaviourPlayable = /*#__PURE__*/ function(Playable) {
17244
17258
  _inherits(ParticleBehaviourPlayable, Playable);
17245
17259
  function ParticleBehaviourPlayable() {
17246
- return Playable.apply(this, arguments);
17260
+ var _this;
17261
+ _this = Playable.apply(this, arguments) || this;
17262
+ _this.lastTime = 0;
17263
+ return _this;
17247
17264
  }
17248
17265
  var _proto = ParticleBehaviourPlayable.prototype;
17249
17266
  _proto.start = function start(context) {
@@ -17267,8 +17284,14 @@ function randomArrItem(arr, keepArr) {
17267
17284
  // TODO: [1.31] @十弦 验证 https://github.com/galacean/effects-runtime/commit/3e7d73d37b7d98c2a25e4544e80e928b17801ccd#diff-fae062f28caf3771cfedd3a20dc22f9749bd054c7541bf2fd50a9a5e413153d4
17268
17285
  // particleSystem.setParentTransform(parentItem.transform);
17269
17286
  particleSystem.setVisible(true);
17270
- particleSystem.onUpdate(context.deltaTime);
17287
+ var deltaTime = context.deltaTime;
17288
+ // 直接用 this.lastTime - this.time 获取 deltaTime 会有精度问题
17289
+ if (this.lastTime === this.time) {
17290
+ deltaTime = 0;
17291
+ }
17292
+ particleSystem.onUpdate(deltaTime);
17271
17293
  }
17294
+ this.lastTime = this.time;
17272
17295
  };
17273
17296
  return ParticleBehaviourPlayable;
17274
17297
  }(Playable);
@@ -17849,7 +17872,7 @@ var ParticleMesh = /*#__PURE__*/ function() {
17849
17872
  }));
17850
17873
  if (increaseBuffer) {
17851
17874
  var baseIndexData = geometry.getIndexData();
17852
- var idx = enlargeBuffer(baseIndexData, particleCount * 6, inc, maxCount * 6);
17875
+ var idx = enlargeBuffer(baseIndexData, particleCount * 6, maxCount * 6, inc);
17853
17876
  idx.set(indexData, index * 6);
17854
17877
  geometry.setIndexData(idx);
17855
17878
  this.maxParticleBufferCount = idx.length / 6;
@@ -17861,7 +17884,7 @@ var ParticleMesh = /*#__PURE__*/ function() {
17861
17884
  var attrSize = geometry.getAttributeStride(name) / Float32Array.BYTES_PER_ELEMENT;
17862
17885
  if (increaseBuffer) {
17863
17886
  var baseData = geometry.getAttributeData(name);
17864
- var geoData = enlargeBuffer(baseData, vertexCount * attrSize, inc, maxCount * 4 * attrSize);
17887
+ var geoData = enlargeBuffer(baseData, vertexCount * attrSize, maxCount * 4 * attrSize, inc);
17865
17888
  geoData.set(data, data.length * index);
17866
17889
  geometry.setAttributeData(name, geoData);
17867
17890
  } else {
@@ -18515,6 +18538,7 @@ var AnimationClip = /*#__PURE__*/ function(EffectsObject) {
18515
18538
  function AnimationClip() {
18516
18539
  var _this;
18517
18540
  _this = EffectsObject.apply(this, arguments) || this;
18541
+ _this.duration = 0;
18518
18542
  _this.positionCurves = [];
18519
18543
  _this.rotationCurves = [];
18520
18544
  _this.scaleCurves = [];
@@ -18559,6 +18583,7 @@ var AnimationClip = /*#__PURE__*/ function(EffectsObject) {
18559
18583
  path: positionCurveData.path,
18560
18584
  keyFrames: createValueGetter(positionCurveData.keyFrames)
18561
18585
  };
18586
+ this.duration = Math.max(this.duration, curve.keyFrames.getMaxTime());
18562
18587
  this.positionCurves.push(curve);
18563
18588
  }
18564
18589
  for(var _iterator1 = _create_for_of_iterator_helper_loose(data.rotationCurves), _step1; !(_step1 = _iterator1()).done;){
@@ -18567,6 +18592,7 @@ var AnimationClip = /*#__PURE__*/ function(EffectsObject) {
18567
18592
  path: rotationCurveData.path,
18568
18593
  keyFrames: createValueGetter(rotationCurveData.keyFrames)
18569
18594
  };
18595
+ this.duration = Math.max(this.duration, curve1.keyFrames.getMaxTime());
18570
18596
  this.rotationCurves.push(curve1);
18571
18597
  }
18572
18598
  for(var _iterator2 = _create_for_of_iterator_helper_loose(data.scaleCurves), _step2; !(_step2 = _iterator2()).done;){
@@ -18575,6 +18601,7 @@ var AnimationClip = /*#__PURE__*/ function(EffectsObject) {
18575
18601
  path: scaleCurvesData.path,
18576
18602
  keyFrames: createValueGetter(scaleCurvesData.keyFrames)
18577
18603
  };
18604
+ this.duration = Math.max(this.duration, curve2.keyFrames.getMaxTime());
18578
18605
  this.scaleCurves.push(curve2);
18579
18606
  }
18580
18607
  for(var _iterator3 = _create_for_of_iterator_helper_loose(data.floatCurves), _step3; !(_step3 = _iterator3()).done;){
@@ -18585,6 +18612,7 @@ var AnimationClip = /*#__PURE__*/ function(EffectsObject) {
18585
18612
  property: floatCurveData.property,
18586
18613
  className: floatCurveData.className
18587
18614
  };
18615
+ this.duration = Math.max(this.duration, curve3.keyFrames.getMaxTime());
18588
18616
  this.floatCurves.push(curve3);
18589
18617
  }
18590
18618
  };
@@ -18760,6 +18788,9 @@ var RuntimeClip = /*#__PURE__*/ function() {
18760
18788
  this.playable = clipPlayable;
18761
18789
  this.parentMixer = parentMixer;
18762
18790
  this.track = track;
18791
+ if (_instanceof1(this.track.binding, VFXItem)) {
18792
+ this.particleSystem = this.track.binding.getComponent(ParticleSystem);
18793
+ }
18763
18794
  }
18764
18795
  var _proto = RuntimeClip.prototype;
18765
18796
  _proto.evaluateAt = function evaluateAt(localTime) {
@@ -18769,8 +18800,7 @@ var RuntimeClip = /*#__PURE__*/ function() {
18769
18800
  var started = false;
18770
18801
  var boundItem = this.track.binding;
18771
18802
  if (localTime > clip.start + clip.duration + 0.001 && clip.endBehaviour === ItemEndBehavior.destroy) {
18772
- var _boundItem_getComponent;
18773
- if (VFXItem.isParticle(boundItem) && !((_boundItem_getComponent = boundItem.getComponent(ParticleSystem)) == null ? void 0 : _boundItem_getComponent.destroyed)) {
18803
+ if (VFXItem.isParticle(boundItem) && this.particleSystem && !this.particleSystem.destroyed) {
18774
18804
  weight = 1.0;
18775
18805
  } else {
18776
18806
  weight = 0.0;
@@ -19544,14 +19574,41 @@ var TextComponent = /*#__PURE__*/ function(SpriteComponent) {
19544
19574
  return _possible_constructor_return(_this);
19545
19575
  }
19546
19576
  var options = props.options;
19547
- _this.textStyle = new TextStyle(options);
19548
- _this.textLayout = new TextLayout(options);
19549
- _this.text = options.text;
19550
- // Text
19577
+ _this.updateWithOptions(options);
19551
19578
  _this.updateTexture();
19552
19579
  return _this;
19553
19580
  }
19554
19581
  var _proto = TextComponent.prototype;
19582
+ _proto.update = function update(dt) {
19583
+ SpriteComponent.prototype.update.call(this, dt);
19584
+ this.updateTexture();
19585
+ };
19586
+ _proto.fromData = function fromData(data) {
19587
+ SpriteComponent.prototype.fromData.call(this, data);
19588
+ var options = data.options;
19589
+ this.updateWithOptions(options);
19590
+ // Text
19591
+ this.updateTexture();
19592
+ };
19593
+ _proto.updateWithOptions = function updateWithOptions(options) {
19594
+ // OVERRIDE by mixins
19595
+ };
19596
+ _proto.updateTexture = function updateTexture(flipY) {
19597
+ // OVERRIDE by mixins
19598
+ };
19599
+ return TextComponent;
19600
+ }(SpriteComponent);
19601
+ TextComponent = __decorate([
19602
+ effectsClass(DataType.TextComponent)
19603
+ ], TextComponent);
19604
+ var TextComponentBase = /*#__PURE__*/ function() {
19605
+ function TextComponentBase() {}
19606
+ var _proto = TextComponentBase.prototype;
19607
+ _proto.updateWithOptions = function updateWithOptions(options) {
19608
+ this.textStyle = new TextStyle(options);
19609
+ this.textLayout = new TextLayout(options);
19610
+ this.text = options.text;
19611
+ };
19555
19612
  /**
19556
19613
  * 设置字号大小
19557
19614
  * @param value - 字号
@@ -19721,14 +19778,11 @@ var TextComponent = /*#__PURE__*/ function(SpriteComponent) {
19721
19778
  this.textStyle.fontScale = value;
19722
19779
  this.isDirty = true;
19723
19780
  };
19724
- _proto.update = function update(dt) {
19725
- SpriteComponent.prototype.update.call(this, dt);
19726
- this.updateTexture();
19727
- };
19728
19781
  /**
19729
19782
  * 更新文本
19730
19783
  * @returns
19731
- */ _proto.updateTexture = function updateTexture() {
19784
+ */ _proto.updateTexture = function updateTexture(flipY) {
19785
+ if (flipY === void 0) flipY = true;
19732
19786
  if (!this.isDirty || !this.context || !this.canvas) {
19733
19787
  return;
19734
19788
  }
@@ -19746,6 +19800,10 @@ var TextComponent = /*#__PURE__*/ function(SpriteComponent) {
19746
19800
  context.clearRect(0, 0, width, this.canvas.height);
19747
19801
  // fix bug 1/255
19748
19802
  context.fillStyle = "rgba(255, 255, 255, 0.0039)";
19803
+ if (!flipY) {
19804
+ context.translate(0, height);
19805
+ context.scale(1, -1);
19806
+ }
19749
19807
  context.fillRect(0, 0, width, this.canvas.height);
19750
19808
  style.fontDesc = this.getFontDesc();
19751
19809
  context.font = style.fontDesc;
@@ -19758,7 +19816,7 @@ var TextComponent = /*#__PURE__*/ function(SpriteComponent) {
19758
19816
  // 文本颜色
19759
19817
  context.fillStyle = "rgba(" + style.textColor[0] + ", " + style.textColor[1] + ", " + style.textColor[2] + ", " + style.textColor[3] + ")";
19760
19818
  var charsInfo = [];
19761
- // /3 为了和编辑器行为保持一致
19819
+ // /3 是为了和编辑器行为保持一致
19762
19820
  var offsetY = (lineHeight - fontSize) / 3;
19763
19821
  var x = 0;
19764
19822
  var y = layout.getOffsetY(style) + offsetY;
@@ -19812,7 +19870,7 @@ var TextComponent = /*#__PURE__*/ function(SpriteComponent) {
19812
19870
  width: imageData.width,
19813
19871
  height: imageData.height
19814
19872
  }, {
19815
- flipY: true,
19873
+ flipY: flipY,
19816
19874
  magFilter: glContext.LINEAR,
19817
19875
  minFilter: glContext.LINEAR,
19818
19876
  wrapS: glContext.CLAMP_TO_EDGE,
@@ -19820,50 +19878,47 @@ var TextComponent = /*#__PURE__*/ function(SpriteComponent) {
19820
19878
  }));
19821
19879
  this.isDirty = false;
19822
19880
  };
19823
- _proto.fromData = function fromData(data) {
19824
- SpriteComponent.prototype.fromData.call(this, data);
19825
- var options = data.options;
19826
- this.textStyle = new TextStyle(options);
19827
- this.textLayout = new TextLayout(options);
19828
- this.text = options.text;
19829
- // Text
19830
- this.updateTexture();
19831
- };
19832
19881
  _proto.getFontDesc = function getFontDesc() {
19833
- var textStyle = this.textStyle;
19834
- var fontDesc = "" + (textStyle.fontSize * textStyle.fontScale).toString() + "px ";
19835
- if (!DEFAULT_FONTS.includes(textStyle.fontFamily)) {
19836
- fontDesc += '"' + textStyle.fontFamily + '"';
19882
+ var _this_textStyle = this.textStyle, fontSize = _this_textStyle.fontSize, fontScale = _this_textStyle.fontScale, fontFamily = _this_textStyle.fontFamily, textWeight = _this_textStyle.textWeight, fontStyle = _this_textStyle.fontStyle;
19883
+ var fontDesc = "" + (fontSize * fontScale).toString() + "px ";
19884
+ if (!DEFAULT_FONTS.includes(fontFamily)) {
19885
+ fontDesc += '"' + fontFamily + '"';
19837
19886
  } else {
19838
- fontDesc += textStyle.fontFamily;
19887
+ fontDesc += fontFamily;
19839
19888
  }
19840
- if (textStyle.textWeight !== TextWeight.normal) {
19841
- fontDesc = textStyle.textWeight + " " + fontDesc;
19889
+ if (textWeight !== TextWeight.normal) {
19890
+ fontDesc = textWeight + " " + fontDesc;
19842
19891
  }
19843
- if (textStyle.fontStyle !== FontStyle.normal) {
19844
- fontDesc = textStyle.fontStyle + " " + fontDesc;
19892
+ if (fontStyle !== FontStyle.normal) {
19893
+ fontDesc = fontStyle + " " + fontDesc;
19845
19894
  }
19846
19895
  return fontDesc;
19847
19896
  };
19848
19897
  _proto.setupOutline = function setupOutline() {
19849
19898
  var context = this.context;
19850
- var style = this.textStyle;
19851
- context.strokeStyle = "rgba(" + style.outlineColor[0] * 255 + ", " + style.outlineColor[1] * 255 + ", " + style.outlineColor[2] * 255 + ", " + style.outlineColor[3] + ")";
19852
- context.lineWidth = style.outlineWidth * 2;
19899
+ var _this_textStyle = this.textStyle, outlineColor = _this_textStyle.outlineColor, outlineWidth = _this_textStyle.outlineWidth;
19900
+ var r = outlineColor[0], g = outlineColor[1], b = outlineColor[2], a = outlineColor[3];
19901
+ if (context) {
19902
+ context.strokeStyle = "rgba(" + r * 255 + ", " + g * 255 + ", " + b * 255 + ", " + a + ")";
19903
+ context.lineWidth = outlineWidth * 2;
19904
+ }
19853
19905
  };
19854
19906
  _proto.setupShadow = function setupShadow() {
19855
19907
  var context = this.context;
19856
- var style = this.textStyle;
19857
- context.shadowColor = "rgba(" + style.shadowColor[0] * 255 + ", " + style.shadowColor[1] * 255 + ", " + style.shadowColor[2] * 255 + ", " + style.shadowColor[3] + ")";
19858
- context.shadowBlur = style.shadowBlur;
19859
- context.shadowOffsetX = style.shadowOffsetX;
19860
- context.shadowOffsetY = -style.shadowOffsetY;
19908
+ var _this_textStyle = this.textStyle, outlineColor = _this_textStyle.outlineColor, shadowBlur = _this_textStyle.shadowBlur, shadowOffsetX = _this_textStyle.shadowOffsetX, shadowOffsetY = _this_textStyle.shadowOffsetY;
19909
+ var r = outlineColor[0], g = outlineColor[1], b = outlineColor[2], a = outlineColor[3];
19910
+ if (context) {
19911
+ context.shadowColor = "rgba(" + r * 255 + ", " + g * 255 + ", " + b * 255 + ", " + a + ")";
19912
+ context.shadowBlur = shadowBlur;
19913
+ context.shadowOffsetX = shadowOffsetX;
19914
+ context.shadowOffsetY = -shadowOffsetY;
19915
+ }
19861
19916
  };
19862
- return TextComponent;
19863
- }(SpriteComponent);
19864
- TextComponent = __decorate([
19865
- effectsClass(DataType.TextComponent)
19866
- ], TextComponent);
19917
+ return TextComponentBase;
19918
+ }();
19919
+ applyMixins(TextComponent, [
19920
+ TextComponentBase
19921
+ ]);
19867
19922
 
19868
19923
  // TODO: 注册必须用
19869
19924
  var TextLoader = /*#__PURE__*/ function(AbstractPlugin) {
@@ -20092,8 +20147,8 @@ var VFXItem = /*#__PURE__*/ function(EffectsObject) {
20092
20147
  * @param classConstructor - 要添加的组件类型
20093
20148
  */ _proto.addComponent = function addComponent(classConstructor) {
20094
20149
  var newComponent = new classConstructor(this.engine);
20095
- newComponent.item = this;
20096
20150
  this.components.push(newComponent);
20151
+ newComponent.item = this;
20097
20152
  newComponent.onAttached();
20098
20153
  return newComponent;
20099
20154
  };
@@ -20348,6 +20403,7 @@ var VFXItem = /*#__PURE__*/ function(EffectsObject) {
20348
20403
  }
20349
20404
  for(var _iterator = _create_for_of_iterator_helper_loose(this.components), _step; !(_step = _iterator()).done;){
20350
20405
  var component = _step.value;
20406
+ component.item = this;
20351
20407
  component.onAttached();
20352
20408
  }
20353
20409
  // renderOrder 在 component 初始化后设置。确保能拿到 rendererComponent。
@@ -23301,12 +23357,13 @@ var seed$1 = 1;
23301
23357
  ];
23302
23358
  case 8:
23303
23359
  _ref1 = _state.sent(), loadedBins = _ref1[0], loadedImages = _ref1[1];
23304
- for(i2 = 0; i2 < images1.length; i2++){
23305
- // FIXME: 2024.05.29 如果 renderer 为空,这里会抛异常
23306
- imageAsset = new ImageAsset(renderer.engine);
23307
- imageAsset.data = loadedImages[i2];
23308
- imageAsset.setInstanceId(images1[i2].id);
23309
- renderer == null ? void 0 : renderer.engine.addInstance(imageAsset);
23360
+ if (renderer) {
23361
+ for(i2 = 0; i2 < images1.length; i2++){
23362
+ imageAsset = new ImageAsset(renderer.engine);
23363
+ imageAsset.data = loadedImages[i2];
23364
+ imageAsset.setInstanceId(images1[i2].id);
23365
+ renderer.engine.addInstance(imageAsset);
23366
+ }
23310
23367
  }
23311
23368
  return [
23312
23369
  4,
@@ -25556,6 +25613,8 @@ registerPlugin("sprite", SpriteLoader, VFXItem, true);
25556
25613
  registerPlugin("particle", ParticleLoader, VFXItem, true);
25557
25614
  registerPlugin("cal", CalculateLoader, VFXItem, true);
25558
25615
  registerPlugin("interact", InteractLoader, VFXItem, true);
25616
+ var version$1 = "2.0.0-alpha.19";
25617
+ logger.info("Core version: " + version$1 + ".");
25559
25618
 
25560
25619
  var _obj;
25561
25620
  /**
@@ -27142,8 +27201,8 @@ setMaxSpriteMeshItemCount(8);
27142
27201
  */ Mesh.create = function(engine, props) {
27143
27202
  return new ThreeMesh(engine, props);
27144
27203
  };
27145
- var version = "2.0.0-alpha.18";
27204
+ var version = "2.0.0-alpha.19";
27146
27205
  logger.info("THREEJS plugin version: " + version + ".");
27147
27206
 
27148
- export { AbstractPlugin, ActivationPlayable, ActivationPlayableAsset, ActivationTrack, AnimationClip, AnimationClipPlayable, AssetLoader, AssetManager, BYTES_TYPE_MAP, Behaviour, BezierCurve, BezierCurvePath, BezierCurveQuat, BinaryAsset, COMPRESSED_TEXTURE, CONSTANT_MAP_BLEND, CONSTANT_MAP_DEPTH, CONSTANT_MAP_STENCIL_FUNC, CONSTANT_MAP_STENCIL_OP, COPY_FRAGMENT_SHADER, COPY_MESH_SHADER_ID, COPY_VERTEX_SHADER, CalculateLoader, Camera, CameraController, CameraVFXItemLoader, Component, Composition, CompositionComponent, CompositionSourceManager, DEFAULT_FONTS, Database, DestroyOptions, Downloader, EFFECTS_COPY_MESH_NAME, EVENT_TYPE_CLICK, EVENT_TYPE_TOUCH_END, EVENT_TYPE_TOUCH_MOVE, EVENT_TYPE_TOUCH_START, EffectComponent, EffectsObject, Engine, EventSystem, FilterMode, Float16ArrayWrapper, Framebuffer, GLSLVersion, GPUCapability, Geometry, GlobalUniforms, GradientValue, HELP_LINK, HitTestType, InteractComponent, InteractLoader, InteractMesh, Item, ItemBehaviour, KTXTexture, LineSegments, LinearValue, Material, MaterialDataBlock, MaterialRenderType, Mesh, ObjectBindingTrack, OrderType, PLAYER_OPTIONS_ENV_EDITOR, POST_PROCESS_SETTINGS, ParticleBehaviourPlayable, ParticleBehaviourPlayableAsset, ParticleLoader, ParticleMesh, ParticleSystem, ParticleSystemRenderer, PassTextureCache, PathSegments, PluginSystem, RENDER_PASS_NAME_PREFIX, RENDER_PREFER_LOOKUP_TEXTURE, RUNTIME_ENV, RandomSetValue, RandomValue, RandomVectorValue, RenderFrame, RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, RenderTargetHandle, RenderTextureFormat, Renderbuffer, Renderer, RendererComponent, RuntimeClip, SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_0, SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_SIZE_0, SEMANTIC_PRE_COLOR_ATTACHMENT_0, SEMANTIC_PRE_COLOR_ATTACHMENT_SIZE_0, SPRITE_VERTEX_STRIDE, SemanticMap, SerializationHelper, Shader, ShaderCompileResultStatus, ShaderType, ShaderVariant, SpriteColorPlayable, SpriteColorPlayableAsset, SpriteColorTrack, SpriteComponent, SpriteLoader, StaticValue, SubCompositionPlayableAsset, SubCompositionTrack, TEMPLATE_USE_OFFSCREEN_CANVAS, TEXTURE_UNIFORM_MAP, TextComponent, TextLayout, TextLoader, TextStyle, Texture, TextureFactory, TextureLoadAction, TextureSourceType, TextureStoreAction, ThreeComposition, ThreeDisplayObject, ThreeEngine, ThreeMaterial, ThreeSpriteComponent, ThreeTexture, Ticker, TimelineAsset, TimelineClip, TimelinePlayable, TrackAsset, TrackSortWrapper, TrackType, Transform, TransformAnimationPlayable, TransformPlayableAsset, TransformTrack, VFXItem, ValueGetter, addByOrder, addItem, addItemWithOrder, assertExist, asserts, base64ToFile, blend, calculateTranslation, canvasPool, colorGradingFrag, colorStopsFromGradient, colorToArr$1 as colorToArr, combineImageTemplate, compatible_frag as compatibleFrag, compatible_vert as compatibleVert, createCopyShader, createGLContext, createKeyFrameMeta, createShaderWithMacros, createShape, createVFXItem, createValueGetter, decimalEqual, defaultGlobalVolume, defaultPlugins, deserializeMipmapTexture, earcut, effectsClass, effectsClassStore, enlargeBuffer, ensureFixedNumber, ensureVec3, findPreviousRenderPass, gaussianDown_frag as gaussianDownFrag, gaussianDownHFrag, gaussianDownVFrag, gaussianUpFrag, generateEmptyTypedArray, generateGUID, generateHalfFloatTexture, generateTransparentTexture, generateWhiteTexture, getBackgroundImage, getColorFromGradientStops, getConfig, getDefaultTemplateCanvasPool, getDefaultTextureFactory, getGeometryByShape, getGeometryTriangles, getImageItemRenderInfo, getKTXTextureOptions, getKeyFrameMetaByRawValue, getMergedStore, getParticleMeshShader, getPixelRatio, getPreMultiAlpha, getStandardComposition, getStandardImage, getStandardItem, getStandardJSON, getTextureSize, glContext, glType2VertexFormatType, gpuTimer, imageDataFromColor, imageDataFromGradient, initErrors, initGLContext, integrate, interpolateColor, isAlipayMiniApp, isAndroid, isArray, isCanvas, isFunction, isIOS, isObject, isSceneJSON, isSceneURL, isSceneWithOptions, isSimulatorCellPhone, isString, isUniformStruct, isUniformStructArray, isValidFontFamily, isWebGL2, itemFrag, itemFrameFrag, itemVert, loadBinary, loadBlob, loadImage, loadMedia, loadVideo, loadWebPOptional, logger, index as math, maxSpriteMeshItemCount, modifyMaxKeyframeShader, nearestPowerOfTwo, noop, normalizeColor, numberToFix, parsePercent$1 as parsePercent, particleFrag, particleOriginTranslateMap$1 as particleOriginTranslateMap, particleUniformTypeMap, particleVert, pluginLoaderMap, pointOnLine, randomInRange, registerPlugin, removeItem, rotateVec2, screenMeshVert, serialize, setBlendMode, setConfig, setDefaultTextureFactory, setMaskMode, setMaxSpriteMeshItemCount, setRayFromCamera, setSideMode, setSpriteMeshMaxItemCountByGPU, setUniformValue, sortByOrder, index$1 as spec, spriteMeshShaderFromFilter, spriteMeshShaderFromRenderInfo, spriteMeshShaderIdFromRenderInfo, thresholdFrag, throwDestroyedError, trailVert, translatePoint, trianglesFromRect, unregisterPlugin, valIfUndefined, value, valueDefine, vecAssign, vecFill, vecMulCombine, vecNormalize, version, vertexFormatType2GLType };
27207
+ export { AbstractPlugin, ActivationPlayable, ActivationPlayableAsset, ActivationTrack, AnimationClip, AnimationClipPlayable, AssetLoader, AssetManager, BYTES_TYPE_MAP, Behaviour, BezierCurve, BezierCurvePath, BezierCurveQuat, BinaryAsset, COMPRESSED_TEXTURE, CONSTANT_MAP_BLEND, CONSTANT_MAP_DEPTH, CONSTANT_MAP_STENCIL_FUNC, CONSTANT_MAP_STENCIL_OP, COPY_FRAGMENT_SHADER, COPY_MESH_SHADER_ID, COPY_VERTEX_SHADER, CalculateLoader, Camera, CameraController, CameraVFXItemLoader, Component, Composition, CompositionComponent, CompositionSourceManager, DEFAULT_FONTS, Database, DestroyOptions, Downloader, EFFECTS_COPY_MESH_NAME, EVENT_TYPE_CLICK, EVENT_TYPE_TOUCH_END, EVENT_TYPE_TOUCH_MOVE, EVENT_TYPE_TOUCH_START, EffectComponent, EffectsObject, Engine, EventSystem, FilterMode, Float16ArrayWrapper, Framebuffer, GLSLVersion, GPUCapability, Geometry, GlobalUniforms, GradientValue, HELP_LINK, HitTestType, InteractComponent, InteractLoader, InteractMesh, Item, ItemBehaviour, KTXTexture, LineSegments, LinearValue, Material, MaterialDataBlock, MaterialRenderType, Mesh, ObjectBindingTrack, OrderType, PLAYER_OPTIONS_ENV_EDITOR, POST_PROCESS_SETTINGS, ParticleBehaviourPlayable, ParticleBehaviourPlayableAsset, ParticleLoader, ParticleMesh, ParticleSystem, ParticleSystemRenderer, PassTextureCache, PathSegments, PluginSystem, RENDER_PASS_NAME_PREFIX, RENDER_PREFER_LOOKUP_TEXTURE, RUNTIME_ENV, RandomSetValue, RandomValue, RandomVectorValue, RenderFrame, RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, RenderTargetHandle, RenderTextureFormat, Renderbuffer, Renderer, RendererComponent, RuntimeClip, SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_0, SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_SIZE_0, SEMANTIC_PRE_COLOR_ATTACHMENT_0, SEMANTIC_PRE_COLOR_ATTACHMENT_SIZE_0, SPRITE_VERTEX_STRIDE, SemanticMap, SerializationHelper, Shader, ShaderCompileResultStatus, ShaderType, ShaderVariant, SpriteColorPlayable, SpriteColorPlayableAsset, SpriteColorTrack, SpriteComponent, SpriteLoader, StaticValue, SubCompositionPlayableAsset, SubCompositionTrack, TEMPLATE_USE_OFFSCREEN_CANVAS, TEXTURE_UNIFORM_MAP, TextComponent, TextComponentBase, TextLayout, TextLoader, TextStyle, Texture, TextureFactory, TextureLoadAction, TextureSourceType, TextureStoreAction, ThreeComposition, ThreeDisplayObject, ThreeEngine, ThreeMaterial, ThreeSpriteComponent, ThreeTexture, Ticker, TimelineAsset, TimelineClip, TimelinePlayable, TrackAsset, TrackSortWrapper, TrackType, Transform, TransformAnimationPlayable, TransformPlayableAsset, TransformTrack, VFXItem, ValueGetter, addByOrder, addItem, addItemWithOrder, applyMixins, assertExist, asserts, base64ToFile, blend, calculateTranslation, canvasPool, colorGradingFrag, colorStopsFromGradient, colorToArr$1 as colorToArr, combineImageTemplate, compatible_frag as compatibleFrag, compatible_vert as compatibleVert, createCopyShader, createGLContext, createKeyFrameMeta, createShaderWithMacros, createShape, createVFXItem, createValueGetter, decimalEqual, defaultGlobalVolume, defaultPlugins, deserializeMipmapTexture, earcut, effectsClass, effectsClassStore, enlargeBuffer, ensureFixedNumber, ensureVec3, findPreviousRenderPass, gaussianDown_frag as gaussianDownFrag, gaussianDownHFrag, gaussianDownVFrag, gaussianUpFrag, generateEmptyTypedArray, generateGUID, generateHalfFloatTexture, generateTransparentTexture, generateWhiteTexture, getBackgroundImage, getColorFromGradientStops, getConfig, getDefaultTemplateCanvasPool, getDefaultTextureFactory, getGeometryByShape, getGeometryTriangles, getImageItemRenderInfo, getKTXTextureOptions, getKeyFrameMetaByRawValue, getMergedStore, getParticleMeshShader, getPixelRatio, getPreMultiAlpha, getStandardComposition, getStandardImage, getStandardItem, getStandardJSON, getTextureSize, glContext, glType2VertexFormatType, gpuTimer, imageDataFromColor, imageDataFromGradient, initErrors, initGLContext, integrate, interpolateColor, isAlipayMiniApp, isAndroid, isArray, isCanvas, isFunction, isIOS, isObject, isSceneJSON, isSceneURL, isSceneWithOptions, isSimulatorCellPhone, isString, isUniformStruct, isUniformStructArray, isValidFontFamily, isWebGL2, itemFrag, itemFrameFrag, itemVert, loadBinary, loadBlob, loadImage, loadMedia, loadVideo, loadWebPOptional, logger, index as math, maxSpriteMeshItemCount, modifyMaxKeyframeShader, nearestPowerOfTwo, noop, normalizeColor, numberToFix, parsePercent$1 as parsePercent, particleFrag, particleOriginTranslateMap$1 as particleOriginTranslateMap, particleUniformTypeMap, particleVert, pluginLoaderMap, pointOnLine, randomInRange, registerPlugin, removeItem, rotateVec2, screenMeshVert, serialize, setBlendMode, setConfig, setDefaultTextureFactory, setMaskMode, setMaxSpriteMeshItemCount, setRayFromCamera, setSideMode, setSpriteMeshMaxItemCountByGPU, setUniformValue, sortByOrder, index$1 as spec, spriteMeshShaderFromFilter, spriteMeshShaderFromRenderInfo, spriteMeshShaderIdFromRenderInfo, thresholdFrag, throwDestroyedError, trailVert, translatePoint, trianglesFromRect, unregisterPlugin, valIfUndefined, value, valueDefine, vecAssign, vecFill, vecMulCombine, vecNormalize, version, vertexFormatType2GLType };
27149
27208
  //# sourceMappingURL=index.mjs.map