@vizij/node-graph-authoring 0.0.5 → 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/README.md +0 -1
- package/dist/{chunk-XYPRZPXJ.js → chunk-7UGGWHD3.js} +873 -433
- package/dist/cli/reportIr.cjs +856 -322
- package/dist/cli/reportIr.js +1 -1
- package/dist/index.cjs +865 -443
- package/dist/index.d.cts +7 -14
- package/dist/index.d.ts +7 -14
- package/dist/index.js +1 -11
- package/package.json +4 -4
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,
|
|
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;
|
|
@@ -23,7 +23,6 @@ type InputBindingMap = Record<string, AnimatableBinding>;
|
|
|
23
23
|
type StandardInputValues = Record<string, number>;
|
|
24
24
|
declare const PRIMARY_SLOT_ID = "s1";
|
|
25
25
|
declare const PRIMARY_SLOT_ALIAS = "s1";
|
|
26
|
-
declare function createDefaultRemap(target: BindingTarget): RemapSettings;
|
|
27
26
|
declare function createDefaultBindings(components: BindingTarget[]): BindingMap;
|
|
28
27
|
declare function createDefaultBinding(component: BindingTarget): AnimatableBinding;
|
|
29
28
|
declare function createDefaultParentBinding(component: BindingTarget): AnimatableBinding;
|
|
@@ -35,14 +34,10 @@ declare function removeBindingSlot(binding: AnimatableBinding, target: BindingTa
|
|
|
35
34
|
declare function updateBindingSlotAlias(binding: AnimatableBinding, target: BindingTarget, slotId: string, nextAlias: string): AnimatableBinding;
|
|
36
35
|
declare function updateBindingSlotValueType(binding: AnimatableBinding, target: BindingTarget, slotId: string, nextValueType: BindingValueType): AnimatableBinding;
|
|
37
36
|
declare function updateBindingExpression(binding: AnimatableBinding, target: BindingTarget, expression: string): AnimatableBinding;
|
|
38
|
-
declare function updateBindingSlotRemap(binding: AnimatableBinding, target: BindingTarget, slotId: string, field: keyof RemapSettings, value: number): AnimatableBinding;
|
|
39
37
|
declare function updateBindingWithInput(binding: AnimatableBinding, target: BindingTarget, input: StandardRigInput | undefined, slotId?: string): AnimatableBinding;
|
|
40
|
-
declare function remapValue(value: number, remap: RemapSettings): number;
|
|
41
38
|
declare function reconcileBindings(previous: BindingMap, components: BindingTarget[]): BindingMap;
|
|
42
39
|
declare function bindingToDefinition(binding: AnimatableBinding): RigBindingDefinition;
|
|
43
40
|
declare function bindingFromDefinition(target: BindingTarget, definition: RigBindingDefinition | null | undefined): AnimatableBinding;
|
|
44
|
-
declare function buildPiecewiseRemapExpression(alias: string, remap: RemapSettings): string;
|
|
45
|
-
declare function buildDefaultSlotExpression(alias: string, inputId: string | null, remap: RemapSettings): string;
|
|
46
41
|
declare function buildCanonicalBindingExpression(binding: AnimatableBinding): string;
|
|
47
42
|
|
|
48
43
|
type IrValueType = "scalar" | "vector" | "boolean" | "color" | "quaternion" | "transform" | "unknown";
|
|
@@ -99,7 +94,6 @@ interface IrBindingSummary {
|
|
|
99
94
|
slotId: string;
|
|
100
95
|
slotAlias: string;
|
|
101
96
|
inputId: string | null;
|
|
102
|
-
remap: Record<string, unknown>;
|
|
103
97
|
expression: string;
|
|
104
98
|
valueType: "scalar" | "vector";
|
|
105
99
|
nodeId: string;
|
|
@@ -145,6 +139,7 @@ interface InputExportMetadata {
|
|
|
145
139
|
source?: "auto" | "custom" | "preset";
|
|
146
140
|
root?: string;
|
|
147
141
|
}
|
|
142
|
+
type InputComposeMode = "add" | "average";
|
|
148
143
|
interface BuildGraphOptions {
|
|
149
144
|
faceId: string;
|
|
150
145
|
animatables: Record<string, AnimatableValue>;
|
|
@@ -153,6 +148,8 @@ interface BuildGraphOptions {
|
|
|
153
148
|
inputsById: Map<string, StandardRigInput>;
|
|
154
149
|
inputBindings: InputBindingMap;
|
|
155
150
|
inputMetadata?: Map<string, InputExportMetadata>;
|
|
151
|
+
inputComposeModesById?: Partial<Record<string, InputComposeMode>>;
|
|
152
|
+
pipelineV1?: RigPipelineV1Metadata | null;
|
|
156
153
|
}
|
|
157
154
|
interface GraphBindingSummary {
|
|
158
155
|
targetId: string;
|
|
@@ -161,7 +158,6 @@ interface GraphBindingSummary {
|
|
|
161
158
|
slotId: string;
|
|
162
159
|
slotAlias: string;
|
|
163
160
|
inputId: string | null;
|
|
164
|
-
remap: RemapSettings;
|
|
165
161
|
expression: string;
|
|
166
162
|
valueType: BindingValueType;
|
|
167
163
|
nodeId: string;
|
|
@@ -186,7 +182,7 @@ interface BuildGraphResult {
|
|
|
186
182
|
compile: (options?: IrCompileOptions) => IrCompileResult;
|
|
187
183
|
};
|
|
188
184
|
}
|
|
189
|
-
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;
|
|
190
186
|
|
|
191
187
|
type ControlExpressionNode = {
|
|
192
188
|
type: "Literal";
|
|
@@ -234,8 +230,6 @@ interface SlotVariableMetadata {
|
|
|
234
230
|
animatableId: string;
|
|
235
231
|
component?: string;
|
|
236
232
|
valueType: BindingValueType;
|
|
237
|
-
remap?: RemapSettings;
|
|
238
|
-
autoRemap?: boolean;
|
|
239
233
|
}
|
|
240
234
|
interface ReservedVariableMetadata {
|
|
241
235
|
targetId?: string;
|
|
@@ -360,7 +354,6 @@ declare function toIrBindingSummary(summaries: {
|
|
|
360
354
|
slotId: string;
|
|
361
355
|
slotAlias: string;
|
|
362
356
|
inputId: string | null;
|
|
363
|
-
remap: Record<string, unknown>;
|
|
364
357
|
expression: string;
|
|
365
358
|
valueType: "scalar" | "vector";
|
|
366
359
|
issues?: string[];
|
|
@@ -397,7 +390,6 @@ interface MachineBindingSummary {
|
|
|
397
390
|
slotId: string;
|
|
398
391
|
slotAlias: string;
|
|
399
392
|
inputId: string | null;
|
|
400
|
-
remap: RemapSettings;
|
|
401
393
|
expression: string;
|
|
402
394
|
valueType: "scalar" | "vector";
|
|
403
395
|
nodeId: string;
|
|
@@ -466,6 +458,7 @@ interface NormalizedRegistryVariadicSpec {
|
|
|
466
458
|
type: string;
|
|
467
459
|
min: number;
|
|
468
460
|
max?: number;
|
|
461
|
+
keyed?: boolean;
|
|
469
462
|
}
|
|
470
463
|
interface NormalizedRegistryParamSpec {
|
|
471
464
|
id: string;
|
|
@@ -494,4 +487,4 @@ interface MachineDiffOptions {
|
|
|
494
487
|
declare function buildMachineReport(result: BuildGraphResult): MachineReport;
|
|
495
488
|
declare function diffMachineReports(actual: MachineReport, expected: MachineReport, options?: MachineDiffOptions): MachineDiffResult;
|
|
496
489
|
|
|
497
|
-
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,
|
|
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,
|
|
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;
|
|
@@ -23,7 +23,6 @@ type InputBindingMap = Record<string, AnimatableBinding>;
|
|
|
23
23
|
type StandardInputValues = Record<string, number>;
|
|
24
24
|
declare const PRIMARY_SLOT_ID = "s1";
|
|
25
25
|
declare const PRIMARY_SLOT_ALIAS = "s1";
|
|
26
|
-
declare function createDefaultRemap(target: BindingTarget): RemapSettings;
|
|
27
26
|
declare function createDefaultBindings(components: BindingTarget[]): BindingMap;
|
|
28
27
|
declare function createDefaultBinding(component: BindingTarget): AnimatableBinding;
|
|
29
28
|
declare function createDefaultParentBinding(component: BindingTarget): AnimatableBinding;
|
|
@@ -35,14 +34,10 @@ declare function removeBindingSlot(binding: AnimatableBinding, target: BindingTa
|
|
|
35
34
|
declare function updateBindingSlotAlias(binding: AnimatableBinding, target: BindingTarget, slotId: string, nextAlias: string): AnimatableBinding;
|
|
36
35
|
declare function updateBindingSlotValueType(binding: AnimatableBinding, target: BindingTarget, slotId: string, nextValueType: BindingValueType): AnimatableBinding;
|
|
37
36
|
declare function updateBindingExpression(binding: AnimatableBinding, target: BindingTarget, expression: string): AnimatableBinding;
|
|
38
|
-
declare function updateBindingSlotRemap(binding: AnimatableBinding, target: BindingTarget, slotId: string, field: keyof RemapSettings, value: number): AnimatableBinding;
|
|
39
37
|
declare function updateBindingWithInput(binding: AnimatableBinding, target: BindingTarget, input: StandardRigInput | undefined, slotId?: string): AnimatableBinding;
|
|
40
|
-
declare function remapValue(value: number, remap: RemapSettings): number;
|
|
41
38
|
declare function reconcileBindings(previous: BindingMap, components: BindingTarget[]): BindingMap;
|
|
42
39
|
declare function bindingToDefinition(binding: AnimatableBinding): RigBindingDefinition;
|
|
43
40
|
declare function bindingFromDefinition(target: BindingTarget, definition: RigBindingDefinition | null | undefined): AnimatableBinding;
|
|
44
|
-
declare function buildPiecewiseRemapExpression(alias: string, remap: RemapSettings): string;
|
|
45
|
-
declare function buildDefaultSlotExpression(alias: string, inputId: string | null, remap: RemapSettings): string;
|
|
46
41
|
declare function buildCanonicalBindingExpression(binding: AnimatableBinding): string;
|
|
47
42
|
|
|
48
43
|
type IrValueType = "scalar" | "vector" | "boolean" | "color" | "quaternion" | "transform" | "unknown";
|
|
@@ -99,7 +94,6 @@ interface IrBindingSummary {
|
|
|
99
94
|
slotId: string;
|
|
100
95
|
slotAlias: string;
|
|
101
96
|
inputId: string | null;
|
|
102
|
-
remap: Record<string, unknown>;
|
|
103
97
|
expression: string;
|
|
104
98
|
valueType: "scalar" | "vector";
|
|
105
99
|
nodeId: string;
|
|
@@ -145,6 +139,7 @@ interface InputExportMetadata {
|
|
|
145
139
|
source?: "auto" | "custom" | "preset";
|
|
146
140
|
root?: string;
|
|
147
141
|
}
|
|
142
|
+
type InputComposeMode = "add" | "average";
|
|
148
143
|
interface BuildGraphOptions {
|
|
149
144
|
faceId: string;
|
|
150
145
|
animatables: Record<string, AnimatableValue>;
|
|
@@ -153,6 +148,8 @@ interface BuildGraphOptions {
|
|
|
153
148
|
inputsById: Map<string, StandardRigInput>;
|
|
154
149
|
inputBindings: InputBindingMap;
|
|
155
150
|
inputMetadata?: Map<string, InputExportMetadata>;
|
|
151
|
+
inputComposeModesById?: Partial<Record<string, InputComposeMode>>;
|
|
152
|
+
pipelineV1?: RigPipelineV1Metadata | null;
|
|
156
153
|
}
|
|
157
154
|
interface GraphBindingSummary {
|
|
158
155
|
targetId: string;
|
|
@@ -161,7 +158,6 @@ interface GraphBindingSummary {
|
|
|
161
158
|
slotId: string;
|
|
162
159
|
slotAlias: string;
|
|
163
160
|
inputId: string | null;
|
|
164
|
-
remap: RemapSettings;
|
|
165
161
|
expression: string;
|
|
166
162
|
valueType: BindingValueType;
|
|
167
163
|
nodeId: string;
|
|
@@ -186,7 +182,7 @@ interface BuildGraphResult {
|
|
|
186
182
|
compile: (options?: IrCompileOptions) => IrCompileResult;
|
|
187
183
|
};
|
|
188
184
|
}
|
|
189
|
-
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;
|
|
190
186
|
|
|
191
187
|
type ControlExpressionNode = {
|
|
192
188
|
type: "Literal";
|
|
@@ -234,8 +230,6 @@ interface SlotVariableMetadata {
|
|
|
234
230
|
animatableId: string;
|
|
235
231
|
component?: string;
|
|
236
232
|
valueType: BindingValueType;
|
|
237
|
-
remap?: RemapSettings;
|
|
238
|
-
autoRemap?: boolean;
|
|
239
233
|
}
|
|
240
234
|
interface ReservedVariableMetadata {
|
|
241
235
|
targetId?: string;
|
|
@@ -360,7 +354,6 @@ declare function toIrBindingSummary(summaries: {
|
|
|
360
354
|
slotId: string;
|
|
361
355
|
slotAlias: string;
|
|
362
356
|
inputId: string | null;
|
|
363
|
-
remap: Record<string, unknown>;
|
|
364
357
|
expression: string;
|
|
365
358
|
valueType: "scalar" | "vector";
|
|
366
359
|
issues?: string[];
|
|
@@ -397,7 +390,6 @@ interface MachineBindingSummary {
|
|
|
397
390
|
slotId: string;
|
|
398
391
|
slotAlias: string;
|
|
399
392
|
inputId: string | null;
|
|
400
|
-
remap: RemapSettings;
|
|
401
393
|
expression: string;
|
|
402
394
|
valueType: "scalar" | "vector";
|
|
403
395
|
nodeId: string;
|
|
@@ -466,6 +458,7 @@ interface NormalizedRegistryVariadicSpec {
|
|
|
466
458
|
type: string;
|
|
467
459
|
min: number;
|
|
468
460
|
max?: number;
|
|
461
|
+
keyed?: boolean;
|
|
469
462
|
}
|
|
470
463
|
interface NormalizedRegistryParamSpec {
|
|
471
464
|
id: string;
|
|
@@ -494,4 +487,4 @@ interface MachineDiffOptions {
|
|
|
494
487
|
declare function buildMachineReport(result: BuildGraphResult): MachineReport;
|
|
495
488
|
declare function diffMachineReports(actual: MachineReport, expected: MachineReport, options?: MachineDiffOptions): MachineDiffResult;
|
|
496
489
|
|
|
497
|
-
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,
|
|
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
|
@@ -12,9 +12,7 @@ import {
|
|
|
12
12
|
bindingTargetFromInput,
|
|
13
13
|
bindingToDefinition,
|
|
14
14
|
buildCanonicalBindingExpression,
|
|
15
|
-
buildDefaultSlotExpression,
|
|
16
15
|
buildMachineReport,
|
|
17
|
-
buildPiecewiseRemapExpression,
|
|
18
16
|
buildRigGraphSpec,
|
|
19
17
|
collectExpressionReferences,
|
|
20
18
|
compileIrGraph,
|
|
@@ -22,7 +20,6 @@ import {
|
|
|
22
20
|
createDefaultBindings,
|
|
23
21
|
createDefaultInputValues,
|
|
24
22
|
createDefaultParentBinding,
|
|
25
|
-
createDefaultRemap,
|
|
26
23
|
createExpressionVariableTable,
|
|
27
24
|
createIrGraphBuilder,
|
|
28
25
|
createLegacyIrGraph,
|
|
@@ -32,15 +29,13 @@ import {
|
|
|
32
29
|
mapExpression,
|
|
33
30
|
parseControlExpression,
|
|
34
31
|
reconcileBindings,
|
|
35
|
-
remapValue,
|
|
36
32
|
removeBindingSlot,
|
|
37
33
|
toIrBindingSummary,
|
|
38
34
|
updateBindingExpression,
|
|
39
35
|
updateBindingSlotAlias,
|
|
40
|
-
updateBindingSlotRemap,
|
|
41
36
|
updateBindingSlotValueType,
|
|
42
37
|
updateBindingWithInput
|
|
43
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7UGGWHD3.js";
|
|
44
39
|
export {
|
|
45
40
|
EXPRESSION_FUNCTION_VOCABULARY,
|
|
46
41
|
MACHINE_REPORT_VERSION,
|
|
@@ -55,9 +50,7 @@ export {
|
|
|
55
50
|
bindingTargetFromInput,
|
|
56
51
|
bindingToDefinition,
|
|
57
52
|
buildCanonicalBindingExpression,
|
|
58
|
-
buildDefaultSlotExpression,
|
|
59
53
|
buildMachineReport,
|
|
60
|
-
buildPiecewiseRemapExpression,
|
|
61
54
|
buildRigGraphSpec,
|
|
62
55
|
collectExpressionReferences,
|
|
63
56
|
compileIrGraph,
|
|
@@ -65,7 +58,6 @@ export {
|
|
|
65
58
|
createDefaultBindings,
|
|
66
59
|
createDefaultInputValues,
|
|
67
60
|
createDefaultParentBinding,
|
|
68
|
-
createDefaultRemap,
|
|
69
61
|
createExpressionVariableTable,
|
|
70
62
|
createIrGraphBuilder,
|
|
71
63
|
createLegacyIrGraph,
|
|
@@ -75,12 +67,10 @@ export {
|
|
|
75
67
|
mapExpression,
|
|
76
68
|
parseControlExpression,
|
|
77
69
|
reconcileBindings,
|
|
78
|
-
remapValue,
|
|
79
70
|
removeBindingSlot,
|
|
80
71
|
toIrBindingSummary,
|
|
81
72
|
updateBindingExpression,
|
|
82
73
|
updateBindingSlotAlias,
|
|
83
|
-
updateBindingSlotRemap,
|
|
84
74
|
updateBindingSlotValueType,
|
|
85
75
|
updateBindingWithInput
|
|
86
76
|
};
|
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.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vizij/node-graph-wasm": "^0.
|
|
36
|
-
"@vizij/utils": "0.0
|
|
35
|
+
"@vizij/node-graph-wasm": "^0.6.1",
|
|
36
|
+
"@vizij/utils": "0.1.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^22.10.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"build": "tsup src/index.ts src/cli/reportIr.ts --format esm,cjs --dts src/index.ts",
|
|
50
50
|
"dev": "tsup src/index.ts src/cli/reportIr.ts --format esm,cjs --watch --dts src/index.ts",
|
|
51
51
|
"typecheck": "tsc --noEmit",
|
|
52
|
-
"test": "
|
|
52
|
+
"test": "node ./scripts/run-vitest.mjs",
|
|
53
53
|
"report:ir": "node dist/cli/reportIr.js",
|
|
54
54
|
"lint": "pnpm --filter \"$npm_package_name\" exec eslint --ext .js,.jsx,.ts,.tsx -- .",
|
|
55
55
|
"lint:fix": "pnpm --filter \"$npm_package_name\" exec eslint --ext .js,.jsx,.ts,.tsx --fix -- .",
|