@galacean/effects-threejs 2.10.0-alpha.5 → 2.10.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.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.10.0-alpha.5
6
+ * Version: v2.10.0
7
7
  */
8
8
 
9
9
  import * as THREE from 'three';
@@ -2235,10 +2235,10 @@ var Color = /*#__PURE__*/ function() {
2235
2235
  };
2236
2236
  _proto.toHexString = function toHexString(includeAlpha) {
2237
2237
  if (includeAlpha === void 0) includeAlpha = true;
2238
- var R = Color.ToHex(Math.round(this.r * 255));
2239
- var G = Color.ToHex(Math.round(this.g * 255));
2240
- var B = Color.ToHex(Math.round(this.b * 255));
2241
- var A = Color.ToHex(Math.round(this.a * 255));
2238
+ var R = Color.ToHex(Math.round(Math.min(Math.max(this.r, 0), 1) * 255));
2239
+ var G = Color.ToHex(Math.round(Math.min(Math.max(this.g, 0), 1) * 255));
2240
+ var B = Color.ToHex(Math.round(Math.min(Math.max(this.b, 0), 1) * 255));
2241
+ var A = Color.ToHex(Math.round(Math.min(Math.max(this.a, 0), 1) * 255));
2242
2242
  if (includeAlpha) {
2243
2243
  return "#" + R + G + B + A;
2244
2244
  } else {
@@ -2284,30 +2284,14 @@ var Color = /*#__PURE__*/ function() {
2284
2284
  * @param v - Gamma 空间颜色值
2285
2285
  * @returns 线性空间颜色值
2286
2286
  */ Color.gammaToLinear = function gammaToLinear(v) {
2287
- if (v <= 0.0) {
2288
- return 0.0;
2289
- } else if (v <= 0.04045) {
2290
- return v / 12.92;
2291
- } else if (v < 1.0) {
2292
- return Math.pow((v + 0.055) / 1.055, 2.4);
2293
- } else {
2294
- return Math.pow(v, 2.4);
2295
- }
2287
+ return v < 0.04045 ? v * 0.0773993808 : Math.pow(v * 0.9478672986 + 0.0521327014, 2.4);
2296
2288
  };
2297
2289
  /**
2298
2290
  * 颜色值从线性空间转到 Gamma 空间
2299
2291
  * @param value - 线性空间颜色值
2300
2292
  * @returns Gamma 空间颜色值
2301
2293
  */ Color.linearToGamma = function linearToGamma(value) {
2302
- if (value <= 0.0) {
2303
- return 0.0;
2304
- } else if (value < 0.0031308) {
2305
- return 12.92 * value;
2306
- } else if (value < 1.0) {
2307
- return 1.055 * Math.pow(value, 0.41666) - 0.055;
2308
- } else {
2309
- return Math.pow(value, 0.41666);
2310
- }
2294
+ return value < 0.0031308 ? value * 12.92 : 1.055 * Math.pow(value, 0.41666) - 0.055;
2311
2295
  };
2312
2296
  Color.ToHex = function ToHex(i) {
2313
2297
  var str = i.toString(16);
@@ -3105,7 +3089,8 @@ function _inherits(subClass, superClass) {
3105
3089
  JSONSceneVersion["3_5"] = "3.5";
3106
3090
  JSONSceneVersion["3_6"] = "3.6";
3107
3091
  JSONSceneVersion["3_7"] = "3.7";
3108
- JSONSceneVersion["LATEST"] = "3.7";
3092
+ JSONSceneVersion["3_8"] = "3.8";
3093
+ JSONSceneVersion["LATEST"] = "3.8";
3109
3094
  })(JSONSceneVersion || (JSONSceneVersion = {}));
3110
3095
 
3111
3096
  /*********************************************/ /* 元素属性参数类型 */ /*********************************************/ /**
@@ -3501,6 +3486,9 @@ var CameraClipMode;
3501
3486
  /**
3502
3487
  * Vector3 曲线
3503
3488
  */ ValueType[ValueType["VECTOR3_CURVE"] = 27] = "VECTOR3_CURVE";
3489
+ /**
3490
+ * 对象引用阶梯曲线(不插值)
3491
+ */ ValueType[ValueType["REFERENCE_CURVE"] = 28] = "REFERENCE_CURVE";
3504
3492
  })(ValueType || (ValueType = {}));
3505
3493
  /**
3506
3494
  * 关键帧类型
@@ -3744,6 +3732,15 @@ var BuiltinObjectGUID = {
3744
3732
  UnlitShader: "unlit000000000000000000000000000"
3745
3733
  };
3746
3734
 
3735
+ /**
3736
+ * Sprite UV 旋转方式。序列化为整数(兼容老 splits 的 flip 0/1)。
3737
+ * None 不旋转、Rotate90 将 UV 顺时针旋转 90°(width/height 互换)。
3738
+ */ var SpriteRotation$1;
3739
+ (function(SpriteRotation) {
3740
+ /** 不旋转 */ SpriteRotation[SpriteRotation["None"] = 0] = "None";
3741
+ /** UV 旋转 90°(对应老 splits flip=1) */ SpriteRotation[SpriteRotation["Rotate90"] = 1] = "Rotate90";
3742
+ })(SpriteRotation$1 || (SpriteRotation$1 = {}));
3743
+
3747
3744
  var FillType;
3748
3745
  (function(FillType) {
3749
3746
  FillType[FillType["Solid"] = 0] = "Solid";
@@ -3855,6 +3852,7 @@ var DataType;
3855
3852
  DataType["Image"] = "Image";
3856
3853
  DataType["AnimationClip"] = "AnimationClip";
3857
3854
  DataType["BinaryAsset"] = "BinaryAsset";
3855
+ DataType["Sprite"] = "Sprite";
3858
3856
  // Timeline
3859
3857
  DataType["TrackAsset"] = "TrackAsset";
3860
3858
  DataType["TimelineAsset"] = "TimelineAsset";
@@ -3868,6 +3866,7 @@ var DataType;
3868
3866
  DataType["Vector2PropertyTrack"] = "Vector2PropertyTrack";
3869
3867
  DataType["Vector3PropertyTrack"] = "Vector3PropertyTrack";
3870
3868
  DataType["Vector4PropertyTrack"] = "Vector4PropertyTrack";
3869
+ DataType["SpritePropertyTrack"] = "SpritePropertyTrack";
3871
3870
  DataType["TransformPlayableAsset"] = "TransformPlayableAsset";
3872
3871
  DataType["SpriteColorPlayableAsset"] = "SpriteColorPlayableAsset";
3873
3872
  DataType["ActivationPlayableAsset"] = "ActivationPlayableAsset";
@@ -3877,6 +3876,7 @@ var DataType;
3877
3876
  DataType["Vector2PropertyPlayableAsset"] = "Vector2PropertyPlayableAsset";
3878
3877
  DataType["Vector3PropertyPlayableAsset"] = "Vector3PropertyPlayableAsset";
3879
3878
  DataType["Vector4PropertyPlayableAsset"] = "Vector4PropertyPlayableAsset";
3879
+ DataType["SpritePropertyPlayableAsset"] = "SpritePropertyPlayableAsset";
3880
3880
  // Components
3881
3881
  DataType["MeshComponent"] = "MeshComponent";
3882
3882
  DataType["SkyboxComponent"] = "SkyboxComponent";
@@ -3903,6 +3903,42 @@ var DataType;
3903
3903
  DataType["FFDComponent"] = "FFDComponent";
3904
3904
  DataType["FrameComponent"] = "FrameComponent";
3905
3905
  DataType["Animator"] = "Animator";
3906
+ DataType["DomContentComponent"] = "DomContentComponent";
3907
+ DataType["UIControl"] = "UIControl";
3908
+ // GUI Controls
3909
+ DataType["Control"] = "Control";
3910
+ DataType["Container"] = "Container";
3911
+ DataType["HBoxContainer"] = "HBoxContainer";
3912
+ DataType["VBoxContainer"] = "VBoxContainer";
3913
+ DataType["GridContainer"] = "GridContainer";
3914
+ DataType["PanelContainer"] = "PanelContainer";
3915
+ DataType["MarginContainer"] = "MarginContainer";
3916
+ DataType["CenterContainer"] = "CenterContainer";
3917
+ DataType["AspectRatioContainer"] = "AspectRatioContainer";
3918
+ DataType["ScrollContainer"] = "ScrollContainer";
3919
+ DataType["HScrollBar"] = "HScrollBar";
3920
+ DataType["VScrollBar"] = "VScrollBar";
3921
+ DataType["HSeparator"] = "HSeparator";
3922
+ DataType["VSeparator"] = "VSeparator";
3923
+ DataType["Label"] = "Label";
3924
+ DataType["LineEdit"] = "LineEdit";
3925
+ DataType["TextEdit"] = "TextEdit";
3926
+ DataType["PopupPanel"] = "PopupPanel";
3927
+ DataType["PopupMenu"] = "PopupMenu";
3928
+ DataType["MenuButton"] = "MenuButton";
3929
+ DataType["OptionButton"] = "OptionButton";
3930
+ DataType["ColorPicker"] = "ColorPicker";
3931
+ DataType["ColorPickerButton"] = "ColorPickerButton";
3932
+ DataType["TextureRect"] = "TextureRect";
3933
+ DataType["NinePatchRect"] = "NinePatchRect";
3934
+ DataType["ColorRect"] = "ColorRect";
3935
+ DataType["Panel"] = "Panel";
3936
+ DataType["ProgressBar"] = "ProgressBar";
3937
+ DataType["Button"] = "Button";
3938
+ DataType["Checkbox"] = "Checkbox";
3939
+ DataType["CheckButton"] = "CheckButton";
3940
+ DataType["HSlider"] = "HSlider";
3941
+ DataType["VSlider"] = "VSlider";
3906
3942
  // Non-EffectObject
3907
3943
  DataType["TimelineClip"] = "TimelineClip";
3908
3944
  })(DataType || (DataType = {}));
@@ -4041,6 +4077,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
4041
4077
  get TextWeight () { return TextWeight; },
4042
4078
  get FontStyle () { return FontStyle; },
4043
4079
  BuiltinObjectGUID: BuiltinObjectGUID,
4080
+ get SpriteRotation () { return SpriteRotation$1; },
4044
4081
  get FillType () { return FillType; },
4045
4082
  get TexturePaintScaleMode () { return TexturePaintScaleMode$1; },
4046
4083
  get ShapePrimitiveType () { return ShapePrimitiveType; },
@@ -9217,7 +9254,7 @@ function isUniformStructArray(value) {
9217
9254
  return v.set(this.elements[i * 4], this.elements[i * 4 + 1], this.elements[i * 4 + 2], this.elements[i * 4 + 3]);
9218
9255
  };
9219
9256
  /**
9220
- * 设置相机矩阵
9257
+ * 设置矩阵的朝向旋转部分
9221
9258
  * @param eye - 相机位置
9222
9259
  * @param target - 目标位置
9223
9260
  * @param up - 相机方向
@@ -9227,27 +9264,32 @@ function isUniformStructArray(value) {
9227
9264
  var vY = Matrix4.tempVec1;
9228
9265
  var vZ = Matrix4.tempVec2;
9229
9266
  vZ.subtractVectors(eye, target);
9267
+ if (vZ.lengthSquared() === 0) {
9268
+ vZ.z = 1;
9269
+ }
9230
9270
  vZ.normalize();
9231
9271
  vX.crossVectors(up, vZ);
9272
+ if (vX.lengthSquared() === 0) {
9273
+ if (Math.abs(up.z) === 1) {
9274
+ vZ.x += 0.0001;
9275
+ } else {
9276
+ vZ.z += 0.0001;
9277
+ }
9278
+ vZ.normalize();
9279
+ vX.crossVectors(up, vZ);
9280
+ }
9232
9281
  vX.normalize();
9233
9282
  vY.crossVectors(vZ, vX);
9234
9283
  var te = this.elements;
9235
9284
  te[0] = vX.x;
9236
- te[1] = vY.x;
9237
- te[2] = vZ.x;
9238
- te[3] = 0;
9239
- te[4] = vX.y;
9285
+ te[4] = vY.x;
9286
+ te[8] = vZ.x;
9287
+ te[1] = vX.y;
9240
9288
  te[5] = vY.y;
9241
- te[6] = vZ.y;
9242
- te[7] = 0;
9243
- te[8] = vX.z;
9244
- te[9] = vY.z;
9289
+ te[9] = vZ.y;
9290
+ te[2] = vX.z;
9291
+ te[6] = vY.z;
9245
9292
  te[10] = vZ.z;
9246
- te[11] = 0;
9247
- te[12] = -vX.dot(eye);
9248
- te[13] = -vY.dot(eye);
9249
- te[14] = -vZ.dot(eye);
9250
- te[15] = 1;
9251
9293
  return this;
9252
9294
  };
9253
9295
  /**
@@ -9473,6 +9515,7 @@ function isUniformStructArray(value) {
9473
9515
  te[12] = l * te[0] + m * te[4] + n * te[8] - l + translation.x;
9474
9516
  te[13] = l * te[1] + m * te[5] + n * te[9] - m + translation.y;
9475
9517
  te[14] = l * te[2] + m * te[6] + n * te[10] - n + translation.z;
9518
+ te[15] = 1;
9476
9519
  return this;
9477
9520
  };
9478
9521
  /**
@@ -9764,7 +9807,7 @@ function isUniformStructArray(value) {
9764
9807
  return new Matrix4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
9765
9808
  };
9766
9809
  /**
9767
- * 创建相机矩阵
9810
+ * 创建朝向旋转矩阵
9768
9811
  * @param eye - 相机位置
9769
9812
  * @param target - 目标位置
9770
9813
  * @param up - 相机方向
@@ -10979,6 +11022,9 @@ Euler.tempMat0 = new Matrix4();
10979
11022
  * @param [out] - 交点
10980
11023
  * @returns
10981
11024
  */ _proto.intersectSphere = function intersectSphere(sphere, out) {
11025
+ if (sphere.radius < 0) {
11026
+ return;
11027
+ }
10982
11028
  var center = sphere.center;
10983
11029
  var vector = Ray.tempVec0.subtractVectors(center, this.origin);
10984
11030
  var tca = vector.dot(this.direction);
@@ -11305,7 +11351,7 @@ Ray.tempVec3 = new Vector3();
11305
11351
  * @returns
11306
11352
  */ _proto.intersectsSphere = function intersectsSphere(sphere) {
11307
11353
  // Find the point on the AABB closest to the sphere center.
11308
- var vector = new Vector3();
11354
+ var vector = Box3.tempVec0;
11309
11355
  this.clampPoint(sphere.center, vector);
11310
11356
  // If that point is inside the sphere, the AABB and sphere intersect.
11311
11357
  return vector.distanceSquared(sphere.center) <= sphere.radius * sphere.radius;
@@ -11391,9 +11437,11 @@ Ray.tempVec3 = new Vector3();
11391
11437
  * @param target
11392
11438
  * @returns
11393
11439
  */ _proto.getBoundingSphere = function getBoundingSphere(target) {
11440
+ if (this.isEmpty()) {
11441
+ return target.makeEmpty();
11442
+ }
11394
11443
  this.getCenter(target.center);
11395
- var vector = new Vector3();
11396
- target.radius = this.getSize(vector).length() * 0.5;
11444
+ target.radius = this.getSize(Box3.tempVec0).length() * 0.5;
11397
11445
  return target;
11398
11446
  };
11399
11447
  /**
@@ -11414,6 +11462,7 @@ Ray.tempVec3 = new Vector3();
11414
11462
  };
11415
11463
  return Box3;
11416
11464
  }();
11465
+ Box3.tempVec0 = new Vector3();
11417
11466
 
11418
11467
  /**
11419
11468
  * 球
@@ -11444,16 +11493,15 @@ Ray.tempVec3 = new Vector3();
11444
11493
  var center = this.center;
11445
11494
  if (optionalCenter !== undefined) {
11446
11495
  center.copyFrom(optionalCenter);
11447
- var maxRadiusSq = 0;
11448
- for(var i = 0; i < points.length; i++){
11449
- maxRadiusSq = Math.max(maxRadiusSq, center.distanceSquared(points[i]));
11450
- }
11451
- this.radius = Math.sqrt(maxRadiusSq);
11452
11496
  } else {
11453
- var box = new Box3().setFromPoints(points);
11497
+ var box = Sphere.tempBox.setFromPoints(points);
11454
11498
  box.getCenter(center);
11455
- this.radius = box.getSize().length() / 2;
11456
11499
  }
11500
+ var maxRadiusSq = 0;
11501
+ for(var i = 0; i < points.length; i++){
11502
+ maxRadiusSq = Math.max(maxRadiusSq, center.distanceSquared(points[i]));
11503
+ }
11504
+ this.radius = Math.sqrt(maxRadiusSq);
11457
11505
  return this;
11458
11506
  };
11459
11507
  /**
@@ -11570,7 +11618,10 @@ Ray.tempVec3 = new Vector3();
11570
11618
  * @param point - 扩展点
11571
11619
  * @returns 扩展结果
11572
11620
  */ _proto.expandByPoint = function expandByPoint(point) {
11573
- var vector = new Vector3().subtractVectors(point, this.center);
11621
+ if (this.isEmpty()) {
11622
+ return this.set(point, 0);
11623
+ }
11624
+ var vector = Sphere.tempVec0.subtractVectors(point, this.center);
11574
11625
  var lengthSquared = vector.lengthSquared();
11575
11626
  if (lengthSquared > this.radius * this.radius) {
11576
11627
  var length = Math.sqrt(lengthSquared);
@@ -11588,30 +11639,42 @@ Ray.tempVec3 = new Vector3();
11588
11639
  * @param sphere - 包围球
11589
11640
  * @returns 求并结果
11590
11641
  */ _proto.union = function union(sphere) {
11591
- // To enclose another sphere into this sphere, we only need to enclose two points:
11592
- // 1) Enclose the farthest point on the other sphere into this sphere.
11593
- // 2) Enclose the opposite point of the farthest point into this sphere.
11594
- var v1 = new Vector3();
11595
- var toFarthestPoint = new Vector3();
11596
- toFarthestPoint.subtractVectors(sphere.center, this.center).normalize().multiply(sphere.radius);
11597
- this.expandByPoint(v1.copyFrom(sphere.center).add(toFarthestPoint));
11598
- this.expandByPoint(v1.copyFrom(sphere.center).subtract(toFarthestPoint));
11642
+ if (sphere.isEmpty()) {
11643
+ return this;
11644
+ }
11645
+ if (this.isEmpty()) {
11646
+ return this.copyFrom(sphere);
11647
+ }
11648
+ if (this.center.equals(sphere.center)) {
11649
+ this.radius = Math.max(this.radius, sphere.radius);
11650
+ } else {
11651
+ var point = Sphere.tempVec0;
11652
+ var offset = Sphere.tempVec1.subtractVectors(sphere.center, this.center).setLength(sphere.radius);
11653
+ this.expandByPoint(point.copyFrom(sphere.center).add(offset));
11654
+ this.expandByPoint(point.copyFrom(sphere.center).subtract(offset));
11655
+ }
11599
11656
  return this;
11600
11657
  };
11601
11658
  /**
11602
- * 包围球求交集
11659
+ * 获取两个包围球交集的保守包围球。部分重叠时,真实交集为透镜形,
11660
+ * 因此结果取两个输入中较小的包围球,并不精确表示交集。
11603
11661
  * @param other - 其它包围球
11604
11662
  * @returns 求交结果
11605
11663
  */ _proto.intersect = function intersect(other) {
11606
- var vector = new Vector3().subtractVectors(this.center, other.center);
11607
- var distance = vector.length();
11608
- var radiusSum = this.radius + other.radius;
11609
- if (distance > radiusSum) {
11664
+ if (this.isEmpty() || other.isEmpty()) {
11610
11665
  return this.makeEmpty();
11611
11666
  }
11612
- this.center = this.center.add(vector.normalize().multiply(distance / 2));
11613
- this.radius = this.radius + other.radius - distance;
11614
- return this;
11667
+ var distance = this.center.distance(other.center);
11668
+ if (distance > this.radius + other.radius) {
11669
+ return this.makeEmpty();
11670
+ }
11671
+ if (this.radius >= distance + other.radius) {
11672
+ return this.copyFrom(other);
11673
+ }
11674
+ if (other.radius >= distance + this.radius) {
11675
+ return this;
11676
+ }
11677
+ return this.radius <= other.radius ? this : this.copyFrom(other);
11615
11678
  };
11616
11679
  /**
11617
11680
  * 包围球判等
@@ -11628,6 +11691,9 @@ Ray.tempVec3 = new Vector3();
11628
11691
  };
11629
11692
  return Sphere;
11630
11693
  }();
11694
+ Sphere$1.tempBox = new Box3();
11695
+ Sphere$1.tempVec0 = new Vector3();
11696
+ Sphere$1.tempVec1 = new Vector3();
11631
11697
 
11632
11698
  var index = /*#__PURE__*/Object.freeze({
11633
11699
  __proto__: null,
@@ -22831,7 +22897,7 @@ var canvasPool = new CanvasPool();
22831
22897
  ctx.textBaseline = "alphabetic";
22832
22898
  ctx.fillStyle = "#ffffff";
22833
22899
  this.paddingPx = GLYPH_PADDING * resolution;
22834
- this.italicScale = fontStyle === "italic" ? 2 : 1;
22900
+ this.italicScale = fontStyle === "italic" || fontStyle === "oblique" ? 2 : 1;
22835
22901
  // ascent/descent 由探针 '|ÉqÅM' 测得 actualBoundingBox(重音字已抬高 ink 顶),
22836
22902
  // 两者内部保持浮点,仅 cell 高做一次外层 ceil — 与 padding 共同保证 cell 内不裁切
22837
22903
  var fontHeightPx = ascentPx + descentPx;
@@ -37791,7 +37857,7 @@ function getStandardSpriteContent(sprite, transform) {
37791
37857
  return ret;
37792
37858
  }
37793
37859
 
37794
- var version$2 = "2.10.0-alpha.5";
37860
+ var version$2 = "2.10.0";
37795
37861
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
37796
37862
  var standardVersion = /^(\d+)\.(\d+)$/;
37797
37863
  var reverseParticle = false;
@@ -43020,7 +43086,7 @@ registerPlugin("text", TextLoader);
43020
43086
  registerPlugin("sprite", SpriteLoader);
43021
43087
  registerPlugin("particle", ParticleLoader);
43022
43088
  registerPlugin("interact", InteractLoader);
43023
- var version$1 = "2.10.0-alpha.5";
43089
+ var version$1 = "2.10.0";
43024
43090
  logger.info("Core version: " + version$1 + ".");
43025
43091
 
43026
43092
  var _obj;
@@ -44513,7 +44579,7 @@ applyMixins(ThreeTextComponent, [
44513
44579
  */ Mesh.create = function(engine, props) {
44514
44580
  return new ThreeMesh(engine, props);
44515
44581
  };
44516
- var version = "2.10.0-alpha.5";
44582
+ var version = "2.10.0";
44517
44583
  logger.info("THREEJS plugin version: " + version + ".");
44518
44584
 
44519
44585
  export { ATLAS_SIZE, ActivationMixerPlayable, ActivationPlayable, ActivationPlayableAsset, ActivationTrack, AndNode, AndNodeData, Animatable, AnimationClip, AnimationClipNode, AnimationClipNodeData, AnimationEvent, AnimationGraphAsset, Animator, ApplyAdditiveNode, ApplyAdditiveNodeData, Asset, AssetLoader, AssetManager, AssetService, BYTES_TYPE_MAP, Behaviour, BezierCurve, BezierCurvePath, BezierCurveQuat, BezierDataMap, BezierEasing, BezierLengthData, BezierMap, BezierPath, BezierQuat, BinaryAsset, BlendNode, BlendNodeData, BoolValueNode, BoundingBoxInfo, Buffer, BufferDataType, BufferUsage, CONSTANT_MAP_BLEND, CONSTANT_MAP_DEPTH, CONSTANT_MAP_STENCIL_FUNC, CONSTANT_MAP_STENCIL_OP, COPY_FRAGMENT_SHADER, COPY_MESH_SHADER_ID, COPY_VERTEX_SHADER, Camera, CameraController, CameraVFXItemLoader, Circle$1 as Circle, ColorCurve, ColorPlayable, ColorPropertyMixerPlayable, ColorPropertyPlayableAsset, ColorPropertyTrack, Component, ComponentTimePlayable, ComponentTimePlayableAsset, ComponentTimeTrack, Composition, CompositionComponent, CompressTextureCapabilityType, ConstBoolNode, ConstBoolNodeData, ConstFloatNode, ConstFloatNodeData, ConstraintTarget, ControlParameterBoolNode, ControlParameterBoolNodeData, ControlParameterFloatNode, ControlParameterFloatNodeData, ControlParameterTriggerNode, ControlParameterTriggerNodeData, DEFAULT_FONTS, DEFAULT_FPS, DataBuffer, Database, Deferred, DestroyOptions, Downloader, DrawObjectPass, EFFECTS_COPY_MESH_NAME, EVENT_TYPE_CLICK, EVENT_TYPE_TOUCH_END, EVENT_TYPE_TOUCH_MOVE, EVENT_TYPE_TOUCH_START, EffectComponent, EffectComponentTimeTrack, EffectsObject, EffectsPackage, Ellipse, Engine, EqualNodeData, EventEmitter, EventSystem, Fake3DAnimationMode, Fake3DComponent, FilterMode, Float16ArrayWrapper, FloatComparisonNode, FloatComparisonNodeData, FloatPropertyMixerPlayable, FloatPropertyPlayableAsset, FloatPropertyTrack, FloatValueNode, FrameComponent, Framebuffer, GLSLVersion, GPUCapability, Geometry, GlobalUniforms, GlyphAtlas, GradientValue, GraphInstance, GraphNode, GraphNodeData, Graphics, GreaterNodeData, HELP_LINK, HitTestType, InputEvent, InputEventKey, InputEventMouse, InputEventMouseButton, InputEventMouseMotion, InputEventScreenDrag, InputEventScreenTouch, InputEventWithModifiers, InteractComponent, InteractLoader, InteractMesh, InvalidIndex, Item, KeyLocation, LayerBlendNode, LayerBlendNodeData, LessNodeData, LineSegments, LinearValue, MaskMode, MaskProcessor, MaskableGraphic, Material, MaterialDataBlock, MaterialRenderType, MaterialState, MaterialTrack, Mesh, MouseButton, MouseButtonMask, NodeTransform, NotNode, NotNodeData, NotifyEvent, ObjectBindingTrack, OrNode, OrNodeData, OrderType, PLAYER_OPTIONS_ENV_EDITOR, POST_PROCESS_SETTINGS, ParticleBehaviourPlayable, ParticleBehaviourPlayableAsset, ParticleLoader, ParticleMesh, ParticleMixerPlayable, ParticleSystem, ParticleSystemRenderer, ParticleTrack, PassTextureCache, PathSegments, PlayState, Playable, PlayableAsset, PlayableOutput, Plugin, PluginSystem, PointerEventData, PointerEventType, PolyStar, Polygon, Pose, PoseNode, PositionConstraint, PostProcessVolume, Precomposition, PrecompositionManager, PropertyClipPlayable, PropertyTrack, REFERENCE_CURVE, RENDER_PREFER_LOOKUP_TEXTURE, RUNTIME_ENV, RandomSetValue, RandomValue, RandomVectorValue, RaycastResult, Rectangle$1 as Rectangle, ReferenceCurve, RenderFrame, RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, RenderTargetHandle, RenderTargetPool, 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, Scene, SceneLoader, SerializationHelper, Shader, ShaderCompileResultStatus, ShaderFactory, ShaderType, ShaderVariant, ShapeComponent, SourceType, Sprite, SpriteColorMixerPlayable, SpriteColorPlayableAsset, SpriteColorTrack, SpriteComponent, SpriteComponentTimeTrack, SpriteLoader, SpritePropertyMixerPlayable, SpritePropertyPlayableAsset, SpritePropertyTrack, SpriteRotation, StarType, StateMachineNode, StateMachineNodeData, StateNode, StateNodeData, StaticValue, SubCompositionClipPlayable, SubCompositionMixerPlayable, SubCompositionPlayableAsset, SubCompositionTrack, TEMPLATE_USE_OFFSCREEN_CANVAS, TEXTURE_UNIFORM_MAP, TangentMode, TextCache, TextComponent, TextComponentBase, TextLayout, TextLoader, TextStyle, Texture, TextureFactory, TextureLoadAction, TexturePaintScaleMode, TextureSourceType, TextureStoreAction, ThreeComposition, ThreeDisplayObject, ThreeEngine, ThreeMaterial, ThreeSpriteComponent, ThreeTextComponent, ThreeTexture, Ticker, TimelineAsset, TimelineClip, TimelineInstance, TrackAsset, TrackMixerPlayable, TrackType, Transform, TransformMixerPlayable, TransformPlayable, TransformPlayableAsset, TransformTrack, TransitionNode, TransitionNodeData, TransitionState, Triangle, TrimPath, TrimPathMode, UpdateModes, VFXItem, ValueGetter, ValueNode, Vector2Curve, Vector2PropertyMixerPlayable, Vector2PropertyPlayableAsset, Vector2PropertyTrack, Vector3Curve, Vector3PropertyMixerPlayable, Vector3PropertyTrack, Vector3ropertyPlayableAsset, Vector4Curve, Vector4PropertyMixerPlayable, Vector4PropertyPlayableAsset, Vector4PropertyTrack, VertexBuffer, WeightedMode, addByOrder, addItem, addItemWithOrder, applyMixins, assertExist, asserts, base64ToFile, breakOpportunityAfter, buildBezierData, buildEasingCurve, buildLine, calculateTranslation, canUseBOM, canvasPool, closePointEps, colorGradingFrag, colorStopsFromGradient, colorToArr$1 as colorToArr, combineImageTemplate, createGLContext, createKeyFrameMeta, createShape, createTypedArray, createValueGetter, curveEps, decimalEqual, deserializeMipmapTexture, earcut, effectsClass, effectsClassStore, enlargeBuffer, ensureFixedNumber, ensureVec3, extractMinAndMax, gaussianDownHFrag, gaussianDownVFrag, gaussianUpFrag, generateEmptyTexture, generateEmptyTypedArray, generateGUID, generateHalfFloatTexture, generateWhiteTexture, getBackgroundImage, getBytesPerElement, getClass, getColorFromGradientStops, getConfig, getControlPoints, getDataByteLength, getDataType, getDefaultTextureFactory, getGeometryByShape, getGeometryTriangles, getKeyFrameMetaByRawValue, getMergedStore, getNodeDataClass, getParticleMeshShader, getPixelRatio, getPluginUsageInfo, getPreMultiAlpha, getStandardComposition, getStandardImage, getStandardItem, getStandardJSON, getTextureSize, glContext, glType2VertexFormatType, gpuTimer, imageDataFromColor, imageDataFromGradient, initErrors, initGLContext, integrate, interpolateColor, isAlipayMiniApp, isAndroid, isArray, isBreakChar, isCJKLike, isCanvas, isFunction, isIOS, isIOSByUA, isMiniProgram, isObject, isOpenHarmony, isPlainObject, isPowerOfTwo, isSafeFontFamily, isSimulatorCellPhone, isString, isUniformStruct, isUniformStructArray, isValidFontFamily, isWebGL2, isWechatMiniApp, itemFrag, itemVert, loadAVIFOptional, loadBinary, loadBlob, loadImage, loadMedia, loadVideo, loadWebPOptional, logger, index as math, modifyMaxKeyframeShader, nearestPowerOfTwo, nodeDataClass, noop, normalizeColor, numberToFix, oldBezierKeyFramesToNew, parsePercent$1 as parsePercent, particleFrag, particleOriginTranslateMap$1 as particleOriginTranslateMap, particleUniformTypeMap, particleVert, passRenderLevel, pluginLoaderMap, randomInRange, registerPlugin, removeItem, rotateVec2, screenMeshVert, serialize, setBlendMode, setConfig, setDefaultTextureFactory, setMaskMode, setRayFromCamera, setSideMode, setUniformValue, sortByOrder, index$1 as spec, textureLoaderRegistry, thresholdFrag, throwDestroyedError, toBufferView, trailVert, translatePoint, trianglesFromRect, unregisterPlugin, valIfUndefined, value, valueDefine, vecFill, vecMulCombine, version, vertexFormatType2GLType };