@babylonjs/loaders 9.26.1 → 9.26.2
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/SPLAT/gaussianSplattingStream.d.ts +79 -25
- package/SPLAT/gaussianSplattingStream.js +320 -95
- package/SPLAT/gaussianSplattingStream.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.d.ts +110 -3
- package/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js +468 -74
- package/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphEventReferenceBlock.d.ts +47 -0
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphEventReferenceBlock.js +68 -0
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphEventReferenceBlock.js.map +1 -0
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.d.ts +2 -2
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.js +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphObjectReferenceBlock.d.ts +24 -0
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphObjectReferenceBlock.js +38 -0
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphObjectReferenceBlock.js.map +1 -0
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphUnsupportedInteractivityBlock.d.ts +41 -0
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphUnsupportedInteractivityBlock.js +63 -0
- package/glTF/2.0/Extensions/KHR_interactivity/flowGraphUnsupportedInteractivityBlock.js.map +1 -0
- package/glTF/2.0/Extensions/KHR_interactivity/index.d.ts +5 -0
- package/glTF/2.0/Extensions/KHR_interactivity/index.js +5 -0
- package/glTF/2.0/Extensions/KHR_interactivity/index.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphModel.d.ts +112 -0
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphModel.js +773 -0
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphModel.js.map +1 -0
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.d.ts +18 -10
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js +299 -54
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityHostResolver.d.ts +2 -1
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityHostResolver.js +7 -2
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityHostResolver.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityNodeState.d.ts +24 -0
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityNodeState.js +89 -0
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityNodeState.js.map +1 -0
- package/glTF/2.0/Extensions/KHR_interactivity/pure.d.ts +5 -0
- package/glTF/2.0/Extensions/KHR_interactivity/pure.js +5 -0
- package/glTF/2.0/Extensions/KHR_interactivity/pure.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity.pure.d.ts +55 -1
- package/glTF/2.0/Extensions/KHR_interactivity.pure.js +124 -76
- package/glTF/2.0/Extensions/KHR_interactivity.pure.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity.types.d.ts +18 -1
- package/glTF/2.0/Extensions/KHR_interactivity.types.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_node_hoverability.pure.d.ts +2 -0
- package/glTF/2.0/Extensions/KHR_node_hoverability.pure.js +114 -56
- package/glTF/2.0/Extensions/KHR_node_hoverability.pure.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_node_selectability.pure.d.ts +2 -0
- package/glTF/2.0/Extensions/KHR_node_selectability.pure.js +80 -35
- package/glTF/2.0/Extensions/KHR_node_selectability.pure.js.map +1 -1
- package/glTF/2.0/Extensions/interactivityRefPathToObjectConverter.js +3 -2
- package/glTF/2.0/Extensions/interactivityRefPathToObjectConverter.js.map +1 -1
- package/glTF/2.0/Extensions/objectModelMapping.d.ts +4 -2
- package/glTF/2.0/Extensions/objectModelMapping.js +33 -4
- package/glTF/2.0/Extensions/objectModelMapping.js.map +1 -1
- package/glTF/2.0/glTFLoader.pure.d.ts +1 -1
- package/glTF/2.0/glTFLoader.pure.js +9 -4
- package/glTF/2.0/glTFLoader.pure.js.map +1 -1
- package/glTF/2.0/glTFLoaderExtension.d.ts +2 -1
- package/glTF/2.0/glTFLoaderExtension.js.map +1 -1
- package/package.json +3 -3
|
@@ -3,11 +3,21 @@ import { FlowGraphBlockNames } from "@babylonjs/core/FlowGraph/Blocks/flowGraphB
|
|
|
3
3
|
import { type ISerializedFlowGraphBlock, type ISerializedFlowGraphContext } from "@babylonjs/core/FlowGraph/typeDefinitions.js";
|
|
4
4
|
import { type InteractivityGraphToFlowGraphParser } from "./interactivityGraphParser.js";
|
|
5
5
|
import { type IGLTF } from "../../glTFLoaderInterfaces.js";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Describes how one KHR_interactivity configuration or socket property maps to FlowGraph.
|
|
8
|
+
*
|
|
9
|
+
* The same contract is used for fixed sockets, wildcard sockets, configuration validation,
|
|
10
|
+
* defaulting, and multi-block routing during strict graph lowering.
|
|
11
|
+
*/
|
|
12
|
+
export interface IGLTFToFlowGraphMappingObject {
|
|
7
13
|
/**
|
|
8
14
|
* The name of the property in the FlowGraph block.
|
|
9
15
|
*/
|
|
10
16
|
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether this socket mapping exists only for pre-ratification compatibility input.
|
|
19
|
+
*/
|
|
20
|
+
compatibilityOnly?: boolean;
|
|
11
21
|
/**
|
|
12
22
|
* The type of the property in the glTF specs.
|
|
13
23
|
* If not provided will be inferred.
|
|
@@ -40,7 +50,7 @@ interface IGLTFToFlowGraphMappingObject {
|
|
|
40
50
|
* This is used if we generate more than one block for a single glTF node.
|
|
41
51
|
* Defaults to the first block in the mapping.
|
|
42
52
|
*/
|
|
43
|
-
toBlock?: FlowGraphBlockNames;
|
|
53
|
+
toBlock?: FlowGraphBlockNames | string;
|
|
44
54
|
/**
|
|
45
55
|
* Used in configuration values. If defined, this will be the default value, if no value is provided.
|
|
46
56
|
*/
|
|
@@ -54,6 +64,75 @@ interface IGLTFToFlowGraphMappingObject {
|
|
|
54
64
|
* be fed by a `pointer/get` (e.g. the read-only `maxTime` animation pointer).
|
|
55
65
|
*/
|
|
56
66
|
convertConnectedTimeToFrames?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* KHR configuration value type used by canonical validation.
|
|
69
|
+
*/
|
|
70
|
+
configurationType?: "bool" | "int" | "int[]" | "string";
|
|
71
|
+
/**
|
|
72
|
+
* Whether this configuration entry exists only for canonical validation.
|
|
73
|
+
*/
|
|
74
|
+
validationOnly?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Whether an operation without a complete default configuration requires this property.
|
|
77
|
+
*/
|
|
78
|
+
required?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Graph array referenced by an integer configuration value.
|
|
81
|
+
*/
|
|
82
|
+
indexSource?: "types" | "variables" | "events" | "nodes" | "assetNodes";
|
|
83
|
+
/**
|
|
84
|
+
* Minimum number of values required for an array configuration.
|
|
85
|
+
*/
|
|
86
|
+
minItems?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Whether the configured indices generate required input value sockets.
|
|
89
|
+
*/
|
|
90
|
+
generatesInputValueSockets?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether integer case values generate required input value sockets.
|
|
93
|
+
*/
|
|
94
|
+
generatesCaseInputValueSockets?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Whether this string configuration generates JSON Pointer Template sockets.
|
|
97
|
+
*/
|
|
98
|
+
pointerTemplate?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Whether an invalid value falls back to the operation's default configuration.
|
|
101
|
+
*/
|
|
102
|
+
invalidUsesDefault?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Allowed KHR type signatures for a type-index configuration.
|
|
105
|
+
*/
|
|
106
|
+
allowedSignatures?: readonly ("bool" | "float" | "float2" | "float3" | "float4" | "float2x2" | "float3x3" | "float4x4" | "int" | "ref" | "custom")[];
|
|
107
|
+
/**
|
|
108
|
+
* Input socket whose effective type determines this output socket type.
|
|
109
|
+
*/
|
|
110
|
+
typeSourceInput?: string;
|
|
111
|
+
/** Inclusive minimum for an integer configuration value. */
|
|
112
|
+
minimum?: number;
|
|
113
|
+
/** Inclusive maximum for an integer configuration value. */
|
|
114
|
+
maximum?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Whether this configuration value generates numbered input flow sockets.
|
|
117
|
+
*/
|
|
118
|
+
generatesInputFlowSockets?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Whether this configuration array generates output flow sockets.
|
|
121
|
+
*/
|
|
122
|
+
generatesOutputFlowSockets?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Properties in the same group fall back to their defaults together when any member is
|
|
125
|
+
* missing or invalid.
|
|
126
|
+
*/
|
|
127
|
+
configurationGroup?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Whether duplicate array values are removed from the effective configuration.
|
|
130
|
+
*/
|
|
131
|
+
uniqueValues?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Whether a string configuration value is a `debug/log` message template.
|
|
134
|
+
*/
|
|
135
|
+
debugLogTemplate?: boolean;
|
|
57
136
|
}
|
|
58
137
|
/**
|
|
59
138
|
* Description of how a KHR_interactivity declaration (op such as
|
|
@@ -68,6 +147,13 @@ export interface IGLTFToFlowGraphMapping {
|
|
|
68
147
|
* When adding blocks defined in this module use the KHR_interactivity prefix.
|
|
69
148
|
*/
|
|
70
149
|
blocks: (FlowGraphBlockNames | string)[];
|
|
150
|
+
/**
|
|
151
|
+
* Exact value socket contract for an operation supplied by another extension.
|
|
152
|
+
*/
|
|
153
|
+
declarationSchema?: {
|
|
154
|
+
inputValueSockets: Record<string, "bool" | "float" | "float2" | "float3" | "float4" | "float2x2" | "float3x3" | "float4x4" | "int" | "ref" | "custom">;
|
|
155
|
+
outputValueSockets: Record<string, "bool" | "float" | "float2" | "float3" | "float4" | "float2x2" | "float3x3" | "float4x4" | "int" | "ref" | "custom">;
|
|
156
|
+
};
|
|
71
157
|
/**
|
|
72
158
|
* The inputs of the glTF node mapped to the FlowGraph block.
|
|
73
159
|
*/
|
|
@@ -176,6 +262,12 @@ export interface IGLTFToFlowGraphMapping {
|
|
|
176
262
|
}
|
|
177
263
|
export declare function getMappingForFullOperationName(fullOperationName: string): IGLTFToFlowGraphMapping | undefined;
|
|
178
264
|
export declare function getMappingForDeclaration(declaration: IKHRInteractivity_Declaration, returnNoOpIfNotAvailable?: boolean): IGLTFToFlowGraphMapping | undefined;
|
|
265
|
+
/**
|
|
266
|
+
* Creates the typed no-op mapping required for an unsupported extension declaration.
|
|
267
|
+
* @param declaration unsupported extension declaration
|
|
268
|
+
* @returns a mapping that preserves the declared value sockets
|
|
269
|
+
*/
|
|
270
|
+
export declare function getNoOpMappingForDeclaration(declaration: IKHRInteractivity_Declaration): IGLTFToFlowGraphMapping;
|
|
179
271
|
/**
|
|
180
272
|
* This function will add new mapping to glTF interactivity.
|
|
181
273
|
* Other extensions can define new types of blocks, this is the way to let interactivity know how to parse them.
|
|
@@ -184,8 +276,23 @@ export declare function getMappingForDeclaration(declaration: IKHRInteractivity_
|
|
|
184
276
|
* @param mapping The mapping object. See documentation or examples below.
|
|
185
277
|
*/
|
|
186
278
|
export declare function addNewInteractivityFlowGraphMapping(key: string, extension: string, mapping: IGLTFToFlowGraphMapping): void;
|
|
279
|
+
/**
|
|
280
|
+
* Result of parsing a ratified `debug/log` message template.
|
|
281
|
+
*/
|
|
282
|
+
export interface IDebugLogTemplateParseResult {
|
|
283
|
+
/** Whether all literal braces are doubled and every parameter is well formed. */
|
|
284
|
+
valid: boolean;
|
|
285
|
+
/** Unique parameter socket ids in first-occurrence order. */
|
|
286
|
+
sockets: string[];
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Parses a ratified `debug/log` message template.
|
|
290
|
+
* Literal braces must be doubled; non-empty text inside a single brace pair defines a socket id.
|
|
291
|
+
* @param message message template to parse
|
|
292
|
+
* @returns template validity and its exact dynamic socket ids
|
|
293
|
+
*/
|
|
294
|
+
export declare function ParseDebugLogTemplate(message: string): IDebugLogTemplateParseResult;
|
|
187
295
|
export declare function getAllSupportedNativeNodeTypes(): string[];
|
|
188
|
-
export {};
|
|
189
296
|
/**
|
|
190
297
|
*
|
|
191
298
|
* These are the nodes from the specs:
|