@vizij/node-graph-authoring 0.1.0 → 0.1.1
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/{chunk-6WQOBROM.js → chunk-7UGGWHD3.js} +842 -22
- package/dist/cli/reportIr.cjs +832 -21
- package/dist/cli/reportIr.js +1 -1
- package/dist/index.cjs +832 -21
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GraphSpec, NodeType } from '@vizij/node-graph-wasm';
|
|
2
|
-
import { RigBindingDefinition, RigBindingSlot, BindingValueType, AnimatableComponent, StandardRigInput, AnimatableValue, RigBindingMetadata } from '@vizij/utils';
|
|
2
|
+
import { RigBindingDefinition, RigBindingSlot, BindingValueType, AnimatableComponent, StandardRigInput, AnimatableValue, RigPipelineV1Metadata, RigBindingMetadata } from '@vizij/utils';
|
|
3
3
|
export { BindingValueType } from '@vizij/utils';
|
|
4
4
|
|
|
5
5
|
type AnimatableBindingSlot = RigBindingSlot;
|
|
@@ -139,6 +139,7 @@ interface InputExportMetadata {
|
|
|
139
139
|
source?: "auto" | "custom" | "preset";
|
|
140
140
|
root?: string;
|
|
141
141
|
}
|
|
142
|
+
type InputComposeMode = "add" | "average";
|
|
142
143
|
interface BuildGraphOptions {
|
|
143
144
|
faceId: string;
|
|
144
145
|
animatables: Record<string, AnimatableValue>;
|
|
@@ -147,6 +148,8 @@ interface BuildGraphOptions {
|
|
|
147
148
|
inputsById: Map<string, StandardRigInput>;
|
|
148
149
|
inputBindings: InputBindingMap;
|
|
149
150
|
inputMetadata?: Map<string, InputExportMetadata>;
|
|
151
|
+
inputComposeModesById?: Partial<Record<string, InputComposeMode>>;
|
|
152
|
+
pipelineV1?: RigPipelineV1Metadata | null;
|
|
150
153
|
}
|
|
151
154
|
interface GraphBindingSummary {
|
|
152
155
|
targetId: string;
|
|
@@ -179,7 +182,7 @@ interface BuildGraphResult {
|
|
|
179
182
|
compile: (options?: IrCompileOptions) => IrCompileResult;
|
|
180
183
|
};
|
|
181
184
|
}
|
|
182
|
-
declare function buildRigGraphSpec({ faceId, animatables, components, bindings, inputsById, inputBindings, inputMetadata, }: BuildGraphOptions): BuildGraphResult;
|
|
185
|
+
declare function buildRigGraphSpec({ faceId, animatables, components, bindings, inputsById, inputBindings, inputMetadata, inputComposeModesById, pipelineV1, }: BuildGraphOptions): BuildGraphResult;
|
|
183
186
|
|
|
184
187
|
type ControlExpressionNode = {
|
|
185
188
|
type: "Literal";
|
|
@@ -455,6 +458,7 @@ interface NormalizedRegistryVariadicSpec {
|
|
|
455
458
|
type: string;
|
|
456
459
|
min: number;
|
|
457
460
|
max?: number;
|
|
461
|
+
keyed?: boolean;
|
|
458
462
|
}
|
|
459
463
|
interface NormalizedRegistryParamSpec {
|
|
460
464
|
id: string;
|
|
@@ -483,4 +487,4 @@ interface MachineDiffOptions {
|
|
|
483
487
|
declare function buildMachineReport(result: BuildGraphResult): MachineReport;
|
|
484
488
|
declare function diffMachineReports(actual: MachineReport, expected: MachineReport, options?: MachineDiffOptions): MachineDiffResult;
|
|
485
489
|
|
|
486
|
-
export { type AnimatableBinding, type AnimatableBindingSlot, type BindingMap, type BindingTarget, type BuildGraphOptions, type BuildGraphResult, type ControlExpressionNode, type DiffKind, EXPRESSION_FUNCTION_VOCABULARY, type ExpressionFunctionCategory, type ExpressionParseError, type ExpressionParseResult, type ExpressionValueType, type ExpressionVariableEntry, type ExpressionVariableKind, type ExpressionVariableMissing, type ExpressionVariableTable, type GraphBindingSummary, type InputBindingMap, type IrBindingSummary, type IrCompileOptions, type IrCompileResult, type IrConstant, type IrEdge, type IrGraph, type IrGraphBuilder, type IrGraphBuilderOptions, type IrGraphMetadata, type IrGraphSummary, type IrIssue, type IrLegacyArtifacts, type IrNode, type IrNodeInput, type IrNodeOutput, type IrPortRef, type IrValueType, type LegacyIrGraphPayload, MACHINE_REPORT_VERSION, type MachineBindingSummary, type MachineDiffEntry, type MachineDiffOptions, type MachineDiffResult, type MachineIssues, type MachineReport, type MachineSummary, type NodeInspectionAnnotations, type NormalizedIrBindingSummary, type NormalizedIrConstant, type NormalizedIrEdge, type NormalizedIrGraph, type NormalizedIrGraphMetadata, type NormalizedIrGraphSummary, type NormalizedIrIssue, type NormalizedIrNode, type NormalizedRegistryParamSpec, type NormalizedRegistryPortSpec, type NormalizedRegistrySignature, type NormalizedRegistryVariadicSpec, PRIMARY_SLOT_ALIAS, PRIMARY_SLOT_ID, RESERVED_EXPRESSION_VARIABLES, type RegisterReservedVariableOptions, type RegisterSlotVariableOptions, type ReservedExpressionScope, type ReservedExpressionVariableDefinition, type ReservedVariableMetadata, SCALAR_FUNCTIONS, SCALAR_FUNCTION_VOCABULARY, type ScalarFunctionDefinition, type ScalarFunctionVocabularyEntry, type SlotVariableMetadata, type StandardInputValues, addBindingSlot, bindingFromDefinition, bindingTargetFromComponent, bindingTargetFromInput, bindingToDefinition, buildCanonicalBindingExpression, buildMachineReport, buildRigGraphSpec, collectExpressionReferences, compileIrGraph, createDefaultBinding, createDefaultBindings, createDefaultInputValues, createDefaultParentBinding, createExpressionVariableTable, createIrGraphBuilder, createLegacyIrGraph, diffMachineReports, ensureBindingStructure, getPrimaryBindingSlot, mapExpression, parseControlExpression, reconcileBindings, removeBindingSlot, toIrBindingSummary, updateBindingExpression, updateBindingSlotAlias, updateBindingSlotValueType, updateBindingWithInput };
|
|
490
|
+
export { type AnimatableBinding, type AnimatableBindingSlot, type BindingMap, type BindingTarget, type BuildGraphOptions, type BuildGraphResult, type ControlExpressionNode, type DiffKind, EXPRESSION_FUNCTION_VOCABULARY, type ExpressionFunctionCategory, type ExpressionParseError, type ExpressionParseResult, type ExpressionValueType, type ExpressionVariableEntry, type ExpressionVariableKind, type ExpressionVariableMissing, type ExpressionVariableTable, type GraphBindingSummary, type InputBindingMap, type InputComposeMode, type IrBindingSummary, type IrCompileOptions, type IrCompileResult, type IrConstant, type IrEdge, type IrGraph, type IrGraphBuilder, type IrGraphBuilderOptions, type IrGraphMetadata, type IrGraphSummary, type IrIssue, type IrLegacyArtifacts, type IrNode, type IrNodeInput, type IrNodeOutput, type IrPortRef, type IrValueType, type LegacyIrGraphPayload, MACHINE_REPORT_VERSION, type MachineBindingSummary, type MachineDiffEntry, type MachineDiffOptions, type MachineDiffResult, type MachineIssues, type MachineReport, type MachineSummary, type NodeInspectionAnnotations, type NormalizedIrBindingSummary, type NormalizedIrConstant, type NormalizedIrEdge, type NormalizedIrGraph, type NormalizedIrGraphMetadata, type NormalizedIrGraphSummary, type NormalizedIrIssue, type NormalizedIrNode, type NormalizedRegistryParamSpec, type NormalizedRegistryPortSpec, type NormalizedRegistrySignature, type NormalizedRegistryVariadicSpec, PRIMARY_SLOT_ALIAS, PRIMARY_SLOT_ID, RESERVED_EXPRESSION_VARIABLES, type RegisterReservedVariableOptions, type RegisterSlotVariableOptions, type ReservedExpressionScope, type ReservedExpressionVariableDefinition, type ReservedVariableMetadata, SCALAR_FUNCTIONS, SCALAR_FUNCTION_VOCABULARY, type ScalarFunctionDefinition, type ScalarFunctionVocabularyEntry, type SlotVariableMetadata, type StandardInputValues, addBindingSlot, bindingFromDefinition, bindingTargetFromComponent, bindingTargetFromInput, bindingToDefinition, buildCanonicalBindingExpression, buildMachineReport, buildRigGraphSpec, collectExpressionReferences, compileIrGraph, createDefaultBinding, createDefaultBindings, createDefaultInputValues, createDefaultParentBinding, createExpressionVariableTable, createIrGraphBuilder, createLegacyIrGraph, diffMachineReports, ensureBindingStructure, getPrimaryBindingSlot, mapExpression, parseControlExpression, reconcileBindings, removeBindingSlot, toIrBindingSummary, updateBindingExpression, updateBindingSlotAlias, updateBindingSlotValueType, updateBindingWithInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GraphSpec, NodeType } from '@vizij/node-graph-wasm';
|
|
2
|
-
import { RigBindingDefinition, RigBindingSlot, BindingValueType, AnimatableComponent, StandardRigInput, AnimatableValue, RigBindingMetadata } from '@vizij/utils';
|
|
2
|
+
import { RigBindingDefinition, RigBindingSlot, BindingValueType, AnimatableComponent, StandardRigInput, AnimatableValue, RigPipelineV1Metadata, RigBindingMetadata } from '@vizij/utils';
|
|
3
3
|
export { BindingValueType } from '@vizij/utils';
|
|
4
4
|
|
|
5
5
|
type AnimatableBindingSlot = RigBindingSlot;
|
|
@@ -139,6 +139,7 @@ interface InputExportMetadata {
|
|
|
139
139
|
source?: "auto" | "custom" | "preset";
|
|
140
140
|
root?: string;
|
|
141
141
|
}
|
|
142
|
+
type InputComposeMode = "add" | "average";
|
|
142
143
|
interface BuildGraphOptions {
|
|
143
144
|
faceId: string;
|
|
144
145
|
animatables: Record<string, AnimatableValue>;
|
|
@@ -147,6 +148,8 @@ interface BuildGraphOptions {
|
|
|
147
148
|
inputsById: Map<string, StandardRigInput>;
|
|
148
149
|
inputBindings: InputBindingMap;
|
|
149
150
|
inputMetadata?: Map<string, InputExportMetadata>;
|
|
151
|
+
inputComposeModesById?: Partial<Record<string, InputComposeMode>>;
|
|
152
|
+
pipelineV1?: RigPipelineV1Metadata | null;
|
|
150
153
|
}
|
|
151
154
|
interface GraphBindingSummary {
|
|
152
155
|
targetId: string;
|
|
@@ -179,7 +182,7 @@ interface BuildGraphResult {
|
|
|
179
182
|
compile: (options?: IrCompileOptions) => IrCompileResult;
|
|
180
183
|
};
|
|
181
184
|
}
|
|
182
|
-
declare function buildRigGraphSpec({ faceId, animatables, components, bindings, inputsById, inputBindings, inputMetadata, }: BuildGraphOptions): BuildGraphResult;
|
|
185
|
+
declare function buildRigGraphSpec({ faceId, animatables, components, bindings, inputsById, inputBindings, inputMetadata, inputComposeModesById, pipelineV1, }: BuildGraphOptions): BuildGraphResult;
|
|
183
186
|
|
|
184
187
|
type ControlExpressionNode = {
|
|
185
188
|
type: "Literal";
|
|
@@ -455,6 +458,7 @@ interface NormalizedRegistryVariadicSpec {
|
|
|
455
458
|
type: string;
|
|
456
459
|
min: number;
|
|
457
460
|
max?: number;
|
|
461
|
+
keyed?: boolean;
|
|
458
462
|
}
|
|
459
463
|
interface NormalizedRegistryParamSpec {
|
|
460
464
|
id: string;
|
|
@@ -483,4 +487,4 @@ interface MachineDiffOptions {
|
|
|
483
487
|
declare function buildMachineReport(result: BuildGraphResult): MachineReport;
|
|
484
488
|
declare function diffMachineReports(actual: MachineReport, expected: MachineReport, options?: MachineDiffOptions): MachineDiffResult;
|
|
485
489
|
|
|
486
|
-
export { type AnimatableBinding, type AnimatableBindingSlot, type BindingMap, type BindingTarget, type BuildGraphOptions, type BuildGraphResult, type ControlExpressionNode, type DiffKind, EXPRESSION_FUNCTION_VOCABULARY, type ExpressionFunctionCategory, type ExpressionParseError, type ExpressionParseResult, type ExpressionValueType, type ExpressionVariableEntry, type ExpressionVariableKind, type ExpressionVariableMissing, type ExpressionVariableTable, type GraphBindingSummary, type InputBindingMap, type IrBindingSummary, type IrCompileOptions, type IrCompileResult, type IrConstant, type IrEdge, type IrGraph, type IrGraphBuilder, type IrGraphBuilderOptions, type IrGraphMetadata, type IrGraphSummary, type IrIssue, type IrLegacyArtifacts, type IrNode, type IrNodeInput, type IrNodeOutput, type IrPortRef, type IrValueType, type LegacyIrGraphPayload, MACHINE_REPORT_VERSION, type MachineBindingSummary, type MachineDiffEntry, type MachineDiffOptions, type MachineDiffResult, type MachineIssues, type MachineReport, type MachineSummary, type NodeInspectionAnnotations, type NormalizedIrBindingSummary, type NormalizedIrConstant, type NormalizedIrEdge, type NormalizedIrGraph, type NormalizedIrGraphMetadata, type NormalizedIrGraphSummary, type NormalizedIrIssue, type NormalizedIrNode, type NormalizedRegistryParamSpec, type NormalizedRegistryPortSpec, type NormalizedRegistrySignature, type NormalizedRegistryVariadicSpec, PRIMARY_SLOT_ALIAS, PRIMARY_SLOT_ID, RESERVED_EXPRESSION_VARIABLES, type RegisterReservedVariableOptions, type RegisterSlotVariableOptions, type ReservedExpressionScope, type ReservedExpressionVariableDefinition, type ReservedVariableMetadata, SCALAR_FUNCTIONS, SCALAR_FUNCTION_VOCABULARY, type ScalarFunctionDefinition, type ScalarFunctionVocabularyEntry, type SlotVariableMetadata, type StandardInputValues, addBindingSlot, bindingFromDefinition, bindingTargetFromComponent, bindingTargetFromInput, bindingToDefinition, buildCanonicalBindingExpression, buildMachineReport, buildRigGraphSpec, collectExpressionReferences, compileIrGraph, createDefaultBinding, createDefaultBindings, createDefaultInputValues, createDefaultParentBinding, createExpressionVariableTable, createIrGraphBuilder, createLegacyIrGraph, diffMachineReports, ensureBindingStructure, getPrimaryBindingSlot, mapExpression, parseControlExpression, reconcileBindings, removeBindingSlot, toIrBindingSummary, updateBindingExpression, updateBindingSlotAlias, updateBindingSlotValueType, updateBindingWithInput };
|
|
490
|
+
export { type AnimatableBinding, type AnimatableBindingSlot, type BindingMap, type BindingTarget, type BuildGraphOptions, type BuildGraphResult, type ControlExpressionNode, type DiffKind, EXPRESSION_FUNCTION_VOCABULARY, type ExpressionFunctionCategory, type ExpressionParseError, type ExpressionParseResult, type ExpressionValueType, type ExpressionVariableEntry, type ExpressionVariableKind, type ExpressionVariableMissing, type ExpressionVariableTable, type GraphBindingSummary, type InputBindingMap, type InputComposeMode, type IrBindingSummary, type IrCompileOptions, type IrCompileResult, type IrConstant, type IrEdge, type IrGraph, type IrGraphBuilder, type IrGraphBuilderOptions, type IrGraphMetadata, type IrGraphSummary, type IrIssue, type IrLegacyArtifacts, type IrNode, type IrNodeInput, type IrNodeOutput, type IrPortRef, type IrValueType, type LegacyIrGraphPayload, MACHINE_REPORT_VERSION, type MachineBindingSummary, type MachineDiffEntry, type MachineDiffOptions, type MachineDiffResult, type MachineIssues, type MachineReport, type MachineSummary, type NodeInspectionAnnotations, type NormalizedIrBindingSummary, type NormalizedIrConstant, type NormalizedIrEdge, type NormalizedIrGraph, type NormalizedIrGraphMetadata, type NormalizedIrGraphSummary, type NormalizedIrIssue, type NormalizedIrNode, type NormalizedRegistryParamSpec, type NormalizedRegistryPortSpec, type NormalizedRegistrySignature, type NormalizedRegistryVariadicSpec, PRIMARY_SLOT_ALIAS, PRIMARY_SLOT_ID, RESERVED_EXPRESSION_VARIABLES, type RegisterReservedVariableOptions, type RegisterSlotVariableOptions, type ReservedExpressionScope, type ReservedExpressionVariableDefinition, type ReservedVariableMetadata, SCALAR_FUNCTIONS, SCALAR_FUNCTION_VOCABULARY, type ScalarFunctionDefinition, type ScalarFunctionVocabularyEntry, type SlotVariableMetadata, type StandardInputValues, addBindingSlot, bindingFromDefinition, bindingTargetFromComponent, bindingTargetFromInput, bindingToDefinition, buildCanonicalBindingExpression, buildMachineReport, buildRigGraphSpec, collectExpressionReferences, compileIrGraph, createDefaultBinding, createDefaultBindings, createDefaultInputValues, createDefaultParentBinding, createExpressionVariableTable, createIrGraphBuilder, createLegacyIrGraph, diffMachineReports, ensureBindingStructure, getPrimaryBindingSlot, mapExpression, parseControlExpression, reconcileBindings, removeBindingSlot, toIrBindingSummary, updateBindingExpression, updateBindingSlotAlias, updateBindingSlotValueType, updateBindingWithInput };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizij/node-graph-authoring",
|
|
3
3
|
"description": "Authoring-time graph builder utilities for Vizij node graphs.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vizij/node-graph-wasm": "^0.
|
|
35
|
+
"@vizij/node-graph-wasm": "^0.6.1",
|
|
36
36
|
"@vizij/utils": "0.1.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|