@galacean/effects-threejs 1.6.0-beta.0 → 1.6.0-beta.2

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: v1.6.0-beta.0
6
+ * Version: v1.6.0-beta.2
7
7
  */
8
8
 
9
9
  import * as THREE from 'three';
@@ -13518,6 +13518,14 @@ var InteractVFXItem = /** @class */ (function (_super) {
13518
13518
  function InteractVFXItem(props, composition) {
13519
13519
  var _a;
13520
13520
  var _this = _super.call(this, props, composition) || this;
13521
+ /**
13522
+ * 拖拽的惯性衰减系数,范围[0, 1], 越大惯性越强
13523
+ */
13524
+ _this.downgrade = 0.95;
13525
+ /**
13526
+ * 拖拽的距离映射系数,越大越容易拖动
13527
+ */
13528
+ _this.dragRatio = [1, 1];
13521
13529
  _this.engine = (_a = _this.composition) === null || _a === void 0 ? void 0 : _a.getEngine();
13522
13530
  return _this;
13523
13531
  }
@@ -13528,8 +13536,23 @@ var InteractVFXItem = /** @class */ (function (_super) {
13528
13536
  enumerable: false,
13529
13537
  configurable: true
13530
13538
  });
13539
+ Object.defineProperty(InteractVFXItem.prototype, "enable", {
13540
+ get: function () {
13541
+ return this.enabled;
13542
+ },
13543
+ set: function (enable) {
13544
+ this.enabled = enable;
13545
+ if (!enable) {
13546
+ // 立刻停止惯性滑动
13547
+ this.bouncingArg = null;
13548
+ }
13549
+ },
13550
+ enumerable: false,
13551
+ configurable: true
13552
+ });
13531
13553
  InteractVFXItem.prototype.onConstructed = function (options) {
13532
13554
  this.ui = options.content;
13555
+ this.enabled = true;
13533
13556
  };
13534
13557
  InteractVFXItem.prototype.onLifetimeBegin = function (composition) {
13535
13558
  var _a, _b, _c;
@@ -13548,9 +13571,8 @@ var InteractVFXItem = /** @class */ (function (_super) {
13548
13571
  if (!this.dragEvent || !this.bouncingArg) {
13549
13572
  return;
13550
13573
  }
13551
- var downgrade = 0.95;
13552
- this.bouncingArg.vx *= downgrade;
13553
- this.bouncingArg.vy *= downgrade;
13574
+ this.bouncingArg.vx *= this.downgrade;
13575
+ this.bouncingArg.vy *= this.downgrade;
13554
13576
  this.bouncingArg.dy += this.bouncingArg.vy;
13555
13577
  this.bouncingArg.dx += this.bouncingArg.vx;
13556
13578
  if (shouldIgnoreBouncing(this.bouncingArg)) {
@@ -13586,7 +13608,7 @@ var InteractVFXItem = /** @class */ (function (_super) {
13586
13608
  };
13587
13609
  };
13588
13610
  InteractVFXItem.prototype.getHitTestParams = function () {
13589
- if (!this.clickable) {
13611
+ if (!this.clickable || !this.canInteract()) {
13590
13612
  return;
13591
13613
  }
13592
13614
  var behavior = this.ui.options.behavior;
@@ -13622,13 +13644,13 @@ var InteractVFXItem = /** @class */ (function (_super) {
13622
13644
  var dragEvent;
13623
13645
  var handlerMap = {
13624
13646
  touchstart: function (event) {
13625
- var _a, _b;
13626
- if (!((_a = _this.composition) === null || _a === void 0 ? void 0 : _a.interactive)) {
13647
+ var _a;
13648
+ if (!_this.canInteract()) {
13627
13649
  return;
13628
13650
  }
13629
13651
  _this.dragEvent = null;
13630
13652
  _this.bouncingArg = null;
13631
- var camera = (_b = _this.composition) === null || _b === void 0 ? void 0 : _b.camera;
13653
+ var camera = (_a = _this.composition) === null || _a === void 0 ? void 0 : _a.camera;
13632
13654
  dragEvent = {
13633
13655
  x: event.x,
13634
13656
  y: event.y,
@@ -13643,8 +13665,7 @@ var InteractVFXItem = /** @class */ (function (_super) {
13643
13665
  _this.bouncingArg = event;
13644
13666
  },
13645
13667
  touchend: function (event) {
13646
- var _a;
13647
- if (!((_a = _this.composition) === null || _a === void 0 ? void 0 : _a.interactive)) {
13668
+ if (!_this.canInteract()) {
13648
13669
  return;
13649
13670
  }
13650
13671
  var bouncingArg = _this.bouncingArg;
@@ -13671,36 +13692,40 @@ var InteractVFXItem = /** @class */ (function (_super) {
13671
13692
  // OVERRIDE
13672
13693
  };
13673
13694
  InteractVFXItem.prototype.handleDragMove = function (evt, event) {
13674
- var _a, _b, _c;
13675
- if (!(evt && evt.cameraParam) || !((_a = this.composition) === null || _a === void 0 ? void 0 : _a.interactive)) {
13695
+ var _a, _b;
13696
+ if (!(evt === null || evt === void 0 ? void 0 : evt.cameraParam) || !this.canInteract() || !this.composition) {
13676
13697
  return;
13677
13698
  }
13678
13699
  var options = this.ui.options;
13679
- var _d = evt.cameraParam, position = _d.position, fov = _d.fov;
13700
+ var _c = evt.cameraParam, position = _c.position, fov = _c.fov;
13680
13701
  var dy = event.dy;
13681
13702
  var dx = event.dx * event.width / event.height;
13682
13703
  var depth = position[2];
13683
13704
  var sp = Math.tan(fov * Math.PI / 180 / 2) * Math.abs(depth);
13684
13705
  var height = dy * sp;
13685
13706
  var width = dx * sp;
13686
- var nx = position[0] - width;
13687
- var ny = position[1] - height;
13707
+ var nx = position[0] - this.dragRatio[0] * width;
13708
+ var ny = position[1] - this.dragRatio[1] * height;
13688
13709
  if (options.dxRange) {
13689
- var _e = __read$3(options.dxRange, 2), min = _e[0], max = _e[1];
13710
+ var _d = __read$3(options.dxRange, 2), min = _d[0], max = _d[1];
13690
13711
  nx = clamp$1(nx, min, max);
13691
13712
  if (nx !== min && nx !== max && min !== max) {
13692
- (_b = event.origin) === null || _b === void 0 ? void 0 : _b.preventDefault();
13713
+ (_a = event.origin) === null || _a === void 0 ? void 0 : _a.preventDefault();
13693
13714
  }
13694
13715
  }
13695
13716
  if (options.dyRange) {
13696
- var _f = __read$3(options.dyRange, 2), min = _f[0], max = _f[1];
13717
+ var _e = __read$3(options.dyRange, 2), min = _e[0], max = _e[1];
13697
13718
  ny = clamp$1(ny, min, max);
13698
13719
  if (ny !== min && ny !== max && min !== max) {
13699
- (_c = event.origin) === null || _c === void 0 ? void 0 : _c.preventDefault();
13720
+ (_b = event.origin) === null || _b === void 0 ? void 0 : _b.preventDefault();
13700
13721
  }
13701
13722
  }
13702
13723
  this.composition.camera.position = new Vector3(nx, ny, depth);
13703
13724
  };
13725
+ InteractVFXItem.prototype.canInteract = function () {
13726
+ var _a;
13727
+ return Boolean((_a = this.composition) === null || _a === void 0 ? void 0 : _a.interactive) && this.enabled;
13728
+ };
13704
13729
  return InteractVFXItem;
13705
13730
  }(VFXItem));
13706
13731
  function shouldIgnoreBouncing(arg, mul) {
@@ -20257,32 +20282,37 @@ var TextLayout = /** @class */ (function () {
20257
20282
  this.textAlign = textAlign;
20258
20283
  this.lineHeight = lineHeight;
20259
20284
  }
20260
- TextLayout.prototype.getOffsetY = function (style) {
20261
- var offsetY = 0;
20262
- var offset = (style.fontSize + style.outlineWidth) * style.fontScale;
20285
+ TextLayout.prototype.getOffsetY = function (style, lineCount, lineHeight) {
20286
+ var offsetResult = 0;
20287
+ var fontSize = style.fontSize, outlineWidth = style.outlineWidth, fontScale = style.fontScale;
20288
+ // 计算基础偏移量
20289
+ var baseOffset = (fontSize + outlineWidth) * fontScale;
20290
+ // /3 计算Y轴偏移量,以匹配编辑器行为
20291
+ var offsetY = (lineHeight - fontSize) / 3;
20292
+ var commonCalculation = lineHeight * (lineCount - 1);
20263
20293
  switch (this.textBaseline) {
20264
- case 0:
20265
- offsetY = offset;
20294
+ case TextBaseline$1.top:
20295
+ offsetResult = baseOffset + offsetY;
20266
20296
  break;
20267
- case 1:
20268
- offsetY = (this.height + offset) / 2; // fonSize;
20297
+ case TextBaseline$1.middle:
20298
+ offsetResult = (this.height * fontScale - commonCalculation + baseOffset) / 2;
20269
20299
  break;
20270
- case 2:
20271
- offsetY = this.height - offset / 2;
20300
+ case TextBaseline$1.bottom:
20301
+ offsetResult = (this.height * fontScale - commonCalculation) - offsetY;
20272
20302
  break;
20273
20303
  }
20274
- return offsetY;
20304
+ return offsetResult;
20275
20305
  };
20276
20306
  TextLayout.prototype.getOffsetX = function (style, maxWidth) {
20277
20307
  var offsetX = 0;
20278
20308
  switch (this.textAlign) {
20279
- case 0:
20309
+ case TextAlignment$1.left:
20280
20310
  offsetX = style.outlineWidth * style.fontScale;
20281
20311
  break;
20282
- case 1:
20312
+ case TextAlignment$1.middle:
20283
20313
  offsetX = (this.width * style.fontScale - maxWidth) / 2;
20284
20314
  break;
20285
- case 2:
20315
+ case TextAlignment$1.right:
20286
20316
  offsetX = (this.width * style.fontScale - maxWidth);
20287
20317
  break;
20288
20318
  }
@@ -20516,7 +20546,7 @@ var TextItem = /** @class */ (function (_super) {
20516
20546
  var fontScale = style.fontScale;
20517
20547
  var width = (layout.width + style.fontOffset) * fontScale;
20518
20548
  var height = layout.height * fontScale;
20519
- var fontSize = style.fontSize * fontScale;
20549
+ style.fontSize * fontScale;
20520
20550
  var lineHeight = layout.lineHeight * fontScale;
20521
20551
  this.char = (this.text || '').split('');
20522
20552
  this.canvas.width = width;
@@ -20536,10 +20566,9 @@ var TextItem = /** @class */ (function (_super) {
20536
20566
  // 文本颜色
20537
20567
  context.fillStyle = "rgba(".concat(style.textColor[0], ", ").concat(style.textColor[1], ", ").concat(style.textColor[2], ", ").concat(style.textColor[3], ")");
20538
20568
  var charsInfo = [];
20539
- // /3 为了和编辑器行为保持一致
20540
- var offsetY = (lineHeight - fontSize) / 3;
20541
20569
  var x = 0;
20542
- var y = layout.getOffsetY(style) + offsetY;
20570
+ var lineCount = this.text.split('\n').length;
20571
+ var y = layout.getOffsetY(style, lineCount, lineHeight);
20543
20572
  var charsArray = [];
20544
20573
  var charOffsetX = [];
20545
20574
  for (var i = 0; i < this.char.length; i++) {
@@ -24006,27 +24035,28 @@ var AssetManager = /** @class */ (function () {
24006
24035
  AssetManager.prototype.loadScene = function (url, renderer, options) {
24007
24036
  var _a, _b, _c;
24008
24037
  return __awaiter(this, void 0, void 0, function () {
24009
- var rawJSON, assetUrl, startTime, timeInfos, gpuInstance, asyncShaderCompile, compressedTexture, loadTimer, cancelLoading, waitPromise, hookTimeInfo, loadResourcePromise;
24038
+ var rawJSON, assetUrl, startTime, timeInfoMessages, gpuInstance, asyncShaderCompile, compressedTexture, timeInfos, loadTimer, cancelLoading, waitPromise, hookTimeInfo, loadResourcePromise;
24010
24039
  var _this = this;
24011
24040
  return __generator(this, function (_d) {
24012
24041
  assetUrl = isString(url) ? url : this.id;
24013
24042
  startTime = performance.now();
24014
- timeInfos = [];
24043
+ timeInfoMessages = [];
24015
24044
  gpuInstance = renderer === null || renderer === void 0 ? void 0 : renderer.engine.gpuCapability;
24016
24045
  asyncShaderCompile = (_b = (_a = gpuInstance === null || gpuInstance === void 0 ? void 0 : gpuInstance.detail) === null || _a === void 0 ? void 0 : _a.asyncShaderCompile) !== null && _b !== void 0 ? _b : false;
24017
24046
  compressedTexture = (_c = gpuInstance === null || gpuInstance === void 0 ? void 0 : gpuInstance.detail.compressedTexture) !== null && _c !== void 0 ? _c : 0;
24047
+ timeInfos = {};
24018
24048
  cancelLoading = false;
24019
24049
  waitPromise = new Promise(function (resolve, reject) {
24020
24050
  loadTimer = window.setTimeout(function () {
24021
24051
  cancelLoading = true;
24022
24052
  _this.removeTimer(loadTimer);
24023
24053
  var totalTime = performance.now() - startTime;
24024
- reject("Load time out: totalTime: ".concat(totalTime.toFixed(4), "ms ").concat(timeInfos.join(' '), ", url: ").concat(assetUrl));
24054
+ reject("Load time out: totalTime: ".concat(totalTime.toFixed(4), "ms ").concat(timeInfoMessages.join(' '), ", url: ").concat(assetUrl));
24025
24055
  }, _this.timeout * 1000);
24026
24056
  _this.timers.push(loadTimer);
24027
24057
  });
24028
24058
  hookTimeInfo = function (label, func) { return __awaiter(_this, void 0, void 0, function () {
24029
- var st, result, e_1;
24059
+ var st, result, time, e_1;
24030
24060
  return __generator(this, function (_a) {
24031
24061
  switch (_a.label) {
24032
24062
  case 0:
@@ -24038,7 +24068,9 @@ var AssetManager = /** @class */ (function () {
24038
24068
  return [4 /*yield*/, func()];
24039
24069
  case 2:
24040
24070
  result = _a.sent();
24041
- timeInfos.push("[".concat(label, ": ").concat((performance.now() - st).toFixed(2), "]"));
24071
+ time = performance.now() - st;
24072
+ timeInfoMessages.push("[".concat(label, ": ").concat(time.toFixed(2), "]"));
24073
+ timeInfos[label] = time;
24042
24074
  return [2 /*return*/, result];
24043
24075
  case 3:
24044
24076
  e_1 = _a.sent();
@@ -24097,7 +24129,7 @@ var AssetManager = /** @class */ (function () {
24097
24129
  return [4 /*yield*/, Promise.all([
24098
24130
  hookTimeInfo('processBins', function () { return _this.processBins(bins_1); }),
24099
24131
  hookTimeInfo('processImages', function () { return _this.processImages(images_2, usedImages_1, compressedTexture); }),
24100
- hookTimeInfo("".concat(asyncShaderCompile ? 'async' : 'sync', " compile"), function () { return _this.precompile(compositions_1, pluginSystem_1, renderer, options); }),
24132
+ hookTimeInfo("".concat(asyncShaderCompile ? 'async' : 'sync', "Compile"), function () { return _this.precompile(compositions_1, pluginSystem_1, renderer, options); }),
24101
24133
  ])];
24102
24134
  case 8:
24103
24135
  _d = __read$3.apply(void 0, [_e.sent(), 2]), loadedBins_1 = _d[0], loadedImages_1 = _d[1];
@@ -24109,6 +24141,7 @@ var AssetManager = /** @class */ (function () {
24109
24141
  loadedTextures = _e.sent();
24110
24142
  jsonScene_1.compositions = this.updateSceneData(jsonScene_1.compositions);
24111
24143
  scene = {
24144
+ timeInfos: timeInfos,
24112
24145
  url: url,
24113
24146
  renderLevel: this.options.renderLevel,
24114
24147
  storage: {},
@@ -24127,11 +24160,13 @@ var AssetManager = /** @class */ (function () {
24127
24160
  _e.label = 12;
24128
24161
  case 12:
24129
24162
  totalTime = performance.now() - startTime;
24130
- logger.info("Load asset: totalTime: ".concat(totalTime.toFixed(4), "ms ").concat(timeInfos.join(' '), ", url: ").concat(assetUrl));
24163
+ logger.info("Load asset: totalTime: ".concat(totalTime.toFixed(4), "ms ").concat(timeInfoMessages.join(' '), ", url: ").concat(assetUrl));
24131
24164
  window.clearTimeout(loadTimer);
24132
24165
  this.removeTimer(loadTimer);
24133
24166
  scene.totalTime = totalTime;
24134
24167
  scene.startTime = startTime;
24168
+ // 各部分分段时长
24169
+ scene.timeInfos = timeInfos;
24135
24170
  return [2 /*return*/, scene];
24136
24171
  }
24137
24172
  });
@@ -24979,7 +25014,7 @@ var Composition = /** @class */ (function () {
24979
25014
  * @param props - composition 的创建参数
24980
25015
  */
24981
25016
  function Composition(props, scene) {
24982
- var _a;
25017
+ var _a, _b;
24983
25018
  /**
24984
25019
  * 动画播放速度
24985
25020
  */
@@ -25008,7 +25043,7 @@ var Composition = /** @class */ (function () {
25008
25043
  this.paused = false;
25009
25044
  this.lastVideoUpdateTime = 0;
25010
25045
  this.postLoaders = [];
25011
- var _b = props.reusable, reusable = _b === void 0 ? false : _b, _c = props.speed, speed = _c === void 0 ? 1 : _c, _d = props.baseRenderOrder, baseRenderOrder = _d === void 0 ? 0 : _d, renderer = props.renderer, onPlayerPause = props.onPlayerPause, onMessageItem = props.onMessageItem, onEnd = props.onEnd, event = props.event, width = props.width, height = props.height;
25046
+ var _c = props.reusable, reusable = _c === void 0 ? false : _c, _d = props.speed, speed = _d === void 0 ? 1 : _d, _e = props.baseRenderOrder, baseRenderOrder = _e === void 0 ? 0 : _e, renderer = props.renderer, onPlayerPause = props.onPlayerPause, onMessageItem = props.onMessageItem, onEnd = props.onEnd, event = props.event, width = props.width, height = props.height;
25012
25047
  this.compositionSourceManager = new CompositionSourceManager(scene, renderer.engine);
25013
25048
  scene.jsonScene.imgUsage = undefined;
25014
25049
  if (reusable) {
@@ -25016,7 +25051,7 @@ var Composition = /** @class */ (function () {
25016
25051
  scene.textures = undefined;
25017
25052
  scene.consumed = true;
25018
25053
  }
25019
- var _e = this.compositionSourceManager, sourceContent = _e.sourceContent, pluginSystem = _e.pluginSystem, imgUsage = _e.imgUsage, totalTime = _e.totalTime, renderLevel = _e.renderLevel, refCompositionProps = _e.refCompositionProps;
25054
+ var _f = this.compositionSourceManager, sourceContent = _f.sourceContent, pluginSystem = _f.pluginSystem, imgUsage = _f.imgUsage, totalTime = _f.totalTime, renderLevel = _f.renderLevel, refCompositionProps = _f.refCompositionProps;
25020
25055
  assertExist(sourceContent);
25021
25056
  this.refCompositionProps = refCompositionProps;
25022
25057
  var vfxItem = new CompVFXItem(sourceContent, this);
@@ -25033,7 +25068,7 @@ var Composition = /** @class */ (function () {
25033
25068
  this.renderer = renderer;
25034
25069
  this.texInfo = imageUsage !== null && imageUsage !== void 0 ? imageUsage : {};
25035
25070
  this.event = event;
25036
- this.statistic = { loadTime: totalTime !== null && totalTime !== void 0 ? totalTime : 0, loadStart: (_a = scene.startTime) !== null && _a !== void 0 ? _a : 0, firstFrameTime: 0 };
25071
+ this.statistic = { loadTime: totalTime !== null && totalTime !== void 0 ? totalTime : 0, loadStart: (_a = scene.startTime) !== null && _a !== void 0 ? _a : 0, firstFrameTime: 0, precompileTime: (_b = scene.timeInfos['asyncCompile']) !== null && _b !== void 0 ? _b : scene.timeInfos['syncCompile'] };
25037
25072
  this.reusable = reusable;
25038
25073
  this.speed = speed;
25039
25074
  this.renderLevel = renderLevel;
@@ -27423,7 +27458,7 @@ Geometry.create = function (engine, options) {
27423
27458
  Mesh.create = function (engine, props) {
27424
27459
  return new ThreeMesh(engine, props);
27425
27460
  };
27426
- var version = "1.6.0-beta.0";
27461
+ var version = "1.6.0-beta.2";
27427
27462
  logger.info('THREEJS plugin version: ' + version);
27428
27463
 
27429
27464
  export { AbstractPlugin, AssetManager, BYTES_TYPE_MAP, BezierCurve, BezierCurvePath, 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, CalculateItem, CalculateLoader, CalculateVFXItem, Camera, CameraController, CameraVFXItem, CameraVFXItemLoader, Composition, CompositionSourceManager, DEFAULT_FONTS, DestroyOptions, Downloader, EFFECTS_COPY_MESH_NAME, EVENT_TYPE_CLICK, EVENT_TYPE_TOUCH_END, EVENT_TYPE_TOUCH_MOVE, EVENT_TYPE_TOUCH_START, Engine, EventSystem, FILTER_NAME_NONE, FilterMode, FilterSpriteVFXItem, Float16ArrayWrapper, FrameBuffer, GLSLVersion, GPUCapability, Geometry, GlobalUniforms, GradientValue, HELP_LINK, HitTestType, InteractBehavior$1 as InteractBehavior, InteractItem, InteractLoader, InteractMesh, InteractVFXItem, Item, KTXTexture, LineSegments, LinearValue, Material, MaterialDataBlock, MaterialRenderType, Mesh, OrderType, PLAYER_OPTIONS_ENV_EDITOR, POST_PROCESS_SETTINGS, ParticleLoader, ParticleMesh, ParticleSystem, ParticleVFXItem, PassTextureCache, PluginSystem, QCanvasViewer, QText, QTextWrapMode, RENDER_PASS_NAME_PREFIX, RENDER_PREFER_LOOKUP_TEXTURE, RUNTIME_ENV, RandomSetValue, RandomValue, RandomVectorValue, RenderBuffer, RenderFrame, RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, RenderTargetHandle, RenderTextureFormat, Renderer, 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, Shader, ShaderCompileResultStatus, ShaderType, SpriteItem, SpriteLoader, SpriteMesh, SpriteVFXItem, StaticValue, TEMPLATE_USE_OFFSCREEN_CANVAS, TEXTURE_UNIFORM_MAP, TextItem, TextLoader, TextMesh, TextVFXItem, Texture, TextureFactory, TextureLoadAction, TextureSourceType, TextureStoreAction, ThreeComposition, ThreeDisplayObject, ThreeMaterial, ThreeTexture, Ticker, TimelineComponent, Transform, VFXItem, ValueGetter, addByOrder, addItem, addItemWithOrder, alphaFrameFrag, alphaMaskFrag, assertExist, asserts, blend, bloomMixVert, bloomThresholdVert, calculateTranslation, cameraMove_frag as cameraMoveFrag, cameraMoveVert, canvasPool, colorGradingFrag, colorStopsFromGradient, colorToArr$1 as colorToArr, combineImageTemplate, combineImageTemplate1, combineImageTemplate1Async, combineImageTemplate2, combineImageTemplate2Async, combineImageTemplateAsync, compatible_frag as compatibleFrag, compatible_vert as compatibleVert, convertAnchor, copyFrag, createCopyShader, createFilter, createFilterShaders, createGLContext, createKeyFrameMeta, createShaderWithMarcos, createShape, createVFXItem, createValueGetter, decimalEqual, deepClone, defaultGlobalVolume, defaultPlugins, delayFrag, deserializeMipmapTexture, distortionFrag, distortionVert, earcut, enlargeBuffer, ensureVec3, filters, findPreviousRenderPass, gaussianDown_frag as gaussianDownFrag, gaussianDownHFrag, gaussianDownVFrag, gaussianUpFrag, generateEmptyTypedArray, generateHalfFloatTexture, getBackgroundImage, getColorFromGradientStops, getConfig, getDefaultTemplateCanvasPool, getDefaultTextureFactory, getGeometryByShape, getGeometryTriangles, getImageItemRenderInfo, getKTXTextureOptions, getKeyFrameMetaByRawValue, getParticleMeshShader, getPixelRatio, getPreMultiAlpha, getStandardComposition, getStandardImage, getStandardItem, getStandardJSON, getTextureSize, glContext, gpuTimer, imageDataFromColor, imageDataFromGradient, initErrors, initGLContext, integrate, interpolateColor, isAlipayMiniApp, isAndroid, isArray, isFunction, isIOS, isObject, isScene, isSimulatorCellPhone, isString, isUniformStruct, isUniformStructArray, isValidFontFamily, isWebGL2, itemFrag, itemFrameFrag, itemVert, loadBinary, loadBlob, loadImage, loadMedia, loadVideo, loadWebPOptional, logger, index as math, maxSpriteMeshItemCount, maxSpriteTextureCount, modifyMaxKeyframeShader, nearestPowerOfTwo, noop, numberToFix, parsePercent$1 as parsePercent, particleFrag, particleOriginTranslateMap, particleUniformTypeMap, particleVert, pluginLoaderMap, pointOnLine, random, registerFilter, registerFilters, registerPlugin, removeItem, requestAsync, rotateVec2, screenMeshVert, setBlendMode, setConfig, setDefaultTextureFactory, setMaskMode, setMaxSpriteMeshItemCount, setRayFromCamera, setSideMode, setSpriteMeshMaxFragmentTextures, setSpriteMeshMaxItemCountByGPU, setUniformValue, sortByOrder, index$1 as spec, spriteMeshShaderFromFilter, spriteMeshShaderFromRenderInfo, spriteMeshShaderIdFromRenderInfo, thresholdFrag, throwDestroyedError, trailVert, translatePoint, trianglesFromRect, unregisterPlugin, valIfUndefined, value, valueDefine, vecAssign, vecFill, vecMulCombine, vecNormalize, version };