@vvfx/ge-ir 0.0.1-beta.2 → 0.0.1-beta.3
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/ge2ir/types.d.ts +2 -0
- package/dist/index.js +373 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +373 -25
- package/dist/index.mjs.map +1 -1
- package/dist/ir2ge/builders/layer.d.ts +1 -0
- package/dist/shared/ge2ir-metadata.d.ts +14 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IRLayerNode } from '@vvfx/animation-ir';
|
|
2
2
|
import type { LayerProcessingContext } from '../types';
|
|
3
3
|
export declare function processNullLayer(layer: IRLayerNode, ctx: LayerProcessingContext): void;
|
|
4
|
+
export declare function processPrecompLayer(layer: IRLayerNode, ctx: LayerProcessingContext): void;
|
|
4
5
|
export declare function processParentLayer(layer: IRLayerNode, ctx: LayerProcessingContext): void;
|
|
5
6
|
export declare function processVisualLayer(layer: IRLayerNode, ctx: LayerProcessingContext): void;
|
|
@@ -4,7 +4,8 @@ import type { IRComposition, IRLayerNode } from '@vvfx/animation-ir';
|
|
|
4
4
|
*
|
|
5
5
|
* Supported keys:
|
|
6
6
|
* positionOverLifetime, rotationOverLifetime, sizeOverLifetime,
|
|
7
|
-
* colorOverLifetime, geComponentId, geMask
|
|
7
|
+
* colorOverLifetime, geComponentId, geMask, precompRefId,
|
|
8
|
+
* precompContent.
|
|
8
9
|
*/
|
|
9
10
|
export interface GE2IRPassthroughMetadata {
|
|
10
11
|
positionOverLifetime?: Record<string, unknown>;
|
|
@@ -13,5 +14,17 @@ export interface GE2IRPassthroughMetadata {
|
|
|
13
14
|
colorOverLifetime?: Record<string, unknown>;
|
|
14
15
|
geComponentId?: string;
|
|
15
16
|
geMask?: Record<string, unknown>;
|
|
17
|
+
precompRefId?: string;
|
|
18
|
+
precompContent?: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Composition-level GE metadata. `sourceScene` is intentionally opaque: it is
|
|
22
|
+
* used only by ir2ge to restore untouched precomp resource pools that are
|
|
23
|
+
* outside the single-composition editable IR.
|
|
24
|
+
*/
|
|
25
|
+
export interface GE2IRCompositionMetadata {
|
|
26
|
+
sourceCompositionId?: string;
|
|
27
|
+
sourceScene?: Record<string, unknown>;
|
|
16
28
|
}
|
|
17
29
|
export declare function readGE2IRMetadata(ir: IRComposition, layer: IRLayerNode): GE2IRPassthroughMetadata | undefined;
|
|
30
|
+
export declare function readGE2IRCompositionMetadata(ir: IRComposition): GE2IRCompositionMetadata | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvfx/ge-ir",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.3",
|
|
4
4
|
"description": "Galacean Effects and animation IR bidirectional conversion package",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@galacean/effects-specification": "^2.8.0",
|
|
20
20
|
"uuid": "^13.0.0",
|
|
21
|
-
"@vvfx/animation-ir": "0.0.1-beta.
|
|
21
|
+
"@vvfx/animation-ir": "0.0.1-beta.3"
|
|
22
22
|
},
|
|
23
23
|
"contributors": [
|
|
24
24
|
{
|