@haiyue/animation-spec 0.2.0 → 0.3.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/README.md +1 -1
- package/SPECIFICATION.md +13 -3
- package/dist/chunks/binary-Btol_e09.js +1 -0
- package/dist/chunks/clip-baked-D9PAhUfD.js +1 -0
- package/dist/chunks/expression-sAWA2ssN.js +1 -0
- package/dist/chunks/parser-DiexwIBc.js +1 -0
- package/dist/cubism.js +1 -1
- package/dist/hya-production.d.ts +1 -0
- package/dist/hya-production.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/live2d/clip-baked.js +1 -1
- package/dist/live2d.js +1 -1
- package/dist/lottie.d.ts +1 -1
- package/dist/lottie.js +1 -1
- package/dist/native3d.d.ts +1 -1
- package/dist/native3d.js +1 -1
- package/dist/shared.d.ts +1376 -3
- package/package.json +93 -89
- package/schema/animation-3d.contract.json +124 -28
- package/schema/animation.schema.json +14 -13
- package/schema/hya-composition.schema.json +41 -0
- package/schema/responsive-layout-2d.schema.json +1 -1
- package/dist/chunks/binary-DvuTJ_hy.js +0 -1
- package/dist/chunks/clip-baked-Dv-wjX9d.js +0 -1
- package/dist/chunks/expression-D1cKtNwM.js +0 -1
package/dist/shared.d.ts
CHANGED
|
@@ -214,6 +214,18 @@ interface AnimationSafeExpressionContext {
|
|
|
214
214
|
declare function evaluateSafeExpression(program: Readonly<AnimationSafeExpressionProgram>, context: Readonly<AnimationSafeExpressionContext>): string;
|
|
215
215
|
declare function safeExpressionDataResources(program: Readonly<AnimationSafeExpressionProgram>): readonly string[];
|
|
216
216
|
|
|
217
|
+
declare const ANIMATION_PROCEDURAL_RASTER_EXTENSION_ID: "org.haiyue.procedural-raster@1";
|
|
218
|
+
/** Sandboxed native software material. No image frames or authoring runtime are needed. */
|
|
219
|
+
interface AnimationProceduralRasterComponent {
|
|
220
|
+
readonly type: typeof ANIMATION_PROCEDURAL_RASTER_EXTENSION_ID;
|
|
221
|
+
readonly abi: 'wasm32-rgba-v1';
|
|
222
|
+
/** Base64 WASM algorithm; imports are closed pure math/abort, memory is at most 16 MiB. */
|
|
223
|
+
readonly module: string;
|
|
224
|
+
readonly size: readonly [number, number];
|
|
225
|
+
readonly position?: readonly [number, number];
|
|
226
|
+
readonly parameters: readonly number[];
|
|
227
|
+
readonly frameRate: number;
|
|
228
|
+
}
|
|
217
229
|
declare const ANIMATION_FORMAT: "haiyue-animation";
|
|
218
230
|
declare const ANIMATION_VERSION: "1.0";
|
|
219
231
|
declare const ANIMATION_MIME_TYPE: "application/vnd.haiyue.animation";
|
|
@@ -413,6 +425,8 @@ interface AnimationAudioComponent {
|
|
|
413
425
|
loop?: boolean;
|
|
414
426
|
startOffset?: number;
|
|
415
427
|
playbackRate?: number;
|
|
428
|
+
/** Buffer uses shared decoded audio; stream keeps the browser media element and encoded source. */
|
|
429
|
+
playbackProfile?: 'buffer' | 'stream';
|
|
416
430
|
}
|
|
417
431
|
interface AnimationExtensionComponent {
|
|
418
432
|
/** A namespaced component id such as `org.example.particle@1`. */
|
|
@@ -564,7 +578,7 @@ interface AnimationDropShadowEffect {
|
|
|
564
578
|
readonly blurTrack?: AnimationVectorValueTrack;
|
|
565
579
|
}
|
|
566
580
|
type AnimationLayerEffect = AnimationTintEffect | AnimationFillEffect | AnimationOpacityEffect | AnimationColorMatrixEffect | AnimationBlurEffect | AnimationDropShadowEffect;
|
|
567
|
-
type AnimationComponent = AnimationShape2DComponent | AnimationPath2DComponent | AnimationSprite2DComponent | AnimationText2DComponent | AnimationParticle2DComponent | AnimationAudioComponent | AnimationVectorShapeComponent | AnimationExtensionComponent;
|
|
581
|
+
type AnimationComponent = AnimationProceduralRasterComponent | AnimationShape2DComponent | AnimationPath2DComponent | AnimationSprite2DComponent | AnimationText2DComponent | AnimationParticle2DComponent | AnimationAudioComponent | AnimationVectorShapeComponent | AnimationExtensionComponent;
|
|
568
582
|
type AnimationCompositeKind = 'mask' | 'matte';
|
|
569
583
|
type AnimationCompositeMode = 'alpha' | 'alpha-inverted' | 'luma' | 'luma-inverted';
|
|
570
584
|
type AnimationCompositeOperation = 'add' | 'subtract' | 'intersect' | 'difference';
|
|
@@ -981,6 +995,1304 @@ declare function decodeDeformableMesh2DData(buffer: ArrayBuffer, limits?: Deform
|
|
|
981
995
|
declare function createDeformableMesh2DFormatHandler(): AnimationExtensionHandler;
|
|
982
996
|
declare function createDeformableMesh2DFormatRegistry(): AnimationExtensionRegistry;
|
|
983
997
|
|
|
998
|
+
declare const HYA_COMPOSITION_FORMAT: "haiyue-composition";
|
|
999
|
+
declare const HYA_COMPOSITION_VERSION: 1;
|
|
1000
|
+
type HyaCompositionValue = null | boolean | number | string | readonly HyaCompositionValue[] | {
|
|
1001
|
+
readonly [key: string]: HyaCompositionValue;
|
|
1002
|
+
};
|
|
1003
|
+
interface HyaCompositionPart {
|
|
1004
|
+
readonly id: string;
|
|
1005
|
+
readonly extension: string;
|
|
1006
|
+
readonly required: boolean;
|
|
1007
|
+
readonly requires: readonly string[];
|
|
1008
|
+
readonly dependencies: readonly string[];
|
|
1009
|
+
readonly document: HyaCompositionValue;
|
|
1010
|
+
}
|
|
1011
|
+
interface HyaCompositionTarget {
|
|
1012
|
+
readonly id: string;
|
|
1013
|
+
readonly part: string;
|
|
1014
|
+
readonly kind: 'animation-node' | 'layout-node' | 'text-block' | 'asset' | 'state-input' | 'interaction-target' | 'semantic-node' | 'audio-cue';
|
|
1015
|
+
readonly address: readonly string[];
|
|
1016
|
+
}
|
|
1017
|
+
interface HyaCompositionDocument {
|
|
1018
|
+
readonly format: typeof HYA_COMPOSITION_FORMAT;
|
|
1019
|
+
readonly version: typeof HYA_COMPOSITION_VERSION;
|
|
1020
|
+
readonly parts: readonly HyaCompositionPart[];
|
|
1021
|
+
readonly targets: readonly HyaCompositionTarget[];
|
|
1022
|
+
}
|
|
1023
|
+
interface HyaCompositionLimits {
|
|
1024
|
+
readonly maxInputBytes: number;
|
|
1025
|
+
readonly maxJsonNodes: number;
|
|
1026
|
+
readonly maxDepth: number;
|
|
1027
|
+
readonly maxStringBytes: number;
|
|
1028
|
+
readonly maxParts: number;
|
|
1029
|
+
readonly maxTargets: number;
|
|
1030
|
+
readonly maxRequirementsPerPart: number;
|
|
1031
|
+
}
|
|
1032
|
+
type HyaCompositionPartValidator = (document: HyaCompositionValue) => void;
|
|
1033
|
+
interface HyaCompositionParseOptions {
|
|
1034
|
+
/** Strict is the default; only explicitly optional parts may be skipped otherwise. */
|
|
1035
|
+
readonly strict?: boolean;
|
|
1036
|
+
readonly limits?: Partial<HyaCompositionLimits>;
|
|
1037
|
+
/** Trusted application registrations; never deserialized from the document. */
|
|
1038
|
+
readonly validators?: ReadonlyMap<string, HyaCompositionPartValidator>;
|
|
1039
|
+
/** Reuse the existing core required-extension registry without replacing its parser. */
|
|
1040
|
+
readonly coreExtensions?: AnimationExtensionRegistry;
|
|
1041
|
+
}
|
|
1042
|
+
interface HyaCompositionDiagnostic {
|
|
1043
|
+
readonly code: 'W_HYA_COMPOSITION_OPTIONAL_SKIPPED';
|
|
1044
|
+
readonly path: string;
|
|
1045
|
+
readonly capability: string;
|
|
1046
|
+
readonly part: string;
|
|
1047
|
+
}
|
|
1048
|
+
interface HyaCompositionParseResult {
|
|
1049
|
+
readonly document: HyaCompositionDocument;
|
|
1050
|
+
readonly diagnostics: readonly HyaCompositionDiagnostic[];
|
|
1051
|
+
}
|
|
1052
|
+
interface HyaCompositionPlan {
|
|
1053
|
+
readonly document: HyaCompositionDocument;
|
|
1054
|
+
readonly activeParts: readonly string[];
|
|
1055
|
+
readonly targets: readonly HyaCompositionTarget[];
|
|
1056
|
+
readonly diagnostics: readonly HyaCompositionDiagnostic[];
|
|
1057
|
+
readonly complete: boolean;
|
|
1058
|
+
}
|
|
1059
|
+
type HyaCompositionErrorCode = 'E_HYA_COMPOSITION_FORMAT' | 'E_HYA_COMPOSITION_VERSION' | 'E_HYA_COMPOSITION_LIMIT' | 'E_HYA_COMPOSITION_REQUIRED' | 'E_HYA_COMPOSITION_OPTIONAL' | 'E_HYA_COMPOSITION_CAPABILITY' | 'E_HYA_COMPOSITION_REFERENCE' | 'E_HYA_COMPOSITION_GRAPH' | 'E_HYA_COMPOSITION_PART';
|
|
1060
|
+
declare const DEFAULT_HYA_COMPOSITION_LIMITS: HyaCompositionLimits;
|
|
1061
|
+
|
|
1062
|
+
declare class HyaCompositionError extends Error {
|
|
1063
|
+
readonly code: HyaCompositionErrorCode;
|
|
1064
|
+
readonly path: string;
|
|
1065
|
+
readonly capability?: string | undefined;
|
|
1066
|
+
readonly causeCode?: string | undefined;
|
|
1067
|
+
readonly name = "HyaCompositionError";
|
|
1068
|
+
constructor(code: HyaCompositionErrorCode, path: string, message: string, capability?: string | undefined, causeCode?: string | undefined);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
declare function parseHyaComposition(source: unknown, options?: HyaCompositionParseOptions): HyaCompositionParseResult;
|
|
1072
|
+
/** Deterministic JSON is a new envelope codec, not a replacement HYA/HYLA binary container. */
|
|
1073
|
+
declare function encodeHyaComposition(source: unknown, options?: HyaCompositionParseOptions): Uint8Array;
|
|
1074
|
+
declare function negotiateHyaComposition(source: unknown, capabilities: ReadonlySet<string>, options?: HyaCompositionParseOptions): HyaCompositionPlan;
|
|
1075
|
+
|
|
1076
|
+
declare const TEXT_SHAPING_STACK: "haiyue-text-shaping@1";
|
|
1077
|
+
type TextDirection = 'auto' | 'ltr' | 'rtl';
|
|
1078
|
+
type TextAlignment = 'start' | 'center' | 'end' | 'justify';
|
|
1079
|
+
type TextVerticalAlignment = 'top' | 'middle' | 'bottom' | 'baseline';
|
|
1080
|
+
type TextColor = readonly [number, number, number, number];
|
|
1081
|
+
type TextPaintSource = {
|
|
1082
|
+
readonly kind: 'solid';
|
|
1083
|
+
readonly color: TextColor;
|
|
1084
|
+
} | {
|
|
1085
|
+
readonly kind: 'linear-gradient';
|
|
1086
|
+
readonly start: readonly [number, number];
|
|
1087
|
+
readonly end: readonly [number, number];
|
|
1088
|
+
readonly stops: readonly {
|
|
1089
|
+
readonly offset: number;
|
|
1090
|
+
readonly color: TextColor;
|
|
1091
|
+
}[];
|
|
1092
|
+
} | {
|
|
1093
|
+
readonly kind: 'radial-gradient';
|
|
1094
|
+
readonly center: readonly [number, number];
|
|
1095
|
+
readonly radius: number;
|
|
1096
|
+
readonly stops: readonly {
|
|
1097
|
+
readonly offset: number;
|
|
1098
|
+
readonly color: TextColor;
|
|
1099
|
+
}[];
|
|
1100
|
+
};
|
|
1101
|
+
interface TextFill {
|
|
1102
|
+
readonly source: TextPaintSource;
|
|
1103
|
+
readonly opacity?: number;
|
|
1104
|
+
}
|
|
1105
|
+
interface TextStroke {
|
|
1106
|
+
readonly source: TextPaintSource;
|
|
1107
|
+
readonly width: number;
|
|
1108
|
+
readonly opacity?: number;
|
|
1109
|
+
readonly join?: 'miter' | 'round' | 'bevel';
|
|
1110
|
+
}
|
|
1111
|
+
interface TextStyleDefinition {
|
|
1112
|
+
readonly id: string;
|
|
1113
|
+
readonly fontAssets: readonly string[];
|
|
1114
|
+
readonly fontFamily: string;
|
|
1115
|
+
readonly fontWeight: number;
|
|
1116
|
+
readonly fontStyle: 'normal' | 'italic';
|
|
1117
|
+
readonly fontSize: number;
|
|
1118
|
+
readonly lineHeight: number;
|
|
1119
|
+
readonly tracking: number;
|
|
1120
|
+
readonly alignment: TextAlignment;
|
|
1121
|
+
readonly verticalAlignment?: TextVerticalAlignment;
|
|
1122
|
+
readonly direction?: TextDirection;
|
|
1123
|
+
readonly language?: string;
|
|
1124
|
+
readonly script?: string;
|
|
1125
|
+
readonly axes?: Readonly<Record<string, number>>;
|
|
1126
|
+
readonly features?: Readonly<Record<string, boolean | number>>;
|
|
1127
|
+
readonly fills: readonly TextFill[];
|
|
1128
|
+
readonly strokes?: readonly TextStroke[];
|
|
1129
|
+
readonly background?: {
|
|
1130
|
+
readonly color: TextColor;
|
|
1131
|
+
readonly cornerRadius?: number;
|
|
1132
|
+
};
|
|
1133
|
+
}
|
|
1134
|
+
interface TextRunDefinition {
|
|
1135
|
+
readonly id: string;
|
|
1136
|
+
readonly style: string;
|
|
1137
|
+
readonly text: string;
|
|
1138
|
+
readonly valuePort?: string;
|
|
1139
|
+
}
|
|
1140
|
+
interface TextModifierRange {
|
|
1141
|
+
readonly start: number;
|
|
1142
|
+
readonly end: number;
|
|
1143
|
+
readonly units: 'grapheme' | 'word' | 'line' | 'percent';
|
|
1144
|
+
readonly falloffFrom?: number;
|
|
1145
|
+
readonly falloffTo?: number;
|
|
1146
|
+
readonly increment?: number;
|
|
1147
|
+
readonly offset?: number;
|
|
1148
|
+
readonly mode?: 'clamp' | 'repeat' | 'mirror';
|
|
1149
|
+
readonly strength?: number;
|
|
1150
|
+
}
|
|
1151
|
+
interface TextTransformModifier {
|
|
1152
|
+
readonly kind: 'transform';
|
|
1153
|
+
readonly range: TextModifierRange;
|
|
1154
|
+
readonly translation?: readonly [number, number];
|
|
1155
|
+
readonly scale?: readonly [number, number];
|
|
1156
|
+
readonly rotation?: number;
|
|
1157
|
+
readonly origin?: readonly [number, number];
|
|
1158
|
+
readonly opacity?: number;
|
|
1159
|
+
readonly variables?: Readonly<Record<string, number>>;
|
|
1160
|
+
}
|
|
1161
|
+
interface TextFollowPathModifier {
|
|
1162
|
+
readonly kind: 'follow-path';
|
|
1163
|
+
readonly range: TextModifierRange;
|
|
1164
|
+
readonly points: readonly number[];
|
|
1165
|
+
readonly radial?: boolean;
|
|
1166
|
+
readonly orient?: boolean;
|
|
1167
|
+
readonly start?: number;
|
|
1168
|
+
readonly end?: number;
|
|
1169
|
+
readonly offset?: number;
|
|
1170
|
+
}
|
|
1171
|
+
type TextModifier = TextTransformModifier | TextFollowPathModifier;
|
|
1172
|
+
interface TextBlockDefinition {
|
|
1173
|
+
readonly id: string;
|
|
1174
|
+
readonly runs: readonly TextRunDefinition[];
|
|
1175
|
+
readonly width: number;
|
|
1176
|
+
readonly height: number;
|
|
1177
|
+
readonly wrap?: 'none' | 'word' | 'grapheme';
|
|
1178
|
+
readonly overflow?: 'visible' | 'clip' | 'ellipsis';
|
|
1179
|
+
readonly paragraphSpacing?: number;
|
|
1180
|
+
readonly origin?: readonly [number, number];
|
|
1181
|
+
readonly verticalTrim?: {
|
|
1182
|
+
readonly top: number;
|
|
1183
|
+
readonly bottom: number;
|
|
1184
|
+
};
|
|
1185
|
+
readonly modifiers?: readonly TextModifier[];
|
|
1186
|
+
readonly input?: {
|
|
1187
|
+
readonly valuePort: string;
|
|
1188
|
+
readonly selectionPort?: string;
|
|
1189
|
+
readonly cursorPort?: string;
|
|
1190
|
+
readonly multiline?: boolean;
|
|
1191
|
+
readonly selectionRadius?: number;
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
interface TextShapingContract {
|
|
1195
|
+
readonly stack: typeof TEXT_SHAPING_STACK;
|
|
1196
|
+
readonly backendRevision: string;
|
|
1197
|
+
readonly unicodeVersion: string;
|
|
1198
|
+
readonly graphemeRevision: string;
|
|
1199
|
+
readonly bidiRevision: string;
|
|
1200
|
+
}
|
|
1201
|
+
interface CompiledGlyphMetric {
|
|
1202
|
+
readonly glyphId: number;
|
|
1203
|
+
readonly advance: number;
|
|
1204
|
+
readonly bounds: readonly [number, number, number, number];
|
|
1205
|
+
readonly axisAdvance?: Readonly<Record<string, number>>;
|
|
1206
|
+
}
|
|
1207
|
+
interface CompiledFontMetrics {
|
|
1208
|
+
readonly unitsPerEm: number;
|
|
1209
|
+
readonly ascent: number;
|
|
1210
|
+
readonly descent: number;
|
|
1211
|
+
readonly lineGap: number;
|
|
1212
|
+
readonly missingGlyph: CompiledGlyphMetric;
|
|
1213
|
+
readonly glyphs: Readonly<Record<string, CompiledGlyphMetric>>;
|
|
1214
|
+
readonly ligatures?: Readonly<Record<string, CompiledGlyphMetric>>;
|
|
1215
|
+
readonly kerning?: Readonly<Record<string, number>>;
|
|
1216
|
+
readonly axes?: Readonly<Record<string, {
|
|
1217
|
+
readonly min: number;
|
|
1218
|
+
readonly default: number;
|
|
1219
|
+
readonly max: number;
|
|
1220
|
+
}>>;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
declare const LAYOUT_EXTENSION_ID: "org.haiyue.layout-2d@1";
|
|
1224
|
+
declare const LAYOUT_FORMAT: "haiyue-responsive-layout-2d";
|
|
1225
|
+
declare const LAYOUT_VERSION: 1;
|
|
1226
|
+
type LayoutLength = {
|
|
1227
|
+
readonly unit: 'point' | 'percent' | 'fraction';
|
|
1228
|
+
readonly value: number;
|
|
1229
|
+
} | {
|
|
1230
|
+
readonly unit: 'hug' | 'fill';
|
|
1231
|
+
};
|
|
1232
|
+
type LayoutEdge = readonly [LayoutLength, LayoutLength, LayoutLength, LayoutLength];
|
|
1233
|
+
type LayoutColor = readonly [number, number, number, number];
|
|
1234
|
+
interface LayoutLimits {
|
|
1235
|
+
readonly maxInputBytes: number;
|
|
1236
|
+
readonly maxMetadataBytes: number;
|
|
1237
|
+
readonly maxAssets: number;
|
|
1238
|
+
readonly maxAssetBytes: number;
|
|
1239
|
+
readonly maxTotalAssetBytes: number;
|
|
1240
|
+
readonly maxArtboards: number;
|
|
1241
|
+
readonly maxNodes: number;
|
|
1242
|
+
readonly maxTextBytes: number;
|
|
1243
|
+
readonly maxGlyphs: number;
|
|
1244
|
+
readonly maxLines: number;
|
|
1245
|
+
readonly maxLayoutPasses: number;
|
|
1246
|
+
readonly maxNestedDepth: number;
|
|
1247
|
+
readonly maxComponentInstances: number;
|
|
1248
|
+
readonly maxListItems: number;
|
|
1249
|
+
readonly maxVirtualizedWindow: number;
|
|
1250
|
+
readonly maxNslicePatches: number;
|
|
1251
|
+
readonly maxGpuBytes: number;
|
|
1252
|
+
}
|
|
1253
|
+
type LayoutAssetSource = {
|
|
1254
|
+
readonly kind: 'embedded';
|
|
1255
|
+
readonly data: readonly number[] | Uint8Array;
|
|
1256
|
+
readonly integrity: string;
|
|
1257
|
+
} | {
|
|
1258
|
+
readonly kind: 'referenced';
|
|
1259
|
+
readonly uri: string;
|
|
1260
|
+
readonly integrity: string;
|
|
1261
|
+
} | {
|
|
1262
|
+
readonly kind: 'hosted';
|
|
1263
|
+
readonly slot: string;
|
|
1264
|
+
readonly fallbackAsset?: string;
|
|
1265
|
+
readonly integrity?: string;
|
|
1266
|
+
};
|
|
1267
|
+
interface LayoutAssetBase {
|
|
1268
|
+
readonly id: string;
|
|
1269
|
+
readonly name?: string;
|
|
1270
|
+
readonly mimeType?: string;
|
|
1271
|
+
readonly source?: LayoutAssetSource;
|
|
1272
|
+
}
|
|
1273
|
+
interface LayoutFolderAsset extends LayoutAssetBase {
|
|
1274
|
+
readonly kind: 'folder';
|
|
1275
|
+
readonly children: readonly string[];
|
|
1276
|
+
}
|
|
1277
|
+
interface LayoutImageAsset extends LayoutAssetBase {
|
|
1278
|
+
readonly kind: 'image';
|
|
1279
|
+
readonly source: LayoutAssetSource;
|
|
1280
|
+
readonly width: number;
|
|
1281
|
+
readonly height: number;
|
|
1282
|
+
readonly filter?: 'nearest' | 'linear';
|
|
1283
|
+
readonly wrapX?: 'clamp' | 'repeat' | 'mirror';
|
|
1284
|
+
readonly wrapY?: 'clamp' | 'repeat' | 'mirror';
|
|
1285
|
+
}
|
|
1286
|
+
interface LayoutFontAsset extends LayoutAssetBase {
|
|
1287
|
+
readonly kind: 'font';
|
|
1288
|
+
readonly source: LayoutAssetSource;
|
|
1289
|
+
readonly family: string;
|
|
1290
|
+
readonly weight: number;
|
|
1291
|
+
readonly style: 'normal' | 'italic';
|
|
1292
|
+
readonly metrics: CompiledFontMetrics;
|
|
1293
|
+
}
|
|
1294
|
+
interface LayoutAudioAsset extends LayoutAssetBase {
|
|
1295
|
+
readonly kind: 'audio';
|
|
1296
|
+
readonly source: LayoutAssetSource;
|
|
1297
|
+
readonly duration: number;
|
|
1298
|
+
readonly sampleRate: number;
|
|
1299
|
+
readonly channels: number;
|
|
1300
|
+
}
|
|
1301
|
+
interface LayoutBlobAsset extends LayoutAssetBase {
|
|
1302
|
+
readonly kind: 'blob';
|
|
1303
|
+
readonly source: LayoutAssetSource;
|
|
1304
|
+
readonly signature?: string;
|
|
1305
|
+
}
|
|
1306
|
+
interface LayoutManifestAsset extends LayoutAssetBase {
|
|
1307
|
+
readonly kind: 'manifest';
|
|
1308
|
+
readonly source: LayoutAssetSource;
|
|
1309
|
+
readonly entries: Readonly<Record<string, string>>;
|
|
1310
|
+
}
|
|
1311
|
+
interface LayoutTextAsset extends LayoutAssetBase {
|
|
1312
|
+
readonly kind: 'text';
|
|
1313
|
+
readonly source: LayoutAssetSource;
|
|
1314
|
+
readonly folderPath?: string;
|
|
1315
|
+
readonly encoding?: 'utf-8';
|
|
1316
|
+
}
|
|
1317
|
+
type LayoutAsset = LayoutFolderAsset | LayoutImageAsset | LayoutFontAsset | LayoutAudioAsset | LayoutBlobAsset | LayoutManifestAsset | LayoutTextAsset;
|
|
1318
|
+
interface LayoutVisualStyle {
|
|
1319
|
+
readonly opacity?: number;
|
|
1320
|
+
readonly background?: LayoutColor;
|
|
1321
|
+
readonly borderColor?: LayoutColor;
|
|
1322
|
+
readonly borderWidth?: readonly [number, number, number, number];
|
|
1323
|
+
readonly cornerRadius?: readonly [number, number, number, number];
|
|
1324
|
+
readonly clip?: boolean;
|
|
1325
|
+
}
|
|
1326
|
+
interface LayoutGridTrack {
|
|
1327
|
+
readonly min: LayoutLength;
|
|
1328
|
+
readonly max?: LayoutLength;
|
|
1329
|
+
}
|
|
1330
|
+
interface LayoutGridPlacement {
|
|
1331
|
+
readonly column: number;
|
|
1332
|
+
readonly row: number;
|
|
1333
|
+
readonly columnSpan?: number;
|
|
1334
|
+
readonly rowSpan?: number;
|
|
1335
|
+
}
|
|
1336
|
+
interface LayoutStyle {
|
|
1337
|
+
readonly display?: 'flex' | 'grid' | 'none';
|
|
1338
|
+
readonly position?: 'relative' | 'absolute';
|
|
1339
|
+
readonly direction?: 'row' | 'column';
|
|
1340
|
+
readonly writingDirection?: 'ltr' | 'rtl';
|
|
1341
|
+
readonly wrap?: boolean;
|
|
1342
|
+
readonly width?: LayoutLength;
|
|
1343
|
+
readonly height?: LayoutLength;
|
|
1344
|
+
readonly minWidth?: LayoutLength;
|
|
1345
|
+
readonly maxWidth?: LayoutLength;
|
|
1346
|
+
readonly minHeight?: LayoutLength;
|
|
1347
|
+
readonly maxHeight?: LayoutLength;
|
|
1348
|
+
readonly aspectRatio?: number;
|
|
1349
|
+
readonly margin?: LayoutEdge;
|
|
1350
|
+
readonly padding?: LayoutEdge;
|
|
1351
|
+
readonly inset?: LayoutEdge;
|
|
1352
|
+
readonly gap?: readonly [LayoutLength, LayoutLength];
|
|
1353
|
+
readonly justify?: 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
1354
|
+
readonly align?: 'start' | 'center' | 'end' | 'stretch';
|
|
1355
|
+
readonly justifySelf?: 'auto' | 'start' | 'center' | 'end' | 'stretch';
|
|
1356
|
+
readonly overflow?: 'visible' | 'hidden' | 'scroll';
|
|
1357
|
+
readonly gridColumns?: readonly LayoutGridTrack[];
|
|
1358
|
+
readonly gridRows?: readonly LayoutGridTrack[];
|
|
1359
|
+
readonly gridPlacement?: LayoutGridPlacement;
|
|
1360
|
+
readonly reflow?: {
|
|
1361
|
+
readonly duration: number;
|
|
1362
|
+
readonly easing: readonly [number, number, number, number];
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
interface LayoutScrollDefinition {
|
|
1366
|
+
readonly axis: 'x' | 'y' | 'both';
|
|
1367
|
+
readonly mode?: 'clamped' | 'elastic' | 'infinite';
|
|
1368
|
+
readonly snap?: number;
|
|
1369
|
+
readonly friction?: number;
|
|
1370
|
+
readonly elasticity?: number;
|
|
1371
|
+
readonly scrollbar?: {
|
|
1372
|
+
readonly node: string;
|
|
1373
|
+
readonly autoSize?: boolean;
|
|
1374
|
+
};
|
|
1375
|
+
}
|
|
1376
|
+
interface LayoutListDefinition {
|
|
1377
|
+
readonly dataPort: string;
|
|
1378
|
+
readonly templateArtboard: string;
|
|
1379
|
+
readonly direction: 'row' | 'column';
|
|
1380
|
+
readonly itemExtent: number;
|
|
1381
|
+
readonly gap?: number;
|
|
1382
|
+
readonly virtualize?: boolean;
|
|
1383
|
+
readonly buffer?: number;
|
|
1384
|
+
readonly carousel?: boolean;
|
|
1385
|
+
}
|
|
1386
|
+
interface LayoutNSliceDefinition {
|
|
1387
|
+
readonly source: {
|
|
1388
|
+
readonly kind: 'asset';
|
|
1389
|
+
readonly asset: string;
|
|
1390
|
+
} | {
|
|
1391
|
+
readonly kind: 'node';
|
|
1392
|
+
readonly node: string;
|
|
1393
|
+
};
|
|
1394
|
+
readonly sourceSize: readonly [number, number];
|
|
1395
|
+
readonly xCuts: readonly number[];
|
|
1396
|
+
readonly yCuts: readonly number[];
|
|
1397
|
+
readonly tileModes?: readonly ('stretch' | 'repeat' | 'mirror')[];
|
|
1398
|
+
}
|
|
1399
|
+
interface LayoutComponentDefinition {
|
|
1400
|
+
readonly artboard: string;
|
|
1401
|
+
readonly fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
1402
|
+
readonly alignment?: readonly [number, number];
|
|
1403
|
+
readonly sizing?: 'node' | 'leaf' | 'layout';
|
|
1404
|
+
readonly playback?: {
|
|
1405
|
+
readonly mode: 'simple' | 'remap' | 'mix';
|
|
1406
|
+
readonly speed?: number;
|
|
1407
|
+
readonly paused?: boolean;
|
|
1408
|
+
readonly quantize?: number;
|
|
1409
|
+
readonly stateful?: boolean;
|
|
1410
|
+
readonly remapPort?: string;
|
|
1411
|
+
readonly mixPort?: string;
|
|
1412
|
+
};
|
|
1413
|
+
readonly exposedInputs?: readonly string[];
|
|
1414
|
+
readonly exposedEvents?: readonly string[];
|
|
1415
|
+
}
|
|
1416
|
+
interface LayoutNodeDefinition {
|
|
1417
|
+
readonly id: string;
|
|
1418
|
+
readonly parent?: string;
|
|
1419
|
+
readonly kind: 'container' | 'leaf' | 'text' | 'image' | 'component' | 'list' | 'n-slice';
|
|
1420
|
+
readonly style: LayoutStyle;
|
|
1421
|
+
readonly visual?: LayoutVisualStyle;
|
|
1422
|
+
readonly intrinsicSize?: readonly [number, number];
|
|
1423
|
+
readonly text?: string;
|
|
1424
|
+
readonly asset?: string;
|
|
1425
|
+
readonly component?: LayoutComponentDefinition;
|
|
1426
|
+
readonly list?: LayoutListDefinition;
|
|
1427
|
+
readonly nSlice?: LayoutNSliceDefinition;
|
|
1428
|
+
readonly scroll?: LayoutScrollDefinition;
|
|
1429
|
+
}
|
|
1430
|
+
interface LayoutArtboardDefinition {
|
|
1431
|
+
readonly id: string;
|
|
1432
|
+
readonly name?: string;
|
|
1433
|
+
readonly width: number;
|
|
1434
|
+
readonly height: number;
|
|
1435
|
+
readonly root: string;
|
|
1436
|
+
readonly nodes: readonly LayoutNodeDefinition[];
|
|
1437
|
+
}
|
|
1438
|
+
interface LayoutRootInstance {
|
|
1439
|
+
readonly id: string;
|
|
1440
|
+
readonly artboard: string;
|
|
1441
|
+
readonly fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
1442
|
+
readonly alignment?: readonly [number, number];
|
|
1443
|
+
readonly transform?: readonly [number, number, number, number, number, number];
|
|
1444
|
+
}
|
|
1445
|
+
interface ResponsiveLayoutDocument {
|
|
1446
|
+
readonly format: typeof LAYOUT_FORMAT;
|
|
1447
|
+
readonly version: typeof LAYOUT_VERSION;
|
|
1448
|
+
readonly extension: typeof LAYOUT_EXTENSION_ID;
|
|
1449
|
+
readonly shaping: TextShapingContract;
|
|
1450
|
+
readonly assets: readonly LayoutAsset[];
|
|
1451
|
+
readonly textStyles: readonly TextStyleDefinition[];
|
|
1452
|
+
readonly textBlocks: readonly TextBlockDefinition[];
|
|
1453
|
+
readonly artboards: readonly LayoutArtboardDefinition[];
|
|
1454
|
+
readonly instances: readonly LayoutRootInstance[];
|
|
1455
|
+
}
|
|
1456
|
+
interface LayoutParseOptions {
|
|
1457
|
+
readonly limits?: Partial<LayoutLimits>;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
declare function parseResponsiveLayoutDocument(value: unknown, options?: LayoutParseOptions): ResponsiveLayoutDocument;
|
|
1461
|
+
|
|
1462
|
+
declare function isResponsiveLayoutBinary(buffer: ArrayBuffer): boolean;
|
|
1463
|
+
declare function encodeResponsiveLayoutDocument(source: ResponsiveLayoutDocument, options?: LayoutParseOptions): ArrayBuffer;
|
|
1464
|
+
declare function decodeResponsiveLayoutDocument(buffer: ArrayBuffer, options?: LayoutParseOptions): ResponsiveLayoutDocument;
|
|
1465
|
+
|
|
1466
|
+
type LayoutDiagnosticCode = 'E_LAYOUT_FORMAT' | 'E_LAYOUT_LIMIT' | 'E_LAYOUT_NUMBER' | 'E_LAYOUT_REFERENCE' | 'E_LAYOUT_CYCLE' | 'E_LAYOUT_OSCILLATION' | 'E_LAYOUT_SHAPING' | 'E_LAYOUT_ASSET_INTEGRITY' | 'E_LAYOUT_BINARY';
|
|
1467
|
+
declare class LayoutDiagnostic extends Error {
|
|
1468
|
+
readonly code: LayoutDiagnosticCode;
|
|
1469
|
+
readonly path: string;
|
|
1470
|
+
readonly name = "LayoutDiagnostic";
|
|
1471
|
+
constructor(code: LayoutDiagnosticCode, path: string, message: string);
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
interface DataBindingLimits {
|
|
1475
|
+
readonly maxEnums: number;
|
|
1476
|
+
readonly maxEnumValues: number;
|
|
1477
|
+
readonly maxModels: number;
|
|
1478
|
+
readonly maxProperties: number;
|
|
1479
|
+
readonly maxInstances: number;
|
|
1480
|
+
readonly maxListItems: number;
|
|
1481
|
+
readonly maxBindings: number;
|
|
1482
|
+
readonly maxConverters: number;
|
|
1483
|
+
readonly maxOperations: number;
|
|
1484
|
+
readonly maxPathDepth: number;
|
|
1485
|
+
readonly maxStringBytes: number;
|
|
1486
|
+
readonly maxTotalTextBytes: number;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
declare const HYA_DATA_BINDING_EXTENSION_ID: "org.haiyue.data-binding@1";
|
|
1490
|
+
declare const HYA_DATA_BINDING_FORMAT: "haiyue-data-binding";
|
|
1491
|
+
declare const HYA_DATA_BINDING_VERSION: 1;
|
|
1492
|
+
type DataColor = readonly [number, number, number, number];
|
|
1493
|
+
type DataScalar = number | string | boolean | DataColor | null;
|
|
1494
|
+
interface DataObject {
|
|
1495
|
+
readonly [key: string]: DataValue;
|
|
1496
|
+
}
|
|
1497
|
+
type DataValue = DataScalar | readonly DataValue[] | DataObject;
|
|
1498
|
+
type DataPropertyKind = 'number' | 'integer' | 'string' | 'boolean' | 'color' | 'trigger' | 'enum' | 'model' | 'list' | 'image' | 'artboard' | 'font' | 'blob';
|
|
1499
|
+
interface DataEnumDefinition {
|
|
1500
|
+
readonly id: string;
|
|
1501
|
+
readonly values: readonly Readonly<{
|
|
1502
|
+
key: string;
|
|
1503
|
+
value: number;
|
|
1504
|
+
}>[];
|
|
1505
|
+
}
|
|
1506
|
+
interface DataPropertyDefinition {
|
|
1507
|
+
readonly id: string;
|
|
1508
|
+
readonly kind: DataPropertyKind;
|
|
1509
|
+
readonly enum?: string;
|
|
1510
|
+
readonly model?: string;
|
|
1511
|
+
readonly item?: Readonly<{
|
|
1512
|
+
kind: Exclude<DataPropertyKind, 'trigger' | 'list'>;
|
|
1513
|
+
enum?: string;
|
|
1514
|
+
model?: string;
|
|
1515
|
+
}>;
|
|
1516
|
+
readonly defaultValue?: DataValue;
|
|
1517
|
+
readonly nullable?: boolean;
|
|
1518
|
+
}
|
|
1519
|
+
interface DataModelDefinition {
|
|
1520
|
+
readonly id: string;
|
|
1521
|
+
readonly properties: readonly DataPropertyDefinition[];
|
|
1522
|
+
readonly defaultInstance?: string;
|
|
1523
|
+
}
|
|
1524
|
+
interface DataModelInstance {
|
|
1525
|
+
readonly id: string;
|
|
1526
|
+
readonly model: string;
|
|
1527
|
+
readonly scope: 'default' | 'global' | 'local';
|
|
1528
|
+
readonly values: Readonly<Record<string, DataValue>>;
|
|
1529
|
+
}
|
|
1530
|
+
type DataConverterOperation = Readonly<{
|
|
1531
|
+
op: 'round';
|
|
1532
|
+
decimals: number;
|
|
1533
|
+
}> | Readonly<{
|
|
1534
|
+
op: 'to-string';
|
|
1535
|
+
decimals?: number;
|
|
1536
|
+
colorFormat?: 'hex' | 'rgba';
|
|
1537
|
+
}> | Readonly<{
|
|
1538
|
+
op: 'to-number';
|
|
1539
|
+
}> | Readonly<{
|
|
1540
|
+
op: 'boolean-not';
|
|
1541
|
+
}> | Readonly<{
|
|
1542
|
+
op: 'degrees-to-radians';
|
|
1543
|
+
}> | Readonly<{
|
|
1544
|
+
op: 'normalize';
|
|
1545
|
+
minimum: number;
|
|
1546
|
+
maximum: number;
|
|
1547
|
+
}> | Readonly<{
|
|
1548
|
+
op: 'range-map';
|
|
1549
|
+
input: readonly [number, number];
|
|
1550
|
+
output: readonly [number, number];
|
|
1551
|
+
clamp?: boolean;
|
|
1552
|
+
}> | Readonly<{
|
|
1553
|
+
op: 'string-pad';
|
|
1554
|
+
length: number;
|
|
1555
|
+
text: string;
|
|
1556
|
+
side: 'start' | 'end';
|
|
1557
|
+
}> | Readonly<{
|
|
1558
|
+
op: 'string-trim';
|
|
1559
|
+
side: 'start' | 'end' | 'both';
|
|
1560
|
+
}> | Readonly<{
|
|
1561
|
+
op: 'remove-trailing-zeros';
|
|
1562
|
+
}> | Readonly<{
|
|
1563
|
+
op: 'list-length';
|
|
1564
|
+
}> | Readonly<{
|
|
1565
|
+
op: 'number-to-list';
|
|
1566
|
+
model: string;
|
|
1567
|
+
}> | Readonly<{
|
|
1568
|
+
op: 'to-trigger';
|
|
1569
|
+
mode: 'change' | 'rising' | 'falling' | 'truthy';
|
|
1570
|
+
}> | Readonly<{
|
|
1571
|
+
op: 'interpolate';
|
|
1572
|
+
duration: number;
|
|
1573
|
+
easing: readonly [number, number, number, number];
|
|
1574
|
+
}> | Readonly<{
|
|
1575
|
+
op: 'formula';
|
|
1576
|
+
tokens: readonly Readonly<{
|
|
1577
|
+
kind: 'value' | 'input' | 'operator' | 'function';
|
|
1578
|
+
value: string | number;
|
|
1579
|
+
}>[];
|
|
1580
|
+
}> | Readonly<{
|
|
1581
|
+
op: 'custom';
|
|
1582
|
+
protocol: string;
|
|
1583
|
+
port: string;
|
|
1584
|
+
arguments?: DataObject;
|
|
1585
|
+
}>;
|
|
1586
|
+
interface DataConverterDefinition {
|
|
1587
|
+
readonly id: string;
|
|
1588
|
+
readonly version: 1;
|
|
1589
|
+
readonly operations: readonly DataConverterOperation[];
|
|
1590
|
+
}
|
|
1591
|
+
type DataMutationOperation = Readonly<{
|
|
1592
|
+
op: 'set';
|
|
1593
|
+
path: readonly (string | number)[];
|
|
1594
|
+
value: DataValue;
|
|
1595
|
+
}> | Readonly<{
|
|
1596
|
+
op: 'copy';
|
|
1597
|
+
from: readonly (string | number)[];
|
|
1598
|
+
path: readonly (string | number)[];
|
|
1599
|
+
}> | Readonly<{
|
|
1600
|
+
op: 'trigger';
|
|
1601
|
+
path: readonly (string | number)[];
|
|
1602
|
+
}> | Readonly<{
|
|
1603
|
+
op: 'list-insert';
|
|
1604
|
+
path: readonly (string | number)[];
|
|
1605
|
+
index: number;
|
|
1606
|
+
value: DataValue;
|
|
1607
|
+
}> | Readonly<{
|
|
1608
|
+
op: 'list-remove';
|
|
1609
|
+
path: readonly (string | number)[];
|
|
1610
|
+
index: number;
|
|
1611
|
+
}> | Readonly<{
|
|
1612
|
+
op: 'list-move';
|
|
1613
|
+
path: readonly (string | number)[];
|
|
1614
|
+
from: number;
|
|
1615
|
+
to: number;
|
|
1616
|
+
}>;
|
|
1617
|
+
interface DataPropertyGroupDefinition {
|
|
1618
|
+
readonly id: string;
|
|
1619
|
+
readonly version: 1;
|
|
1620
|
+
readonly operations: readonly DataMutationOperation[];
|
|
1621
|
+
}
|
|
1622
|
+
interface DataBindingSource {
|
|
1623
|
+
readonly mode: 'explicit' | 'default' | 'global' | 'auto';
|
|
1624
|
+
readonly instance?: string;
|
|
1625
|
+
readonly model?: string;
|
|
1626
|
+
readonly path: readonly (string | number)[];
|
|
1627
|
+
}
|
|
1628
|
+
interface DataBindingDefinition {
|
|
1629
|
+
readonly id: string;
|
|
1630
|
+
readonly target: string;
|
|
1631
|
+
readonly targetPath: readonly string[];
|
|
1632
|
+
readonly source: DataBindingSource;
|
|
1633
|
+
readonly converter?: string;
|
|
1634
|
+
readonly direction: 'read' | 'write' | 'two-way';
|
|
1635
|
+
}
|
|
1636
|
+
interface StatefulDataComponentDefinition {
|
|
1637
|
+
readonly id: string;
|
|
1638
|
+
readonly stateful: true;
|
|
1639
|
+
readonly model: string;
|
|
1640
|
+
readonly exposedProperties?: readonly string[];
|
|
1641
|
+
readonly exposedInputs?: readonly string[];
|
|
1642
|
+
readonly exposedEvents?: readonly string[];
|
|
1643
|
+
}
|
|
1644
|
+
interface HyaDataBindingDocument {
|
|
1645
|
+
readonly format: typeof HYA_DATA_BINDING_FORMAT;
|
|
1646
|
+
readonly version: typeof HYA_DATA_BINDING_VERSION;
|
|
1647
|
+
readonly extension: typeof HYA_DATA_BINDING_EXTENSION_ID;
|
|
1648
|
+
readonly enums: readonly DataEnumDefinition[];
|
|
1649
|
+
readonly models: readonly DataModelDefinition[];
|
|
1650
|
+
readonly instances: readonly DataModelInstance[];
|
|
1651
|
+
readonly converters: readonly DataConverterDefinition[];
|
|
1652
|
+
readonly propertyGroups: readonly DataPropertyGroupDefinition[];
|
|
1653
|
+
readonly bindings: readonly DataBindingDefinition[];
|
|
1654
|
+
readonly components: readonly StatefulDataComponentDefinition[];
|
|
1655
|
+
}
|
|
1656
|
+
interface DataBindingParseOptions {
|
|
1657
|
+
readonly limits?: Partial<DataBindingLimits>;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
declare function parseHyaDataBinding(value: unknown, options?: DataBindingParseOptions): HyaDataBindingDocument;
|
|
1661
|
+
|
|
1662
|
+
type DataBindingDiagnosticCode = 'E_DATA_BINDING_FORMAT' | 'E_DATA_BINDING_NUMBER' | 'E_DATA_BINDING_REFERENCE' | 'E_DATA_BINDING_LIMIT' | 'E_DATA_BINDING_TYPE' | 'E_DATA_BINDING_PATH' | 'E_DATA_BINDING_GRAPH';
|
|
1663
|
+
declare class DataBindingDiagnostic extends Error {
|
|
1664
|
+
readonly code: DataBindingDiagnosticCode;
|
|
1665
|
+
readonly path: string;
|
|
1666
|
+
readonly name = "DataBindingDiagnostic";
|
|
1667
|
+
constructor(code: DataBindingDiagnosticCode, path: string, message: string);
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
declare const HYA_INTERACTION_EXTENSION_ID: "org.haiyue.interaction@1";
|
|
1671
|
+
declare const HYA_INTERACTION_FORMAT: "haiyue-interaction";
|
|
1672
|
+
declare const HYA_INTERACTION_VERSION: 1;
|
|
1673
|
+
interface InteractionLimits {
|
|
1674
|
+
readonly maxTargets: number;
|
|
1675
|
+
readonly maxListeners: number;
|
|
1676
|
+
readonly maxActions: number;
|
|
1677
|
+
readonly maxPathDepth: number;
|
|
1678
|
+
readonly maxEventQueue: number;
|
|
1679
|
+
readonly maxEventRecursion: number;
|
|
1680
|
+
readonly maxPointers: number;
|
|
1681
|
+
readonly maxPolygonPoints: number;
|
|
1682
|
+
readonly maxStringBytes: number;
|
|
1683
|
+
}
|
|
1684
|
+
interface InteractionObject {
|
|
1685
|
+
readonly [key: string]: InteractionValue;
|
|
1686
|
+
}
|
|
1687
|
+
type InteractionValue = number | string | boolean | null | readonly InteractionValue[] | InteractionObject;
|
|
1688
|
+
type InteractionEventKind = 'pointer-enter' | 'pointer-exit' | 'pointer-move' | 'pointer-down' | 'pointer-up' | 'click' | 'drag-start' | 'drag' | 'drag-end' | 'keyboard' | 'text-input' | 'gamepad' | 'focus' | 'blur' | 'data-change' | 'reported-event' | 'component-event' | 'semantic-action';
|
|
1689
|
+
type InteractionPhase = 'capture' | 'target' | 'bubble';
|
|
1690
|
+
type HitArea = Readonly<{
|
|
1691
|
+
kind: 'rect';
|
|
1692
|
+
rect: readonly [number, number, number, number];
|
|
1693
|
+
}> | Readonly<{
|
|
1694
|
+
kind: 'ellipse';
|
|
1695
|
+
center: readonly [number, number];
|
|
1696
|
+
radius: readonly [number, number];
|
|
1697
|
+
}> | Readonly<{
|
|
1698
|
+
kind: 'polygon';
|
|
1699
|
+
points: readonly (readonly [number, number])[];
|
|
1700
|
+
}> | Readonly<{
|
|
1701
|
+
kind: 'geometry';
|
|
1702
|
+
port: string;
|
|
1703
|
+
}>;
|
|
1704
|
+
interface InteractionTargetDefinition {
|
|
1705
|
+
readonly id: string;
|
|
1706
|
+
readonly parent?: string;
|
|
1707
|
+
readonly component?: string;
|
|
1708
|
+
readonly order: number;
|
|
1709
|
+
readonly transform?: readonly [number, number, number, number, number, number];
|
|
1710
|
+
readonly hitArea: HitArea;
|
|
1711
|
+
readonly clips?: readonly string[];
|
|
1712
|
+
readonly enabled?: boolean;
|
|
1713
|
+
readonly focusable?: boolean;
|
|
1714
|
+
readonly tabIndex?: number;
|
|
1715
|
+
}
|
|
1716
|
+
type InteractionAction = Readonly<{
|
|
1717
|
+
kind: 'data-set';
|
|
1718
|
+
binding: string;
|
|
1719
|
+
value: InteractionValue;
|
|
1720
|
+
}> | Readonly<{
|
|
1721
|
+
kind: 'data-trigger';
|
|
1722
|
+
binding: string;
|
|
1723
|
+
}> | Readonly<{
|
|
1724
|
+
kind: 'property-group';
|
|
1725
|
+
group: string;
|
|
1726
|
+
}> | Readonly<{
|
|
1727
|
+
kind: 'state-input';
|
|
1728
|
+
machine: string;
|
|
1729
|
+
input: string;
|
|
1730
|
+
value: InteractionValue;
|
|
1731
|
+
}> | Readonly<{
|
|
1732
|
+
kind: 'state-control';
|
|
1733
|
+
machine: string;
|
|
1734
|
+
operation: 'play' | 'pause' | 'resume' | 'stop' | 'reset';
|
|
1735
|
+
value?: number;
|
|
1736
|
+
}> | Readonly<{
|
|
1737
|
+
kind: 'report-event';
|
|
1738
|
+
name: string;
|
|
1739
|
+
payload?: InteractionValue;
|
|
1740
|
+
}> | Readonly<{
|
|
1741
|
+
kind: 'audio';
|
|
1742
|
+
operation: 'play' | 'pause' | 'stop' | 'seek';
|
|
1743
|
+
target: string;
|
|
1744
|
+
value?: number;
|
|
1745
|
+
}> | Readonly<{
|
|
1746
|
+
kind: 'semantic';
|
|
1747
|
+
operation: 'announce' | 'focus' | 'increment' | 'decrement' | 'activate';
|
|
1748
|
+
target: string;
|
|
1749
|
+
value?: InteractionValue;
|
|
1750
|
+
}> | Readonly<{
|
|
1751
|
+
kind: 'align-target';
|
|
1752
|
+
target: string;
|
|
1753
|
+
alignment: readonly [number, number];
|
|
1754
|
+
preserveOffset: boolean;
|
|
1755
|
+
}> | Readonly<{
|
|
1756
|
+
kind: 'open-url';
|
|
1757
|
+
url: string;
|
|
1758
|
+
target: 'same-context' | 'new-context';
|
|
1759
|
+
}> | Readonly<{
|
|
1760
|
+
kind: 'component-input';
|
|
1761
|
+
component: string;
|
|
1762
|
+
input: string;
|
|
1763
|
+
value: InteractionValue;
|
|
1764
|
+
}> | Readonly<{
|
|
1765
|
+
kind: 'component-event';
|
|
1766
|
+
component: string;
|
|
1767
|
+
event: string;
|
|
1768
|
+
payload?: InteractionValue;
|
|
1769
|
+
}> | Readonly<{
|
|
1770
|
+
kind: 'pointer-capture' | 'pointer-release';
|
|
1771
|
+
}> | Readonly<{
|
|
1772
|
+
kind: 'focus';
|
|
1773
|
+
target?: string;
|
|
1774
|
+
}> | Readonly<{
|
|
1775
|
+
kind: 'custom';
|
|
1776
|
+
protocol: string;
|
|
1777
|
+
port: string;
|
|
1778
|
+
arguments?: InteractionObject;
|
|
1779
|
+
}>;
|
|
1780
|
+
interface InteractionListenerDefinition {
|
|
1781
|
+
readonly id: string;
|
|
1782
|
+
readonly target: string;
|
|
1783
|
+
readonly event: InteractionEventKind;
|
|
1784
|
+
readonly phases: readonly InteractionPhase[];
|
|
1785
|
+
readonly pointerButton?: number;
|
|
1786
|
+
readonly key?: string;
|
|
1787
|
+
readonly keyPhase?: 'down' | 'up' | 'repeat';
|
|
1788
|
+
readonly modifiers?: readonly ('alt' | 'control' | 'meta' | 'shift')[];
|
|
1789
|
+
readonly gamepad?: Readonly<{
|
|
1790
|
+
index?: number;
|
|
1791
|
+
control: string;
|
|
1792
|
+
phase: 'down' | 'up' | 'change';
|
|
1793
|
+
}>;
|
|
1794
|
+
readonly semanticAction?: 'tap' | 'increase' | 'decrease' | 'focus';
|
|
1795
|
+
readonly actions: readonly InteractionAction[];
|
|
1796
|
+
}
|
|
1797
|
+
interface HyaInteractionDocument {
|
|
1798
|
+
readonly format: typeof HYA_INTERACTION_FORMAT;
|
|
1799
|
+
readonly version: typeof HYA_INTERACTION_VERSION;
|
|
1800
|
+
readonly extension: typeof HYA_INTERACTION_EXTENSION_ID;
|
|
1801
|
+
readonly dragThreshold: number;
|
|
1802
|
+
readonly targets: readonly InteractionTargetDefinition[];
|
|
1803
|
+
readonly listeners: readonly InteractionListenerDefinition[];
|
|
1804
|
+
readonly limits?: Readonly<Pick<InteractionLimits, 'maxEventQueue' | 'maxEventRecursion' | 'maxPointers'>>;
|
|
1805
|
+
}
|
|
1806
|
+
interface InteractionParseOptions {
|
|
1807
|
+
readonly limits?: Partial<InteractionLimits>;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
declare function parseHyaInteraction(value: unknown, options?: InteractionParseOptions): HyaInteractionDocument;
|
|
1811
|
+
|
|
1812
|
+
type InteractionDiagnosticCode = 'E_INTERACTION_FORMAT' | 'E_INTERACTION_NUMBER' | 'E_INTERACTION_REFERENCE' | 'E_INTERACTION_LIMIT' | 'E_INTERACTION_GRAPH' | 'E_INTERACTION_ACTION';
|
|
1813
|
+
declare class InteractionDiagnostic extends Error {
|
|
1814
|
+
readonly code: InteractionDiagnosticCode;
|
|
1815
|
+
readonly path: string;
|
|
1816
|
+
readonly name = "InteractionDiagnostic";
|
|
1817
|
+
constructor(code: InteractionDiagnosticCode, path: string, message: string);
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
declare const HYA_SEMANTICS_EXTENSION_ID: "org.haiyue.semantics@1";
|
|
1821
|
+
declare const HYA_SEMANTICS_FORMAT: "haiyue-semantics";
|
|
1822
|
+
declare const HYA_SEMANTICS_VERSION: 1;
|
|
1823
|
+
type SemanticRole = 'none' | 'group' | 'text' | 'button' | 'link' | 'image' | 'heading' | 'checkbox' | 'radio' | 'switch' | 'slider' | 'progress' | 'textbox' | 'list' | 'list-item' | 'menu' | 'menu-item' | 'dialog';
|
|
1824
|
+
type SemanticActionKind = 'tap' | 'increase' | 'decrease' | 'focus';
|
|
1825
|
+
type SemanticValue<T> = Readonly<{
|
|
1826
|
+
kind: 'literal';
|
|
1827
|
+
value: T;
|
|
1828
|
+
} | {
|
|
1829
|
+
kind: 'binding';
|
|
1830
|
+
binding: string;
|
|
1831
|
+
}>;
|
|
1832
|
+
interface SemanticState {
|
|
1833
|
+
readonly hidden?: SemanticValue<boolean>;
|
|
1834
|
+
readonly disabled?: SemanticValue<boolean>;
|
|
1835
|
+
readonly focused?: SemanticValue<boolean>;
|
|
1836
|
+
readonly expanded?: SemanticValue<boolean>;
|
|
1837
|
+
readonly selected?: SemanticValue<boolean>;
|
|
1838
|
+
readonly checked?: SemanticValue<boolean>;
|
|
1839
|
+
readonly mixed?: SemanticValue<boolean>;
|
|
1840
|
+
readonly toggled?: SemanticValue<boolean>;
|
|
1841
|
+
readonly required?: SemanticValue<boolean>;
|
|
1842
|
+
readonly readOnly?: SemanticValue<boolean>;
|
|
1843
|
+
readonly modal?: SemanticValue<boolean>;
|
|
1844
|
+
readonly obscured?: SemanticValue<boolean>;
|
|
1845
|
+
readonly multiline?: SemanticValue<boolean>;
|
|
1846
|
+
}
|
|
1847
|
+
interface SemanticCapabilities {
|
|
1848
|
+
readonly expandable?: boolean;
|
|
1849
|
+
readonly selectable?: boolean;
|
|
1850
|
+
readonly checkable?: boolean;
|
|
1851
|
+
readonly toggleable?: boolean;
|
|
1852
|
+
readonly requirable?: boolean;
|
|
1853
|
+
readonly enablable?: boolean;
|
|
1854
|
+
readonly focusable?: boolean;
|
|
1855
|
+
}
|
|
1856
|
+
interface SemanticNodeDefinition {
|
|
1857
|
+
readonly id: string;
|
|
1858
|
+
readonly target: string;
|
|
1859
|
+
readonly parent?: string;
|
|
1860
|
+
readonly role: SemanticRole;
|
|
1861
|
+
readonly label?: SemanticValue<string>;
|
|
1862
|
+
readonly value?: SemanticValue<string | number>;
|
|
1863
|
+
readonly hint?: SemanticValue<string>;
|
|
1864
|
+
readonly headingLevel?: number;
|
|
1865
|
+
readonly traits?: readonly ('button' | 'link' | 'image' | 'header' | 'adjustable' | 'selected' | 'disabled')[];
|
|
1866
|
+
readonly state?: SemanticState;
|
|
1867
|
+
readonly capabilities?: SemanticCapabilities;
|
|
1868
|
+
readonly actions?: readonly SemanticActionKind[];
|
|
1869
|
+
readonly live?: 'off' | 'polite' | 'assertive';
|
|
1870
|
+
readonly readingOrder: number;
|
|
1871
|
+
readonly navigationOrder: number;
|
|
1872
|
+
}
|
|
1873
|
+
type ReducedMotionPolicy = Readonly<{
|
|
1874
|
+
mode: 'ignore';
|
|
1875
|
+
}> | Readonly<{
|
|
1876
|
+
mode: 'respect';
|
|
1877
|
+
decorative: 'pause' | 'stop' | 'continue';
|
|
1878
|
+
essential: 'retain' | 'reduce';
|
|
1879
|
+
durationScale: number;
|
|
1880
|
+
disableParallax: boolean;
|
|
1881
|
+
}>;
|
|
1882
|
+
interface HyaSemanticsDocument {
|
|
1883
|
+
readonly format: typeof HYA_SEMANTICS_FORMAT;
|
|
1884
|
+
readonly version: typeof HYA_SEMANTICS_VERSION;
|
|
1885
|
+
readonly extension: typeof HYA_SEMANTICS_EXTENSION_ID;
|
|
1886
|
+
readonly nodes: readonly SemanticNodeDefinition[];
|
|
1887
|
+
readonly reducedMotion: ReducedMotionPolicy;
|
|
1888
|
+
}
|
|
1889
|
+
interface SemanticsParseOptions {
|
|
1890
|
+
readonly maxNodes?: number;
|
|
1891
|
+
readonly maxDepth?: number;
|
|
1892
|
+
readonly maxStringBytes?: number;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
declare function parseHyaSemantics(value: unknown, options?: SemanticsParseOptions): HyaSemanticsDocument;
|
|
1896
|
+
|
|
1897
|
+
type SemanticsDiagnosticCode = 'E_SEMANTICS_FORMAT' | 'E_SEMANTICS_NUMBER' | 'E_SEMANTICS_REFERENCE' | 'E_SEMANTICS_LIMIT' | 'E_SEMANTICS_GRAPH';
|
|
1898
|
+
declare class SemanticsDiagnostic extends Error {
|
|
1899
|
+
readonly code: SemanticsDiagnosticCode;
|
|
1900
|
+
readonly path: string;
|
|
1901
|
+
readonly name = "SemanticsDiagnostic";
|
|
1902
|
+
constructor(code: SemanticsDiagnosticCode, path: string, message: string);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
interface AudioEventLimits {
|
|
1906
|
+
readonly maxResources: number;
|
|
1907
|
+
readonly maxBuses: number;
|
|
1908
|
+
readonly maxCues: number;
|
|
1909
|
+
readonly maxTimelineEvents: number;
|
|
1910
|
+
readonly maxVoices: number;
|
|
1911
|
+
readonly maxVoicesPerResource: number;
|
|
1912
|
+
readonly maxDecodeJobs: number;
|
|
1913
|
+
readonly maxEventTokens: number;
|
|
1914
|
+
readonly maxEmbeddedBytes: number;
|
|
1915
|
+
readonly maxTotalEmbeddedBytes: number;
|
|
1916
|
+
readonly maxDecodedFrames: number;
|
|
1917
|
+
readonly maxDecodedBytes: number;
|
|
1918
|
+
readonly maxStringBytes: number;
|
|
1919
|
+
readonly maxTotalTextBytes: number;
|
|
1920
|
+
readonly maxReferenceDepth: number;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
declare const HYA_AUDIO_EVENT_FORMAT: "haiyue-audio-events";
|
|
1924
|
+
declare const HYA_AUDIO_EVENT_VERSION: 1;
|
|
1925
|
+
declare const HYA_AUDIO_EVENT_EXTENSION_ID: "org.haiyue.audio-events@1";
|
|
1926
|
+
type HyaAudioCodec = 'pcm-f32' | 'wav' | 'mp3' | 'aac' | 'opus' | 'vorbis' | 'flac';
|
|
1927
|
+
type HyaAudioClockDomain = 'composition' | 'state' | 'event';
|
|
1928
|
+
type HyaAudioPlaybackProfile = 'sample-accurate' | 'html-media-restricted';
|
|
1929
|
+
type HyaAudioVoiceStealing = 'reject' | 'steal-oldest' | 'steal-lowest-priority';
|
|
1930
|
+
interface HyaAudioIntegrity {
|
|
1931
|
+
readonly algorithm: 'sha256';
|
|
1932
|
+
readonly digest: string;
|
|
1933
|
+
}
|
|
1934
|
+
type HyaAudioResourceSource = Readonly<{
|
|
1935
|
+
kind: 'embedded';
|
|
1936
|
+
data: string;
|
|
1937
|
+
}> | Readonly<{
|
|
1938
|
+
kind: 'referenced';
|
|
1939
|
+
uri: string;
|
|
1940
|
+
}> | Readonly<{
|
|
1941
|
+
kind: 'hosted';
|
|
1942
|
+
key: string;
|
|
1943
|
+
}>;
|
|
1944
|
+
interface HyaAudioResource {
|
|
1945
|
+
readonly id: string;
|
|
1946
|
+
readonly codec: HyaAudioCodec;
|
|
1947
|
+
readonly mediaType: string;
|
|
1948
|
+
readonly integrity: HyaAudioIntegrity;
|
|
1949
|
+
readonly sampleRate: number;
|
|
1950
|
+
readonly channels: number;
|
|
1951
|
+
readonly frameLength: number;
|
|
1952
|
+
readonly source: HyaAudioResourceSource;
|
|
1953
|
+
}
|
|
1954
|
+
interface HyaAudioBus {
|
|
1955
|
+
readonly id: string;
|
|
1956
|
+
readonly parent?: string;
|
|
1957
|
+
readonly gain: number;
|
|
1958
|
+
}
|
|
1959
|
+
interface HyaAudioLoop {
|
|
1960
|
+
readonly startFrame: number;
|
|
1961
|
+
readonly endFrame: number;
|
|
1962
|
+
readonly iterations: number | 'infinite';
|
|
1963
|
+
}
|
|
1964
|
+
interface HyaAudioCue {
|
|
1965
|
+
readonly id: string;
|
|
1966
|
+
readonly resource: string;
|
|
1967
|
+
readonly owner: string;
|
|
1968
|
+
readonly bus: string;
|
|
1969
|
+
readonly gain: number;
|
|
1970
|
+
readonly rate: number;
|
|
1971
|
+
readonly offsetFrames: number;
|
|
1972
|
+
readonly durationFrames?: number;
|
|
1973
|
+
readonly loop?: HyaAudioLoop;
|
|
1974
|
+
readonly overlap: 'allow' | 'ignore' | 'restart';
|
|
1975
|
+
readonly priority: number;
|
|
1976
|
+
}
|
|
1977
|
+
interface HyaAudioTimelineEvent {
|
|
1978
|
+
readonly id: string;
|
|
1979
|
+
readonly clock: HyaAudioClockDomain;
|
|
1980
|
+
readonly time: number;
|
|
1981
|
+
readonly sequence: number;
|
|
1982
|
+
readonly cue: string;
|
|
1983
|
+
readonly operation: 'start' | 'stop';
|
|
1984
|
+
}
|
|
1985
|
+
interface HyaAudioClockPolicy {
|
|
1986
|
+
readonly sampleRate: number;
|
|
1987
|
+
readonly lookAheadFrames: number;
|
|
1988
|
+
readonly driftToleranceFrames: number;
|
|
1989
|
+
readonly driftPolicy: 'resync' | 'error';
|
|
1990
|
+
readonly lateDecodePolicy: 'catch-up' | 'drop' | 'error';
|
|
1991
|
+
readonly visibilityPolicy: 'continue' | 'pause-resume';
|
|
1992
|
+
readonly suspendedPolicy: 'queue-until-resume' | 'error';
|
|
1993
|
+
}
|
|
1994
|
+
interface HyaAudioBrowserPolicy {
|
|
1995
|
+
readonly autoplay: 'require-user-gesture' | 'attempt';
|
|
1996
|
+
}
|
|
1997
|
+
interface HyaAudioRuntimeLimits {
|
|
1998
|
+
readonly maxVoices: number;
|
|
1999
|
+
readonly maxVoicesPerResource: number;
|
|
2000
|
+
readonly maxDecodeJobs: number;
|
|
2001
|
+
readonly maxEventTokens: number;
|
|
2002
|
+
readonly maxDecodedFrames: number;
|
|
2003
|
+
readonly maxDecodedBytes: number;
|
|
2004
|
+
}
|
|
2005
|
+
interface HyaAudioEventDocument {
|
|
2006
|
+
readonly format: typeof HYA_AUDIO_EVENT_FORMAT;
|
|
2007
|
+
readonly version: typeof HYA_AUDIO_EVENT_VERSION;
|
|
2008
|
+
readonly extension: typeof HYA_AUDIO_EVENT_EXTENSION_ID;
|
|
2009
|
+
readonly playbackProfile: HyaAudioPlaybackProfile;
|
|
2010
|
+
readonly clock: HyaAudioClockPolicy;
|
|
2011
|
+
readonly browser: HyaAudioBrowserPolicy;
|
|
2012
|
+
readonly limits: HyaAudioRuntimeLimits;
|
|
2013
|
+
readonly voiceStealing: HyaAudioVoiceStealing;
|
|
2014
|
+
readonly resources: readonly HyaAudioResource[];
|
|
2015
|
+
readonly buses: readonly HyaAudioBus[];
|
|
2016
|
+
readonly cues: readonly HyaAudioCue[];
|
|
2017
|
+
readonly timelineEvents: readonly HyaAudioTimelineEvent[];
|
|
2018
|
+
}
|
|
2019
|
+
interface AudioEventParseOptions {
|
|
2020
|
+
readonly limits?: Partial<AudioEventLimits>;
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
declare function parseHyaAudioEvents(value: unknown, options?: AudioEventParseOptions): HyaAudioEventDocument;
|
|
2024
|
+
|
|
2025
|
+
type AudioEventDiagnosticCode = 'E_AUDIO_EVENT_FORMAT' | 'E_AUDIO_EVENT_VERSION' | 'E_AUDIO_EVENT_NUMBER' | 'E_AUDIO_EVENT_LIMIT' | 'E_AUDIO_EVENT_REFERENCE' | 'E_AUDIO_EVENT_GRAPH' | 'E_AUDIO_EVENT_CODEC' | 'E_AUDIO_EVENT_INTEGRITY';
|
|
2026
|
+
declare class AudioEventDiagnostic extends Error {
|
|
2027
|
+
readonly code: AudioEventDiagnosticCode;
|
|
2028
|
+
readonly path: string;
|
|
2029
|
+
readonly name = "AudioEventDiagnostic";
|
|
2030
|
+
constructor(code: AudioEventDiagnosticCode, path: string, message: string);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
interface StateMachineV2Limits {
|
|
2034
|
+
readonly maxChannels: number;
|
|
2035
|
+
readonly maxClips: number;
|
|
2036
|
+
readonly maxTracks: number;
|
|
2037
|
+
readonly maxKeyframes: number;
|
|
2038
|
+
readonly maxStateMachines: number;
|
|
2039
|
+
readonly maxInputs: number;
|
|
2040
|
+
readonly maxLayers: number;
|
|
2041
|
+
readonly maxStates: number;
|
|
2042
|
+
readonly maxTransitions: number;
|
|
2043
|
+
readonly maxConditionTerms: number;
|
|
2044
|
+
readonly maxMotionDepth: number;
|
|
2045
|
+
readonly maxComponents: number;
|
|
2046
|
+
readonly maxStringLength: number;
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
declare const HYA_STATE_MACHINE_V2_EXTENSION_ID: "org.haiyue.animation-state-machine@2";
|
|
2050
|
+
declare const HYA_STATE_MACHINE_V2_FORMAT: "haiyue-animation-state-machine@2";
|
|
2051
|
+
type TimelineValue = number | boolean | string | readonly number[] | null | Readonly<Record<string, unknown>>;
|
|
2052
|
+
type TimelineValueKind = 'number' | 'vector' | 'color' | 'boolean' | 'string' | 'id' | 'integer' | 'unsigned' | 'callback';
|
|
2053
|
+
type TimelineInterpolation = Readonly<{
|
|
2054
|
+
kind: 'linear';
|
|
2055
|
+
}> | Readonly<{
|
|
2056
|
+
kind: 'hold';
|
|
2057
|
+
}> | Readonly<{
|
|
2058
|
+
kind: 'cubic-ease';
|
|
2059
|
+
controls: readonly [number, number, number, number];
|
|
2060
|
+
}> | Readonly<{
|
|
2061
|
+
kind: 'cubic-value';
|
|
2062
|
+
outTangent: readonly number[];
|
|
2063
|
+
inTangent: readonly number[];
|
|
2064
|
+
}> | Readonly<{
|
|
2065
|
+
kind: 'elastic';
|
|
2066
|
+
easing: 'in' | 'out' | 'in-out';
|
|
2067
|
+
amplitude: number;
|
|
2068
|
+
period: number;
|
|
2069
|
+
}>;
|
|
2070
|
+
interface TimelineKeyframe {
|
|
2071
|
+
readonly time: number;
|
|
2072
|
+
readonly value: TimelineValue;
|
|
2073
|
+
/** Interpolation from this key to the next key. Omitted on the final key. */
|
|
2074
|
+
readonly interpolation?: TimelineInterpolation;
|
|
2075
|
+
}
|
|
2076
|
+
type HyaChannelFamily = 'transform' | 'paint-path' | 'rig' | 'text-layout' | 'resource-data' | 'visibility-order' | 'event-audio-script';
|
|
2077
|
+
type HyaChannelPolicy = 'override' | 'additive' | 'discrete' | 'ownership';
|
|
2078
|
+
type HyaChannelEffectKind = 'event' | 'audio' | 'script';
|
|
2079
|
+
interface HyaTimelineChannel {
|
|
2080
|
+
readonly id: string;
|
|
2081
|
+
readonly target: string;
|
|
2082
|
+
readonly path: string;
|
|
2083
|
+
readonly family: HyaChannelFamily;
|
|
2084
|
+
readonly valueKind: TimelineValueKind;
|
|
2085
|
+
readonly valueSize?: number;
|
|
2086
|
+
readonly numericMode?: 'linear' | 'angle-radians';
|
|
2087
|
+
readonly defaultValue?: TimelineValue;
|
|
2088
|
+
readonly policy: HyaChannelPolicy;
|
|
2089
|
+
readonly effectKind?: HyaChannelEffectKind;
|
|
2090
|
+
}
|
|
2091
|
+
interface HyaTimelineTrack {
|
|
2092
|
+
readonly id: string;
|
|
2093
|
+
readonly channel: string;
|
|
2094
|
+
readonly keys: readonly TimelineKeyframe[];
|
|
2095
|
+
}
|
|
2096
|
+
interface HyaTimelineClip {
|
|
2097
|
+
readonly id: string;
|
|
2098
|
+
readonly name?: string;
|
|
2099
|
+
readonly duration: number;
|
|
2100
|
+
readonly fps?: number;
|
|
2101
|
+
readonly quantize?: boolean;
|
|
2102
|
+
readonly workArea?: Readonly<{
|
|
2103
|
+
start: number;
|
|
2104
|
+
end: number;
|
|
2105
|
+
}>;
|
|
2106
|
+
readonly tracks: readonly HyaTimelineTrack[];
|
|
2107
|
+
}
|
|
2108
|
+
type HyaPlaybackMode = 'one-shot' | 'loop' | 'ping-pong';
|
|
2109
|
+
interface HyaClipMotion {
|
|
2110
|
+
readonly kind: 'clip';
|
|
2111
|
+
readonly clip: string;
|
|
2112
|
+
readonly speed?: number;
|
|
2113
|
+
readonly speedInput?: string;
|
|
2114
|
+
readonly playback?: HyaPlaybackMode;
|
|
2115
|
+
readonly timeRemapInput?: string;
|
|
2116
|
+
}
|
|
2117
|
+
interface HyaBlend1DMotion {
|
|
2118
|
+
readonly kind: 'blend-1d';
|
|
2119
|
+
readonly input: string;
|
|
2120
|
+
readonly children: readonly Readonly<{
|
|
2121
|
+
threshold: number;
|
|
2122
|
+
motion: HyaStateMotion;
|
|
2123
|
+
}>[];
|
|
2124
|
+
}
|
|
2125
|
+
interface HyaBlend2DMotion {
|
|
2126
|
+
readonly kind: 'blend-2d';
|
|
2127
|
+
readonly algorithm: 'cartesian' | 'directional';
|
|
2128
|
+
readonly inputX: string;
|
|
2129
|
+
readonly inputY: string;
|
|
2130
|
+
readonly children: readonly Readonly<{
|
|
2131
|
+
position: readonly [number, number];
|
|
2132
|
+
motion: HyaStateMotion;
|
|
2133
|
+
}>[];
|
|
2134
|
+
}
|
|
2135
|
+
interface HyaAdditiveBlendMotion {
|
|
2136
|
+
readonly kind: 'blend-additive';
|
|
2137
|
+
readonly base: HyaStateMotion;
|
|
2138
|
+
readonly children: readonly Readonly<{
|
|
2139
|
+
motion: HyaStateMotion;
|
|
2140
|
+
weight?: number;
|
|
2141
|
+
weightInput?: string;
|
|
2142
|
+
}>[];
|
|
2143
|
+
}
|
|
2144
|
+
interface HyaNestedMotion {
|
|
2145
|
+
readonly kind: 'nested';
|
|
2146
|
+
readonly component: string;
|
|
2147
|
+
readonly speed?: number;
|
|
2148
|
+
readonly timeRemapInput?: string;
|
|
2149
|
+
readonly mixInput?: string;
|
|
2150
|
+
readonly playingInput?: string;
|
|
2151
|
+
readonly inputBindings?: Readonly<Record<string, string>>;
|
|
2152
|
+
}
|
|
2153
|
+
type HyaStateMotion = HyaClipMotion | HyaBlend1DMotion | HyaBlend2DMotion | HyaAdditiveBlendMotion | HyaNestedMotion;
|
|
2154
|
+
type HyaMachineInput = Readonly<{
|
|
2155
|
+
id: string;
|
|
2156
|
+
type: 'number';
|
|
2157
|
+
defaultValue: number;
|
|
2158
|
+
}> | Readonly<{
|
|
2159
|
+
id: string;
|
|
2160
|
+
type: 'integer';
|
|
2161
|
+
defaultValue: number;
|
|
2162
|
+
}> | Readonly<{
|
|
2163
|
+
id: string;
|
|
2164
|
+
type: 'boolean';
|
|
2165
|
+
defaultValue: boolean;
|
|
2166
|
+
}> | Readonly<{
|
|
2167
|
+
id: string;
|
|
2168
|
+
type: 'trigger';
|
|
2169
|
+
}>;
|
|
2170
|
+
type HyaComparator = 'equal' | 'not-equal' | 'greater' | 'greater-or-equal' | 'less' | 'less-or-equal';
|
|
2171
|
+
type HyaTransitionCondition = Readonly<{
|
|
2172
|
+
kind: 'input';
|
|
2173
|
+
input: string;
|
|
2174
|
+
comparator: HyaComparator;
|
|
2175
|
+
value: TimelineValue;
|
|
2176
|
+
}> | Readonly<{
|
|
2177
|
+
kind: 'trigger';
|
|
2178
|
+
input: string;
|
|
2179
|
+
}> | Readonly<{
|
|
2180
|
+
kind: 'observable';
|
|
2181
|
+
protocol: string;
|
|
2182
|
+
port: string;
|
|
2183
|
+
comparator: HyaComparator;
|
|
2184
|
+
value: TimelineValue;
|
|
2185
|
+
arguments?: Readonly<Record<string, TimelineValue>>;
|
|
2186
|
+
}> | Readonly<{
|
|
2187
|
+
kind: 'custom';
|
|
2188
|
+
protocol: string;
|
|
2189
|
+
port: string;
|
|
2190
|
+
arguments?: Readonly<Record<string, TimelineValue>>;
|
|
2191
|
+
}>;
|
|
2192
|
+
interface HyaTransitionEffect {
|
|
2193
|
+
readonly channel: string;
|
|
2194
|
+
readonly phase: 'start' | 'complete';
|
|
2195
|
+
readonly payload?: TimelineValue | Readonly<Record<string, TimelineValue>>;
|
|
2196
|
+
}
|
|
2197
|
+
interface HyaStateDefinition {
|
|
2198
|
+
readonly id: string;
|
|
2199
|
+
readonly motion: HyaStateMotion;
|
|
2200
|
+
readonly entryEffects?: readonly HyaTransitionEffect[];
|
|
2201
|
+
readonly exitEffects?: readonly HyaTransitionEffect[];
|
|
2202
|
+
}
|
|
2203
|
+
type HyaTransitionEndpoint = '@entry' | '@any' | '@exit' | string;
|
|
2204
|
+
interface HyaTransitionDefinition {
|
|
2205
|
+
readonly id: string;
|
|
2206
|
+
readonly from: HyaTransitionEndpoint;
|
|
2207
|
+
readonly to: HyaTransitionEndpoint;
|
|
2208
|
+
/** OR across groups, AND within a group. An empty list is unconditional. */
|
|
2209
|
+
readonly conditionGroups: readonly (readonly HyaTransitionCondition[])[];
|
|
2210
|
+
readonly exitTime?: number;
|
|
2211
|
+
readonly randomWeight?: number;
|
|
2212
|
+
readonly pauseWhenExiting?: boolean;
|
|
2213
|
+
readonly duration: number;
|
|
2214
|
+
readonly destinationOffset?: number;
|
|
2215
|
+
readonly interruption?: 'none' | 'source' | 'destination' | 'source-then-destination' | 'destination-then-source';
|
|
2216
|
+
readonly exitMotion?: HyaStateMotion;
|
|
2217
|
+
readonly interpolation?: TimelineInterpolation;
|
|
2218
|
+
readonly effects?: readonly HyaTransitionEffect[];
|
|
2219
|
+
}
|
|
2220
|
+
interface HyaStateLayer {
|
|
2221
|
+
readonly id: string;
|
|
2222
|
+
readonly order: number;
|
|
2223
|
+
readonly weight?: number;
|
|
2224
|
+
readonly weightInput?: string;
|
|
2225
|
+
readonly mode?: 'override' | 'additive';
|
|
2226
|
+
readonly mask?: Readonly<{
|
|
2227
|
+
include?: readonly string[];
|
|
2228
|
+
exclude?: readonly string[];
|
|
2229
|
+
}>;
|
|
2230
|
+
readonly states: readonly HyaStateDefinition[];
|
|
2231
|
+
/** Declaration order is the stable transition priority. */
|
|
2232
|
+
readonly transitions: readonly HyaTransitionDefinition[];
|
|
2233
|
+
}
|
|
2234
|
+
interface HyaStateMachineV2 {
|
|
2235
|
+
readonly id: string;
|
|
2236
|
+
readonly inputs: readonly HyaMachineInput[];
|
|
2237
|
+
readonly layers: readonly HyaStateLayer[];
|
|
2238
|
+
}
|
|
2239
|
+
interface HyaNestedComponentDefinition {
|
|
2240
|
+
readonly id: string;
|
|
2241
|
+
readonly target: string;
|
|
2242
|
+
readonly source: Readonly<{
|
|
2243
|
+
kind: 'clip';
|
|
2244
|
+
clip: string;
|
|
2245
|
+
} | {
|
|
2246
|
+
kind: 'state-machine';
|
|
2247
|
+
machine: string;
|
|
2248
|
+
}>;
|
|
2249
|
+
readonly playback: 'simple' | 'remap' | 'mix' | 'state-machine';
|
|
2250
|
+
readonly exposedInputs?: readonly string[];
|
|
2251
|
+
readonly exposedEvents?: readonly string[];
|
|
2252
|
+
}
|
|
2253
|
+
interface HyaStateMachineV2Document {
|
|
2254
|
+
readonly format: typeof HYA_STATE_MACHINE_V2_FORMAT;
|
|
2255
|
+
readonly extension: typeof HYA_STATE_MACHINE_V2_EXTENSION_ID;
|
|
2256
|
+
readonly channels: readonly HyaTimelineChannel[];
|
|
2257
|
+
readonly clips: readonly HyaTimelineClip[];
|
|
2258
|
+
readonly stateMachines: readonly HyaStateMachineV2[];
|
|
2259
|
+
readonly components?: readonly HyaNestedComponentDefinition[];
|
|
2260
|
+
}
|
|
2261
|
+
interface HyaStateMachineV1MigrationResult {
|
|
2262
|
+
readonly document: HyaStateMachineV2Document;
|
|
2263
|
+
readonly diagnostics: readonly Readonly<{
|
|
2264
|
+
code: 'W_STATE_MACHINE_V1_MIGRATED' | 'W_STATE_MACHINE_V1_CHANNEL_POLICY_REQUIRED';
|
|
2265
|
+
path: string;
|
|
2266
|
+
message: string;
|
|
2267
|
+
}>[];
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
interface ParseStateMachineV2Options {
|
|
2271
|
+
readonly limits?: Partial<StateMachineV2Limits>;
|
|
2272
|
+
}
|
|
2273
|
+
declare function parseHyaStateMachineV2(value: unknown, options?: ParseStateMachineV2Options): HyaStateMachineV2Document;
|
|
2274
|
+
|
|
2275
|
+
interface HyaStateMachineV1MigrationOptions {
|
|
2276
|
+
/** Caller-supplied executable v2 channel contracts for tracks in the parent HYA document. */
|
|
2277
|
+
readonly channels?: readonly HyaTimelineChannel[];
|
|
2278
|
+
/** Tracks already adapted from the parent HYA composition, keyed by the v1 named clip id. */
|
|
2279
|
+
readonly tracksByClip?: Readonly<Record<string, readonly HyaTimelineTrack[]>>;
|
|
2280
|
+
}
|
|
2281
|
+
/**
|
|
2282
|
+
* Deterministically migrates the built-in v1 graph without keeping a v1
|
|
2283
|
+
* execution branch. Parent HYA tracks are deliberately supplied by the
|
|
2284
|
+
* generic HYA compiler; this function never samples a source format.
|
|
2285
|
+
*/
|
|
2286
|
+
declare function migrateHyaStateMachineV1(value: unknown, options?: HyaStateMachineV1MigrationOptions): HyaStateMachineV1MigrationResult;
|
|
2287
|
+
|
|
2288
|
+
type StateMachineV2DiagnosticCode = 'E_STATE_MACHINE_V2_FORMAT' | 'E_STATE_MACHINE_V2_NUMBER' | 'E_STATE_MACHINE_V2_REFERENCE' | 'E_STATE_MACHINE_V2_LIMIT' | 'E_STATE_MACHINE_V2_POLICY' | 'E_STATE_MACHINE_V2_GRAPH' | 'E_STATE_MACHINE_V2_MIGRATION';
|
|
2289
|
+
declare class StateMachineV2Diagnostic extends Error {
|
|
2290
|
+
readonly code: StateMachineV2DiagnosticCode;
|
|
2291
|
+
readonly path: string;
|
|
2292
|
+
readonly name = "StateMachineV2Diagnostic";
|
|
2293
|
+
constructor(code: StateMachineV2DiagnosticCode, path: string, message: string);
|
|
2294
|
+
}
|
|
2295
|
+
|
|
984
2296
|
type AnimationFormatErrorCode = 'E_ANIMATION_INVALID_FORMAT' | 'E_ANIMATION_UNSUPPORTED_VERSION' | 'E_ANIMATION_LIMIT_EXCEEDED' | 'E_ANIMATION_MISSING_EXTENSION' | 'E_ANIMATION_INVALID_BINARY';
|
|
985
2297
|
declare class AnimationFormatError extends Error {
|
|
986
2298
|
readonly code: AnimationFormatErrorCode;
|
|
@@ -1127,6 +2439,67 @@ interface HyaStateMachineExtension {
|
|
|
1127
2439
|
/** Strictly validates and freezes the built-in HYA state-machine extension. */
|
|
1128
2440
|
declare function parseHyaStateMachineExtension(value: unknown, compositionDuration: number, path?: string): HyaStateMachineExtension;
|
|
1129
2441
|
|
|
2442
|
+
/** Canonical byte identity shared by animation, layout, audio and resource packs. */
|
|
2443
|
+
interface HyaResourceIntegrity {
|
|
2444
|
+
readonly algorithm: 'sha256';
|
|
2445
|
+
readonly digest: string;
|
|
2446
|
+
}
|
|
2447
|
+
type HyaResourceSource = Readonly<{
|
|
2448
|
+
kind: 'embedded';
|
|
2449
|
+
data: Uint8Array;
|
|
2450
|
+
integrity?: HyaResourceIntegrity;
|
|
2451
|
+
}> | Readonly<{
|
|
2452
|
+
kind: 'referenced';
|
|
2453
|
+
uri: string;
|
|
2454
|
+
integrity?: HyaResourceIntegrity;
|
|
2455
|
+
}> | Readonly<{
|
|
2456
|
+
kind: 'hosted';
|
|
2457
|
+
key: string;
|
|
2458
|
+
fallbackAsset?: string;
|
|
2459
|
+
integrity?: HyaResourceIntegrity;
|
|
2460
|
+
}>;
|
|
2461
|
+
interface HyaResourceDescriptor {
|
|
2462
|
+
readonly id: string;
|
|
2463
|
+
readonly kind: 'image' | 'audio' | 'binary';
|
|
2464
|
+
readonly mediaType?: string;
|
|
2465
|
+
readonly source: HyaResourceSource;
|
|
2466
|
+
}
|
|
2467
|
+
declare function encodeHyaBase64(bytes: Uint8Array): string;
|
|
2468
|
+
declare function decodeHyaBase64(value: string, maxBytes?: number): Uint8Array;
|
|
2469
|
+
declare function normalizeHyaResourceIntegrity(value: unknown): HyaResourceIntegrity;
|
|
2470
|
+
declare function hyaResourceIntegritySri(value: unknown): string;
|
|
2471
|
+
declare function decodeHyaDataUri(uri: string, maxBytes?: number): Readonly<{
|
|
2472
|
+
mediaType: string;
|
|
2473
|
+
bytes: Uint8Array;
|
|
2474
|
+
}>;
|
|
2475
|
+
declare function encodeHyaDataUri(bytes: Uint8Array, mediaType: string): string;
|
|
2476
|
+
declare function normalizeHyaResourceSource(value: unknown, maxBytes?: number): HyaResourceSource;
|
|
2477
|
+
declare function describeHyaResource(resource: Readonly<{
|
|
2478
|
+
id: string;
|
|
2479
|
+
type: 'image' | 'audio' | 'binary';
|
|
2480
|
+
uri: string;
|
|
2481
|
+
mimeType?: string;
|
|
2482
|
+
integrity?: string;
|
|
2483
|
+
}>): HyaResourceDescriptor;
|
|
2484
|
+
/** Synchronous, platform-neutral SHA-256; avoids a Node/DOM dependency in the codec. */
|
|
2485
|
+
declare function hyaResourceSha256(bytes: Uint8Array): string;
|
|
2486
|
+
|
|
2487
|
+
interface HyaResourcePackEntry {
|
|
2488
|
+
readonly id: string;
|
|
2489
|
+
readonly data: ArrayBuffer;
|
|
2490
|
+
}
|
|
2491
|
+
interface HyaResourcePack {
|
|
2492
|
+
readonly entries: readonly string[];
|
|
2493
|
+
readonly blobCount: number;
|
|
2494
|
+
readonly embeddedBytes: number;
|
|
2495
|
+
read(id: string): ArrayBuffer;
|
|
2496
|
+
}
|
|
2497
|
+
/** Self-contained library. Logical IDs are independent of content-addressed physical byte blobs. */
|
|
2498
|
+
declare function encodeHyaResourcePack(entries: readonly HyaResourcePackEntry[], options?: AnimationParseOptions): ArrayBuffer;
|
|
2499
|
+
declare function isHyaResourcePack(buffer: ArrayBuffer): boolean;
|
|
2500
|
+
/** Retains one bounded immutable snapshot; reading an entry reconstructs a standalone v3 HYA. */
|
|
2501
|
+
declare function decodeHyaResourcePack(input: ArrayBuffer, options?: AnimationParseOptions): HyaResourcePack;
|
|
2502
|
+
|
|
1130
2503
|
interface LottieConversionDiagnostic {
|
|
1131
2504
|
readonly severity: 'warning' | 'error';
|
|
1132
2505
|
readonly code: string;
|
|
@@ -1489,5 +2862,5 @@ declare function parseNative3DAnimation(source: Native3DAnimationSource, options
|
|
|
1489
2862
|
/** Validates and canonicalizes the extension before any runtime allocation. */
|
|
1490
2863
|
declare function parseNative3DAnimationPayload(value: unknown, options?: Native3DAnimationParseOptions): Native3DAnimationPayload;
|
|
1491
2864
|
|
|
1492
|
-
export { DEFORMABLE_MESH_2D_MAX_MASK_REFERENCES as $, CUBISM_CAPTURE_FRAME_OPERATIONS as C, CubismClipBakedAdapter as J, combineCubismCaptureClips as T, convertCubismCaptureToHya as U, listCubismModel3Motions as V, runCubismClipBakedConversion as W, sampleCubismMotion3 as X, DEFORMABLE_MESH_2D_DATA_FORMAT as Y, DEFORMABLE_MESH_2D_DATA_VERSION as Z, DEFORMABLE_MESH_2D_EXTENSION_ID as _, createDeformableMesh2DFormatHandler as a7, createDeformableMesh2DFormatRegistry as a8, decodeDeformableMesh2DData as a9,
|
|
1493
|
-
export type { CubismCaptureConversionOptions as A, CubismCaptureConversionResult as B, CubismCaptureDiagnostic as D, CubismCaptureFrame as E, CubismCaptureSet as F, CubismCaptureSetOptions as G, CubismCaptureTexture as H, CubismCapturedDrawable as I, CubismClipBakedConversionOptions as K, CubismClipBakedRecipe as L, CubismClipBakedSource as M, CubismDrawableCapture as N, OfflineConversionAdapter as O, CubismModel3MotionReference as P, CubismMotion3 as Q, CubismMotion3Curve as R, CubismMotion3Sample as S, OfflineConversionAdapterContext as a,
|
|
2865
|
+
export { DEFORMABLE_MESH_2D_MAX_MASK_REFERENCES as $, CUBISM_CAPTURE_FRAME_OPERATIONS as C, CubismClipBakedAdapter as J, combineCubismCaptureClips as T, convertCubismCaptureToHya as U, listCubismModel3Motions as V, runCubismClipBakedConversion as W, sampleCubismMotion3 as X, DEFORMABLE_MESH_2D_DATA_FORMAT as Y, DEFORMABLE_MESH_2D_DATA_VERSION as Z, DEFORMABLE_MESH_2D_EXTENSION_ID as _, parseHyaInteraction as a$, createDeformableMesh2DFormatHandler as a7, createDeformableMesh2DFormatRegistry as a8, decodeDeformableMesh2DData as a9, InteractionDiagnostic as aF, LayoutDiagnostic as aI, SemanticsDiagnostic as aN, StateMachineV2Diagnostic as aQ, decodeResponsiveLayoutDocument as aS, encodeHyaComposition as aT, encodeResponsiveLayoutDocument as aU, isResponsiveLayoutBinary as aV, migrateHyaStateMachineV1 as aW, negotiateHyaComposition as aX, parseHyaAudioEvents as aY, parseHyaComposition as aZ, parseHyaDataBinding as a_, encodeDeformableMesh2DData as aa, isDeformableMesh2DBinary as ab, AudioEventDiagnostic as ac, DEFAULT_HYA_COMPOSITION_LIMITS as af, DataBindingDiagnostic as ag, HYA_COMPOSITION_FORMAT as ak, HYA_COMPOSITION_VERSION as al, HyaCompositionError as ap, parseHyaSemantics as b0, parseHyaStateMachineV2 as b1, parseResponsiveLayoutDocument as b2, ANIMATION_FILE_EXTENSION as b3, ANIMATION_FORMAT as b4, ANIMATION_MIME_TYPE as b5, ANIMATION_PROCEDURAL_RASTER_EXTENSION_ID as b6, ANIMATION_VECTOR_SHAPE_EXTENSION_ID as b7, ANIMATION_VERSION as b8, AnimationExtensionRegistry as bs, AnimationFormatError as bw, NATIVE_3D_ANIMATION_FORMAT as c$, HYA_SAFE_EXPRESSION_VERSION as c5, HYA_STATE_MACHINE_CHANNEL_REGISTRY as c6, HYA_STATE_MACHINE_EXTENSION_ID as c7, encodeAnimationBinary as cA, encodeHyaBase64 as cB, encodeHyaDataUri as cC, encodeHyaResourcePack as cD, evaluateSafeExpression as cE, extensionIdFromComponentType as cF, hyaResourceIntegritySri as cG, hyaResourceSha256 as cH, hyaStateMachineChannelCapability as cI, isAnimationBinary as cJ, isHyaResourcePack as cK, normalizeHyaResourceIntegrity as cL, normalizeHyaResourceSource as cM, parseAnimation as cN, parseHyaStateMachineExtension as cO, safeExpressionDataResources as cP, validateExtensionId as cQ, convertLottie as cX, convertLottieDocument as cY, inspectLottieFonts as cZ, NATIVE_3D_ANIMATION_EXTENSION_ID as c_, decodeAnimationBinary as cv, decodeHyaBase64 as cw, decodeHyaDataUri as cx, decodeHyaResourcePack as cy, describeHyaResource as cz, NATIVE_3D_CLIP_FORMAT as d0, NATIVE_3D_STATE_MACHINE_FORMAT as d1, Native3DAnimationFormatError as d3, createNative3DAnimationExtensionHandler as dD, parseNative3DAnimation as dE, parseNative3DAnimationPayload as dF, OfflineConversionError as f, runOfflineConversion as r, stableStringify as s, CUBISM_CLIP_BAKED_UPDATE_ORDER as t, CUBISM_DRAWABLE_CAPTURE_FORMAT as u, CUBISM_DRAWABLE_CAPTURE_VERSION as v, CubismCaptureConversionError as z };
|
|
2866
|
+
export type { CubismCaptureConversionOptions as A, CubismCaptureConversionResult as B, CubismCaptureDiagnostic as D, CubismCaptureFrame as E, CubismCaptureSet as F, CubismCaptureSetOptions as G, CubismCaptureTexture as H, CubismCapturedDrawable as I, CubismClipBakedConversionOptions as K, CubismClipBakedRecipe as L, CubismClipBakedSource as M, CubismDrawableCapture as N, OfflineConversionAdapter as O, CubismModel3MotionReference as P, CubismMotion3 as Q, CubismMotion3Curve as R, CubismMotion3Sample as S, OfflineConversionAdapterContext as a, DeformableMesh2DBlendMode as a0, DeformableMesh2DComponent as a1, DeformableMesh2DDataSource as a2, DeformableMesh2DDrawableSource as a3, DeformableMesh2DParseLimits as a4, ParsedDeformableMesh2DData as a5, ParsedDeformableMesh2DDrawable as a6, HyaInteractionDocument as aA, HyaSemanticsDocument as aB, HyaStateMachineV1MigrationOptions as aC, HyaStateMachineV1MigrationResult as aD, HyaStateMachineV2Document as aE, InteractionDiagnosticCode as aG, InteractionParseOptions as aH, LayoutDiagnosticCode as aJ, LayoutParseOptions as aK, ParseStateMachineV2Options as aL, ResponsiveLayoutDocument as aM, SemanticsDiagnosticCode as aO, SemanticsParseOptions as aP, StateMachineV2DiagnosticCode as aR, AudioEventDiagnosticCode as ad, AudioEventParseOptions as ae, DataBindingDiagnosticCode as ah, DataBindingParseOptions as ai, DataValue as aj, HyaAudioEventDocument as am, HyaCompositionDiagnostic as an, HyaCompositionDocument as ao, HyaCompositionErrorCode as aq, HyaCompositionLimits as ar, HyaCompositionParseOptions as as, HyaCompositionParseResult as at, HyaCompositionPart as au, HyaCompositionPartValidator as av, HyaCompositionPlan as aw, HyaCompositionTarget as ax, HyaCompositionValue as ay, HyaDataBindingDocument as az, OfflineConversionArtifact as b, AnimationVectorFeather as b$, AnimationAudioComponent as b9, AnimationLayerEffect as bA, AnimationNode as bB, AnimationOpacityEffect as bC, AnimationParseLimits as bD, AnimationParseOptions as bE, AnimationParticle2DComponent as bF, AnimationPath2DComponent as bG, AnimationPathCommand as bH, AnimationProceduralRasterComponent as bI, AnimationResource as bJ, AnimationSafeExpressionContext as bK, AnimationSafeExpressionInstruction as bL, AnimationSafeExpressionProgram as bM, AnimationShape2DComponent as bN, AnimationSource as bO, AnimationSprite2DComponent as bP, AnimationText2DComponent as bQ, AnimationTextAnimator as bR, AnimationTextDocumentKeyframe as bS, AnimationTextRangeSelector as bT, AnimationTextSelectorShape as bU, AnimationTextSelectorUnits as bV, AnimationTextStyleRun as bW, AnimationTintEffect as bX, AnimationTrack as bY, AnimationTrackProperty as bZ, AnimationTransform2D as b_, AnimationAudioResource as ba, AnimationBinaryResource as bb, AnimationBlurEffect as bc, AnimationCanvas as bd, AnimationColorMatrixEffect as be, AnimationComponent as bf, AnimationComposite as bg, AnimationCompositeKind as bh, AnimationCompositeLayer as bi, AnimationCompositeMode as bj, AnimationCompositeOperation as bk, AnimationCompositeStack as bl, AnimationCoordinateSystem as bm, AnimationDocument as bn, AnimationDropShadowEffect as bo, AnimationEndBehavior as bp, AnimationExtensionComponent as bq, AnimationExtensionHandler as br, AnimationExtensionValidationContext as bt, AnimationFillEffect as bu, AnimationFillRule as bv, AnimationFormatErrorCode as bx, AnimationImageResource as by, AnimationInterpolation as bz, OfflineConversionAssetRequest as c, AnimationVectorGradientPaint as c0, AnimationVectorShapeComponent as c1, AnimationVectorSolidPaint as c2, AnimationVectorStrokePaint as c3, AnimationVectorValueTrack as c4, HyaAnimationClipRange as c8, HyaResourceDescriptor as c9, LottieConversionDiagnostic as cR, LottieConversionOptions as cS, LottieConversionResult as cT, LottieFontMetrics as cU, LottieFontRequirement as cV, LottieWebFontMapping as cW, HyaResourceIntegrity as ca, HyaResourcePack as cb, HyaResourcePackEntry as cc, HyaResourceSource as cd, HyaStateMachineBindingMask as ce, HyaStateMachineBlendMode as cf, HyaStateMachineChannelCapability as cg, HyaStateMachineChannelId as ch, HyaStateMachineChannelKind as ci, HyaStateMachineChannelSupport as cj, HyaStateMachineCondition as ck, HyaStateMachineDefinition as cl, HyaStateMachineExtension as cm, HyaStateMachineLayer as cn, HyaStateMachineLoopMode as co, HyaStateMachineMotion as cp, HyaStateMachineParameter as cq, HyaStateMachineState as cr, HyaStateMachineTransition as cs, ParsedAnimation as ct, ParsedAnimationTrack as cu, OfflineConversionDiagnostic as d, Native3DAnimationDiagnosticCode as d2, Native3DAnimationParseOptions as d4, Native3DAnimationPayload as d5, Native3DAnimationSource as d6, Native3DBinding as d7, Native3DBindingTarget as d8, Native3DCameraComponent as d9, Native3DVec4 as dA, Native3DViewport as dB, ParsedNative3DAnimation as dC, Native3DCameraProjection as da, Native3DClip as db, Native3DComponent as dc, Native3DCoordinateSystem as dd, Native3DEvent as de, Native3DMaterial as df, Native3DModelComponent as dg, Native3DNode as dh, Native3DParseLimits as di, Native3DParticleComponent as dj, Native3DParticleDescriptor as dk, Native3DPrimitiveComponent as dl, Native3DQuaternion as dm, Native3DScalarRange as dn, Native3DStateMachine as dp, Native3DStateMachineCondition as dq, Native3DStateMachineLayer as dr, Native3DStateMachineMotion as ds, Native3DStateMachineParameter as dt, Native3DStateMachineState as du, Native3DStateMachineTransition as dv, Native3DTrack as dw, Native3DTransform as dx, Native3DVec2 as dy, Native3DVec3 as dz, OfflineConversionEncodeInput as e, OfflineConversionFrameOperations as g, OfflineConversionHost as h, OfflineConversionMode as i, OfflineConversionPipelineOptions as j, OfflineConversionPipelineResult as k, OfflineConversionRecipe as l, OfflineConversionReport as m, OfflineConversionResolvedAsset as n, OfflineConversionSamplingOptions as o, OfflineConversionSession as p, OfflineConversionTransaction as q, CubismBuildTimeEvaluator as w, CubismCaptureClipInput as x, CubismCaptureClipRange as y };
|