@galacean/effects-core 2.8.2 → 2.8.4
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/components/base-render-component.d.ts +1 -0
- package/dist/index.js +110 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +110 -32
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/text/text-item.d.ts +20 -0
- package/dist/plugins/text/text-layout.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime core for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v2.8.
|
|
6
|
+
* Version: v2.8.4
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -2661,6 +2661,11 @@ function asserts(condition, msg) {
|
|
|
2661
2661
|
* @returns
|
|
2662
2662
|
*/ function isValidFontFamily(fontFamily) {
|
|
2663
2663
|
// iOS 11/12 不支持自定义字体开头为数字的名称,特殊字符也有风险
|
|
2664
|
+
return isSafeFontFamily(fontFamily) || !isSimulatorCellPhone();
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2667
|
+
* @internal
|
|
2668
|
+
*/ function isSafeFontFamily(fontFamily) {
|
|
2664
2669
|
return /^[^\d.][\w-]*$/.test(fontFamily);
|
|
2665
2670
|
}
|
|
2666
2671
|
|
|
@@ -18366,6 +18371,15 @@ PostProcessVolume = __decorate([
|
|
|
18366
18371
|
});
|
|
18367
18372
|
})();
|
|
18368
18373
|
};
|
|
18374
|
+
_proto.onUpdate = function onUpdate(dt) {
|
|
18375
|
+
for(var i = 0; i < this.materials.length; i++){
|
|
18376
|
+
var material = this.materials[i];
|
|
18377
|
+
material.setVector2("_Size", this.transform.size);
|
|
18378
|
+
if (this.renderer.renderMode === RenderMode.BILLBOARD || this.renderer.renderMode === RenderMode.VERTICAL_BILLBOARD || this.renderer.renderMode === RenderMode.HORIZONTAL_BILLBOARD) {
|
|
18379
|
+
material.setVector3("_Scale", this.transform.scale);
|
|
18380
|
+
}
|
|
18381
|
+
}
|
|
18382
|
+
};
|
|
18369
18383
|
_proto.render = function render(renderer) {
|
|
18370
18384
|
if (!this.getVisible()) {
|
|
18371
18385
|
return;
|
|
@@ -18427,12 +18441,7 @@ PostProcessVolume = __decorate([
|
|
|
18427
18441
|
};
|
|
18428
18442
|
_proto.draw = function draw(renderer) {
|
|
18429
18443
|
for(var i = 0; i < this.materials.length; i++){
|
|
18430
|
-
|
|
18431
|
-
material.setVector2("_Size", this.transform.size);
|
|
18432
|
-
if (this.renderer.renderMode === RenderMode.BILLBOARD || this.renderer.renderMode === RenderMode.VERTICAL_BILLBOARD || this.renderer.renderMode === RenderMode.HORIZONTAL_BILLBOARD) {
|
|
18433
|
-
material.setVector3("_Scale", this.transform.scale);
|
|
18434
|
-
}
|
|
18435
|
-
renderer.drawGeometry(this.geometry, this.transform.getWorldMatrix(), material, i);
|
|
18444
|
+
renderer.drawGeometry(this.geometry, this.transform.getWorldMatrix(), this.materials[i], i);
|
|
18436
18445
|
}
|
|
18437
18446
|
};
|
|
18438
18447
|
_proto.fromData = function fromData(data) {
|
|
@@ -25690,6 +25699,7 @@ var SpriteComponent = /*#__PURE__*/ function(MaskableGraphic) {
|
|
|
25690
25699
|
var _proto = SpriteComponent.prototype;
|
|
25691
25700
|
_proto.onUpdate = function onUpdate(dt) {
|
|
25692
25701
|
var _this = this;
|
|
25702
|
+
MaskableGraphic.prototype.onUpdate.call(this, dt);
|
|
25693
25703
|
var time = this.time;
|
|
25694
25704
|
var duration = this.duration;
|
|
25695
25705
|
var textureAnimation = this.textureSheetAnimation;
|
|
@@ -28683,11 +28693,11 @@ var TextLayout = /*#__PURE__*/ function() {
|
|
|
28683
28693
|
* @param totalLineHeight - 可选的实际总行高,用于替代默认计算
|
|
28684
28694
|
* @returns - 行高偏移值
|
|
28685
28695
|
*/ _proto.getOffsetY = function getOffsetY(style, lineCount, lineHeight, fontSize, totalLineHeight) {
|
|
28686
|
-
var
|
|
28696
|
+
var fontScale = style.fontScale;
|
|
28687
28697
|
// /3 计算Y轴偏移量,以匹配编辑器行为
|
|
28688
28698
|
var offsetY = (lineHeight - fontSize) / 3;
|
|
28689
28699
|
// 计算基础偏移量
|
|
28690
|
-
var baseOffset = fontSize
|
|
28700
|
+
var baseOffset = fontSize;
|
|
28691
28701
|
var commonCalculation = totalLineHeight !== undefined ? totalLineHeight : lineHeight * (lineCount - 1);
|
|
28692
28702
|
var offsetResult = 0;
|
|
28693
28703
|
switch(this.textVerticalAlign){
|
|
@@ -28703,11 +28713,16 @@ var TextLayout = /*#__PURE__*/ function() {
|
|
|
28703
28713
|
}
|
|
28704
28714
|
return offsetResult;
|
|
28705
28715
|
};
|
|
28706
|
-
|
|
28716
|
+
/**
|
|
28717
|
+
* 获取初始的水平偏移值
|
|
28718
|
+
* @param style - 字体基础数据
|
|
28719
|
+
* @param maxWidth - 最大行宽
|
|
28720
|
+
* @returns - 水平偏移值
|
|
28721
|
+
*/ _proto.getOffsetX = function getOffsetX(style, maxWidth) {
|
|
28707
28722
|
var offsetX = 0;
|
|
28708
28723
|
switch(this.textAlign){
|
|
28709
28724
|
case TextAlignment.left:
|
|
28710
|
-
offsetX =
|
|
28725
|
+
offsetX = 0;
|
|
28711
28726
|
break;
|
|
28712
28727
|
case TextAlignment.middle:
|
|
28713
28728
|
offsetX = (this.width * style.fontScale - maxWidth) / 2;
|
|
@@ -28783,7 +28798,8 @@ var TextStyle = /*#__PURE__*/ function() {
|
|
|
28783
28798
|
1
|
|
28784
28799
|
];
|
|
28785
28800
|
this.outlineWidth = 0;
|
|
28786
|
-
|
|
28801
|
+
var _outline_outlineWidth;
|
|
28802
|
+
if (outline && ((_outline_outlineWidth = outline.outlineWidth) != null ? _outline_outlineWidth : 0) > 0) {
|
|
28787
28803
|
this.isOutlined = true;
|
|
28788
28804
|
var _outline_outlineColor;
|
|
28789
28805
|
this.outlineColor = [].concat((_outline_outlineColor = outline.outlineColor) != null ? _outline_outlineColor : [
|
|
@@ -28792,8 +28808,8 @@ var TextStyle = /*#__PURE__*/ function() {
|
|
|
28792
28808
|
1,
|
|
28793
28809
|
1
|
|
28794
28810
|
]);
|
|
28795
|
-
var
|
|
28796
|
-
this.outlineWidth = (
|
|
28811
|
+
var _outline_outlineWidth1;
|
|
28812
|
+
this.outlineWidth = (_outline_outlineWidth1 = outline.outlineWidth) != null ? _outline_outlineWidth1 : 0;
|
|
28797
28813
|
}
|
|
28798
28814
|
// 重置阴影状态
|
|
28799
28815
|
this.hasShadow = false;
|
|
@@ -29054,6 +29070,10 @@ var TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
|
|
|
29054
29070
|
* 文本行数
|
|
29055
29071
|
*/ _this.lineCount = 0;
|
|
29056
29072
|
/**
|
|
29073
|
+
* 描边/阴影等特效导致的纹理扩容比例 X/Y
|
|
29074
|
+
*/ _this.effectScaleX = 1;
|
|
29075
|
+
_this.effectScaleY = 1;
|
|
29076
|
+
/**
|
|
29057
29077
|
* 每一行文本的最大宽度
|
|
29058
29078
|
*/ _this.maxLineWidth = 0;
|
|
29059
29079
|
/**
|
|
@@ -29115,6 +29135,16 @@ var TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
|
|
|
29115
29135
|
_proto.onUpdate = function onUpdate(dt) {
|
|
29116
29136
|
MaskableGraphic.prototype.onUpdate.call(this, dt);
|
|
29117
29137
|
this.updateTexture();
|
|
29138
|
+
// 覆盖基类每帧更新 size 行为,应用扩容比例
|
|
29139
|
+
for(var _iterator = _create_for_of_iterator_helper_loose(this.materials), _step; !(_step = _iterator()).done;){
|
|
29140
|
+
var material = _step.value;
|
|
29141
|
+
var sizeX = this.transform.size.x;
|
|
29142
|
+
var sizeY = this.transform.size.y;
|
|
29143
|
+
var _this_getTextureExpandScale = this.getTextureExpandScale(), scalex = _this_getTextureExpandScale[0], scaley = _this_getTextureExpandScale[1];
|
|
29144
|
+
sizeX *= scalex;
|
|
29145
|
+
sizeY *= scaley;
|
|
29146
|
+
material.setVector2("_Size", new Vector2(sizeX, sizeY));
|
|
29147
|
+
}
|
|
29118
29148
|
};
|
|
29119
29149
|
_proto.onDestroy = function onDestroy() {
|
|
29120
29150
|
MaskableGraphic.prototype.onDestroy.call(this);
|
|
@@ -29304,23 +29334,32 @@ var TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
|
|
|
29304
29334
|
var style = this.textStyle;
|
|
29305
29335
|
var layout = this.textLayout;
|
|
29306
29336
|
var fontScale = style.fontScale;
|
|
29307
|
-
var
|
|
29337
|
+
var baseWidth = (layout.width + style.fontOffset) * fontScale;
|
|
29308
29338
|
var finalHeight = layout.lineHeight * this.lineCount;
|
|
29309
29339
|
var fontSize = style.fontSize * fontScale;
|
|
29310
29340
|
var lineHeight = layout.lineHeight * fontScale;
|
|
29311
29341
|
style.fontDesc = this.getFontDesc(fontSize);
|
|
29312
29342
|
var char = (this.text || "").split("");
|
|
29343
|
+
var baseHeight = 0;
|
|
29313
29344
|
if (layout.autoWidth) {
|
|
29314
|
-
|
|
29345
|
+
baseHeight = finalHeight * fontScale;
|
|
29315
29346
|
this.item.transform.size.set(1, finalHeight / layout.height);
|
|
29316
29347
|
} else {
|
|
29317
|
-
|
|
29318
|
-
}
|
|
29319
|
-
var
|
|
29320
|
-
|
|
29348
|
+
baseHeight = layout.height * fontScale;
|
|
29349
|
+
}
|
|
29350
|
+
var _this_getEffectPadding = this.getEffectPadding(), padL = _this_getEffectPadding.padL, padR = _this_getEffectPadding.padR, padT = _this_getEffectPadding.padT, padB = _this_getEffectPadding.padB;
|
|
29351
|
+
var hasEffect = (padL | padR | padT | padB) !== 0;
|
|
29352
|
+
var texWidth = hasEffect ? Math.ceil(baseWidth + padL + padR) : baseWidth;
|
|
29353
|
+
var texHeight = hasEffect ? Math.ceil(baseHeight + padT + padB) : baseHeight;
|
|
29354
|
+
var shiftX = hasEffect ? padL : 0;
|
|
29355
|
+
var shiftY = hasEffect ? flipY ? padT : padB : 0;
|
|
29356
|
+
// 给渲染层用:扩容比例
|
|
29357
|
+
this.effectScaleX = baseWidth > 0 ? texWidth / baseWidth : 1;
|
|
29358
|
+
this.effectScaleY = baseHeight > 0 ? texHeight / baseHeight : 1;
|
|
29359
|
+
this.renderToTexture(texWidth, texHeight, flipY, function(context) {
|
|
29321
29360
|
// canvas size 变化后重新刷新 context
|
|
29322
|
-
if (_this.maxLineWidth >
|
|
29323
|
-
context.font = _this.getFontDesc(fontSize *
|
|
29361
|
+
if (_this.maxLineWidth > baseWidth && layout.overflow === TextOverflow.display) {
|
|
29362
|
+
context.font = _this.getFontDesc(fontSize * baseWidth / _this.maxLineWidth);
|
|
29324
29363
|
} else {
|
|
29325
29364
|
context.font = style.fontDesc;
|
|
29326
29365
|
}
|
|
@@ -29343,7 +29382,7 @@ var TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
|
|
|
29343
29382
|
var textMetrics = context.measureText(str);
|
|
29344
29383
|
// 和浏览器行为保持一致
|
|
29345
29384
|
x += layout.letterSpace * fontScale;
|
|
29346
|
-
if (x + textMetrics.width >
|
|
29385
|
+
if (x + textMetrics.width > baseWidth && i > 0 || str === "\n") {
|
|
29347
29386
|
charsInfo.push({
|
|
29348
29387
|
y: y,
|
|
29349
29388
|
width: x,
|
|
@@ -29367,14 +29406,27 @@ var TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
|
|
|
29367
29406
|
chars: charsArray,
|
|
29368
29407
|
charOffsetX: charOffsetX
|
|
29369
29408
|
});
|
|
29370
|
-
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
|
|
29409
|
+
// 先描边
|
|
29410
|
+
if (style.isOutlined && style.outlineWidth > 0) {
|
|
29411
|
+
charsInfo.forEach(function(charInfo) {
|
|
29412
|
+
var ox = layout.getOffsetX(style, charInfo.width);
|
|
29413
|
+
for(var i = 0; i < charInfo.chars.length; i++){
|
|
29414
|
+
var str = charInfo.chars[i];
|
|
29415
|
+
var drawX = shiftX + ox + charInfo.charOffsetX[i];
|
|
29416
|
+
var drawY = shiftY + charInfo.y;
|
|
29417
|
+
context.strokeText(str, drawX, drawY);
|
|
29375
29418
|
}
|
|
29376
|
-
context.fillText(str, x + charInfo.charOffsetX[i], charInfo.y);
|
|
29377
29419
|
});
|
|
29420
|
+
}
|
|
29421
|
+
// 再填充
|
|
29422
|
+
charsInfo.forEach(function(charInfo) {
|
|
29423
|
+
var ox = layout.getOffsetX(style, charInfo.width);
|
|
29424
|
+
for(var i = 0; i < charInfo.chars.length; i++){
|
|
29425
|
+
var str = charInfo.chars[i];
|
|
29426
|
+
var drawX = shiftX + ox + charInfo.charOffsetX[i];
|
|
29427
|
+
var drawY = shiftY + charInfo.y;
|
|
29428
|
+
context.fillText(str, drawX, drawY);
|
|
29429
|
+
}
|
|
29378
29430
|
});
|
|
29379
29431
|
if (style.hasShadow) {
|
|
29380
29432
|
context.shadowColor = "transparent";
|
|
@@ -29385,6 +29437,32 @@ var TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
|
|
|
29385
29437
|
_proto.renderText = function renderText(options) {
|
|
29386
29438
|
this.updateTexture();
|
|
29387
29439
|
};
|
|
29440
|
+
/**
|
|
29441
|
+
* 给渲染层用:获取特效扩容比例(描边/阴影导致的纹理扩容)
|
|
29442
|
+
* @returns
|
|
29443
|
+
*/ _proto.getTextureExpandScale = function getTextureExpandScale() {
|
|
29444
|
+
return [
|
|
29445
|
+
this.effectScaleX,
|
|
29446
|
+
this.effectScaleY
|
|
29447
|
+
];
|
|
29448
|
+
};
|
|
29449
|
+
/**
|
|
29450
|
+
* 获取描边和阴影的 padding 值(单位:px)
|
|
29451
|
+
* @returns
|
|
29452
|
+
*/ _proto.getEffectPadding = function getEffectPadding() {
|
|
29453
|
+
var style = this.textStyle;
|
|
29454
|
+
var hasDrawOutline = style.isOutlined && style.outlineWidth > 0;
|
|
29455
|
+
var outlinePad = hasDrawOutline ? Math.ceil(style.outlineWidth * 2 * style.fontScale) : 0;
|
|
29456
|
+
var hasShadow = style.hasShadow && (style.shadowBlur > 0 || style.shadowOffsetX !== 0 || style.shadowOffsetY !== 0);
|
|
29457
|
+
var shadowPad = hasShadow ? Math.ceil((Math.abs(style.shadowOffsetX) + Math.abs(style.shadowOffsetY) + style.shadowBlur) * style.fontScale) : 0;
|
|
29458
|
+
var pad = outlinePad + shadowPad;
|
|
29459
|
+
return {
|
|
29460
|
+
padL: pad,
|
|
29461
|
+
padR: pad,
|
|
29462
|
+
padT: pad,
|
|
29463
|
+
padB: pad
|
|
29464
|
+
};
|
|
29465
|
+
};
|
|
29388
29466
|
_proto.setAutoWidth = function setAutoWidth(value) {
|
|
29389
29467
|
var layout = this.textLayout;
|
|
29390
29468
|
var normalizedValue = !!value;
|
|
@@ -31533,7 +31611,7 @@ function getStandardSpriteContent(sprite, transform) {
|
|
|
31533
31611
|
return ret;
|
|
31534
31612
|
}
|
|
31535
31613
|
|
|
31536
|
-
var version$1 = "2.8.
|
|
31614
|
+
var version$1 = "2.8.4";
|
|
31537
31615
|
var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
|
|
31538
31616
|
var standardVersion = /^(\d+)\.(\d+)$/;
|
|
31539
31617
|
var reverseParticle = false;
|
|
@@ -35233,8 +35311,8 @@ registerPlugin("text", TextLoader);
|
|
|
35233
35311
|
registerPlugin("sprite", SpriteLoader);
|
|
35234
35312
|
registerPlugin("particle", ParticleLoader);
|
|
35235
35313
|
registerPlugin("interact", InteractLoader);
|
|
35236
|
-
var version = "2.8.
|
|
35314
|
+
var version = "2.8.4";
|
|
35237
35315
|
logger.info("Core version: " + version + ".");
|
|
35238
35316
|
|
|
35239
|
-
export { ActivationMixerPlayable, ActivationPlayable, ActivationPlayableAsset, ActivationTrack, AndNode, AndNodeData, Animatable, AnimationClip, AnimationClipNode, AnimationClipNodeData, AnimationGraphAsset, Animator, ApplyAdditiveNode, ApplyAdditiveNodeData, Asset, AssetLoader, AssetManager, AssetService, BYTES_TYPE_MAP, Behaviour, BezierCurve, BezierCurvePath, BezierCurveQuat, BinaryAsset, BlendNode, BlendNodeData, BoolValueNode, COPY_FRAGMENT_SHADER, COPY_MESH_SHADER_ID, COPY_VERTEX_SHADER, Camera, CameraController, CameraVFXItemLoader, 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, 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, Framebuffer, GLSLVersion, GPUCapability, Geometry, GlobalUniforms, GradientValue, GraphInstance, GraphNode, GraphNodeData, GraphicsPath, GreaterNodeData, HELP_LINK, HitTestType, InteractComponent, InteractLoader, InteractMesh, InvalidIndex, Item, LayerBlendNode, LayerBlendNodeData, LessNodeData, LineSegments, LinearValue, MaskMode, MaskProcessor, MaskableGraphic, Material, MaterialDataBlock, MaterialRenderType, MaterialTrack, Mesh, MeshCollider, NodeTransform, NotNode, NotNodeData, 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, PropertyClipPlayable, PropertyTrack, RENDER_PREFER_LOOKUP_TEXTURE, RUNTIME_ENV, RandomSetValue, RandomValue, RandomVectorValue, RaycastResult, 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, ShapePath, SourceType, SpriteColorMixerPlayable, SpriteColorPlayableAsset, SpriteColorTrack, SpriteComponent, SpriteComponentTimeTrack, SpriteLoader, StarType, StateMachineNode, StateMachineNodeData, StateNode, StateNodeData, StaticValue, SubCompositionClipPlayable, SubCompositionMixerPlayable, SubCompositionPlayableAsset, SubCompositionTrack, TEMPLATE_USE_OFFSCREEN_CANVAS, TangentMode, TextComponent, TextComponentBase, TextLayout, TextLoader, TextStyle, Texture, TextureFactory, TextureLoadAction, TexturePaintScaleMode, TextureSourceType, TextureStoreAction, Ticker, TimelineAsset, TimelineClip, TimelineInstance, TrackAsset, TrackMixerPlayable, TrackType, Transform, TransformMixerPlayable, TransformPlayable, TransformPlayableAsset, TransformTrack, TransitionNode, TransitionNodeData, TransitionState, VFXItem, ValueGetter, ValueNode, Vector2Curve, Vector2PropertyMixerPlayable, Vector2PropertyPlayableAsset, Vector2PropertyTrack, Vector3Curve, Vector3PropertyMixerPlayable, Vector3PropertyTrack, Vector3ropertyPlayableAsset, Vector4Curve, Vector4PropertyMixerPlayable, Vector4PropertyPlayableAsset, Vector4PropertyTrack, WeightedMode, addByOrder, addItem, addItemWithOrder, applyMixins, assertExist, asserts, base64ToFile, buildLine, calculateTranslation, canUseBOM, canvasPool, closePointEps, colorGradingFrag, colorStopsFromGradient, colorToArr$1 as colorToArr, combineImageTemplate, createGLContext, createKeyFrameMeta, createShape, createValueGetter, curveEps, decimalEqual, deserializeMipmapTexture, earcut, effectsClass, effectsClassStore, enlargeBuffer, ensureFixedNumber, ensureVec3, gaussianDownHFrag, gaussianDownVFrag, gaussianUpFrag, generateEmptyTypedArray, generateGUID, generateHalfFloatTexture, generateTransparentTexture, generateWhiteTexture, getBackgroundImage, getClass, getColorFromGradientStops, getConfig, 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, isCanvas, isFunction, isIOS, isIOSByUA, isMiniProgram, isObject, isOpenHarmony, isPlainObject, isPowerOfTwo, 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, sortByOrder, index$1 as spec, textureLoaderRegistry, thresholdFrag, throwDestroyedError, trailVert, translatePoint, trianglesFromRect, unregisterPlugin, valIfUndefined, value, valueDefine, vecFill, vecMulCombine, version, vertexFormatType2GLType };
|
|
35317
|
+
export { ActivationMixerPlayable, ActivationPlayable, ActivationPlayableAsset, ActivationTrack, AndNode, AndNodeData, Animatable, AnimationClip, AnimationClipNode, AnimationClipNodeData, AnimationGraphAsset, Animator, ApplyAdditiveNode, ApplyAdditiveNodeData, Asset, AssetLoader, AssetManager, AssetService, BYTES_TYPE_MAP, Behaviour, BezierCurve, BezierCurvePath, BezierCurveQuat, BinaryAsset, BlendNode, BlendNodeData, BoolValueNode, COPY_FRAGMENT_SHADER, COPY_MESH_SHADER_ID, COPY_VERTEX_SHADER, Camera, CameraController, CameraVFXItemLoader, 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, 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, Framebuffer, GLSLVersion, GPUCapability, Geometry, GlobalUniforms, GradientValue, GraphInstance, GraphNode, GraphNodeData, GraphicsPath, GreaterNodeData, HELP_LINK, HitTestType, InteractComponent, InteractLoader, InteractMesh, InvalidIndex, Item, LayerBlendNode, LayerBlendNodeData, LessNodeData, LineSegments, LinearValue, MaskMode, MaskProcessor, MaskableGraphic, Material, MaterialDataBlock, MaterialRenderType, MaterialTrack, Mesh, MeshCollider, NodeTransform, NotNode, NotNodeData, 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, PropertyClipPlayable, PropertyTrack, RENDER_PREFER_LOOKUP_TEXTURE, RUNTIME_ENV, RandomSetValue, RandomValue, RandomVectorValue, RaycastResult, 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, ShapePath, SourceType, SpriteColorMixerPlayable, SpriteColorPlayableAsset, SpriteColorTrack, SpriteComponent, SpriteComponentTimeTrack, SpriteLoader, StarType, StateMachineNode, StateMachineNodeData, StateNode, StateNodeData, StaticValue, SubCompositionClipPlayable, SubCompositionMixerPlayable, SubCompositionPlayableAsset, SubCompositionTrack, TEMPLATE_USE_OFFSCREEN_CANVAS, TangentMode, TextComponent, TextComponentBase, TextLayout, TextLoader, TextStyle, Texture, TextureFactory, TextureLoadAction, TexturePaintScaleMode, TextureSourceType, TextureStoreAction, Ticker, TimelineAsset, TimelineClip, TimelineInstance, TrackAsset, TrackMixerPlayable, TrackType, Transform, TransformMixerPlayable, TransformPlayable, TransformPlayableAsset, TransformTrack, TransitionNode, TransitionNodeData, TransitionState, VFXItem, ValueGetter, ValueNode, Vector2Curve, Vector2PropertyMixerPlayable, Vector2PropertyPlayableAsset, Vector2PropertyTrack, Vector3Curve, Vector3PropertyMixerPlayable, Vector3PropertyTrack, Vector3ropertyPlayableAsset, Vector4Curve, Vector4PropertyMixerPlayable, Vector4PropertyPlayableAsset, Vector4PropertyTrack, WeightedMode, addByOrder, addItem, addItemWithOrder, applyMixins, assertExist, asserts, base64ToFile, buildLine, calculateTranslation, canUseBOM, canvasPool, closePointEps, colorGradingFrag, colorStopsFromGradient, colorToArr$1 as colorToArr, combineImageTemplate, createGLContext, createKeyFrameMeta, createShape, createValueGetter, curveEps, decimalEqual, deserializeMipmapTexture, earcut, effectsClass, effectsClassStore, enlargeBuffer, ensureFixedNumber, ensureVec3, gaussianDownHFrag, gaussianDownVFrag, gaussianUpFrag, generateEmptyTypedArray, generateGUID, generateHalfFloatTexture, generateTransparentTexture, generateWhiteTexture, getBackgroundImage, getClass, getColorFromGradientStops, getConfig, 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, 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, sortByOrder, index$1 as spec, textureLoaderRegistry, thresholdFrag, throwDestroyedError, trailVert, translatePoint, trianglesFromRect, unregisterPlugin, valIfUndefined, value, valueDefine, vecFill, vecMulCombine, version, vertexFormatType2GLType };
|
|
35240
35318
|
//# sourceMappingURL=index.mjs.map
|