@roomle/web-sdk 5.2.0-alpha.1 → 5.2.0-alpha.10
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-B4TrOz4F.mjs → api-DzAvODF3.mjs} +13 -10
- package/lib/{api-B4TrOz4F.mjs.map → api-DzAvODF3.mjs.map} +1 -1
- package/lib/budgeteer.sw-yR2xApHT.mjs.map +1 -1
- package/lib/{component-raycast-helper-CaY2UMli.mjs → component-raycast-helper-DmNjzxSD.mjs} +2 -2
- package/lib/{component-raycast-helper-CaY2UMli.mjs.map → component-raycast-helper-DmNjzxSD.mjs.map} +1 -1
- package/lib/configurator-BpxToJbA.mjs +2 -0
- package/lib/{configurator-DrF49jhK.mjs → configurator-CJFwkh54.mjs} +4 -4
- package/lib/{configurator-DrF49jhK.mjs.map → configurator-CJFwkh54.mjs.map} +1 -1
- package/lib/glb-viewer-45djC72D.mjs +2 -0
- package/lib/{glb-viewer-DfTibwy-.mjs → glb-viewer-BSHmO1do.mjs} +5 -5
- package/lib/{glb-viewer-DfTibwy-.mjs.map → glb-viewer-BSHmO1do.mjs.map} +1 -1
- package/lib/{highlight-coordinator-DKMaPGPo.mjs → highlight-coordinator-DDyo_U8P.mjs} +3 -3
- package/lib/{highlight-coordinator-DKMaPGPo.mjs.map → highlight-coordinator-DDyo_U8P.mjs.map} +1 -1
- package/lib/{homag-intelligence-BpYU-Dit.mjs → homag-intelligence-CNxcr-eA.mjs} +6 -3
- package/lib/homag-intelligence-CNxcr-eA.mjs.map +1 -0
- package/lib/{material-viewer-D2SC_WGL.mjs → material-viewer-HzxKTFQF.mjs} +11 -11
- package/lib/{material-viewer-D2SC_WGL.mjs.map → material-viewer-HzxKTFQF.mjs.map} +1 -1
- package/lib/{packages-Dq64FLqO.mjs → packages-BebHC0FC.mjs} +5 -5
- package/lib/{packages-Dq64FLqO.mjs.map → packages-BebHC0FC.mjs.map} +1 -1
- package/lib/{planner-BflojXJm.mjs → planner-DLRkyi_2.mjs} +3 -3
- package/lib/{planner-BflojXJm.mjs.map → planner-DLRkyi_2.mjs.map} +1 -1
- package/lib/planner-FqhSeWWA.mjs +2 -0
- package/lib/roomle-headless.d.ts +232 -20
- package/lib/roomle-headless.js +11 -11
- package/lib/roomle-renderer-nCUrLU_S.mjs.map +1 -1
- package/lib/{roomle-sdk-AuHoyXQw.mjs → roomle-sdk-Bt3h0SSr.mjs} +4234 -3657
- package/lib/roomle-sdk-Bt3h0SSr.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +232 -20
- package/lib/roomle-sdk.js +8 -8
- 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-DdVBP89m.mjs} +11 -11
- package/lib/{scene-renderer-DGSgD6mp.mjs.map → scene-renderer-DdVBP89m.mjs.map} +1 -1
- package/lib/{script-loader-ChoIO9yO.mjs → script-loader-CIboUjm9.mjs} +2 -2
- package/lib/{script-loader-ChoIO9yO.mjs.map → script-loader-CIboUjm9.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/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-DYmtEOGb.mjs} +2 -2
- package/lib/{stats-helper-C74q5Bje.mjs.map → stats-helper-DYmtEOGb.mjs.map} +1 -1
- package/lib/{three.module-DUSFrLM6.mjs → three.module-230BZkaT.mjs} +2 -2
- package/lib/{three.module-DUSFrLM6.mjs.map → three.module-230BZkaT.mjs.map} +1 -1
- package/lib/{threejs-utils-DHTRY4yW.mjs → threejs-utils-Dy-rm1a9.mjs} +66 -64
- package/lib/threejs-utils-Dy-rm1a9.mjs.map +1 -0
- package/lib/{tools-core-CVyQSfI6.mjs → tools-core-BpUxOTe-.mjs} +3 -3
- package/lib/{tools-core-CVyQSfI6.mjs.map → tools-core-BpUxOTe-.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-CKf-giUj.mjs +0 -2
- package/lib/glb-viewer-BOTT1GcI.mjs +0 -2
- package/lib/homag-intelligence-BpYU-Dit.mjs.map +0 -1
- package/lib/planner-C8gpY4ZL.mjs +0 -2
- package/lib/roomle-sdk-AuHoyXQw.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
|
@@ -26,6 +26,7 @@ import { PerspectiveCamera } from 'three';
|
|
|
26
26
|
import { PointLight } from 'three';
|
|
27
27
|
import { Scene } from 'three';
|
|
28
28
|
import { Scene as Scene_2 } from 'three/webgpu';
|
|
29
|
+
import { Sphere } from 'three';
|
|
29
30
|
import { Texture } from 'three';
|
|
30
31
|
import { TextureLoader } from 'three';
|
|
31
32
|
import { Vector2 } from 'three';
|
|
@@ -219,6 +220,19 @@ export declare interface AssetType_2 {
|
|
|
219
220
|
|
|
220
221
|
export declare type AssetUrl = string;
|
|
221
222
|
|
|
223
|
+
export declare class AsyncGuard<T> {
|
|
224
|
+
info: any;
|
|
225
|
+
private _promise;
|
|
226
|
+
private _resolve;
|
|
227
|
+
private _reject;
|
|
228
|
+
constructor(info?: any);
|
|
229
|
+
private _init;
|
|
230
|
+
resolve(value?: any): void;
|
|
231
|
+
reject(e: Error): void;
|
|
232
|
+
wait(): Promise<T>;
|
|
233
|
+
reset(): void;
|
|
234
|
+
}
|
|
235
|
+
|
|
222
236
|
export declare interface Attic extends PlanElement_2 {
|
|
223
237
|
new (): Attic;
|
|
224
238
|
getFrom(): Node_3;
|
|
@@ -1618,12 +1632,31 @@ export declare interface ConfiguratorKernelContainer {
|
|
|
1618
1632
|
export declare class ConfiguratorPlanObjectViewModel extends PlanObjectViewModel {
|
|
1619
1633
|
private _rootComponentRuntimeId;
|
|
1620
1634
|
private _rootComponentId;
|
|
1635
|
+
private _componentsCutByCamera;
|
|
1636
|
+
private _localCameraPosition;
|
|
1621
1637
|
constructor(planObject: PlanObject);
|
|
1622
1638
|
addRootComponent(component: RoomleComponent): void;
|
|
1623
1639
|
addChildEntityComponent(component: RoomleComponent): void;
|
|
1624
1640
|
getConfigurationRuntimeId(): number;
|
|
1625
1641
|
getRootComponentId(): number;
|
|
1626
1642
|
getRootComponentRuntimeId(): number;
|
|
1643
|
+
/**
|
|
1644
|
+
* A configuration is one plan object but many components - a whole kitchen run
|
|
1645
|
+
* shares a single bounding box, so hiding the container would clear the scene as
|
|
1646
|
+
* soon as the camera gets close to any of its cabinets. The object bounds are only
|
|
1647
|
+
* the broad phase here, the components actually cut by the near plane are hidden
|
|
1648
|
+
* individually.
|
|
1649
|
+
*/
|
|
1650
|
+
hideCutByCamera(cameraSphere: Sphere): boolean;
|
|
1651
|
+
restoreCutByCamera(): boolean;
|
|
1652
|
+
private _setComponentCutByCamera;
|
|
1653
|
+
/**
|
|
1654
|
+
* Only the component's own meshes, its child components stay visible - and
|
|
1655
|
+
* re-applied while cut, so meshes replaced in the meantime stay hidden too.
|
|
1656
|
+
* A component waiting for its geometry hides its meshes behind the loading box
|
|
1657
|
+
* itself, showing them again is `loadingFinished()`'s job, not ours.
|
|
1658
|
+
*/
|
|
1659
|
+
private _applyComponentMeshVisibility;
|
|
1627
1660
|
finishConstruction(): Promise<void>;
|
|
1628
1661
|
failConstruction(): Promise<void>;
|
|
1629
1662
|
toJSON(): {
|
|
@@ -1631,7 +1664,12 @@ export declare class ConfiguratorPlanObjectViewModel extends PlanObjectViewModel
|
|
|
1631
1664
|
rootElementId: number;
|
|
1632
1665
|
};
|
|
1633
1666
|
protected _updateBoundingBox(): void;
|
|
1634
|
-
|
|
1667
|
+
/**
|
|
1668
|
+
* Walks the component tree with a visitor: this runs per frame for every
|
|
1669
|
+
* configuration the camera is close to, where an array per tree level would be
|
|
1670
|
+
* a temporary allocation per component per frame.
|
|
1671
|
+
*/
|
|
1672
|
+
private _forEachComponent;
|
|
1635
1673
|
}
|
|
1636
1674
|
|
|
1637
1675
|
export declare class ConfiguratorSceneEventHandler extends SceneEventHandler<SceneEventInfo> {
|
|
@@ -1712,7 +1750,6 @@ export declare class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
1712
1750
|
private _uiIntersectionHelper;
|
|
1713
1751
|
private _sceneEventHandler;
|
|
1714
1752
|
private _isComponentDimensionsVisible;
|
|
1715
|
-
private _sceneSetupReady;
|
|
1716
1753
|
constructor(creator: string, offset: CanvasOffset, mode: Enumify<typeof CAMERA_TYPE>);
|
|
1717
1754
|
/**
|
|
1718
1755
|
* Single point for deciding whether to push HTML label positions to the UI.
|
|
@@ -2516,6 +2553,12 @@ export declare const CORE_OBJECT_TYPE_CATEGORY: {
|
|
|
2516
2553
|
readonly EXTERNAL_CONSTRUCTION: 5;
|
|
2517
2554
|
};
|
|
2518
2555
|
|
|
2556
|
+
export declare const CORE_OBSTACLE_TYPE: {
|
|
2557
|
+
readonly GLOBAL: 0;
|
|
2558
|
+
readonly OBJECT_WITH_ID: 1;
|
|
2559
|
+
readonly CONSTRUCTION_WITH_ID: 2;
|
|
2560
|
+
};
|
|
2561
|
+
|
|
2519
2562
|
export declare const CORE_OPENING_DIRECTION: {
|
|
2520
2563
|
readonly LEFT_CLOCKWISE: 0;
|
|
2521
2564
|
readonly LEFT_COUNTERCLOCKWISE: 1;
|
|
@@ -3448,7 +3491,8 @@ export declare interface ExternalObjectAPI {
|
|
|
3448
3491
|
* the "shapes" property, the layout type "posGroups" evaluates the "posGroups" property.
|
|
3449
3492
|
* For the layout type "posGroups" a group whose id matches a group already loaded in the plan
|
|
3450
3493
|
* completely replaces that group; root modules keep their ids when they already exist in the
|
|
3451
|
-
* replaced group, all other ids are regenerated.
|
|
3494
|
+
* replaced group, all other ids are regenerated. A root module the replace adds takes the
|
|
3495
|
+
* implicitRelevant input attributes of a root module it is docked to; its own attributes override them.
|
|
3452
3496
|
* @param layoutType The article layout type. "nobila" and "posGroups" are supported.
|
|
3453
3497
|
* @param options Options for loading the external object group.
|
|
3454
3498
|
*/
|
|
@@ -3502,6 +3546,12 @@ export declare interface ExternalObjectAPI {
|
|
|
3502
3546
|
* @param subArticleId The ID of the sub article to be selected.
|
|
3503
3547
|
*/
|
|
3504
3548
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
3549
|
+
/**
|
|
3550
|
+
* "deleteExternalObjectSubArticle" deletes a placed sub article from its pos group.
|
|
3551
|
+
* @param posGroupId The ID of the pos group.
|
|
3552
|
+
* @param subArticleId The ID of the sub article to be deleted.
|
|
3553
|
+
*/
|
|
3554
|
+
deleteExternalObjectSubArticle(posGroupId: string, subArticleId: string): Promise<void>;
|
|
3505
3555
|
/**
|
|
3506
3556
|
* "renderImagesOfExternalObjectGroups" renders images of groups of modules.
|
|
3507
3557
|
* @param groupJson The group JSON as string or object.
|
|
@@ -3552,8 +3602,10 @@ export declare interface ExternalObjectAPI {
|
|
|
3552
3602
|
* the compacted master data per library (root modules and the customer-facing attributes),
|
|
3553
3603
|
* the room information of all rooms (contours in 3D, pos: [x, level, -y], with a derived
|
|
3554
3604
|
* 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)
|
|
3605
|
+
* docking vectors and sub-modules), all groups currently loaded in the plan (as
|
|
3606
|
+
* resubmittable article picks with footprints and free docking vectors), and what stands in the
|
|
3607
|
+
* room (the doors, windows and other plan objects as floor outlines with their height range,
|
|
3608
|
+
* and the HI groups as the outlines of their root modules).
|
|
3557
3609
|
* The result is designed to be passed to an AI agent as it is, without further preparation,
|
|
3558
3610
|
* with all geometry in one coordinate system: 3D, right-handed, Y up.
|
|
3559
3611
|
* @param include The sections to include. All sections are returned when omitted or empty.
|
|
@@ -3562,12 +3614,13 @@ export declare interface ExternalObjectAPI {
|
|
|
3562
3614
|
/**
|
|
3563
3615
|
* "externalObjectGroupOperation" changes the groups in the plan by command. The payload refers to
|
|
3564
3616
|
* groups, root modules and articles by the ids of "getExternalObjectPlanContext":
|
|
3565
|
-
* - "change-module-attribute" { rootModuleId, moduleId?, attributeId, value } sets an attribute
|
|
3617
|
+
* - "change-module-attribute" { rootModuleId, moduleId?, attributeId, value } without moduleId sets an attribute on the root module and on each of its sub modules that carry it; with moduleId it sets the attribute on that one sub module only
|
|
3566
3618
|
* - "change-group-attribute" { groupId, attributeId, value } sets an attribute on every module of the group that has it
|
|
3619
|
+
* - "change-attributes" { groupId, attributes: [{ attributeId, value, rootModuleIds? }] } sets several attribute values in one calculation, one load and one undo step: an entry with rootModuleIds on those root modules and their sub modules that carry it, without them on every module of the group that has it; the entries no module they name carries are skipped and named in skippedAttributes
|
|
3567
3620
|
* - "delete-group" { groupId } removes the group from the plan
|
|
3568
3621
|
* - "delete-root-module" { rootModuleId } removes a root module; the rest of the group splits where it is no longer docked together
|
|
3569
|
-
* - "merge-article-into-group" { groupId, articleId, attributes?, dockTo: { rootId, ownDockingVector, dockingVector, mode?, offset? } } docks a new root module of the article to a free docking vector of a root module of the group
|
|
3570
|
-
* - "exchange-root-module" { groupId, rootModuleId, articleId } replaces a root module with an article of one root module, keeping its docking
|
|
3622
|
+
* - "merge-article-into-group" { groupId, articleId, attributes?, dockTo: { rootId, ownDockingVector, dockingVector, mode?, offset? } } docks a new root module of the article to a free docking vector of a root module of the group; the new root module takes the implicitRelevant input attributes of that root module, and attributes override them
|
|
3623
|
+
* - "exchange-root-module" { groupId, rootModuleId, articleId } replaces a root module with an article of one root module, keeping its docking and the implicitRelevant input attributes of the replaced root module
|
|
3571
3624
|
* - "merge-groups" { targetGroupId, groupIds } merges the groups into the target group where they stand, like the merge action of the planner; no docking is added
|
|
3572
3625
|
* The promise resolves once the planner has loaded the result, with the affected groups in the shape of the plan context,
|
|
3573
3626
|
* and rejects with the reason when the payload is invalid or the operation cannot be performed.
|
|
@@ -3807,6 +3860,25 @@ export declare interface ExternalObjectValidContainerModules {
|
|
|
3807
3860
|
parentModuleId: string;
|
|
3808
3861
|
}
|
|
3809
3862
|
|
|
3863
|
+
export declare type ExternalPlanObstacleKind = 'group' | 'door' | 'window' | 'object';
|
|
3864
|
+
|
|
3865
|
+
export declare interface ExternalPlanObstacles {
|
|
3866
|
+
points: Array<{
|
|
3867
|
+
x: number;
|
|
3868
|
+
y: number;
|
|
3869
|
+
}>;
|
|
3870
|
+
obstacles: ExternalPlanObstacleSegment[];
|
|
3871
|
+
kinds: Record<number, ExternalPlanObstacleKind>;
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
export declare interface ExternalPlanObstacleSegment {
|
|
3875
|
+
associatedObjectIds: number[];
|
|
3876
|
+
p0: number;
|
|
3877
|
+
p1: number;
|
|
3878
|
+
bottom: number;
|
|
3879
|
+
top: number;
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3810
3882
|
export declare class ExternalReference {
|
|
3811
3883
|
getJsObject(): any;
|
|
3812
3884
|
setJsObject(jsObject: any): void;
|
|
@@ -3870,6 +3942,7 @@ export declare interface FeatureFlags {
|
|
|
3870
3942
|
/* Excluded from this release type: advancedHighlighting */
|
|
3871
3943
|
/* Excluded from this release type: fence */
|
|
3872
3944
|
/* Excluded from this release type: awaitConfigurationSavesBeforeRequestPlan */
|
|
3945
|
+
/* Excluded from this release type: disableRenderStandby */
|
|
3873
3946
|
}
|
|
3874
3947
|
|
|
3875
3948
|
export declare class FeatureFlagsImplementation implements FeatureFlags {
|
|
@@ -3885,6 +3958,7 @@ export declare class FeatureFlagsImplementation implements FeatureFlags {
|
|
|
3885
3958
|
advancedHighlighting: boolean;
|
|
3886
3959
|
fence: boolean;
|
|
3887
3960
|
awaitConfigurationSavesBeforeRequestPlan: boolean;
|
|
3961
|
+
disableRenderStandby: boolean;
|
|
3888
3962
|
}
|
|
3889
3963
|
|
|
3890
3964
|
export declare interface FetchOptions {
|
|
@@ -4177,7 +4251,7 @@ export declare interface GlobalInitDataDefinition {
|
|
|
4177
4251
|
*/
|
|
4178
4252
|
configuratorId?: string;
|
|
4179
4253
|
/**
|
|
4180
|
-
* @description Set which RAPI (Roomle API) backend should be used usage: customApiUrl=https://www.roomle.com/api/
|
|
4254
|
+
* @description Set which RAPI (Roomle API) backend should be used usage: customApiUrl=https://www.roomle.com/api/v2
|
|
4181
4255
|
*/
|
|
4182
4256
|
customApiUrl?: string;
|
|
4183
4257
|
/* Excluded from this release type: e2e */
|
|
@@ -4303,6 +4377,14 @@ export declare interface HandWrittenPlanInteractionHandler {
|
|
|
4303
4377
|
setLengthOfEdge2D(wall: KernelWall, length: number, preferredSide: WallSide, direction: EMSConstant, moveOrthogonalWalls: boolean): void;
|
|
4304
4378
|
setLengthOfSlopingEdge(wall: KernelWall, slopingLength: number, preferredSide: WallSide, direction: EMSConstant, moveOrthogonalWalls: boolean): void;
|
|
4305
4379
|
setWallThickness(wall: KernelWall, thickness: number): void;
|
|
4380
|
+
/** Curved walls PoC — positive sweep angles bulge to the left of from → to, 0 straightens. */
|
|
4381
|
+
setWallArc(wall: KernelWall, sweepAngleInRad: number): void;
|
|
4382
|
+
/** Curved walls PoC — control points in the chord frame, empty array straightens the wall. */
|
|
4383
|
+
setWallCurve(wall: KernelWall, interiorControlPoints: Array<{
|
|
4384
|
+
u: number;
|
|
4385
|
+
v: number;
|
|
4386
|
+
w: number;
|
|
4387
|
+
}>, degree: number, knots: number[]): void;
|
|
4306
4388
|
addAttic(wall: KernelWall, kneeHeight: number, width: number, side: WallSide | null | undefined): KernelAttic;
|
|
4307
4389
|
setAtticSide(attic: KernelAttic, side: WallSide): void;
|
|
4308
4390
|
setAtticKneeHeight(attic: KernelAttic, kneeHeight: number): void;
|
|
@@ -4402,19 +4484,23 @@ export declare const HI_CONTEXT_ACTION: {
|
|
|
4402
4484
|
* Group operations change the groups of the plan context by command: a
|
|
4403
4485
|
* command names the operation, its payload refers to the groups, root modules
|
|
4404
4486
|
* and articles by the ids the plan context shows. `runGroupOperation`
|
|
4405
|
-
* validates the payload, performs the operation with the
|
|
4406
|
-
*
|
|
4407
|
-
*
|
|
4487
|
+
* validates the payload, performs the operation with the HI tools behind
|
|
4488
|
+
* `HiGroupOperations` and returns the affected groups in the plan-context
|
|
4489
|
+
* shape. A new command is one entry in `HI_GROUP_OPERATION`, one
|
|
4408
4490
|
* payload type and one handler.
|
|
4409
4491
|
*/
|
|
4410
4492
|
export declare const HI_GROUP_OPERATION: {
|
|
4411
4493
|
readonly CHANGE_MODULE_ATTRIBUTE: "change-module-attribute";
|
|
4412
4494
|
readonly CHANGE_GROUP_ATTRIBUTE: "change-group-attribute";
|
|
4495
|
+
readonly CHANGE_ATTRIBUTES: "change-attributes";
|
|
4413
4496
|
readonly DELETE_GROUP: "delete-group";
|
|
4414
4497
|
readonly DELETE_ROOT_MODULE: "delete-root-module";
|
|
4415
4498
|
readonly MERGE_ARTICLE_INTO_GROUP: "merge-article-into-group";
|
|
4416
4499
|
readonly EXCHANGE_ROOT_MODULE: "exchange-root-module";
|
|
4417
4500
|
readonly MERGE_GROUPS: "merge-groups";
|
|
4501
|
+
readonly INSERT_ARTICLE_INTO_GROUP: "insert-article-into-group";
|
|
4502
|
+
readonly REMOVE_ARTICLE_FROM_GROUP: "remove-article-from-group";
|
|
4503
|
+
readonly SWAP_ROOT_MODULES: "swap-root-modules";
|
|
4418
4504
|
};
|
|
4419
4505
|
|
|
4420
4506
|
export declare const HI_LOAD_OBJECT_REASON: {
|
|
@@ -4433,6 +4519,7 @@ export declare const HI_LOAD_OBJECT_REASON: {
|
|
|
4433
4519
|
readonly MERGE_WITH_ON_ACTION: "merge_with_on_action";
|
|
4434
4520
|
readonly PLAN_CHANGED: "plan_changed";
|
|
4435
4521
|
readonly POSITION_CHANGED: "position_changed";
|
|
4522
|
+
readonly REARRANGE: "rearrange";
|
|
4436
4523
|
readonly SPLIT: "split";
|
|
4437
4524
|
readonly SWAP_MODULE: "swap_module";
|
|
4438
4525
|
readonly SWAP_GROUP: "swap_group";
|
|
@@ -4458,6 +4545,17 @@ export declare interface HiArticlePick {
|
|
|
4458
4545
|
attributes?: HiPlanRootAttribute[];
|
|
4459
4546
|
}
|
|
4460
4547
|
|
|
4548
|
+
/**
|
|
4549
|
+
* An attribute value of `change-attributes`: set on the named root modules
|
|
4550
|
+
* and their sub modules that carry the attribute, or without `rootModuleIds`
|
|
4551
|
+
* on every module of the group that carries it.
|
|
4552
|
+
*/
|
|
4553
|
+
export declare interface HiAttributeChange {
|
|
4554
|
+
attributeId: string;
|
|
4555
|
+
value: HiAttributeValue;
|
|
4556
|
+
rootModuleIds?: string[];
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4461
4559
|
export declare type HiAttributeOptionsResult = CheckDropDownResult | CheckDropDownEntry[] | undefined;
|
|
4462
4560
|
|
|
4463
4561
|
export declare type HiAttributeValue = string | boolean;
|
|
@@ -4593,6 +4691,11 @@ export declare interface HiGroupOperationPayloads {
|
|
|
4593
4691
|
attributeId: string;
|
|
4594
4692
|
value: HiAttributeValue;
|
|
4595
4693
|
};
|
|
4694
|
+
/** Several attribute values in one calculation, one load and one undo step. */
|
|
4695
|
+
'change-attributes': {
|
|
4696
|
+
groupId: string;
|
|
4697
|
+
attributes: HiAttributeChange[];
|
|
4698
|
+
};
|
|
4596
4699
|
'delete-group': {
|
|
4597
4700
|
groupId: string;
|
|
4598
4701
|
};
|
|
@@ -4603,15 +4706,30 @@ export declare interface HiGroupOperationPayloads {
|
|
|
4603
4706
|
groupId: string;
|
|
4604
4707
|
dockTo: HiDockTarget;
|
|
4605
4708
|
};
|
|
4606
|
-
|
|
4709
|
+
/** `attributes` are overrides of the new root module, e.g. another width. */
|
|
4710
|
+
'exchange-root-module': HiArticlePick & {
|
|
4607
4711
|
groupId: string;
|
|
4608
4712
|
rootModuleId: string;
|
|
4609
|
-
articleId: string;
|
|
4610
4713
|
};
|
|
4611
4714
|
'merge-groups': {
|
|
4612
4715
|
targetGroupId: string;
|
|
4613
4716
|
groupIds: string[];
|
|
4614
4717
|
};
|
|
4718
|
+
/** `between` names two root modules docked side by side, in either order. */
|
|
4719
|
+
'insert-article-into-group': HiArticlePick & {
|
|
4720
|
+
groupId: string;
|
|
4721
|
+
between: [string, string];
|
|
4722
|
+
};
|
|
4723
|
+
/** Removes a root module and closes the gap; `delete-root-module` leaves it. */
|
|
4724
|
+
'remove-article-from-group': {
|
|
4725
|
+
groupId: string;
|
|
4726
|
+
rootModuleId: string;
|
|
4727
|
+
};
|
|
4728
|
+
/** Two root modules of the group change places, neighbours or not. */
|
|
4729
|
+
'swap-root-modules': {
|
|
4730
|
+
groupId: string;
|
|
4731
|
+
rootModuleIds: [string, string];
|
|
4732
|
+
};
|
|
4615
4733
|
}
|
|
4616
4734
|
|
|
4617
4735
|
export declare interface HiGroupOperationResult {
|
|
@@ -4619,6 +4737,9 @@ export declare interface HiGroupOperationResult {
|
|
|
4619
4737
|
groups: HiPlanGroup[];
|
|
4620
4738
|
removedGroupIds: string[];
|
|
4621
4739
|
changedModuleIds?: string[];
|
|
4740
|
+
corrections?: string[];
|
|
4741
|
+
gapClosed?: boolean;
|
|
4742
|
+
skippedAttributes?: Array<Omit<HiAttributeChange, 'value'>>;
|
|
4622
4743
|
}
|
|
4623
4744
|
|
|
4624
4745
|
export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
|
|
@@ -4721,6 +4842,7 @@ export declare interface HiPlanContext {
|
|
|
4721
4842
|
rooms?: HiPlanRoomInformation;
|
|
4722
4843
|
articles?: HiPlanArticle[];
|
|
4723
4844
|
groups?: HiPlanGroup[];
|
|
4845
|
+
obstacles?: HiPlanObstacles;
|
|
4724
4846
|
}
|
|
4725
4847
|
|
|
4726
4848
|
export declare interface HiPlanContextData {
|
|
@@ -4730,7 +4852,7 @@ export declare interface HiPlanContextData {
|
|
|
4730
4852
|
}>;
|
|
4731
4853
|
}
|
|
4732
4854
|
|
|
4733
|
-
export declare type HiPlanContextSection = 'masterData' | 'rooms' | 'articles' | 'groups';
|
|
4855
|
+
export declare type HiPlanContextSection = 'masterData' | 'rooms' | 'articles' | 'groups' | 'obstacles';
|
|
4734
4856
|
|
|
4735
4857
|
export declare interface HiPlanContour {
|
|
4736
4858
|
level: number;
|
|
@@ -4768,6 +4890,11 @@ export declare interface HiPlanGroup {
|
|
|
4768
4890
|
roots: HiPlanRoot[];
|
|
4769
4891
|
}
|
|
4770
4892
|
|
|
4893
|
+
export declare interface HiPlanGroupObstacles {
|
|
4894
|
+
id: string;
|
|
4895
|
+
roots: HiPlanRootOutline[];
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4771
4898
|
export declare interface HiPlanGroupPosition {
|
|
4772
4899
|
pos?: number[];
|
|
4773
4900
|
rotationY?: number;
|
|
@@ -4778,6 +4905,7 @@ export declare interface HiPlanMasterData {
|
|
|
4778
4905
|
libraryId: string;
|
|
4779
4906
|
modules: HiPlanMasterDataModule[];
|
|
4780
4907
|
attributes: HiPlanAttribute[];
|
|
4908
|
+
groupSettings: string[];
|
|
4781
4909
|
}
|
|
4782
4910
|
|
|
4783
4911
|
export declare interface HiPlanMasterDataModule {
|
|
@@ -4788,9 +4916,21 @@ export declare interface HiPlanMasterDataModule {
|
|
|
4788
4916
|
attributes: string[];
|
|
4789
4917
|
}
|
|
4790
4918
|
|
|
4919
|
+
export declare interface HiPlanObstacle {
|
|
4920
|
+
kind: Exclude<ExternalPlanObstacleKind, 'group'>;
|
|
4921
|
+
outline: HiPlanPosition3[];
|
|
4922
|
+
bottomMm: number;
|
|
4923
|
+
topMm: number;
|
|
4924
|
+
}
|
|
4925
|
+
|
|
4926
|
+
export declare interface HiPlanObstacles {
|
|
4927
|
+
objects: HiPlanObstacle[];
|
|
4928
|
+
groups: HiPlanGroupObstacles[];
|
|
4929
|
+
}
|
|
4930
|
+
|
|
4791
4931
|
/**
|
|
4792
4932
|
* The plan context is the data an AI agent needs to understand and author a
|
|
4793
|
-
* planning session. `
|
|
4933
|
+
* planning session. `createPlanContext` assembles it and every
|
|
4794
4934
|
* section leaves this file in the agent-ready shape: compacted, and in one
|
|
4795
4935
|
* coordinate system - 3D, right-handed, Y up, the coordinate system of
|
|
4796
4936
|
* `PosGroup`.
|
|
@@ -4829,6 +4969,13 @@ export declare interface HiPlanRootAttribute {
|
|
|
4829
4969
|
value?: number | string | boolean;
|
|
4830
4970
|
}
|
|
4831
4971
|
|
|
4972
|
+
export declare interface HiPlanRootOutline {
|
|
4973
|
+
id: string;
|
|
4974
|
+
outline: HiPlanPosition3[];
|
|
4975
|
+
bottomMm: number;
|
|
4976
|
+
topMm: number;
|
|
4977
|
+
}
|
|
4978
|
+
|
|
4832
4979
|
export declare interface HiPlanWall {
|
|
4833
4980
|
index: number;
|
|
4834
4981
|
side: HiPlanWallSide;
|
|
@@ -5878,7 +6025,9 @@ export declare interface KernelWall extends KernelObject {
|
|
|
5878
6025
|
readonly leftNormal: KernelVector3;
|
|
5879
6026
|
readonly rightNormal: KernelVector3;
|
|
5880
6027
|
readonly edgeType: EdgeType_2;
|
|
6028
|
+
readonly isCurved: boolean;
|
|
5881
6029
|
getAngle: () => number;
|
|
6030
|
+
getArcSweepAngle(): number;
|
|
5882
6031
|
}
|
|
5883
6032
|
|
|
5884
6033
|
export declare interface KernelWallMaterial extends KernelObject {
|
|
@@ -6567,6 +6716,29 @@ export declare interface ObjectTypeCategory {
|
|
|
6567
6716
|
|
|
6568
6717
|
export declare type ObjectWallDimension = DimensionDefinition<Vector3_2, Vector3_2>;
|
|
6569
6718
|
|
|
6719
|
+
export declare interface Obstacle2d {
|
|
6720
|
+
associatedObjectIds: EmsArray<number>;
|
|
6721
|
+
bottom: number;
|
|
6722
|
+
length: number;
|
|
6723
|
+
normalizedDirection: KernelVector2f;
|
|
6724
|
+
p0: number;
|
|
6725
|
+
p1: number;
|
|
6726
|
+
top: number;
|
|
6727
|
+
type: ObstacleType;
|
|
6728
|
+
}
|
|
6729
|
+
|
|
6730
|
+
export declare class Obstacle2dArray extends EmsArray<Obstacle2d> {
|
|
6731
|
+
}
|
|
6732
|
+
|
|
6733
|
+
export declare interface ObstacleMap2d {
|
|
6734
|
+
obstacles: Obstacle2dArray;
|
|
6735
|
+
points: Vector2Array;
|
|
6736
|
+
}
|
|
6737
|
+
|
|
6738
|
+
export declare interface ObstacleType {
|
|
6739
|
+
value: Enumify<typeof CORE_OBSTACLE_TYPE>;
|
|
6740
|
+
}
|
|
6741
|
+
|
|
6570
6742
|
export declare interface OffsetCamera {
|
|
6571
6743
|
offset: CanvasOffset;
|
|
6572
6744
|
resetOffset(): void;
|
|
@@ -6890,13 +7062,26 @@ export declare class PlanElementViewModel extends KernelViewModel {
|
|
|
6890
7062
|
protected _topView: boolean;
|
|
6891
7063
|
private _containerVisible;
|
|
6892
7064
|
private _hiddenByCameraFacing;
|
|
7065
|
+
private _hiddenByCameraCut;
|
|
6893
7066
|
constructor(planObject: PlanObject);
|
|
6894
7067
|
getSize(): Vector3_2;
|
|
6895
7068
|
setHiddenByCameraFacing(hidden: boolean): void;
|
|
6896
7069
|
setContainerVisibility(isVisible: boolean): void;
|
|
6897
7070
|
protected isContainerVisible(): boolean;
|
|
6898
|
-
protected
|
|
7071
|
+
protected _applyVisibility(): void;
|
|
6899
7072
|
isHiddenByCameraFacing(): boolean;
|
|
7073
|
+
/**
|
|
7074
|
+
* Hide what the camera near plane cuts open, given a sphere around the camera
|
|
7075
|
+
* position with the near distance as radius. A plan element is a single visual
|
|
7076
|
+
* unit, so the whole container is hidden - {@link ConfiguratorPlanObjectViewModel}
|
|
7077
|
+
* refines this to the components which are actually cut.
|
|
7078
|
+
*/
|
|
7079
|
+
hideCutByCamera(cameraSphere: Sphere): boolean;
|
|
7080
|
+
/**
|
|
7081
|
+
* Show everything that was hidden by {@link hideCutByCamera} again.
|
|
7082
|
+
*/
|
|
7083
|
+
restoreCutByCamera(): boolean;
|
|
7084
|
+
protected _setHiddenByCameraCut(hidden: boolean): boolean;
|
|
6900
7085
|
update(): void;
|
|
6901
7086
|
protected _updateBoundingBox(): void;
|
|
6902
7087
|
getPosition(): Vector3_2;
|
|
@@ -7164,6 +7349,7 @@ export declare interface PlanModelViewHelper_2 {
|
|
|
7164
7349
|
requestMesh3d(element: PlanElement_3): void;
|
|
7165
7350
|
getExternalObjectGroups(plan: Plan_3): KernelObjectConfigurationArray;
|
|
7166
7351
|
getExternalRoomInformation(plan: Plan_3, mode: PlanRoomGeometryMode_2): RoomInformation;
|
|
7352
|
+
getObstacleMap(plan: Plan_3): ObstacleMap2d;
|
|
7167
7353
|
getGroupedObjects(anObject: PlanObject): KernelPlanObject[];
|
|
7168
7354
|
calculateLightSourceDistribution(plan: Plan_3, lightSourceConfiguration: LightSourceConfiguration): RoomLightSourceDistributionArray;
|
|
7169
7355
|
getObjectSnapInformation(anObject: PlanObject, debugHelpLines: boolean): ObjectSnapInformation;
|
|
@@ -7302,6 +7488,7 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
7302
7488
|
addListener(listener: KernelAccessCallbackI): void;
|
|
7303
7489
|
removeListener(listener: KernelAccessCallbackI): void;
|
|
7304
7490
|
private _homagIntelligence;
|
|
7491
|
+
private _externalObjectPlanChanges;
|
|
7305
7492
|
private _arrangementCorrectionEnabled;
|
|
7306
7493
|
get arrangementCorrectionEnabled(): boolean;
|
|
7307
7494
|
get kernelContainer(): any;
|
|
@@ -7393,7 +7580,8 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
7393
7580
|
protected _externalObjectConfigurationDeleted(groupId: string): void;
|
|
7394
7581
|
protected _externalObjectComponentDeleted(remainingGroupOrGroups: ExternalObjectGroup | ExternalObjectGroup[], deletedRootModuleId: string): void;
|
|
7395
7582
|
_externalObjectConfigurationDuplicated(duplicatedGroup: ExternalObjectGroup): void;
|
|
7396
|
-
|
|
7583
|
+
loadExternalObjectGroups(load: () => PlanObject[]): Promise<PlanObject[]>;
|
|
7584
|
+
_externalObjectPlanChanged(movedGroup: ExternalObjectGroup, objectPositionChanged: boolean): Promise<void | undefined>;
|
|
7397
7585
|
_externalObjectConfigurationsMerged(mergedGroup: ExternalObjectGroup, idsOfGroupsMerged: string | string[], targetRootModuleId: string, mergedWithDragging: boolean): Promise<void>;
|
|
7398
7586
|
_externalObjectComponentSplitOff(splitGroups: ExternalObjectGroup[]): void;
|
|
7399
7587
|
planSnapshotCreated(planSnapshot: RapiPlanSnapshotPostData): void;
|
|
@@ -8192,7 +8380,6 @@ export declare class PlanViewModel extends ConfiguratorViewModel implements Plan
|
|
|
8192
8380
|
private _plannerSceneEventHandler;
|
|
8193
8381
|
private _cameraHideSphere;
|
|
8194
8382
|
private readonly _cameraHideViewModelGroups;
|
|
8195
|
-
private _objectsHiddenByCamera;
|
|
8196
8383
|
private _cameraType;
|
|
8197
8384
|
private _nodeZoom;
|
|
8198
8385
|
private _latestWallPlanObjectViewModel;
|
|
@@ -9585,6 +9772,7 @@ export declare class RoomDesignerApi implements RoomDesignerRequests {
|
|
|
9585
9772
|
mergeGroups(groupIds: string[]): Promise<void>;
|
|
9586
9773
|
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
9587
9774
|
getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
9775
|
+
getPlanObstacles(): Promise<ExternalPlanObstacles>;
|
|
9588
9776
|
saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
|
|
9589
9777
|
saveCurrentPlanSnapshot(): Promise<RapiPlanSnapshotGetData>;
|
|
9590
9778
|
renderPosDataImage(posDataJson: object): Promise<void>;
|
|
@@ -9603,6 +9791,7 @@ export declare interface RoomDesignerRequests {
|
|
|
9603
9791
|
mergeGroups(groupIds: string[]): Promise<void>;
|
|
9604
9792
|
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
9605
9793
|
getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
9794
|
+
getPlanObstacles(): Promise<ExternalPlanObstacles>;
|
|
9606
9795
|
saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
|
|
9607
9796
|
}
|
|
9608
9797
|
|
|
@@ -10652,8 +10841,9 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
10652
10841
|
private _globalInitData;
|
|
10653
10842
|
private _globalCallback;
|
|
10654
10843
|
private _unitFormatter;
|
|
10655
|
-
private _planInteractionManager;
|
|
10656
10844
|
private _elevationPlan2dGenerator;
|
|
10845
|
+
private _skyStateTracker;
|
|
10846
|
+
private _planInteractionManager;
|
|
10657
10847
|
private _sceneManager;
|
|
10658
10848
|
private _plan;
|
|
10659
10849
|
private _preloadPlanId;
|
|
@@ -11078,6 +11268,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11078
11268
|
}>;
|
|
11079
11269
|
getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
|
|
11080
11270
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
11271
|
+
deleteExternalObjectSubArticle(posGroupId: string, subArticleId: string): Promise<void>;
|
|
11081
11272
|
_mergeExternalObjects(groupIds: string[]): Promise<void>;
|
|
11082
11273
|
removeExternalObject(groupOrRootModuleId: string): Promise<void>;
|
|
11083
11274
|
selectExternalObject(groupOrRootModuleId: string, subModuleId: string | null, contextAction: HiContextAction): Promise<void>;
|
|
@@ -11088,6 +11279,8 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11088
11279
|
getExternalObjectPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
11089
11280
|
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
11090
11281
|
getExternalRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
11282
|
+
_getExternalPlanObstacles(): Promise<ExternalPlanObstacles>;
|
|
11283
|
+
private _planObstacleKind;
|
|
11091
11284
|
/**
|
|
11092
11285
|
* Highlights a product in the planner.
|
|
11093
11286
|
* @param planElementId The ID of the plan element to highlight.
|
|
@@ -11694,6 +11887,7 @@ export declare abstract class SceneManager implements Context, LifeCycleCallback
|
|
|
11694
11887
|
protected _stopRendering: boolean;
|
|
11695
11888
|
protected _roomleRenderer: GenericRoomleRenderer | null;
|
|
11696
11889
|
private _roomleRendererReady;
|
|
11890
|
+
protected _sceneSetupReady: AsyncGuard<void>;
|
|
11697
11891
|
private _isDebugGUIInitialized;
|
|
11698
11892
|
private _forceRender;
|
|
11699
11893
|
private _lastChange;
|
|
@@ -11912,6 +12106,7 @@ export declare class SkyStateTracker extends EventDispatcher<SkyFeatureEventMap>
|
|
|
11912
12106
|
private _isCurrentlyActive;
|
|
11913
12107
|
private _initData;
|
|
11914
12108
|
constructor(creator: string);
|
|
12109
|
+
get isSkyEnabled(): boolean;
|
|
11915
12110
|
get isCurrentlyActive(): boolean;
|
|
11916
12111
|
notifyEnteredPlanner(): void;
|
|
11917
12112
|
notifyEnteredConfigurator(): void;
|
|
@@ -11971,6 +12166,14 @@ export declare const STEP_GROUPS: {
|
|
|
11971
12166
|
readonly finalize: "on-signal";
|
|
11972
12167
|
readonly methods: ["setWallThickness"];
|
|
11973
12168
|
};
|
|
12169
|
+
readonly wallArc: {
|
|
12170
|
+
readonly finalize: "on-signal";
|
|
12171
|
+
readonly methods: ["setWallArc"];
|
|
12172
|
+
};
|
|
12173
|
+
readonly wallCurve: {
|
|
12174
|
+
readonly finalize: "immediate";
|
|
12175
|
+
readonly methods: ["setWallCurve"];
|
|
12176
|
+
};
|
|
11974
12177
|
readonly objectSize: {
|
|
11975
12178
|
readonly finalize: "immediate";
|
|
11976
12179
|
readonly methods: ["setObjectSize"];
|
|
@@ -12496,6 +12699,9 @@ export declare interface VariantsList {
|
|
|
12496
12699
|
parts: KernelPart[];
|
|
12497
12700
|
}
|
|
12498
12701
|
|
|
12702
|
+
export declare class Vector2Array extends EmsArray<KernelVector2f> {
|
|
12703
|
+
}
|
|
12704
|
+
|
|
12499
12705
|
export declare class Vector2fArray extends EmsArray<KernelVector2f> {
|
|
12500
12706
|
}
|
|
12501
12707
|
|
|
@@ -12673,6 +12879,7 @@ export declare class WallPlanElementViewModel extends PlanElementViewModel {
|
|
|
12673
12879
|
private _setBoundingBoxValues;
|
|
12674
12880
|
isVisible(): boolean;
|
|
12675
12881
|
protected _generateBoundingBox(): RoomleEventedMesh;
|
|
12882
|
+
private _computeCurvedLineVertices;
|
|
12676
12883
|
private _computeLineVertices;
|
|
12677
12884
|
private _createLineForInvisibleWall;
|
|
12678
12885
|
private _createCameraFacingHighlightMesh;
|
|
@@ -12681,6 +12888,7 @@ export declare class WallPlanElementViewModel extends PlanElementViewModel {
|
|
|
12681
12888
|
private _ensureCameraFacingHighlightMesh;
|
|
12682
12889
|
private _updateCameraFacingHighlightMesh;
|
|
12683
12890
|
private _computeWallFootprintVertices;
|
|
12891
|
+
private _computeCurvedWallFootprintVertices;
|
|
12684
12892
|
private _computeWallFootprintFallbackVertices;
|
|
12685
12893
|
private _updateLineGeometry;
|
|
12686
12894
|
private _addThinLineForInvisibleWall;
|
|
@@ -12702,8 +12910,12 @@ export declare interface WallPlanObject extends PlanObject {
|
|
|
12702
12910
|
getFrom(): NodePlanObject;
|
|
12703
12911
|
getTo(): NodePlanObject;
|
|
12704
12912
|
getAttachedAttics(): KernelAtticArray;
|
|
12913
|
+
getAxisPolyline(): PointArray_3;
|
|
12914
|
+
getLeftFacePolyline(): PointArray_3;
|
|
12915
|
+
getRightFacePolyline(): PointArray_3;
|
|
12705
12916
|
readonly thickness: number;
|
|
12706
12917
|
readonly height: number;
|
|
12918
|
+
readonly isCurved: boolean;
|
|
12707
12919
|
}
|
|
12708
12920
|
|
|
12709
12921
|
export declare interface WallSide {
|
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-BebHC0FC.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Tt as s, xt as c } from "./threejs-utils-Dy-rm1a9.mjs";
|
|
4
4
|
import { D as l, g as u } from "./common-utils-CNGLvAo_.mjs";
|
|
5
|
-
import {
|
|
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-
|
|
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,
|
|
5
|
+
import { B as d, F as f, G as p, J as m, K as h, M as g, N as _, P as v, S 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-Bt3h0SSr.mjs";
|
|
6
|
+
import { t as F } from "./configurator-CJFwkh54.mjs";
|
|
7
|
+
import { t as I } from "./planner-DLRkyi_2.mjs";
|
|
8
|
+
import { n as L, t as R } from "./glb-viewer-BSHmO1do.mjs";
|
|
9
|
+
import { t as z } from "./api-DzAvODF3.mjs";
|
|
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, d as HI_CONTEXT_ACTION, P as HI_GROUP_OPERATION, y as MeasurementLinePlanElementViewModel, N as PLAN_ELEMENT_CHANGE_TYPES, f as PlanElementViewModel, v 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, _ as StaticPlanObjectViewModel, g as WallPlanElementViewModel, p as createExtObj, b as createExtObjId, u as download, C as getCatalogIdFromConfigurationHash, h 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, m 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
|