@roomle/web-sdk 7.0.0-alpha.1 → 7.0.0-alpha.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/THIRD-PARTY-NOTICES.txt +2 -2
- package/lib/{BufferGeometry-CzBRCIk3.mjs → BufferGeometry-YaAhwXNX.mjs} +2 -2
- package/lib/{BufferGeometry-CzBRCIk3.mjs.map → BufferGeometry-YaAhwXNX.mjs.map} +1 -1
- package/lib/ConfiguratorKernel.js +2 -2
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/{Object3D-Bkmul_of.mjs → Object3D-Dx0HN7Wz.mjs} +1 -1
- package/lib/{Object3D-Bkmul_of.mjs.map → Object3D-Dx0HN7Wz.mjs.map} +1 -1
- package/lib/{PointLightHelper-DOW-3Hvn.mjs → PointLightHelper-B8k3nJVr.mjs} +4 -4
- package/lib/{PointLightHelper-DOW-3Hvn.mjs.map → PointLightHelper-B8k3nJVr.mjs.map} +1 -1
- package/lib/RoomleCore.js +2 -2
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{SpotLightHelper-sE9yZPeq.mjs → SpotLightHelper-jqI3QyNE.mjs} +3 -3
- package/lib/{SpotLightHelper-sE9yZPeq.mjs.map → SpotLightHelper-jqI3QyNE.mjs.map} +1 -1
- package/lib/{USDZExporter-zhEk6F4K.mjs → USDZExporter-BS1qa3HO.mjs} +2 -2
- package/lib/{USDZExporter-zhEk6F4K.mjs.map → USDZExporter-BS1qa3HO.mjs.map} +1 -1
- package/lib/{Vector4-CmUR_DSp.mjs → Vector4-BmWb-htx.mjs} +2 -2
- package/lib/{Vector4-CmUR_DSp.mjs.map → Vector4-BmWb-htx.mjs.map} +1 -1
- package/lib/{api-1YHSF8TD.mjs → api-B_Mu7Mg1.mjs} +2 -2
- package/lib/{api-1YHSF8TD.mjs.map → api-B_Mu7Mg1.mjs.map} +1 -1
- package/lib/asset-loader.worker-Bdvb-pt7.mjs.map +1 -1
- package/lib/budgeteer.sw-ByZxiRBr.mjs.map +1 -1
- package/lib/{common-utils-DZiN8bjs.mjs → common-utils-zPOllvAT.mjs} +3 -2
- package/lib/common-utils-zPOllvAT.mjs.map +1 -0
- package/lib/{component-raycast-helper-BSFG09WY.mjs → component-raycast-helper-CMFpSJXC.mjs} +3 -3
- package/lib/{component-raycast-helper-BSFG09WY.mjs.map → component-raycast-helper-CMFpSJXC.mjs.map} +1 -1
- package/lib/{configuration-operations-DI677LMN.mjs → configuration-operations-C5rnDS8e.mjs} +44 -38
- package/lib/configuration-operations-C5rnDS8e.mjs.map +1 -0
- package/lib/configurator-BeDJ8jD1.mjs +46 -0
- package/lib/{configurator-CgFJ2voV.mjs.map → configurator-BeDJ8jD1.mjs.map} +1 -1
- package/lib/{configurator-capabilities-CLqul800.mjs → configurator-capabilities-C3TQUu_S.mjs} +12 -12
- package/lib/{configurator-capabilities-CLqul800.mjs.map → configurator-capabilities-C3TQUu_S.mjs.map} +1 -1
- package/lib/configurator-capabilities-C42HYCCb.mjs +3 -0
- package/lib/{configurator-mcp-tools-D00ndjOy.mjs → configurator-mcp-tools-D7vZ7ozM.mjs} +3 -3
- package/lib/configurator-mcp-tools-D7vZ7ozM.mjs.map +1 -0
- package/lib/configurator-yctV6IDY.mjs +3 -0
- package/lib/{fflate.module-CpWr9KGw.mjs → fflate.module-BfCRKtjc.mjs} +1 -1
- package/lib/{fflate.module-CpWr9KGw.mjs.map → fflate.module-BfCRKtjc.mjs.map} +1 -1
- package/lib/{glb-viewer-B2WH46su.mjs → glb-viewer-BkU2Z-HJ.mjs} +24 -24
- package/lib/{glb-viewer-B2WH46su.mjs.map → glb-viewer-BkU2Z-HJ.mjs.map} +1 -1
- package/lib/glb-viewer-jt9mrYrF.mjs +3 -0
- package/lib/{hi-mcp-server-tVF1bn28.mjs → hi-mcp-server-rSu1HL4m.mjs} +2 -2
- package/lib/{hi-mcp-server-tVF1bn28.mjs.map → hi-mcp-server-rSu1HL4m.mjs.map} +1 -1
- package/lib/{highlight-coordinator-CiBzWsMf.mjs → highlight-coordinator-DbqhP7Hy.mjs} +3 -3
- package/lib/{highlight-coordinator-CiBzWsMf.mjs.map → highlight-coordinator-DbqhP7Hy.mjs.map} +1 -1
- package/lib/{homag-intelligence-CdYda0Mb.mjs → homag-intelligence-DboRA-Yd.mjs} +6 -3
- package/lib/homag-intelligence-DboRA-Yd.mjs.map +1 -0
- package/lib/kernel-2ku6lFfE.mjs.map +1 -1
- package/lib/{material-viewer-BrARE0p0.mjs → material-viewer-BkaTt8Sn.mjs} +25 -21
- package/lib/material-viewer-BkaTt8Sn.mjs.map +1 -0
- package/lib/{packages-DhBz4dX3.mjs → packages-DZzpY6V8.mjs} +6 -6
- package/lib/{packages-DhBz4dX3.mjs.map → packages-DZzpY6V8.mjs.map} +1 -1
- package/lib/planner-C7kZ9SKV.mjs +3 -0
- package/lib/{planner-SRvOM5ZQ.mjs → planner-CuZaTB-P.mjs} +16 -16
- package/lib/{planner-SRvOM5ZQ.mjs.map → planner-CuZaTB-P.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +144 -20
- package/lib/roomle-headless.js +35 -32
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-sdk-Sdrd7K0F.mjs → roomle-sdk-CSH3WHXV.mjs} +25044 -25046
- package/lib/roomle-sdk-CSH3WHXV.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +144 -20
- package/lib/roomle-sdk.js +9 -9
- package/lib/{roomle-webgpu-renderer-CWoN5YzU.mjs → roomle-webgpu-renderer-D43bHxhT.mjs} +4 -4
- package/lib/{roomle-webgpu-renderer-CWoN5YzU.mjs.map → roomle-webgpu-renderer-D43bHxhT.mjs.map} +1 -1
- package/lib/{runtime-Bz0u5ckH.mjs → runtime-D5zrHj-e.mjs} +181 -78
- package/lib/runtime-D5zrHj-e.mjs.map +1 -0
- package/lib/{scene-renderer-CsbP23gu.mjs → scene-renderer-BmtXHWEw.mjs} +3 -3
- package/lib/{scene-renderer-CsbP23gu.mjs.map → scene-renderer-BmtXHWEw.mjs.map} +1 -1
- package/lib/{script-loader-D9Tr-8LN.mjs → script-loader-O8x5UOnP.mjs} +2 -2
- package/lib/{script-loader-D9Tr-8LN.mjs.map → script-loader-O8x5UOnP.mjs.map} +1 -1
- package/lib/{shading-settings-mnQRn2LO.mjs → shading-settings-CpXZmOnx.mjs} +2 -2
- package/lib/{shading-settings-mnQRn2LO.mjs.map → shading-settings-CpXZmOnx.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +8 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +2 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +2 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{stats-helper-Q25NjvCQ.mjs → stats-helper-jzrLyoHV.mjs} +2 -2
- package/lib/{stats-helper-Q25NjvCQ.mjs.map → stats-helper-jzrLyoHV.mjs.map} +1 -1
- package/lib/{threejs-utils-C3CWKZXa.mjs → threejs-utils-D1gtvxiA.mjs} +7 -15
- package/lib/{threejs-utils-C3CWKZXa.mjs.map → threejs-utils-D1gtvxiA.mjs.map} +1 -1
- package/lib/{tools-core-BBYYzygJ.mjs → tools-core-DJvn2gR6.mjs} +6 -6
- package/lib/{tools-core-BBYYzygJ.mjs.map → tools-core-DJvn2gR6.mjs.map} +1 -1
- package/lib/{util-BdWrqTeC.mjs → util-LmkV26fg.mjs} +1 -1
- package/lib/{util-BdWrqTeC.mjs.map → util-LmkV26fg.mjs.map} +1 -1
- package/package.json +2 -2
- package/sbom.cdx.json +5 -5
- package/lib/common-utils-DZiN8bjs.mjs.map +0 -1
- package/lib/configuration-operations-DI677LMN.mjs.map +0 -1
- package/lib/configurator-AwPowYQR.mjs +0 -3
- package/lib/configurator-CgFJ2voV.mjs +0 -46
- package/lib/configurator-capabilities-Dg8oD49T.mjs +0 -3
- package/lib/configurator-mcp-tools-D00ndjOy.mjs.map +0 -1
- package/lib/glb-viewer-sxVA5IgD.mjs +0 -3
- package/lib/homag-intelligence-CdYda0Mb.mjs.map +0 -1
- package/lib/material-viewer-BrARE0p0.mjs.map +0 -1
- package/lib/planner-D6uV0kCw.mjs +0 -3
- package/lib/roomle-sdk-Sdrd7K0F.mjs.map +0 -1
- package/lib/runtime-Bz0u5ckH.mjs.map +0 -1
package/lib/roomle-sdk.d.ts
CHANGED
|
@@ -1211,6 +1211,75 @@ export declare const CONFIGURATION_TYPE: {
|
|
|
1211
1211
|
readonly EXTERNAL: 2;
|
|
1212
1212
|
};
|
|
1213
1213
|
|
|
1214
|
+
/** Carries no credential: no API key, base URL, token or header. */
|
|
1215
|
+
export declare interface ConfigurationAssistantLog {
|
|
1216
|
+
provider: PlanningAssistantConfig['provider'];
|
|
1217
|
+
model: string;
|
|
1218
|
+
tools: AgentToolDefinition[];
|
|
1219
|
+
systemPrompts: Array<{
|
|
1220
|
+
rootComponentId: string | null;
|
|
1221
|
+
text: string;
|
|
1222
|
+
/** The text the model receives instead of an empty prompt with images. */
|
|
1223
|
+
imagePrompt: string;
|
|
1224
|
+
}>;
|
|
1225
|
+
turns: ConfigurationAssistantTurnLog[];
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/** A file's `data` is a data URL or base64. */
|
|
1229
|
+
export declare type ConfigurationAssistantLogContent = {
|
|
1230
|
+
type: 'text';
|
|
1231
|
+
text: string;
|
|
1232
|
+
} | {
|
|
1233
|
+
type: 'file';
|
|
1234
|
+
mediaType: string;
|
|
1235
|
+
data: string;
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
export declare type ConfigurationAssistantLogEvent = {
|
|
1239
|
+
type: 'text';
|
|
1240
|
+
text: string;
|
|
1241
|
+
} | ConfigurationAssistantToolEvent;
|
|
1242
|
+
|
|
1243
|
+
export declare interface ConfigurationAssistantLogMessage {
|
|
1244
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
1245
|
+
content: ConfigurationAssistantLogContent[];
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
export declare interface ConfigurationAssistantToolEvent {
|
|
1249
|
+
type: 'tool';
|
|
1250
|
+
name: string;
|
|
1251
|
+
args: unknown;
|
|
1252
|
+
result?: McpToolResult;
|
|
1253
|
+
error?: string;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
export declare interface ConfigurationAssistantTurnLog {
|
|
1257
|
+
turn: number;
|
|
1258
|
+
startedAt: string;
|
|
1259
|
+
endedAt: string | null;
|
|
1260
|
+
/** The index of the turn's system prompt in `systemPrompts`; null when the turn ended before the prompts were read. */
|
|
1261
|
+
systemPrompt: number | null;
|
|
1262
|
+
/** Every message the turn adds to the model input besides the user's prompt, e.g. the configuration. */
|
|
1263
|
+
context: ConfigurationAssistantLogMessage[];
|
|
1264
|
+
prompt: PlanningAssistantPrompt;
|
|
1265
|
+
events: ConfigurationAssistantLogEvent[];
|
|
1266
|
+
outcome: 'running' | 'done' | 'error' | 'aborted';
|
|
1267
|
+
error: string | null;
|
|
1268
|
+
usage: ConfigurationAssistantTurnUsage | null;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
export declare interface ConfigurationAssistantTurnUsage {
|
|
1272
|
+
status: 'complete' | 'partial' | 'unavailable';
|
|
1273
|
+
inputTokens: number | null;
|
|
1274
|
+
outputTokens: number | null;
|
|
1275
|
+
totalTokens: number | null;
|
|
1276
|
+
promptBytes: number | null;
|
|
1277
|
+
configurationBytes: number | null;
|
|
1278
|
+
requestBytes: number[];
|
|
1279
|
+
cachedInputTokens: number | null;
|
|
1280
|
+
chained: boolean;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1214
1283
|
export declare interface ConfigurationExporter {
|
|
1215
1284
|
new (): ConfigurationExporter;
|
|
1216
1285
|
init(): void;
|
|
@@ -1962,7 +2031,6 @@ export declare class ConfiguratorKernelAccess extends CommonKernelAccess {
|
|
|
1962
2031
|
private _updateComponentDependencies;
|
|
1963
2032
|
private _updatePlanObjectParameters;
|
|
1964
2033
|
private _updateCommonPlanObjectParameters;
|
|
1965
|
-
private _enableRootComponentParametersAsGlobal;
|
|
1966
2034
|
private _updatePlanObjectChildren;
|
|
1967
2035
|
updatePlanObjectDependencies(planObjectId: number): void;
|
|
1968
2036
|
/** Sends the parameters and possible children of the selected components of the plan object to the UI. */
|
|
@@ -1977,6 +2045,7 @@ export declare class ConfiguratorKernelAccess extends CommonKernelAccess {
|
|
|
1977
2045
|
runtimeId: number;
|
|
1978
2046
|
}>): KernelReplaceComponentResult | null;
|
|
1979
2047
|
swapComponents(targetObjectId: number, firstRuntimeId: number, secondRuntimeId: number): void;
|
|
2048
|
+
moveComponent(targetObjectId: number, runtimeId: number, dockPair: KernelMoveComponentDockPair): void;
|
|
1980
2049
|
setComponentParameter(runtimeId: number, parameterKey: string, value: string): void;
|
|
1981
2050
|
setPlanObjectParameter(objectId: number, parameterKey: string, value: string): void;
|
|
1982
2051
|
deleteComponent(runtimeId: number, redockChildrenToParent: boolean): void;
|
|
@@ -2134,6 +2203,7 @@ export declare interface ConfiguratorKernelClass {
|
|
|
2134
2203
|
runtimeId: number;
|
|
2135
2204
|
}>): KernelReplaceComponentResult | null;
|
|
2136
2205
|
swapComponents(targetObjectId: number, firstRuntimeId: number, secondRuntimeId: number): void;
|
|
2206
|
+
moveComponent(targetObjectId: number, runtimeId: number, dockPair: KernelMoveComponentDockPair): void;
|
|
2137
2207
|
getComponentParameters(componentId: number): KernelParameter[];
|
|
2138
2208
|
getPlanComponentAnimations(planComponentId: number): KernelAnimation[];
|
|
2139
2209
|
setComponentParameter(componentId: number, parameterKey: string, value: string): void;
|
|
@@ -2659,14 +2729,6 @@ export declare class ConfiguratorUiCallbacks extends UiCallback implements Confi
|
|
|
2659
2729
|
ids: RapiId[];
|
|
2660
2730
|
message: string;
|
|
2661
2731
|
}) => void;
|
|
2662
|
-
/**
|
|
2663
|
-
* When a sync has been started
|
|
2664
|
-
*/
|
|
2665
|
-
onSyncStarted: () => void;
|
|
2666
|
-
/**
|
|
2667
|
-
* When a previously requested sync has been completed
|
|
2668
|
-
*/
|
|
2669
|
-
onSyncDone: () => void;
|
|
2670
2732
|
/**
|
|
2671
2733
|
* When UI should show floor material selection
|
|
2672
2734
|
*/
|
|
@@ -3694,7 +3756,6 @@ export declare class DataSyncer implements Context, CommunicationInterfaceCallba
|
|
|
3694
3756
|
private _isStarting;
|
|
3695
3757
|
private _alwaysUseCache;
|
|
3696
3758
|
constructor(creator: string);
|
|
3697
|
-
start(catalogId: RapiId): Promise<void>;
|
|
3698
3759
|
syncCatalog(catalogId: RapiId): Promise<void>;
|
|
3699
3760
|
syncFloorTag(tagId: RapiId): Promise<any>;
|
|
3700
3761
|
syncTypeChangeTag(tagId: RapiId): Promise<any>;
|
|
@@ -3714,6 +3775,7 @@ export declare class DataSyncer implements Context, CommunicationInterfaceCallba
|
|
|
3714
3775
|
private _assetUrlToBase64;
|
|
3715
3776
|
private _softReject;
|
|
3716
3777
|
requestAsset(url: string, urlAsFallback?: boolean): AssetUrl | null;
|
|
3778
|
+
requestCachedAsset(url: string): AssetUrl | null;
|
|
3717
3779
|
setAlwaysUseCache(alwaysUseCache: boolean): void;
|
|
3718
3780
|
preFillAssetCache(key: string, url: string): void;
|
|
3719
3781
|
}
|
|
@@ -4481,6 +4543,13 @@ export declare interface ExternalObjectAPI {
|
|
|
4481
4543
|
* @param posGroupId The ID of the pos group.
|
|
4482
4544
|
*/
|
|
4483
4545
|
getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
|
|
4546
|
+
/**
|
|
4547
|
+
* "getExternalObjectArticleInfo" returns the ID, name and description of the article of a root module.
|
|
4548
|
+
* Returns `undefined` if the group or the root module is not known.
|
|
4549
|
+
* @param groupId The ID of the group of the root module.
|
|
4550
|
+
* @param rootModuleId The ID of the root module.
|
|
4551
|
+
*/
|
|
4552
|
+
getExternalObjectArticleInfo(groupId: string, rootModuleId: string): Pick<PosArticleInfo, 'articleId' | 'articleName' | 'desc'> | undefined;
|
|
4484
4553
|
/**
|
|
4485
4554
|
* "selectExternalObjectSubArticle" selects a sub article in the planner.
|
|
4486
4555
|
* @param subArticleId The ID of the sub article to be selected.
|
|
@@ -5292,6 +5361,7 @@ export declare interface GlueLogic {
|
|
|
5292
5361
|
hiObjectSelection: HiObjectSelectionApi;
|
|
5293
5362
|
isLibraryLoaded(libraryId: string): boolean;
|
|
5294
5363
|
getLibraryData(libraryId: string): LibraryData | null;
|
|
5364
|
+
getGroup(groupId: string): GroupItem | undefined;
|
|
5295
5365
|
addLibrary(libraryData: LibraryData): Promise<void>;
|
|
5296
5366
|
setPosDataForLoading(posData: PosSaveData | null): Promise<void>;
|
|
5297
5367
|
loadPosData(articleCatalogJson: any, libraryId: string): void;
|
|
@@ -5330,6 +5400,32 @@ export declare interface GlueLogic {
|
|
|
5330
5400
|
getMaterialUrl(materialId: string, groupOrModuleId?: string): string | null;
|
|
5331
5401
|
}
|
|
5332
5402
|
|
|
5403
|
+
export declare interface GroupItem {
|
|
5404
|
+
posDataJson: PosGroup;
|
|
5405
|
+
opened: boolean;
|
|
5406
|
+
/** Prevents concurrent calculations on this group. When true, modifications are blocked until the current calculation completes. */
|
|
5407
|
+
calculationInProgress: boolean;
|
|
5408
|
+
/** The running calculateAndUpdateGroupMap run; re-entrant calls await it instead of calculating again. */
|
|
5409
|
+
calculationPromise: Promise<PosGroup> | null;
|
|
5410
|
+
/**
|
|
5411
|
+
* The last stored calculation. The next one is compared against it to log
|
|
5412
|
+
* only the root modules the modification broke, since callers write their
|
|
5413
|
+
* modification into posDataJson before the calculation runs.
|
|
5414
|
+
*/
|
|
5415
|
+
lastCalculatedPosDataJson?: PosGroup;
|
|
5416
|
+
pendingArrangement?: {
|
|
5417
|
+
originalGroup?: PosGroup;
|
|
5418
|
+
allowRepositioning: boolean;
|
|
5419
|
+
carrierOverrides?: Map<string, UnitAboveCarrier>;
|
|
5420
|
+
};
|
|
5421
|
+
/**
|
|
5422
|
+
* The load that follows has to ask the kernel to apply the group position:
|
|
5423
|
+
* the last calculation moved the group to keep its distance to the walls, or
|
|
5424
|
+
* kept it where it was while a root gained or lost its docking vectors.
|
|
5425
|
+
*/
|
|
5426
|
+
appliesGroupPosition?: boolean;
|
|
5427
|
+
}
|
|
5428
|
+
|
|
5333
5429
|
/**
|
|
5334
5430
|
* Hand-typed overrides of core handler methods, re-typed against our model types
|
|
5335
5431
|
* (PlanObject, KernelObject, …) which differ from core's. Everything not listed here
|
|
@@ -6800,6 +6896,7 @@ export declare interface Kernel {
|
|
|
6800
6896
|
dockNewComponent(targetObjectId: number, dockingEntity: NewComponentDockingSource, dockPair: NewComponentDockPair): number;
|
|
6801
6897
|
replaceComponent(targetObjectId: number, runtimeId: number, dockingEntity: NewComponentDockingSource): ReplaceComponentResult;
|
|
6802
6898
|
swapComponents(targetObjectId: number, firstRuntimeId: number, secondRuntimeId: number): void;
|
|
6899
|
+
moveComponent(targetObjectId: number, runtimeId: number, dockPair: MoveComponentDockPair): void;
|
|
6803
6900
|
setExternalMeshInvalid(assetType: AssetType_2, idOrUrl: string, quality: number): void;
|
|
6804
6901
|
setAssetInvalid(assetType: AssetType_2, idOrUrl: string, quality: number): void;
|
|
6805
6902
|
loadExternalAttributeDefinition(serializedDefinition: string): void;
|
|
@@ -7081,6 +7178,10 @@ export declare interface KernelMessageMetaInfo {
|
|
|
7081
7178
|
|
|
7082
7179
|
export declare type KernelMessageType = ValuesFromObject<typeof KERNEL_MESSAGE_TYPE>;
|
|
7083
7180
|
|
|
7181
|
+
export declare interface KernelMoveComponentDockPair extends KernelDockPairTarget {
|
|
7182
|
+
childDockId: number;
|
|
7183
|
+
}
|
|
7184
|
+
|
|
7084
7185
|
export declare interface KernelObject {
|
|
7085
7186
|
extRef: EMSReference_2 | null;
|
|
7086
7187
|
clone(): KernelObject;
|
|
@@ -7775,6 +7876,7 @@ export declare class MeshGenerator implements Context {
|
|
|
7775
7876
|
private _loadBenchmarkTextures;
|
|
7776
7877
|
protected _loadTextures(rapiMaterial: RapiMaterial, material: MeshPhysicalMaterial, width?: number, height?: number): Promise<void>;
|
|
7777
7878
|
private _addTexturesToMaterial;
|
|
7879
|
+
private _addTextureAsset;
|
|
7778
7880
|
protected _loadMaterial(materialId: string, width?: number, height?: number): Promise<Material>;
|
|
7779
7881
|
protected _assignMaterial(mesh: Mesh, materialId: string, materialAttributes?: Record<string, string | null>): Promise<void>;
|
|
7780
7882
|
get maxAnisotropy(): number;
|
|
@@ -7816,6 +7918,14 @@ export declare interface ModelExportOptions {
|
|
|
7816
7918
|
filename?: string;
|
|
7817
7919
|
}
|
|
7818
7920
|
|
|
7921
|
+
export declare interface MoveComponentDockPair {
|
|
7922
|
+
parentId: number;
|
|
7923
|
+
parentDockId: number;
|
|
7924
|
+
childDockId: number;
|
|
7925
|
+
position?: Vector3;
|
|
7926
|
+
insertInBetween?: boolean;
|
|
7927
|
+
}
|
|
7928
|
+
|
|
7819
7929
|
export declare interface NeighboringObjectMeasurementInfo {
|
|
7820
7930
|
bounds: Box3;
|
|
7821
7931
|
id: number;
|
|
@@ -10054,7 +10164,7 @@ export declare interface PosGroup {
|
|
|
10054
10164
|
*/
|
|
10055
10165
|
pos?: number[];
|
|
10056
10166
|
/**
|
|
10057
|
-
* The rotation on the vertical axis in degree
|
|
10167
|
+
* The rotation on the vertical axis in degree, in [0°, 360°); 360° is written as 0°
|
|
10058
10168
|
*/
|
|
10059
10169
|
rotationY?: number;
|
|
10060
10170
|
/**
|
|
@@ -10127,7 +10237,7 @@ export declare interface PosModuleRootData extends PosModuleData, PosPositionInf
|
|
|
10127
10237
|
*/
|
|
10128
10238
|
articlePos?: number[];
|
|
10129
10239
|
/**
|
|
10130
|
-
* Rotation on the vertical axis in degree
|
|
10240
|
+
* Rotation on the vertical axis in degree, in [0°, 360°); 360° is written as 0°
|
|
10131
10241
|
*/
|
|
10132
10242
|
rotationY?: number;
|
|
10133
10243
|
logMessages: PosErrorMsg[];
|
|
@@ -10356,6 +10466,8 @@ export declare const enum RAPI_PATHS {
|
|
|
10356
10466
|
PLAN_SNAPSHOTS = "planSnapshots"
|
|
10357
10467
|
}
|
|
10358
10468
|
|
|
10469
|
+
export declare type RAPI_TEXTURE_ASSET_TYPE = 'image1k' | 'src';
|
|
10470
|
+
|
|
10359
10471
|
export declare const enum RAPI_TEXTURE_TYPE {
|
|
10360
10472
|
RGB = "RGB",// diffuse color texture
|
|
10361
10473
|
RGBA = "RGBA",// Diffuse color texture and opacity map
|
|
@@ -10392,7 +10504,6 @@ export declare class RapiAccess implements Context {
|
|
|
10392
10504
|
getPreloadForConfiguration(id: RapiId): Promise<void>;
|
|
10393
10505
|
private _getPreload;
|
|
10394
10506
|
changeUseOfHDGeometry(): void;
|
|
10395
|
-
getHSCPackage(id: RapiId): Promise<RapiPackage | void>;
|
|
10396
10507
|
getComponent(id: RapiId): Promise<RapiComponent>;
|
|
10397
10508
|
getConfiguration(id: RapiId): Promise<RapiConfiguration>;
|
|
10398
10509
|
getConfigurations(ids: RapiId[]): Promise<RapiConfiguration[]>;
|
|
@@ -10645,6 +10756,12 @@ export declare const enum RapiFavoriteType {
|
|
|
10645
10756
|
|
|
10646
10757
|
export declare type RapiId = string;
|
|
10647
10758
|
|
|
10759
|
+
export declare interface RapiImageAsset extends RapiJson {
|
|
10760
|
+
format: string;
|
|
10761
|
+
url: AssetUrl;
|
|
10762
|
+
generated: string;
|
|
10763
|
+
}
|
|
10764
|
+
|
|
10648
10765
|
/**
|
|
10649
10766
|
* Error thrown when _getById is called with an invalid or empty id.
|
|
10650
10767
|
* This is a programmer error and should not happen in production.
|
|
@@ -10779,12 +10896,6 @@ export declare class RapiOfflineError extends Error {
|
|
|
10779
10896
|
constructor(rapiPath: RAPI_PATHS, id: RapiId);
|
|
10780
10897
|
}
|
|
10781
10898
|
|
|
10782
|
-
export declare interface RapiPackage extends RapiJson {
|
|
10783
|
-
components: RapiComponent[];
|
|
10784
|
-
materials: RapiMaterial[];
|
|
10785
|
-
textures: RapiTexture[];
|
|
10786
|
-
}
|
|
10787
|
-
|
|
10788
10899
|
export declare interface RapiPlan extends RapiJson {
|
|
10789
10900
|
name: string;
|
|
10790
10901
|
description: string;
|
|
@@ -10961,9 +11072,12 @@ export declare interface RapiTexture extends RapiJson {
|
|
|
10961
11072
|
mmWidth: number;
|
|
10962
11073
|
tileable: boolean;
|
|
10963
11074
|
material: RapiId;
|
|
10964
|
-
|
|
11075
|
+
assets?: RapiTextureAssetMap;
|
|
11076
|
+
[key: string]: string | number | boolean | AssetUrl | RapiId | LinksCollection | RapiTextureAssetMap | null | undefined;
|
|
10965
11077
|
}
|
|
10966
11078
|
|
|
11079
|
+
export declare type RapiTextureAssetMap = Partial<Record<RAPI_TEXTURE_ASSET_TYPE, RapiImageAsset>>;
|
|
11080
|
+
|
|
10967
11081
|
export declare interface RapiUser extends RapiJson {
|
|
10968
11082
|
username: string;
|
|
10969
11083
|
salutationCode: number;
|
|
@@ -11501,6 +11615,8 @@ export declare class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
11501
11615
|
stopConfigurationAssistant(owner: string): Promise<void>;
|
|
11502
11616
|
/** Dispatches one prompt to the SDK session or the custom host agent. */
|
|
11503
11617
|
planningAssistantPrompt(prompt: PlanningAssistantPrompt): Promise<void>;
|
|
11618
|
+
/** The log of the configuration assistant's last started session; undefined without an SDK session. */
|
|
11619
|
+
getConfigurationAssistantReport(): ConfigurationAssistantLog | undefined;
|
|
11504
11620
|
/** Lists the native configurator's tools, loaded on the first agent request. */
|
|
11505
11621
|
getConfiguratorAgentTools(): Promise<AgentToolDefinition[]>;
|
|
11506
11622
|
/** Executes an agent tool and returns its MCP-shaped result. */
|
|
@@ -12707,6 +12823,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
12707
12823
|
[key: string]: string;
|
|
12708
12824
|
}>;
|
|
12709
12825
|
getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
|
|
12826
|
+
getExternalObjectArticleInfo(groupId: string, rootModuleId: string): Pick<PosArticleInfo, 'articleId' | 'articleName' | 'desc'> | undefined;
|
|
12710
12827
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
12711
12828
|
deleteExternalObjectSubArticle(posGroupId: string, subArticleId: string): Promise<void>;
|
|
12712
12829
|
_mergeExternalObjects(groupIds: string[]): Promise<void>;
|
|
@@ -14188,6 +14305,13 @@ export declare const enum Unit_2 {
|
|
|
14188
14305
|
CM = 2
|
|
14189
14306
|
}
|
|
14190
14307
|
|
|
14308
|
+
/** The root a unit above moves with, and the root its place was relative to. */
|
|
14309
|
+
export declare interface UnitAboveCarrier {
|
|
14310
|
+
carrierId: string;
|
|
14311
|
+
/** The root the unit stood above before the change: the carrier, or a root that left. */
|
|
14312
|
+
referenceId: string;
|
|
14313
|
+
}
|
|
14314
|
+
|
|
14191
14315
|
export declare class UnitFormatter implements Context {
|
|
14192
14316
|
_creator_: string;
|
|
14193
14317
|
_actualUnitString: string;
|
package/lib/roomle-sdk.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
-
import { a as e, i as t, n, r, t as i } from "./packages-
|
|
2
|
+
import { a as e, i as t, n, r, t as i } from "./packages-DZzpY6V8.mjs";
|
|
3
3
|
import { i as a, t as o } from "./kernel-2ku6lFfE.mjs";
|
|
4
|
-
import { Ot as s, Tt as c, wt as l } from "./threejs-utils-
|
|
5
|
-
import { D as u, g as d } from "./common-utils-
|
|
6
|
-
import {
|
|
7
|
-
import { t as z } from "./configurator-
|
|
8
|
-
import { t as B } from "./planner-
|
|
9
|
-
import { n as V, t as H } from "./glb-viewer-
|
|
10
|
-
import { t as U } from "./api-
|
|
11
|
-
export { o as CONFIGURATION_TYPE, l as CORE_EDGE_TYPE, c as CORE_FLOOR_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, z as Configurator,
|
|
4
|
+
import { Ot as s, Tt as c, wt as l } from "./threejs-utils-D1gtvxiA.mjs";
|
|
5
|
+
import { D as u, g as d } from "./common-utils-zPOllvAT.mjs";
|
|
6
|
+
import { A as f, G as p, J as m, K as h, O as g, V as _, X as v, Y as y, Z as b, _ as x, _t as S, b as C, bt as w, gt as T, ht as E, k as D, m as O, mt as k, o as A, p as j, pt as M, q as N, s as P, t as F, v as I, y as L, z as R } from "./roomle-sdk-CSH3WHXV.mjs";
|
|
7
|
+
import { t as z } from "./configurator-BeDJ8jD1.mjs";
|
|
8
|
+
import { t as B } from "./planner-CuZaTB-P.mjs";
|
|
9
|
+
import { n as V, t as H } from "./glb-viewer-BkU2Z-HJ.mjs";
|
|
10
|
+
import { t as U } from "./api-B_Mu7Mg1.mjs";
|
|
11
|
+
export { o as CONFIGURATION_TYPE, l as CORE_EDGE_TYPE, c as CORE_FLOOR_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, z as Configurator, m as FloorPlanElementViewModel, H as GlbViewer, O as HI_CONTEXT_ACTION, A as HI_GROUP_OPERATION, P as HI_TOOL_COMMAND, M as HttpResponseError, N as MeasurementLinePlanElementViewModel, g as PLAN_ELEMENT_CHANGE_TYPES, b as PlanElementViewModel, v as PlanObjectViewModel, B as Planner, k as RapiAccess, E as RapiInvalidIdError, T as RapiOfflineError, U as RoomDesignerApi, R as RoomleConfigurator, V as RoomleGLBViewer, w as RoomleLightSource, j as RoomlePlanner, F as RoomleSdk, y as StaticPlanObjectViewModel, p as WallPlanElementViewModel, x as createExtObj, _ as createExtObjId, d as download, S as getCatalogIdFromConfigurationHash, h as isDeletedInvisibleWall, I as isExtObjId, L as isExternalObject, D as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, f as isSafari, u as md5Hash, C as removeExtObjIdPrefix };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { Ar as e, Ci as t, Cr as n, Ei as r, En as i, Ft as a, Gn as o, Hi as s, J as c, Ji as l, Kn as u, Mr as d, Nr as f, On as p, Qt as m, S as h, Si as g, Ti as _, V as v, Vr as y, Xi as b, Xt as x, Y as S, Yr as C, _i as w, bi as T, ct as ee, di as te, f as ne, g as re, gi as E, hr as ie, ht as D, in as ae, kr as oe, ln as se, mr as ce, q as le, qt as ue, rt as de, sn as fe, t as pe, vi as me, w as he, wi as O, wr as ge, wt as _e, xi as ve, yi as ye } from "./three.core-BpdpLVZy.mjs";
|
|
3
|
-
import { h as be, t as xe } from "./shading-settings-
|
|
3
|
+
import { h as be, t as xe } from "./shading-settings-CpXZmOnx.mjs";
|
|
4
4
|
import { n as Se, r as Ce, t as we } from "./decorate-CooD7C6J.mjs";
|
|
5
5
|
import { t as Te } from "./layer-UUQwIXS6.mjs";
|
|
6
|
-
import { _ as Ee } from "./common-utils-
|
|
6
|
+
import { _ as Ee } from "./common-utils-zPOllvAT.mjs";
|
|
7
7
|
import { a as De, n as Oe, o as ke, r as Ae, t as je } from "./roomle-renderer-hDktY-wA.mjs";
|
|
8
8
|
import { $f as Me, Af as Ne, Am as k, At as A, Bm as Pe, Bp as Fe, Bu as Ie, Cm as Le, Dt as Re, Ed as ze, Ei as Be, Eo as Ve, Fa as He, Ff as Ue, Fo as We, G as Ge, Gf as Ke, Hm as qe, Hs as Je, Ht as Ye, Id as Xe, Ka as Ze, Ln as Qe, Md as $e, Mp as et, Nm as tt, Of as nt, Pn as rt, Pt as it, Pu as at, Qf as ot, Ra as st, Rc as j, Rt as ct, Td as lt, Tm as ut, Ts as dt, Uc as M, Uf as ft, Uo as pt, Us as mt, Vp as ht, Vs as gt, Wc as _t, Wr as vt, Ws as yt, Wt as bt, Xi as xt, Xt as St, Yu as Ct, Z as N, Zd as wt, _a as Tt, _d as Et, _f as P, _u as Dt, ad as Ot, af as kt, al as At, as as F, ba as jt, bd as Mt, br as Nt, bs as Pt, cf as Ft, es as I, gf as It, gm as Lt, gr as L, hd as Rt, ho as zt, ia as Bt, id as Vt, im as R, io as Ht, it as z, jf as Ut, jm as B, jp as Wt, km as V, ln as Gt, ma as Kt, mo as qt, nt as Jt, ol as Yt, om as H, pa as Xt, pf as Zt, po as Qt, qa as U, qf as W, qi as $t, ro as en, sd as tn, sm as nn, ss as rn, st as an, su as on, ua as sn, uo as G, v as cn, vr as ln, vs as un, vt as dn, wo as fn, xi as pn, xs as K, xu as mn, ya as hn, yn as q, zm as gn, zu as _n } from "./three.tsl-CqdA7sWg.mjs";
|
|
9
9
|
import { $ as vn, U as yn, X as bn, a as xn, b as Sn, nt as Cn, q as wn } from "./three.webgpu-Dl_Is_pA.mjs";
|
|
@@ -3252,7 +3252,7 @@ var Gr = /* @__PURE__ */ new Gt(), Kr = /* @__PURE__ */ new O(), qr, Jr = class
|
|
|
3252
3252
|
}
|
|
3253
3253
|
assemble(e, t, n, r, i) {
|
|
3254
3254
|
if (!(r instanceof p) || i === "no fog" || i === "depth") return this.removeSceneFog(), t;
|
|
3255
|
-
let a = e.getTextureNode("depth"), o = this.getTransparentObjectsDepthPassTexture(n, r), s = M(a.r, o.r), c = H(r.projectionMatrixInverse), l = H(r.matrixWorld), u = M(H(r.far).onRenderUpdate(() => r.far), 50).sub(this.fogFarBlend), d = u.sub(this.fogNearBlend), f = B(It.x.mul(2).sub(1), It.y.mul(2).sub(1), s, 1), m = c.mul(f), h = m.xyz.div(m.w), g = l.mul(B(h, 1)).xyz.xz.length(), _ = u.sub(g).div(u.sub(d)).clamp(0, 1).toInspector("Fog / Factor");
|
|
3255
|
+
let a = e.getTextureNode("depth"), o = this.getTransparentObjectsDepthPassTexture(n, r), s = M(a.r, o.r), c = H(r.projectionMatrixInverse), l = H(r.matrixWorld), u = M(j(20, H(r.far).onRenderUpdate(() => r.far)), 50).sub(this.fogFarBlend), d = u.sub(this.fogNearBlend), f = B(It.x.mul(2).sub(1), It.y.mul(2).sub(1), s, 1), m = c.mul(f), h = m.xyz.div(m.w), g = l.mul(B(h, 1)).xyz.xz.length(), _ = u.sub(g).div(u.sub(d)).clamp(0, 1).toInspector("Fog / Factor");
|
|
3256
3256
|
return this.addSceneFog(n, d, u), _t(B(this.fogColor, 1), t, _).toInspector("Fog / Composite");
|
|
3257
3257
|
}
|
|
3258
3258
|
addSceneFog(e, t, n) {
|
|
@@ -4310,4 +4310,4 @@ we([Ce, Se("design:type", Object)], la.prototype, "_domHelper", void 0), we([Ce,
|
|
|
4310
4310
|
//#endregion
|
|
4311
4311
|
export { la as RoomleWebGPURenderer };
|
|
4312
4312
|
|
|
4313
|
-
//# sourceMappingURL=roomle-webgpu-renderer-
|
|
4313
|
+
//# sourceMappingURL=roomle-webgpu-renderer-D43bHxhT.mjs.map
|