@haiyue/animation-spec 0.1.0 → 0.2.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 +40 -6
- package/SPECIFICATION.md +12 -2
- package/bin/hya-live2d-convert.mjs +76 -0
- package/bin/{hya-convert.mjs → hya-lottie-convert.mjs} +1 -1
- package/dist/chunks/binary-DvuTJ_hy.js +1 -0
- package/dist/chunks/clip-baked-Dv-wjX9d.js +1 -0
- package/dist/chunks/errors-Bzs3GOD9.js +1 -0
- package/dist/chunks/expression-D1cKtNwM.js +1 -0
- package/dist/chunks/extensions-DxL4AxOC.js +1 -0
- package/dist/conversion.d.ts +1 -0
- package/dist/conversion.js +1 -0
- package/dist/cubism.d.ts +1 -0
- package/dist/cubism.js +1 -0
- package/dist/deformable2d.d.ts +1 -0
- package/dist/deformable2d.js +1 -0
- package/dist/index.d.ts +1 -10
- package/dist/index.js +1 -2927
- package/dist/live2d/clip-baked.d.ts +1 -0
- package/dist/live2d/clip-baked.js +1 -0
- package/dist/live2d.d.ts +1 -0
- package/dist/live2d.js +1 -0
- package/dist/lottie.d.ts +1 -62
- package/dist/lottie.js +1 -2642
- package/dist/native3d.d.ts +1 -2
- package/dist/native3d.js +1 -907
- package/dist/shared.d.ts +1493 -0
- package/package.json +30 -10
- package/schema/animation.schema.json +92 -0
- package/schema/deformable-mesh-2d-extension.schema.json +18 -0
- package/schema/deformable-mesh-2d.contract.json +58 -0
- package/schema/parameterized-rig-2d.contract.json +63 -0
- package/schema/parameterized-rig-2d.schema.json +57 -0
- package/schema/parameterized-rig-census-map.json +128 -0
- package/schema/responsive-layout-2d-census-map.json +49 -0
- package/schema/responsive-layout-2d.contract.json +58 -0
- package/schema/responsive-layout-2d.schema.json +34 -0
- package/schema/state-machine-v2-census-map.json +1 -0
- package/schema/state-machine-v2.contract.json +66 -0
- package/schema/state-machine-v2.schema.json +55 -0
- package/schema/vector-visual-census-map.json +120 -0
- package/schema/vector-visual.contract.json +47 -0
- package/schema/vector-visual.schema.json +72 -0
- package/dist/binary.d.ts +0 -7
- package/dist/chunks/types-l6nBVYwx.js +0 -8
- package/dist/chunks/types-l6nBVYwx.js.map +0 -1
- package/dist/errors.d.ts +0 -7
- package/dist/extensions.d.ts +0 -19
- package/dist/index.js.map +0 -1
- package/dist/lottie-merge-path.d.ts +0 -11
- package/dist/lottie.js.map +0 -1
- package/dist/native3d/Animation3DError.d.ts +0 -8
- package/dist/native3d/Animation3DParser.d.ts +0 -7
- package/dist/native3d/Animation3DTypes.d.ts +0 -285
- package/dist/native3d/index.d.ts +0 -5
- package/dist/native3d.js.map +0 -1
- package/dist/parser.d.ts +0 -2
- package/dist/state-machine.d.ts +0 -130
- package/dist/text-selector.d.ts +0 -2
- package/dist/types.d.ts +0 -419
- package/dist/validation.d.ts +0 -32
- package/src/binary.ts +0 -1441
- package/src/errors.ts +0 -18
- package/src/extensions.ts +0 -55
- package/src/index.ts +0 -90
- package/src/lottie-merge-path.ts +0 -204
- package/src/lottie.ts +0 -3073
- package/src/native3d/Animation3DError.ts +0 -20
- package/src/native3d/Animation3DParser.ts +0 -964
- package/src/native3d/Animation3DTypes.ts +0 -322
- package/src/native3d/index.ts +0 -14
- package/src/native3d.ts +0 -2
- package/src/parser.ts +0 -41
- package/src/state-machine.ts +0 -645
- package/src/text-selector.ts +0 -7
- package/src/types.ts +0 -483
- package/src/validation.ts +0 -1286
- package/test/fixtures/basic-lottie.json +0 -31
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { C as CUBISM_CAPTURE_FRAME_OPERATIONS, t as CUBISM_CLIP_BAKED_UPDATE_ORDER, w as CubismBuildTimeEvaluator, J as CubismClipBakedAdapter, K as CubismClipBakedConversionOptions, L as CubismClipBakedRecipe, M as CubismClipBakedSource, W as runCubismClipBakedConversion } from '../shared.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{C as CUBISM_CAPTURE_FRAME_OPERATIONS,a as CUBISM_CLIP_BAKED_UPDATE_ORDER,e as CubismClipBakedAdapter,r as runCubismClipBakedConversion}from"../chunks/clip-baked-Dv-wjX9d.js";import"../chunks/binary-DvuTJ_hy.js";import"../chunks/errors-Bzs3GOD9.js";import"../chunks/expression-D1cKtNwM.js";import"../chunks/extensions-DxL4AxOC.js";import"../deformable2d.js";import"../conversion.js";//# sourceMappingURL=clip-baked.js.map
|
package/dist/live2d.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { C as CUBISM_CAPTURE_FRAME_OPERATIONS, t as CUBISM_CLIP_BAKED_UPDATE_ORDER, u as CUBISM_DRAWABLE_CAPTURE_FORMAT, v as CUBISM_DRAWABLE_CAPTURE_VERSION, w as CubismBuildTimeEvaluator, x as CubismCaptureClipInput, y as CubismCaptureClipRange, z as CubismCaptureConversionError, A as CubismCaptureConversionOptions, B as CubismCaptureConversionResult, D as CubismCaptureDiagnostic, E as CubismCaptureFrame, F as CubismCaptureSet, G as CubismCaptureSetOptions, H as CubismCaptureTexture, I as CubismCapturedDrawable, J as CubismClipBakedAdapter, K as CubismClipBakedConversionOptions, L as CubismClipBakedRecipe, M as CubismClipBakedSource, N as CubismDrawableCapture, P as CubismModel3MotionReference, Q as CubismMotion3, R as CubismMotion3Curve, S as CubismMotion3Sample, T as combineCubismCaptureClips, U as convertCubismCaptureToHya, V as listCubismModel3Motions, W as runCubismClipBakedConversion, X as sampleCubismMotion3 } from './shared.js';
|
package/dist/live2d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{C as CUBISM_CAPTURE_FRAME_OPERATIONS,a as CUBISM_CLIP_BAKED_UPDATE_ORDER,b as CUBISM_DRAWABLE_CAPTURE_FORMAT,c as CUBISM_DRAWABLE_CAPTURE_VERSION,d as CubismCaptureConversionError,e as CubismClipBakedAdapter,f as convertCubismCaptureToHya,r as runCubismClipBakedConversion}from"./chunks/clip-baked-Dv-wjX9d.js";export{combineCubismCaptureClips,listCubismModel3Motions,sampleCubismMotion3}from"./cubism.js";import"./chunks/binary-DvuTJ_hy.js";import"./chunks/errors-Bzs3GOD9.js";import"./chunks/expression-D1cKtNwM.js";import"./chunks/extensions-DxL4AxOC.js";import"./deformable2d.js";import"./conversion.js";//# sourceMappingURL=live2d.js.map
|
package/dist/lottie.d.ts
CHANGED
|
@@ -1,62 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface LottieConversionDiagnostic {
|
|
3
|
-
readonly severity: 'warning' | 'error';
|
|
4
|
-
readonly code: string;
|
|
5
|
-
readonly path: string;
|
|
6
|
-
readonly message: string;
|
|
7
|
-
}
|
|
8
|
-
export interface LottieFontMetrics {
|
|
9
|
-
readonly unitsPerEm: number;
|
|
10
|
-
readonly ascent: number;
|
|
11
|
-
readonly descent: number;
|
|
12
|
-
readonly lineGap?: number;
|
|
13
|
-
readonly capHeight?: number;
|
|
14
|
-
readonly xHeight?: number;
|
|
15
|
-
}
|
|
16
|
-
export interface LottieWebFontMapping {
|
|
17
|
-
readonly uri: string;
|
|
18
|
-
readonly family?: string;
|
|
19
|
-
readonly style?: 'normal' | 'italic';
|
|
20
|
-
readonly weight?: string | number;
|
|
21
|
-
readonly mimeType?: string;
|
|
22
|
-
/** Stable content hash used by loaders and import tooling. */
|
|
23
|
-
readonly integrity?: string;
|
|
24
|
-
/** Optional measured font metrics recorded by the importer for fidelity review. */
|
|
25
|
-
readonly metrics?: LottieFontMetrics;
|
|
26
|
-
}
|
|
27
|
-
export interface LottieFontRequirement {
|
|
28
|
-
readonly name: string;
|
|
29
|
-
readonly authoredFamily: string;
|
|
30
|
-
readonly authoredStyle: string;
|
|
31
|
-
readonly authoredAscent?: number;
|
|
32
|
-
readonly usageCount: number;
|
|
33
|
-
readonly mapped: boolean;
|
|
34
|
-
readonly resolvedFamily: string;
|
|
35
|
-
readonly resolvedStyle: 'normal' | 'italic';
|
|
36
|
-
readonly resolvedWeight: string | number;
|
|
37
|
-
readonly uri?: string;
|
|
38
|
-
readonly mimeType?: string;
|
|
39
|
-
readonly integrity?: string;
|
|
40
|
-
readonly metrics?: LottieFontMetrics;
|
|
41
|
-
}
|
|
42
|
-
export interface LottieConversionOptions {
|
|
43
|
-
name?: string;
|
|
44
|
-
imageBaseUrl?: string;
|
|
45
|
-
/** Optional build-time mapping from Lottie fName to a loadable web-font resource. */
|
|
46
|
-
fonts?: Readonly<Record<string, string | Readonly<LottieWebFontMapping>>>;
|
|
47
|
-
/** Converts warnings to errors and throws after conversion. */
|
|
48
|
-
strict?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export interface LottieConversionResult {
|
|
51
|
-
readonly document: AnimationDocument;
|
|
52
|
-
readonly diagnostics: readonly LottieConversionDiagnostic[];
|
|
53
|
-
readonly convertedLayerCount: number;
|
|
54
|
-
readonly skippedLayerCount: number;
|
|
55
|
-
/** Import-time font inventory; unresolved entries retain actionable diagnostics. */
|
|
56
|
-
readonly fonts: readonly LottieFontRequirement[];
|
|
57
|
-
}
|
|
58
|
-
/** Converts the runtime-relevant Lottie subset without importing a Lottie player. */
|
|
59
|
-
export declare function convertLottie(source: string | Readonly<Record<string, unknown>>, options?: LottieConversionOptions): LottieConversionResult;
|
|
60
|
-
/** Returns the complete authored-font delivery inventory without converting geometry. */
|
|
61
|
-
export declare function inspectLottieFonts(source: string | Readonly<Record<string, unknown>>, mappings?: LottieConversionOptions['fonts']): readonly LottieFontRequirement[];
|
|
62
|
-
export declare function convertLottieDocument(source: string | Readonly<Record<string, unknown>>, options?: LottieConversionOptions): AnimationDocument;
|
|
1
|
+
export { bH as LottieConversionDiagnostic, bI as LottieConversionOptions, bJ as LottieConversionResult, bK as LottieFontMetrics, bL as LottieFontRequirement, bM as LottieWebFontMapping, bN as convertLottie, bO as convertLottieDocument, bP as inspectLottieFonts } from './shared.js';
|