@roomle/web-sdk 5.1.0 → 5.2.0-alpha.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/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{api-Woc5NOM1.mjs → api-DgmvQKJM.mjs} +5 -2
- package/lib/{api-Woc5NOM1.mjs.map → api-DgmvQKJM.mjs.map} +1 -1
- package/lib/asset-loader.worker-CE4O0JU-.mjs.map +1 -1
- package/lib/budgeteer.sw-yR2xApHT.mjs.map +1 -1
- package/lib/budgeteer.sw.js +1 -1
- package/lib/common-utils-CNGLvAo_.mjs.map +1 -1
- package/lib/{component-raycast-helper-CaY2UMli.mjs → component-raycast-helper-BKwofixp.mjs} +2 -2
- package/lib/{component-raycast-helper-CaY2UMli.mjs.map → component-raycast-helper-BKwofixp.mjs.map} +1 -1
- package/lib/{configurator-i-Zl5omd.mjs → configurator-B8BvHTky.mjs} +4 -4
- package/lib/{configurator-i-Zl5omd.mjs.map → configurator-B8BvHTky.mjs.map} +1 -1
- package/lib/configurator-CaIbtRET.mjs +2 -0
- package/lib/glb-viewer-CZvZ1erY.mjs +2 -0
- package/lib/{glb-viewer-C1-vP2Vq.mjs → glb-viewer-DamedzN_.mjs} +4 -4
- package/lib/{glb-viewer-C1-vP2Vq.mjs.map → glb-viewer-DamedzN_.mjs.map} +1 -1
- package/lib/{highlight-coordinator-DKMaPGPo.mjs → highlight-coordinator-DiTRPUXt.mjs} +3 -3
- package/lib/{highlight-coordinator-DKMaPGPo.mjs.map → highlight-coordinator-DiTRPUXt.mjs.map} +1 -1
- package/lib/{homag-intelligence-Dr0m9LxO.mjs → homag-intelligence-Kd23hknu.mjs} +7 -4
- package/lib/homag-intelligence-Kd23hknu.mjs.map +1 -0
- package/lib/{material-viewer-CHzje_V0.mjs → material-viewer-CArm5Sbd.mjs} +4 -4
- package/lib/{material-viewer-CHzje_V0.mjs.map → material-viewer-CArm5Sbd.mjs.map} +1 -1
- package/lib/{packages-DbOsSpKq.mjs → packages-Cl6mO8eL.mjs} +5 -5
- package/lib/{packages-DbOsSpKq.mjs.map → packages-Cl6mO8eL.mjs.map} +1 -1
- package/lib/{planner-BOrph7M7.mjs → planner-BvSAoyAE.mjs} +3 -3
- package/lib/{planner-BOrph7M7.mjs.map → planner-BvSAoyAE.mjs.map} +1 -1
- package/lib/planner-CGH5CX5Q.mjs +2 -0
- package/lib/roomle-headless.d.ts +167 -20
- package/lib/roomle-headless.js +9 -9
- package/lib/roomle-renderer-nCUrLU_S.mjs.map +1 -1
- package/lib/{roomle-sdk-CN9TqA78.mjs → roomle-sdk-CyuyR7se.mjs} +3486 -3145
- package/lib/roomle-sdk-CyuyR7se.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +167 -20
- package/lib/roomle-sdk.js +7 -7
- package/lib/{roomle-webgpu-renderer-C26OAfkn.mjs → roomle-webgpu-renderer-__fKL0NL.mjs} +7 -7
- package/lib/roomle-webgpu-renderer-__fKL0NL.mjs.map +1 -0
- package/lib/{scene-renderer-DGSgD6mp.mjs → scene-renderer-NOgMV9KH.mjs} +2 -2
- package/lib/{scene-renderer-DGSgD6mp.mjs.map → scene-renderer-NOgMV9KH.mjs.map} +1 -1
- package/lib/{script-loader-CL3F8sIY.mjs → script-loader-i9PxCq7s.mjs} +2 -2
- package/lib/{script-loader-CL3F8sIY.mjs.map → script-loader-i9PxCq7s.mjs.map} +1 -1
- package/lib/static/packages/workers/generated/budgeteer.sw.js +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/plannerCoreInterface.d.ts +23 -4
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
- 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.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{stats-helper-C74q5Bje.mjs → stats-helper-BKeEnvFU.mjs} +2 -2
- package/lib/{stats-helper-C74q5Bje.mjs.map → stats-helper-BKeEnvFU.mjs.map} +1 -1
- package/lib/{threejs-utils-DHTRY4yW.mjs → threejs-utils-CX2ILaES.mjs} +66 -62
- package/lib/threejs-utils-CX2ILaES.mjs.map +1 -0
- package/lib/{tools-core-D3kc3jRW.mjs → tools-core-DqGfLhDO.mjs} +3 -3
- package/lib/{tools-core-D3kc3jRW.mjs.map → tools-core-DqGfLhDO.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-Bo_pnqDi.mjs +0 -2
- package/lib/glb-viewer-CaNU0FLF.mjs +0 -2
- package/lib/homag-intelligence-Dr0m9LxO.mjs.map +0 -1
- package/lib/planner-DXeyIHUx.mjs +0 -2
- package/lib/roomle-sdk-CN9TqA78.mjs.map +0 -1
- package/lib/roomle-webgpu-renderer-C26OAfkn.mjs.map +0 -1
- package/lib/threejs-utils-DHTRY4yW.mjs.map +0 -1
package/lib/roomle-sdk.d.ts
CHANGED
|
@@ -219,6 +219,19 @@ export declare interface AssetType_2 {
|
|
|
219
219
|
|
|
220
220
|
export declare type AssetUrl = string;
|
|
221
221
|
|
|
222
|
+
export declare class AsyncGuard<T> {
|
|
223
|
+
info: any;
|
|
224
|
+
private _promise;
|
|
225
|
+
private _resolve;
|
|
226
|
+
private _reject;
|
|
227
|
+
constructor(info?: any);
|
|
228
|
+
private _init;
|
|
229
|
+
resolve(value?: any): void;
|
|
230
|
+
reject(e: Error): void;
|
|
231
|
+
wait(): Promise<T>;
|
|
232
|
+
reset(): void;
|
|
233
|
+
}
|
|
234
|
+
|
|
222
235
|
export declare interface Attic extends PlanElement_2 {
|
|
223
236
|
new (): Attic;
|
|
224
237
|
getFrom(): Node_3;
|
|
@@ -1712,7 +1725,6 @@ export declare class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
1712
1725
|
private _uiIntersectionHelper;
|
|
1713
1726
|
private _sceneEventHandler;
|
|
1714
1727
|
private _isComponentDimensionsVisible;
|
|
1715
|
-
private _sceneSetupReady;
|
|
1716
1728
|
constructor(creator: string, offset: CanvasOffset, mode: Enumify<typeof CAMERA_TYPE>);
|
|
1717
1729
|
/**
|
|
1718
1730
|
* Single point for deciding whether to push HTML label positions to the UI.
|
|
@@ -2516,6 +2528,12 @@ export declare const CORE_OBJECT_TYPE_CATEGORY: {
|
|
|
2516
2528
|
readonly EXTERNAL_CONSTRUCTION: 5;
|
|
2517
2529
|
};
|
|
2518
2530
|
|
|
2531
|
+
export declare const CORE_OBSTACLE_TYPE: {
|
|
2532
|
+
readonly GLOBAL: 0;
|
|
2533
|
+
readonly OBJECT_WITH_ID: 1;
|
|
2534
|
+
readonly CONSTRUCTION_WITH_ID: 2;
|
|
2535
|
+
};
|
|
2536
|
+
|
|
2519
2537
|
export declare const CORE_OPENING_DIRECTION: {
|
|
2520
2538
|
readonly LEFT_CLOCKWISE: 0;
|
|
2521
2539
|
readonly LEFT_COUNTERCLOCKWISE: 1;
|
|
@@ -3552,8 +3570,10 @@ export declare interface ExternalObjectAPI {
|
|
|
3552
3570
|
* the compacted master data per library (root modules and the customer-facing attributes),
|
|
3553
3571
|
* the room information of all rooms (contours in 3D, pos: [x, level, -y], with a derived
|
|
3554
3572
|
* walls array per room), the articles that can be used (compact catalog with dimensions,
|
|
3555
|
-
* docking vectors and sub-modules),
|
|
3556
|
-
* resubmittable article picks with footprints and free docking vectors)
|
|
3573
|
+
* docking vectors and sub-modules), all groups currently loaded in the plan (as
|
|
3574
|
+
* resubmittable article picks with footprints and free docking vectors), and what stands in the
|
|
3575
|
+
* room (the doors, windows and other plan objects as floor outlines with their height range,
|
|
3576
|
+
* and the HI groups as the outlines of their root modules).
|
|
3557
3577
|
* The result is designed to be passed to an AI agent as it is, without further preparation,
|
|
3558
3578
|
* with all geometry in one coordinate system: 3D, right-handed, Y up.
|
|
3559
3579
|
* @param include The sections to include. All sections are returned when omitted or empty.
|
|
@@ -3807,6 +3827,25 @@ export declare interface ExternalObjectValidContainerModules {
|
|
|
3807
3827
|
parentModuleId: string;
|
|
3808
3828
|
}
|
|
3809
3829
|
|
|
3830
|
+
export declare type ExternalPlanObstacleKind = 'group' | 'door' | 'window' | 'object';
|
|
3831
|
+
|
|
3832
|
+
export declare interface ExternalPlanObstacles {
|
|
3833
|
+
points: Array<{
|
|
3834
|
+
x: number;
|
|
3835
|
+
y: number;
|
|
3836
|
+
}>;
|
|
3837
|
+
obstacles: ExternalPlanObstacleSegment[];
|
|
3838
|
+
kinds: Record<number, ExternalPlanObstacleKind>;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
export declare interface ExternalPlanObstacleSegment {
|
|
3842
|
+
associatedObjectIds: number[];
|
|
3843
|
+
p0: number;
|
|
3844
|
+
p1: number;
|
|
3845
|
+
bottom: number;
|
|
3846
|
+
top: number;
|
|
3847
|
+
}
|
|
3848
|
+
|
|
3810
3849
|
export declare class ExternalReference {
|
|
3811
3850
|
getJsObject(): any;
|
|
3812
3851
|
setJsObject(jsObject: any): void;
|
|
@@ -3870,6 +3909,7 @@ export declare interface FeatureFlags {
|
|
|
3870
3909
|
/* Excluded from this release type: advancedHighlighting */
|
|
3871
3910
|
/* Excluded from this release type: fence */
|
|
3872
3911
|
/* Excluded from this release type: awaitConfigurationSavesBeforeRequestPlan */
|
|
3912
|
+
/* Excluded from this release type: disableRenderStandby */
|
|
3873
3913
|
}
|
|
3874
3914
|
|
|
3875
3915
|
export declare class FeatureFlagsImplementation implements FeatureFlags {
|
|
@@ -3885,6 +3925,7 @@ export declare class FeatureFlagsImplementation implements FeatureFlags {
|
|
|
3885
3925
|
advancedHighlighting: boolean;
|
|
3886
3926
|
fence: boolean;
|
|
3887
3927
|
awaitConfigurationSavesBeforeRequestPlan: boolean;
|
|
3928
|
+
disableRenderStandby: boolean;
|
|
3888
3929
|
}
|
|
3889
3930
|
|
|
3890
3931
|
export declare interface FetchOptions {
|
|
@@ -3906,6 +3947,8 @@ export declare interface FetchOptions {
|
|
|
3906
3947
|
|
|
3907
3948
|
export declare type FinalizeMode = 'immediate' | 'on-signal';
|
|
3908
3949
|
|
|
3950
|
+
export declare type FloatArray = EmscriptenArray<number>;
|
|
3951
|
+
|
|
3909
3952
|
export declare abstract class Floor extends PlanElement {
|
|
3910
3953
|
area: number;
|
|
3911
3954
|
material: FloorMaterial;
|
|
@@ -4175,7 +4218,7 @@ export declare interface GlobalInitDataDefinition {
|
|
|
4175
4218
|
*/
|
|
4176
4219
|
configuratorId?: string;
|
|
4177
4220
|
/**
|
|
4178
|
-
* @description Set which RAPI (Roomle API) backend should be used usage: customApiUrl=https://www.roomle.com/api/
|
|
4221
|
+
* @description Set which RAPI (Roomle API) backend should be used usage: customApiUrl=https://www.roomle.com/api/v3
|
|
4179
4222
|
*/
|
|
4180
4223
|
customApiUrl?: string;
|
|
4181
4224
|
/* Excluded from this release type: e2e */
|
|
@@ -4257,7 +4300,7 @@ export declare interface HandWrittenPlanInteractionHandler {
|
|
|
4257
4300
|
moveObjectsBy(planObjects: KernelObjectPtrList, distance: KernelVector3): void;
|
|
4258
4301
|
rotateObjectTo(planObject: KernelObject, angleInRad: number): void;
|
|
4259
4302
|
setObjectRotation(planObject: KernelObject, angleInRad: number): void;
|
|
4260
|
-
addPlanObjects(list: KernelObjectPtrList, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
4303
|
+
addPlanObjects(list: KernelObjectPtrList, findFreeSpaceInPlan: boolean, cameraPosition?: KernelVector3, lineOfSight?: KernelVector3): PlanObject[];
|
|
4261
4304
|
addPlanObjectFromItem(object: KernelObject, position: KernelVector3, type: number, findFreeSpaceInPlan: boolean): PlanObject;
|
|
4262
4305
|
addOrUpdateExternalPlanObjects(serializedConfiguration: string | string[], position: KernelVector3, rotationInRad: number, updateConfiguration: ExternalObjectLoadConfiguration_2, mergedGroupIds: string | string[]): PlanObject[];
|
|
4263
4306
|
createPreviewGeometryForAddOn(objectId: string, objectConfiguration: string, articleId: string, groupDefinitions: string, validContainerModules: ExternalValidContainerModule_2[]): void;
|
|
@@ -4413,6 +4456,9 @@ export declare const HI_GROUP_OPERATION: {
|
|
|
4413
4456
|
readonly MERGE_ARTICLE_INTO_GROUP: "merge-article-into-group";
|
|
4414
4457
|
readonly EXCHANGE_ROOT_MODULE: "exchange-root-module";
|
|
4415
4458
|
readonly MERGE_GROUPS: "merge-groups";
|
|
4459
|
+
readonly INSERT_ARTICLE_INTO_GROUP: "insert-article-into-group";
|
|
4460
|
+
readonly REMOVE_ARTICLE_FROM_GROUP: "remove-article-from-group";
|
|
4461
|
+
readonly SWAP_ROOT_MODULES: "swap-root-modules";
|
|
4416
4462
|
};
|
|
4417
4463
|
|
|
4418
4464
|
export declare const HI_LOAD_OBJECT_REASON: {
|
|
@@ -4431,6 +4477,7 @@ export declare const HI_LOAD_OBJECT_REASON: {
|
|
|
4431
4477
|
readonly MERGE_WITH_ON_ACTION: "merge_with_on_action";
|
|
4432
4478
|
readonly PLAN_CHANGED: "plan_changed";
|
|
4433
4479
|
readonly POSITION_CHANGED: "position_changed";
|
|
4480
|
+
readonly REARRANGE: "rearrange";
|
|
4434
4481
|
readonly SPLIT: "split";
|
|
4435
4482
|
readonly SWAP_MODULE: "swap_module";
|
|
4436
4483
|
readonly SWAP_GROUP: "swap_group";
|
|
@@ -4601,15 +4648,30 @@ export declare interface HiGroupOperationPayloads {
|
|
|
4601
4648
|
groupId: string;
|
|
4602
4649
|
dockTo: HiDockTarget;
|
|
4603
4650
|
};
|
|
4604
|
-
|
|
4651
|
+
/** `attributes` are overrides of the new root module, e.g. another width. */
|
|
4652
|
+
'exchange-root-module': HiArticlePick & {
|
|
4605
4653
|
groupId: string;
|
|
4606
4654
|
rootModuleId: string;
|
|
4607
|
-
articleId: string;
|
|
4608
4655
|
};
|
|
4609
4656
|
'merge-groups': {
|
|
4610
4657
|
targetGroupId: string;
|
|
4611
4658
|
groupIds: string[];
|
|
4612
4659
|
};
|
|
4660
|
+
/** `between` names two root modules docked side by side, in either order. */
|
|
4661
|
+
'insert-article-into-group': HiArticlePick & {
|
|
4662
|
+
groupId: string;
|
|
4663
|
+
between: [string, string];
|
|
4664
|
+
};
|
|
4665
|
+
/** Removes a root module and closes the gap; `delete-root-module` leaves it. */
|
|
4666
|
+
'remove-article-from-group': {
|
|
4667
|
+
groupId: string;
|
|
4668
|
+
rootModuleId: string;
|
|
4669
|
+
};
|
|
4670
|
+
/** Two root modules of the group change places, neighbours or not. */
|
|
4671
|
+
'swap-root-modules': {
|
|
4672
|
+
groupId: string;
|
|
4673
|
+
rootModuleIds: [string, string];
|
|
4674
|
+
};
|
|
4613
4675
|
}
|
|
4614
4676
|
|
|
4615
4677
|
export declare interface HiGroupOperationResult {
|
|
@@ -4617,6 +4679,8 @@ export declare interface HiGroupOperationResult {
|
|
|
4617
4679
|
groups: HiPlanGroup[];
|
|
4618
4680
|
removedGroupIds: string[];
|
|
4619
4681
|
changedModuleIds?: string[];
|
|
4682
|
+
corrections?: string[];
|
|
4683
|
+
gapClosed?: boolean;
|
|
4620
4684
|
}
|
|
4621
4685
|
|
|
4622
4686
|
export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
|
|
@@ -4719,6 +4783,7 @@ export declare interface HiPlanContext {
|
|
|
4719
4783
|
rooms?: HiPlanRoomInformation;
|
|
4720
4784
|
articles?: HiPlanArticle[];
|
|
4721
4785
|
groups?: HiPlanGroup[];
|
|
4786
|
+
obstacles?: HiPlanObstacles;
|
|
4722
4787
|
}
|
|
4723
4788
|
|
|
4724
4789
|
export declare interface HiPlanContextData {
|
|
@@ -4728,7 +4793,7 @@ export declare interface HiPlanContextData {
|
|
|
4728
4793
|
}>;
|
|
4729
4794
|
}
|
|
4730
4795
|
|
|
4731
|
-
export declare type HiPlanContextSection = 'masterData' | 'rooms' | 'articles' | 'groups';
|
|
4796
|
+
export declare type HiPlanContextSection = 'masterData' | 'rooms' | 'articles' | 'groups' | 'obstacles';
|
|
4732
4797
|
|
|
4733
4798
|
export declare interface HiPlanContour {
|
|
4734
4799
|
level: number;
|
|
@@ -4766,6 +4831,11 @@ export declare interface HiPlanGroup {
|
|
|
4766
4831
|
roots: HiPlanRoot[];
|
|
4767
4832
|
}
|
|
4768
4833
|
|
|
4834
|
+
export declare interface HiPlanGroupObstacles {
|
|
4835
|
+
id: string;
|
|
4836
|
+
roots: HiPlanRootOutline[];
|
|
4837
|
+
}
|
|
4838
|
+
|
|
4769
4839
|
export declare interface HiPlanGroupPosition {
|
|
4770
4840
|
pos?: number[];
|
|
4771
4841
|
rotationY?: number;
|
|
@@ -4786,6 +4856,18 @@ export declare interface HiPlanMasterDataModule {
|
|
|
4786
4856
|
attributes: string[];
|
|
4787
4857
|
}
|
|
4788
4858
|
|
|
4859
|
+
export declare interface HiPlanObstacle {
|
|
4860
|
+
kind: Exclude<ExternalPlanObstacleKind, 'group'>;
|
|
4861
|
+
outline: HiPlanPosition3[];
|
|
4862
|
+
bottomMm: number;
|
|
4863
|
+
topMm: number;
|
|
4864
|
+
}
|
|
4865
|
+
|
|
4866
|
+
export declare interface HiPlanObstacles {
|
|
4867
|
+
objects: HiPlanObstacle[];
|
|
4868
|
+
groups: HiPlanGroupObstacles[];
|
|
4869
|
+
}
|
|
4870
|
+
|
|
4789
4871
|
/**
|
|
4790
4872
|
* The plan context is the data an AI agent needs to understand and author a
|
|
4791
4873
|
* planning session. `getPlanContext` (glue logic) assembles it and every
|
|
@@ -4827,6 +4909,13 @@ export declare interface HiPlanRootAttribute {
|
|
|
4827
4909
|
value?: number | string | boolean;
|
|
4828
4910
|
}
|
|
4829
4911
|
|
|
4912
|
+
export declare interface HiPlanRootOutline {
|
|
4913
|
+
id: string;
|
|
4914
|
+
outline: HiPlanPosition3[];
|
|
4915
|
+
bottomMm: number;
|
|
4916
|
+
topMm: number;
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4830
4919
|
export declare interface HiPlanWall {
|
|
4831
4920
|
index: number;
|
|
4832
4921
|
side: HiPlanWallSide;
|
|
@@ -6565,6 +6654,29 @@ export declare interface ObjectTypeCategory {
|
|
|
6565
6654
|
|
|
6566
6655
|
export declare type ObjectWallDimension = DimensionDefinition<Vector3_2, Vector3_2>;
|
|
6567
6656
|
|
|
6657
|
+
export declare interface Obstacle2d {
|
|
6658
|
+
associatedObjectIds: EmsArray<number>;
|
|
6659
|
+
bottom: number;
|
|
6660
|
+
length: number;
|
|
6661
|
+
normalizedDirection: KernelVector2f;
|
|
6662
|
+
p0: number;
|
|
6663
|
+
p1: number;
|
|
6664
|
+
top: number;
|
|
6665
|
+
type: ObstacleType;
|
|
6666
|
+
}
|
|
6667
|
+
|
|
6668
|
+
export declare class Obstacle2dArray extends EmsArray<Obstacle2d> {
|
|
6669
|
+
}
|
|
6670
|
+
|
|
6671
|
+
export declare interface ObstacleMap2d {
|
|
6672
|
+
obstacles: Obstacle2dArray;
|
|
6673
|
+
points: Vector2Array;
|
|
6674
|
+
}
|
|
6675
|
+
|
|
6676
|
+
export declare interface ObstacleType {
|
|
6677
|
+
value: Enumify<typeof CORE_OBSTACLE_TYPE>;
|
|
6678
|
+
}
|
|
6679
|
+
|
|
6568
6680
|
export declare interface OffsetCamera {
|
|
6569
6681
|
offset: CanvasOffset;
|
|
6570
6682
|
resetOffset(): void;
|
|
@@ -7009,6 +7121,9 @@ export declare interface PlanInteractionHandler_2 {
|
|
|
7009
7121
|
setNodeType(node: Node_3, nodeType: NodeType_2): void;
|
|
7010
7122
|
setWallThickness(wall: Wall_2, thickness: number): void;
|
|
7011
7123
|
setWallHeight(wall: Wall_2, height: number): void;
|
|
7124
|
+
setWallArc(wall: Wall_2, sweepAngleInRad: number): void;
|
|
7125
|
+
setWallArcThroughPoint(wall: Wall_2, point: Vector3): void;
|
|
7126
|
+
setWallCurve(wall: Wall_2, interiorControlPoints: WallCurveControlPoint[], degree: number, knots: number[]): void;
|
|
7012
7127
|
setWallColor(wall: Wall_2, color: number): void;
|
|
7013
7128
|
setWallLeftMaterial(wall: Wall_2, material: WallMaterial_2): void;
|
|
7014
7129
|
setWallRightMaterial(wall: Wall_2, material: WallMaterial_2): void;
|
|
@@ -7035,9 +7150,9 @@ export declare interface PlanInteractionHandler_2 {
|
|
|
7035
7150
|
addAttic(wall: Wall_2, kneeHeight: number, width: number, side: WallSide_2 | null | undefined): Attic;
|
|
7036
7151
|
addNode(position: Vector3): Node_3;
|
|
7037
7152
|
addText(text: string, position: Vector3): PlanText_2;
|
|
7038
|
-
addPlanObject(itemId: string, type: string, size: Vector3, position: Vector3, rotationInRad: number, findFreeSpaceInPlan: boolean): PlanObject_2;
|
|
7039
|
-
addPlanObjects(catalogItems: CatalogItemPtrList_2, findFreeSpaceInPlan: boolean): PlanObject_2[];
|
|
7040
|
-
addPlanObjectFromItem(item: CatalogItem_2, position: Vector3, rotationInRad: number, findFreeSpaceInPlan: boolean): PlanObject_2;
|
|
7153
|
+
addPlanObject(itemId: string, type: string, size: Vector3, position: Vector3, rotationInRad: number, findFreeSpaceInPlan: boolean, cameraPosition?: Vector3, lineOfSight?: Vector3): PlanObject_2;
|
|
7154
|
+
addPlanObjects(catalogItems: CatalogItemPtrList_2, findFreeSpaceInPlan: boolean, cameraPosition?: Vector3, lineOfSight?: Vector3): PlanObject_2[];
|
|
7155
|
+
addPlanObjectFromItem(item: CatalogItem_2, position: Vector3, rotationInRad: number, findFreeSpaceInPlan: boolean, cameraPosition?: Vector3, lineOfSight?: Vector3): PlanObject_2;
|
|
7041
7156
|
addOrUpdateExternalPlanObjects(groups: string | string[], position: Vector3, rotationInRad: number, updateConfiguration: ExternalObjectLoadConfiguration, mergedGroupIds: string | string[]): PlanObject_2[];
|
|
7042
7157
|
createPreviewGeometryForAddOn(objectId: string, objectConfiguration: string, articleId: string, groupDefinitions: string, validContainerModules: ExternalValidContainerModule[]): void;
|
|
7043
7158
|
catalogItemLoaded(catalogItem: CatalogItem_2): void;
|
|
@@ -7159,6 +7274,7 @@ export declare interface PlanModelViewHelper_2 {
|
|
|
7159
7274
|
requestMesh3d(element: PlanElement_3): void;
|
|
7160
7275
|
getExternalObjectGroups(plan: Plan_3): KernelObjectConfigurationArray;
|
|
7161
7276
|
getExternalRoomInformation(plan: Plan_3, mode: PlanRoomGeometryMode_2): RoomInformation;
|
|
7277
|
+
getObstacleMap(plan: Plan_3): ObstacleMap2d;
|
|
7162
7278
|
getGroupedObjects(anObject: PlanObject): KernelPlanObject[];
|
|
7163
7279
|
calculateLightSourceDistribution(plan: Plan_3, lightSourceConfiguration: LightSourceConfiguration): RoomLightSourceDistributionArray;
|
|
7164
7280
|
getObjectSnapInformation(anObject: PlanObject, debugHelpLines: boolean): ObjectSnapInformation;
|
|
@@ -7323,7 +7439,11 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
7323
7439
|
protected _validateExternalComponentParameters(componentId: number, parameters: KernelParameter[]): Promise<KernelParameter[]>;
|
|
7324
7440
|
protected _validateExternalPlanObjectParameters(objectId: number, parameters: KernelParameter[]): Promise<KernelParameter[]>;
|
|
7325
7441
|
catalogItemLoaded(catalogItem: RapiItem): void;
|
|
7326
|
-
|
|
7442
|
+
/**
|
|
7443
|
+
* @param camera in 3D and first-person view, doors, windows and wall-mounted
|
|
7444
|
+
* objects are placed on the wall this camera looks at
|
|
7445
|
+
*/
|
|
7446
|
+
insertItems(itemList: Array<RapiItem | RapiConfiguration>, newUndoRedoStep?: boolean, camera?: Camera): Promise<RuntimeId[]>;
|
|
7327
7447
|
private _performInsertItems;
|
|
7328
7448
|
duplicateItems(planObjects: PlanObject[]): PlanObject[];
|
|
7329
7449
|
mergeItems(planObjects: PlanObject[]): void;
|
|
@@ -8845,6 +8965,7 @@ export declare class RapiAccess implements Context {
|
|
|
8845
8965
|
getMeshesOfCatalog(catalogId: RapiId): Promise<RapiMesh[]>;
|
|
8846
8966
|
getTexturesOf(rapiJson: RapiJson): Promise<RapiTexture[]>;
|
|
8847
8967
|
getItemsOf(rapiJson: RapiJson): Promise<RapiItem[]>;
|
|
8968
|
+
getTagsOf(rapiJson: RapiJson): Promise<RapiTag[]>;
|
|
8848
8969
|
getMaterialsOf(rapiJson: RapiJson): Promise<RapiMaterial[]>;
|
|
8849
8970
|
getComponentsOf(rapiJson: RapiJson): Promise<RapiComponent[]>;
|
|
8850
8971
|
getAdditionalContentsOfItems(rapiItems: RapiItem[]): Promise<RapiAdditionalContent[]>;
|
|
@@ -8893,6 +9014,7 @@ export declare class RapiAccess implements Context {
|
|
|
8893
9014
|
private _get;
|
|
8894
9015
|
private _fetchJson;
|
|
8895
9016
|
private _fetch;
|
|
9017
|
+
private _logDeprecatedEndpoint;
|
|
8896
9018
|
private _createHeaders;
|
|
8897
9019
|
private _handleJson;
|
|
8898
9020
|
private _prepareEmbeddedData;
|
|
@@ -9087,15 +9209,15 @@ export declare interface RapiItem extends RapiElement {
|
|
|
9087
9209
|
width: number;
|
|
9088
9210
|
height: number;
|
|
9089
9211
|
depth: number;
|
|
9090
|
-
basecolor: number;
|
|
9091
|
-
displayedWidth: number;
|
|
9092
|
-
displayedHeight: number;
|
|
9093
|
-
displayedDepth: number;
|
|
9094
9212
|
perspectiveImageHD: AssetUrl;
|
|
9095
9213
|
topImage: AssetUrl;
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9214
|
+
basecolor?: number;
|
|
9215
|
+
displayedWidth?: number;
|
|
9216
|
+
displayedHeight?: number;
|
|
9217
|
+
displayedDepth?: number;
|
|
9218
|
+
threeDimensionalAssetWeb?: AssetUrl;
|
|
9219
|
+
threeDimensionalAssetIOS?: AssetUrl;
|
|
9220
|
+
threeDimensionalAsset?: AssetUrl;
|
|
9099
9221
|
flipable: boolean;
|
|
9100
9222
|
scaleable: boolean;
|
|
9101
9223
|
meta: string;
|
|
@@ -9574,6 +9696,7 @@ export declare class RoomDesignerApi implements RoomDesignerRequests {
|
|
|
9574
9696
|
mergeGroups(groupIds: string[]): Promise<void>;
|
|
9575
9697
|
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
9576
9698
|
getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
9699
|
+
getPlanObstacles(): Promise<ExternalPlanObstacles>;
|
|
9577
9700
|
saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
|
|
9578
9701
|
saveCurrentPlanSnapshot(): Promise<RapiPlanSnapshotGetData>;
|
|
9579
9702
|
renderPosDataImage(posDataJson: object): Promise<void>;
|
|
@@ -9592,6 +9715,7 @@ export declare interface RoomDesignerRequests {
|
|
|
9592
9715
|
mergeGroups(groupIds: string[]): Promise<void>;
|
|
9593
9716
|
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
9594
9717
|
getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
9718
|
+
getPlanObstacles(): Promise<ExternalPlanObstacles>;
|
|
9595
9719
|
saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
|
|
9596
9720
|
}
|
|
9597
9721
|
|
|
@@ -10641,8 +10765,9 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
10641
10765
|
private _globalInitData;
|
|
10642
10766
|
private _globalCallback;
|
|
10643
10767
|
private _unitFormatter;
|
|
10644
|
-
private _planInteractionManager;
|
|
10645
10768
|
private _elevationPlan2dGenerator;
|
|
10769
|
+
private _skyStateTracker;
|
|
10770
|
+
private _planInteractionManager;
|
|
10646
10771
|
private _sceneManager;
|
|
10647
10772
|
private _plan;
|
|
10648
10773
|
private _preloadPlanId;
|
|
@@ -11077,6 +11202,8 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11077
11202
|
getExternalObjectPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
11078
11203
|
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
11079
11204
|
getExternalRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
11205
|
+
_getExternalPlanObstacles(): Promise<ExternalPlanObstacles>;
|
|
11206
|
+
private _planObstacleKind;
|
|
11080
11207
|
/**
|
|
11081
11208
|
* Highlights a product in the planner.
|
|
11082
11209
|
* @param planElementId The ID of the plan element to highlight.
|
|
@@ -11683,6 +11810,7 @@ export declare abstract class SceneManager implements Context, LifeCycleCallback
|
|
|
11683
11810
|
protected _stopRendering: boolean;
|
|
11684
11811
|
protected _roomleRenderer: GenericRoomleRenderer | null;
|
|
11685
11812
|
private _roomleRendererReady;
|
|
11813
|
+
protected _sceneSetupReady: AsyncGuard<void>;
|
|
11686
11814
|
private _isDebugGUIInitialized;
|
|
11687
11815
|
private _forceRender;
|
|
11688
11816
|
private _lastChange;
|
|
@@ -11901,6 +12029,7 @@ export declare class SkyStateTracker extends EventDispatcher<SkyFeatureEventMap>
|
|
|
11901
12029
|
private _isCurrentlyActive;
|
|
11902
12030
|
private _initData;
|
|
11903
12031
|
constructor(creator: string);
|
|
12032
|
+
get isSkyEnabled(): boolean;
|
|
11904
12033
|
get isCurrentlyActive(): boolean;
|
|
11905
12034
|
notifyEnteredPlanner(): void;
|
|
11906
12035
|
notifyEnteredConfigurator(): void;
|
|
@@ -12485,6 +12614,9 @@ export declare interface VariantsList {
|
|
|
12485
12614
|
parts: KernelPart[];
|
|
12486
12615
|
}
|
|
12487
12616
|
|
|
12617
|
+
export declare class Vector2Array extends EmsArray<KernelVector2f> {
|
|
12618
|
+
}
|
|
12619
|
+
|
|
12488
12620
|
export declare class Vector2fArray extends EmsArray<KernelVector2f> {
|
|
12489
12621
|
}
|
|
12490
12622
|
|
|
@@ -12533,6 +12665,14 @@ export declare interface Wall_2 extends PlanElement_2 {
|
|
|
12533
12665
|
getCornerToLeft(): Vector3;
|
|
12534
12666
|
getCornerToRight(): Vector3;
|
|
12535
12667
|
getAngle(): number;
|
|
12668
|
+
getArcSweepAngle(): number;
|
|
12669
|
+
getCurveControlPoints(): PointArray_2;
|
|
12670
|
+
getCurveWeights(): FloatArray;
|
|
12671
|
+
getCurveDegree(): number;
|
|
12672
|
+
getAxisPolyline(): PointArray_2;
|
|
12673
|
+
getLeftFacePolyline(): PointArray_2;
|
|
12674
|
+
getRightFacePolyline(): PointArray_2;
|
|
12675
|
+
getTangentAngleAt(point: Vector3): number;
|
|
12536
12676
|
getLength(side: WallSide_2): number;
|
|
12537
12677
|
getSlopingLength(): number;
|
|
12538
12678
|
getPreferredSide(): WallSide_2;
|
|
@@ -12541,6 +12681,7 @@ export declare interface Wall_2 extends PlanElement_2 {
|
|
|
12541
12681
|
getCenter(): Vector3;
|
|
12542
12682
|
getHeightAt(aPoint: Vector3): number;
|
|
12543
12683
|
getPointWithHeight(aHeight: number): Vector3;
|
|
12684
|
+
readonly isCurved: boolean;
|
|
12544
12685
|
readonly meshThickness: number;
|
|
12545
12686
|
readonly isVectorWall: boolean;
|
|
12546
12687
|
readonly thickness: number;
|
|
@@ -12566,6 +12707,12 @@ export declare class WallAtticPlanElementViewModel extends PlanElementViewModel
|
|
|
12566
12707
|
update(): void;
|
|
12567
12708
|
}
|
|
12568
12709
|
|
|
12710
|
+
export declare interface WallCurveControlPoint {
|
|
12711
|
+
u: number;
|
|
12712
|
+
v: number;
|
|
12713
|
+
w: number;
|
|
12714
|
+
}
|
|
12715
|
+
|
|
12569
12716
|
export declare interface WallDefinition {
|
|
12570
12717
|
from: Position3;
|
|
12571
12718
|
to: Position3;
|
package/lib/roomle-sdk.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./packages-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./packages-Cl6mO8eL.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
|
-
import { Et as s, St as c } from "./threejs-utils-
|
|
3
|
+
import { Et as s, St as c } from "./threejs-utils-CX2ILaES.mjs";
|
|
4
4
|
import { D as l, g as u } from "./common-utils-CNGLvAo_.mjs";
|
|
5
|
-
import { F as d, G as f, J as p, K as m, M as h, N as g, P as _, S as v, V as y, Y as b, b as x, dt as S, ft as C, ht as w, j as T, k as E, lt as D, q as O, t as k, u as A, ut as j, x as M, y as N, z as P } from "./roomle-sdk-
|
|
6
|
-
import { t as F } from "./configurator-
|
|
7
|
-
import { t as I } from "./planner-
|
|
8
|
-
import { n as L, t as R } from "./glb-viewer-
|
|
9
|
-
import { t as z } from "./api-
|
|
5
|
+
import { F as d, G as f, J as p, K as m, M as h, N as g, P as _, S as v, V as y, Y as b, b as x, dt as S, ft as C, ht as w, j as T, k as E, lt as D, q as O, t as k, u as A, ut as j, x as M, y as N, z as P } from "./roomle-sdk-CyuyR7se.mjs";
|
|
6
|
+
import { t as F } from "./configurator-B8BvHTky.mjs";
|
|
7
|
+
import { t as I } from "./planner-BvSAoyAE.mjs";
|
|
8
|
+
import { n as L, t as R } from "./glb-viewer-DamedzN_.mjs";
|
|
9
|
+
import { t as z } from "./api-DgmvQKJM.mjs";
|
|
10
10
|
export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, F as Configurator, T as FloorPlanElementViewModel, R as GlbViewer, P as HI_CONTEXT_ACTION, y as HI_GROUP_OPERATION, v as MeasurementLinePlanElementViewModel, N as PLAN_ELEMENT_CHANGE_TYPES, d as PlanElementViewModel, _ as PlanObjectViewModel, I as Planner, D as RapiAccess, j as RapiInvalidIdError, S as RapiOfflineError, z as RoomDesignerApi, E as RoomleConfigurator, L as RoomleGLBViewer, w as RoomleLightSource, A as RoomlePlanner, k as RoomleSdk, g as StaticPlanObjectViewModel, h as WallPlanElementViewModel, f as createExtObj, b as createExtObjId, u as download, C as getCatalogIdFromConfigurationHash, m as isExtObjId, O as isExternalObject, x as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, M as isSafari, l as md5Hash, p as removeExtObjIdPrefix };
|
|
@@ -106,7 +106,7 @@ var W = /* @__PURE__ */ new Ae(), Xt = /* @__PURE__ */ new d(), Zt = /* @__PURE_
|
|
|
106
106
|
selectedObjects: this.selectedObjects,
|
|
107
107
|
edgeThickness: this.edgeThickness,
|
|
108
108
|
edgeGlow: this.edgeGlow
|
|
109
|
-
}), s = L(a.mul(this.visibleEdgeColor).add(o.mul(this.hiddenEdgeColor)).mul(this.edgeStrength), 0);
|
|
109
|
+
}), s = L(a.mul(this.visibleEdgeColor).add(o.mul(this.hiddenEdgeColor)).mul(this.edgeStrength), 0).toInspector("Outline / Composite");
|
|
110
110
|
return i === "outline" ? L(0, 0, 0, 0).add(s) : t.add(s);
|
|
111
111
|
}
|
|
112
112
|
addParametersToGUI(e, t) {
|
|
@@ -2858,9 +2858,9 @@ var nr = (e, t, n, r) => new $n(pt(e), ot(t), ot(n), r), rr = class e extends tn
|
|
|
2858
2858
|
if (!(r instanceof D) || this.sliceCount.value === 0 || this.stepCount.value === 0) return t;
|
|
2859
2859
|
let a = e.getTextureNode("output"), o = e.getTextureNode("diffuseColor"), s = e.getTextureNode("depth"), c = e.getTextureNode("normal"), l = St((e) => Be(c.sample(e))), u = Qn(a, s, l, r);
|
|
2860
2860
|
u.sliceCount = this.sliceCount, u.stepCount = this.stepCount, u.radius = this.radius, u.expFactor = this.expFactor, u.thickness = this.thickness, u.backfaceLighting = this.backfaceLighting, u.aoIntensity = this.aoIntensity, u.giIntensity = this.giIntensity, u.useLinearThickness = this.useLinearThickness, u.useScreenSpaceSampling = this.useScreenSpaceSampling, u.useTemporalFiltering = this.useTemporalFiltering;
|
|
2861
|
-
let d = u.getGINode(), f = u.getAONode(), p = nr(d, s, l, r);
|
|
2861
|
+
let d = u.getGINode().toInspector("SSGI / GI"), f = u.getAONode().toInspector("SSGI / AO"), p = nr(d, s, l, r).toInspector("SSGI / GI Denoised");
|
|
2862
2862
|
p.radius = this.giDenoiseRadius;
|
|
2863
|
-
let m = nr(f, s, l, r);
|
|
2863
|
+
let m = nr(f, s, l, r).toInspector("SSGI / AO Denoised");
|
|
2864
2864
|
m.radius = this.aoDenoiseRadius;
|
|
2865
2865
|
let h = L(Mt(a.rgb.mul(m.r), o.rgb.mul(p.rgb)), a.a);
|
|
2866
2866
|
return h.name = "Ssgi Composite", i === "ao only" ? L(M(f.r), 1) : i === "gi only" ? L(d.rgb, 1) : i === "denoised ao only" ? L(M(m.r), 1) : i === "denoised gi only" ? L(p.rgb, 1) : i === "direct lighting only" ? a : i === "without denoise" ? L(Mt(a.rgb.mul(f.r), o.rgb.mul(d.rgb)), a.a) : h;
|
|
@@ -3201,8 +3201,8 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
|
|
|
3201
3201
|
}
|
|
3202
3202
|
assemble(e, t, n, r, i) {
|
|
3203
3203
|
if (!(r instanceof D) || i === "no fog" || i === "depth") return this.removeSceneFog(), t;
|
|
3204
|
-
let a = e.getTextureNode("depth"), o = this.getTransparentObjectsDepthPassTexture(n, r), s = Ve(a.r, o.r), c = F(r.projectionMatrixInverse), l = F(r.matrixWorld), u = Ve(F(r.far).onRenderUpdate(() => r.far), 50).sub(this.fogFarBlend), d = u.sub(this.fogNearBlend), f = L(Ht.x.mul(2).sub(1), Ht.y.mul(2).sub(1), s, 1), p = c.mul(f), m = p.xyz.div(p.w), h = l.mul(L(m, 1)).xyz.xz.length(), g = u.sub(h).div(u.sub(d)).clamp(0, 1);
|
|
3205
|
-
return this.addSceneFog(n, d, u), Ge(L(this.fogColor, 1), t, g);
|
|
3204
|
+
let a = e.getTextureNode("depth"), o = this.getTransparentObjectsDepthPassTexture(n, r), s = Ve(a.r, o.r), c = F(r.projectionMatrixInverse), l = F(r.matrixWorld), u = Ve(F(r.far).onRenderUpdate(() => r.far), 50).sub(this.fogFarBlend), d = u.sub(this.fogNearBlend), f = L(Ht.x.mul(2).sub(1), Ht.y.mul(2).sub(1), s, 1), p = c.mul(f), m = p.xyz.div(p.w), h = l.mul(L(m, 1)).xyz.xz.length(), g = u.sub(h).div(u.sub(d)).clamp(0, 1).toInspector("Fog / Factor");
|
|
3205
|
+
return this.addSceneFog(n, d, u), Ge(L(this.fogColor, 1), t, g).toInspector("Fog / Composite");
|
|
3206
3206
|
}
|
|
3207
3207
|
addSceneFog(e, t, n) {
|
|
3208
3208
|
let r = It.xz.length(), i = n.sub(r).div(n.sub(t)).clamp(0, 1).oneMinus();
|
|
@@ -3267,7 +3267,7 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
|
|
|
3267
3267
|
}
|
|
3268
3268
|
switchToPlanner(e) {
|
|
3269
3269
|
super.switchToPlanner(e);
|
|
3270
|
-
let t = this.
|
|
3270
|
+
let t = this._skyStateTracker.isSkyEnabled;
|
|
3271
3271
|
this._webGpuGroundShadowReflection.setFloorVisible(t), this._webGpuGroundShadowReflection.setTopLightVisible(!t && e !== Se.Mode2D), this._webGpuSkyContainer.setVisible(t), this._skyStateTracker.notifyEnteredPlanner(), this.disableFogPass(), this.passNeedsReassembly = !0;
|
|
3272
3272
|
}
|
|
3273
3273
|
highlightObjects(e) {
|
|
@@ -3432,4 +3432,4 @@ ye([ve, _e("design:type", Object)], kr.prototype, "_domHelper", void 0), ye([ve,
|
|
|
3432
3432
|
//#endregion
|
|
3433
3433
|
export { kr as RoomleWebGPURenderer };
|
|
3434
3434
|
|
|
3435
|
-
//# sourceMappingURL=roomle-webgpu-renderer-
|
|
3435
|
+
//# sourceMappingURL=roomle-webgpu-renderer-__fKL0NL.mjs.map
|