@roomle/web-sdk 4.1.0 → 4.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-COog8C3X.mjs → api-VdWgw-jg.mjs} +2 -2
- package/lib/{api-COog8C3X.mjs.map → api-VdWgw-jg.mjs.map} +1 -1
- package/lib/asset-loader.worker-eqHzNAwa.mjs.map +1 -1
- package/lib/{component-dimensioning-pA7fsqsP.mjs → component-dimensioning-DJuokZnv.mjs} +2 -2
- package/lib/{component-dimensioning-pA7fsqsP.mjs.map → component-dimensioning-DJuokZnv.mjs.map} +1 -1
- package/lib/{component-raycast-helper-CbpkovD8.mjs → component-raycast-helper-SZg14d7A.mjs} +2 -2
- package/lib/{component-raycast-helper-CbpkovD8.mjs.map → component-raycast-helper-SZg14d7A.mjs.map} +1 -1
- package/lib/{configurator-Ducp-Nxf.mjs → configurator-Bl3B3C63.mjs} +4 -4
- package/lib/{configurator-Ducp-Nxf.mjs.map → configurator-Bl3B3C63.mjs.map} +1 -1
- package/lib/configurator-CHYss9Ix.mjs +2 -0
- package/lib/glb-viewer-Bo6d43Pf.mjs +2 -0
- package/lib/{glb-viewer-BvnOSeLd.mjs → glb-viewer-DxwekYzn.mjs} +5 -5
- package/lib/glb-viewer-DxwekYzn.mjs.map +1 -0
- package/lib/{highlight-coordinator-DCfeXyn-.mjs → highlight-coordinator-Qonmfsu1.mjs} +2 -2
- package/lib/{highlight-coordinator-DCfeXyn-.mjs.map → highlight-coordinator-Qonmfsu1.mjs.map} +1 -1
- package/lib/{homag-intelligence-DWfY5Rhy.mjs → homag-intelligence-DwBJIGnh.mjs} +3 -3
- package/lib/{homag-intelligence-DWfY5Rhy.mjs.map → homag-intelligence-DwBJIGnh.mjs.map} +1 -1
- package/lib/{material-viewer-DShIT0xY.mjs → material-viewer-DjGxE0tY.mjs} +5 -5
- package/lib/material-viewer-DjGxE0tY.mjs.map +1 -0
- package/lib/{packages-6njsPLBJ.mjs → packages-Dz8NmJP4.mjs} +5 -5
- package/lib/{packages-6njsPLBJ.mjs.map → packages-Dz8NmJP4.mjs.map} +1 -1
- package/lib/{planner-ABiXTXmc.mjs → planner-CWJXj28p.mjs} +3 -3
- package/lib/{planner-ABiXTXmc.mjs.map → planner-CWJXj28p.mjs.map} +1 -1
- package/lib/planner-CuYso338.mjs +2 -0
- package/lib/roomle-headless.d.ts +50 -9
- package/lib/roomle-headless.js +15 -17
- package/lib/roomle-headless.js.map +1 -1
- package/lib/roomle-renderer-FUqNfNIf.mjs.map +1 -1
- package/lib/{roomle-sdk-BdEmEYZg.mjs → roomle-sdk-FrWkv2ZJ.mjs} +1523 -1312
- package/lib/roomle-sdk-FrWkv2ZJ.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +49 -9
- package/lib/roomle-sdk.js +7 -7
- package/lib/{roomle-webgpu-renderer-RLBME9mQ.mjs → roomle-webgpu-renderer-CNZiK43x.mjs} +8 -8
- package/lib/{roomle-webgpu-renderer-RLBME9mQ.mjs.map → roomle-webgpu-renderer-CNZiK43x.mjs.map} +1 -1
- package/lib/{scene-renderer-B4HVqeg3.mjs → scene-renderer-DR7EFd-8.mjs} +2 -2
- package/lib/{scene-renderer-B4HVqeg3.mjs.map → scene-renderer-DR7EFd-8.mjs.map} +1 -1
- package/lib/{script-loader-BTy3OZVv.mjs → script-loader-YLmjONN5.mjs} +2 -2
- package/lib/{script-loader-BTy3OZVv.mjs.map → script-loader-YLmjONN5.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/plannerCoreInterface.d.ts +3 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js +2 -0
- 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-Cae4Gs0E.mjs → stats-helper-vEwFkDIt.mjs} +2 -2
- package/lib/{stats-helper-Cae4Gs0E.mjs.map → stats-helper-vEwFkDIt.mjs.map} +1 -1
- package/lib/{threejs-utils-mqRHdm-p.mjs → threejs-utils-C9zED_Tu.mjs} +4 -2
- package/lib/threejs-utils-C9zED_Tu.mjs.map +1 -0
- package/lib/{tools-core-T65Q1eht.mjs → tools-core-CToGr3ow.mjs} +3 -3
- package/lib/{tools-core-T65Q1eht.mjs.map → tools-core-CToGr3ow.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-9q_a9B9k.mjs +0 -2
- package/lib/glb-viewer-BiRBZWfu.mjs +0 -2
- package/lib/glb-viewer-BvnOSeLd.mjs.map +0 -1
- package/lib/material-viewer-DShIT0xY.mjs.map +0 -1
- package/lib/planner-v3xjVi85.mjs +0 -2
- package/lib/roomle-sdk-BdEmEYZg.mjs.map +0 -1
- package/lib/threejs-utils-mqRHdm-p.mjs.map +0 -1
package/lib/roomle-sdk.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ import { Box3 } from 'three';
|
|
|
2
2
|
import { BufferGeometry } from 'three';
|
|
3
3
|
import { BufferGeometryEventMap } from 'three';
|
|
4
4
|
import { Camera } from 'three';
|
|
5
|
+
import { Camera as Camera_2 } from 'three/webgpu';
|
|
5
6
|
import { Color } from 'three';
|
|
6
7
|
import { ColorRepresentation } from 'three';
|
|
8
|
+
import { ColorRepresentation as ColorRepresentation_2 } from 'three/webgpu';
|
|
7
9
|
import { CommunicationInterfaceCallback } from '../../../workers/src/communication-interface';
|
|
8
10
|
import { ConstructionObjectDoorArch } from 'roomle-core-hsc/src/embind/plannerCoreInterface';
|
|
9
11
|
import { createExtObjId } from '../../../../../common/src/utils/external-objects';
|
|
@@ -35,6 +37,7 @@ import { NormalBufferAttributes } from 'three';
|
|
|
35
37
|
import { Nullable } from '../../common/src/utils/types';
|
|
36
38
|
import { Nullable as Nullable_2 } from '../../../../../common/src/utils/types';
|
|
37
39
|
import { Object3D } from 'three';
|
|
40
|
+
import { Object3D as Object3D_2 } from 'three/webgpu';
|
|
38
41
|
import { Object3DEventMap } from 'three';
|
|
39
42
|
import { OrthographicCamera } from 'three';
|
|
40
43
|
import { ParametersGroup } from 'three/examples/jsm/inspector/tabs/Parameters.js';
|
|
@@ -43,6 +46,7 @@ import { PerspectiveCamera } from 'three';
|
|
|
43
46
|
import { PlanInteractionHandler as PlanInteractionHandler_2 } from 'roomle-core-hsc/src/embind/plannerCoreInterface';
|
|
44
47
|
import { PointLight } from 'three';
|
|
45
48
|
import { Scene } from 'three';
|
|
49
|
+
import { Scene as Scene_2 } from 'three/webgpu';
|
|
46
50
|
import { Texture } from 'three';
|
|
47
51
|
import { TextureLoader } from 'three';
|
|
48
52
|
import { Vector2 } from 'three';
|
|
@@ -1175,6 +1179,11 @@ export declare interface ConfiguratorInitData {
|
|
|
1175
1179
|
* @description If set to true it will try to apply all current global parameters to the loaded object
|
|
1176
1180
|
*/
|
|
1177
1181
|
applyCurrentGlobalParameters?: boolean;
|
|
1182
|
+
/**
|
|
1183
|
+
* @description If set to true, component dimension labels stay visible even when the distance-based proximity check would normally hide them.
|
|
1184
|
+
* @default false
|
|
1185
|
+
*/
|
|
1186
|
+
disableMeasurementCollisionDetection?: boolean;
|
|
1178
1187
|
/**
|
|
1179
1188
|
* @description Adds the given spacing (in centimeters) to the loaded object. This is then used to calculate the initial camera distance
|
|
1180
1189
|
* default: 0
|
|
@@ -1186,6 +1195,7 @@ export declare interface ConfiguratorInitData {
|
|
|
1186
1195
|
cameraSpacing?: number;
|
|
1187
1196
|
/* Excluded from this release type: ssr */
|
|
1188
1197
|
/* Excluded from this release type: featureFlags */
|
|
1198
|
+
/* Excluded from this release type: webGpu */
|
|
1189
1199
|
/* Excluded from this release type: webGpuConfig */
|
|
1190
1200
|
/**
|
|
1191
1201
|
* @description if true, the meshes of the component will be used, in addition to the bounding box, for raycasting (selecting)
|
|
@@ -2236,6 +2246,8 @@ export declare const CORE_HELP_LINE_TYPE: {
|
|
|
2236
2246
|
readonly WALL_EDGE: 3;
|
|
2237
2247
|
readonly DOCKING_VECTOR: 4;
|
|
2238
2248
|
readonly OBJECT_CONTOUR: 5;
|
|
2249
|
+
readonly WALL_ALIGNMENT: 6;
|
|
2250
|
+
readonly WALL_ALIGNMENT_SNAPPED: 7;
|
|
2239
2251
|
};
|
|
2240
2252
|
|
|
2241
2253
|
export declare const CORE_NODE_TYPE: {
|
|
@@ -4076,8 +4088,10 @@ export declare class InitData implements Context, Omit<InitDataDefinition, 'colo
|
|
|
4076
4088
|
applyCurrentGlobalParameters: boolean;
|
|
4077
4089
|
configureInRoom: boolean;
|
|
4078
4090
|
dockInRoom: boolean;
|
|
4091
|
+
disableMeasurementCollisionDetection: boolean;
|
|
4079
4092
|
discardExternalObjectsWhenLoadingPlan: boolean;
|
|
4080
4093
|
featureFlags: FeatureFlagsImplementation;
|
|
4094
|
+
webGpu: boolean;
|
|
4081
4095
|
webGpuConfig: WebGpuConfig;
|
|
4082
4096
|
meshRaycasting: boolean;
|
|
4083
4097
|
defaultFloorMaterial?: number | string;
|
|
@@ -5082,6 +5096,8 @@ export declare interface MeasurementBase<Vector2Type = Vector3 | Position2, Vect
|
|
|
5082
5096
|
textPosition3d: Vector3Type;
|
|
5083
5097
|
/** 3D direction vector of the text **/
|
|
5084
5098
|
textDirection: Vector3Type;
|
|
5099
|
+
/** Direction to move the measured object when increasing the distance. */
|
|
5100
|
+
moveDirection?: Vector3Type;
|
|
5085
5101
|
/** rotation of the text in radians **/
|
|
5086
5102
|
textRotation: number;
|
|
5087
5103
|
/** length of the wall in millimeters **/
|
|
@@ -5093,6 +5109,7 @@ export declare interface MeasurementBase<Vector2Type = Vector3 | Position2, Vect
|
|
|
5093
5109
|
/** 2D position where the length/label should be shown **/
|
|
5094
5110
|
textPosition2d?: Vector2Type;
|
|
5095
5111
|
id?: number;
|
|
5112
|
+
dashed?: boolean;
|
|
5096
5113
|
}
|
|
5097
5114
|
|
|
5098
5115
|
export declare type MeasurementLineDimension = DimensionDefinition<Vector3, Vector3>;
|
|
@@ -5232,6 +5249,12 @@ export declare interface ModelExportOptions {
|
|
|
5232
5249
|
filename?: string;
|
|
5233
5250
|
}
|
|
5234
5251
|
|
|
5252
|
+
export declare interface NeighboringObjectMeasurementInfo {
|
|
5253
|
+
bounds: Box3;
|
|
5254
|
+
id: number;
|
|
5255
|
+
measurementBounds: Box3[];
|
|
5256
|
+
}
|
|
5257
|
+
|
|
5235
5258
|
export declare abstract class Node_2 extends PlanElement {
|
|
5236
5259
|
readonly nodeType: NodeType;
|
|
5237
5260
|
getNumberOfConnectedWalls(): number;
|
|
@@ -5393,8 +5416,8 @@ export declare interface OrthographicOffsetCamera extends OrthographicCamera, Of
|
|
|
5393
5416
|
}
|
|
5394
5417
|
|
|
5395
5418
|
export declare interface OutlineColors {
|
|
5396
|
-
outlineVisibleEdgeColor:
|
|
5397
|
-
outlineHiddenEdgeColor:
|
|
5419
|
+
outlineVisibleEdgeColor: ColorRepresentation_2;
|
|
5420
|
+
outlineHiddenEdgeColor: ColorRepresentation_2;
|
|
5398
5421
|
}
|
|
5399
5422
|
|
|
5400
5423
|
export declare interface OutlineCustomParameters {
|
|
@@ -5545,6 +5568,7 @@ export declare interface PlanElement_2 extends KernelObject {
|
|
|
5545
5568
|
getId(): number;
|
|
5546
5569
|
getCustomDataJson(): string;
|
|
5547
5570
|
isDuplicable(): boolean;
|
|
5571
|
+
isDeletableInIsolation(): boolean;
|
|
5548
5572
|
readonly hidden: boolean;
|
|
5549
5573
|
}
|
|
5550
5574
|
|
|
@@ -6198,6 +6222,12 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
6198
6222
|
get viewModel(): PlanViewModel;
|
|
6199
6223
|
private _getDragPosition;
|
|
6200
6224
|
private _hideAllMeasurementsNodeOnElementChange;
|
|
6225
|
+
/**
|
|
6226
|
+
* An element that the core reports as not deletable in isolation - a generated
|
|
6227
|
+
* fence post or module - may only be deleted together with its complete contour
|
|
6228
|
+
* group. Fence doors and ordinary plan elements stand on their own.
|
|
6229
|
+
*/
|
|
6230
|
+
private _isSelectionDeletable;
|
|
6201
6231
|
private _onSelectionChange;
|
|
6202
6232
|
planObjectDependencyUpdated(planObjectId: number): void;
|
|
6203
6233
|
private _onSelectionCancel;
|
|
@@ -6251,6 +6281,8 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
6251
6281
|
protected _setCameraControlListeners(): void;
|
|
6252
6282
|
private _onCameraZoomChange;
|
|
6253
6283
|
private _setKernelZoomFactor;
|
|
6284
|
+
private _getHighestWallHeight;
|
|
6285
|
+
private _shouldShowCeiling;
|
|
6254
6286
|
private _setCeiling;
|
|
6255
6287
|
cameraBehaviourChanged(updateDistance?: boolean): void;
|
|
6256
6288
|
private _updatePaperBackground;
|
|
@@ -6375,6 +6407,7 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
6375
6407
|
private _sendRoomMeasurements;
|
|
6376
6408
|
private _sendMeasurementLineDimension;
|
|
6377
6409
|
private _sendObjectMeasurements;
|
|
6410
|
+
private _getOtherPlanObjectsFor2dMeasurements;
|
|
6378
6411
|
private transformMeasurements;
|
|
6379
6412
|
private _sendConstructionElementDimensions;
|
|
6380
6413
|
setConstructionElementDistanceToWall(measurementId: number, distance: number): void;
|
|
@@ -6412,6 +6445,8 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
6412
6445
|
protected enablePanning(): void;
|
|
6413
6446
|
protected disablePanning(): void;
|
|
6414
6447
|
setObjectToWallMeasurementLength(planElementId: number, measurementId: number, length: number): void;
|
|
6448
|
+
setObjectMeasurementLength(planElementId: number, measurement: ObjectToWallDimensionTransferable, newLengthMM: number): void;
|
|
6449
|
+
private _setObjectToNeighborMeasurementLength;
|
|
6415
6450
|
setWallMeasurementLength(measurementId: number, length: number, wallDirection: EMSConstant, measurementKind?: 'edge2d' | 'sloping'): void;
|
|
6416
6451
|
setMeasurementLineLength(measurementId: number, length: number, wallDirection: string): void;
|
|
6417
6452
|
setNodeZCoordinate(nodeId: number, z: number): void;
|
|
@@ -6540,7 +6575,7 @@ export declare class PlanObjectViewModel extends PlanElementViewModel {
|
|
|
6540
6575
|
clear(): void;
|
|
6541
6576
|
getPlanObject(): PlanObject;
|
|
6542
6577
|
getSize(): Vector3;
|
|
6543
|
-
getObjectMeasurements(zoomFactor: number, clientWidth: number, clientHeight: number): Nullable_2<ObjectMeasurements>;
|
|
6578
|
+
getObjectMeasurements(zoomFactor: number, clientWidth: number, clientHeight: number, otherObjects?: NeighboringObjectMeasurementInfo[]): Nullable_2<ObjectMeasurements>;
|
|
6544
6579
|
update(): void;
|
|
6545
6580
|
}
|
|
6546
6581
|
|
|
@@ -9823,7 +9858,7 @@ export declare class RoomleWebGPURenderer extends RoomleRenderer<WebGPURenderer>
|
|
|
9823
9858
|
private _initData;
|
|
9824
9859
|
constructor(creator: string, renderer: WebGPURenderer, enableSSGI: boolean, outlineColors?: OutlineColors, enableTraa?: boolean);
|
|
9825
9860
|
private enableDefaultRenderPasses;
|
|
9826
|
-
addGroundShadowLightAndFloor(scene:
|
|
9861
|
+
addGroundShadowLightAndFloor(scene: Scene_2): Promise<void>;
|
|
9827
9862
|
private addRenderPass;
|
|
9828
9863
|
clearCache(): void;
|
|
9829
9864
|
disableUiInteractionMode(): void;
|
|
@@ -9831,13 +9866,13 @@ export declare class RoomleWebGPURenderer extends RoomleRenderer<WebGPURenderer>
|
|
|
9831
9866
|
setCameraType(cameraType: Enumify_3<typeof CAMERA_TYPE>): void;
|
|
9832
9867
|
switchToConfigurator(): void;
|
|
9833
9868
|
switchToPlanner(renderMode: PlannerRenderMode): void;
|
|
9834
|
-
highlightObjects(selectedMeshes:
|
|
9835
|
-
render(scene:
|
|
9869
|
+
highlightObjects(selectedMeshes: Object3D_2[]): void;
|
|
9870
|
+
render(scene: Scene_2, camera: Camera_2): void;
|
|
9836
9871
|
private renderToFreezeTarget;
|
|
9837
9872
|
private updateCameraProjectionMatrix;
|
|
9838
9873
|
private assembleRenderPasses;
|
|
9839
9874
|
setCustomOutlineParameters(customOutlineParameters: OutlineCustomParameters): void;
|
|
9840
|
-
setGroundShadow(enabled: boolean, _scene:
|
|
9875
|
+
setGroundShadow(enabled: boolean, _scene: Scene_2): void;
|
|
9841
9876
|
private enableOutline;
|
|
9842
9877
|
private getOutlinePassOrUndefined;
|
|
9843
9878
|
private enableSsgiPass;
|
|
@@ -10152,6 +10187,7 @@ export declare interface SelectionPayload {
|
|
|
10152
10187
|
externalConfigurationType?: string;
|
|
10153
10188
|
objectComponent?: KernelPlanObjectComponent;
|
|
10154
10189
|
permissionToDelete?: number;
|
|
10190
|
+
isSelectionDeletable?: boolean;
|
|
10155
10191
|
}
|
|
10156
10192
|
|
|
10157
10193
|
export declare const SET_WALL_MATERIAL_TYPE: {
|
|
@@ -10369,8 +10405,8 @@ export declare const STEP_GROUPS: {
|
|
|
10369
10405
|
readonly methods: ["addMeasure"];
|
|
10370
10406
|
};
|
|
10371
10407
|
readonly parameterChange: {
|
|
10372
|
-
readonly finalize: "
|
|
10373
|
-
readonly
|
|
10408
|
+
readonly finalize: "immediate";
|
|
10409
|
+
readonly resumeFromCommitted: true;
|
|
10374
10410
|
readonly methods: ["applyKernelParameterChange"];
|
|
10375
10411
|
};
|
|
10376
10412
|
readonly addOrUpdateExternal: {
|
|
@@ -10536,6 +10572,8 @@ export declare class UndoRedoHandler {
|
|
|
10536
10572
|
private _disposed;
|
|
10537
10573
|
protected _handler: PlanInteractionHandler;
|
|
10538
10574
|
private _state;
|
|
10575
|
+
private _lastCommitted;
|
|
10576
|
+
private _sliderGestureActive;
|
|
10539
10577
|
private _pendingContinuations;
|
|
10540
10578
|
private _commitWhenSettled;
|
|
10541
10579
|
private _idleCommitTimer;
|
|
@@ -10546,6 +10584,8 @@ export declare class UndoRedoHandler {
|
|
|
10546
10584
|
get isDisposed(): boolean;
|
|
10547
10585
|
run<T>(methodName: InteractionMethodName, args: unknown[], apply: () => T): T;
|
|
10548
10586
|
commit(): void;
|
|
10587
|
+
beginSliderGesture(): void;
|
|
10588
|
+
endSliderGesture(): void;
|
|
10549
10589
|
clearHistory(): void;
|
|
10550
10590
|
private reset;
|
|
10551
10591
|
undo(): void;
|
package/lib/roomle-sdk.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-Dz8NmJP4.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
|
-
import { mt as s, vt as c } from "./threejs-utils-
|
|
4
|
-
import { F as l, G as u, J as d, K as f, M as p, N as m, P as h, S as g, W as _, b as v, ct as y, dt as b, j as x, k as S, lt as C, mt as w, q as T, t as E, u as D, ut as O, x as k, y as A, z as j } from "./roomle-sdk-
|
|
5
|
-
import { t as M } from "./configurator-
|
|
6
|
-
import { t as N } from "./planner-
|
|
7
|
-
import { n as P, t as F } from "./glb-viewer-
|
|
8
|
-
import { t as I } from "./api-
|
|
3
|
+
import { mt as s, vt as c } from "./threejs-utils-C9zED_Tu.mjs";
|
|
4
|
+
import { F as l, G as u, J as d, K as f, M as p, N as m, P as h, S as g, W as _, b as v, ct as y, dt as b, j as x, k as S, lt as C, mt as w, q as T, t as E, u as D, ut as O, x as k, y as A, z as j } from "./roomle-sdk-FrWkv2ZJ.mjs";
|
|
5
|
+
import { t as M } from "./configurator-Bl3B3C63.mjs";
|
|
6
|
+
import { t as N } from "./planner-CWJXj28p.mjs";
|
|
7
|
+
import { n as P, t as F } from "./glb-viewer-DxwekYzn.mjs";
|
|
8
|
+
import { t as I } from "./api-VdWgw-jg.mjs";
|
|
9
9
|
export { o as CONFIGURATION_TYPE, s as CORE_EDGE_TYPE, c as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, M as Configurator, x as FloorPlanElementViewModel, F as GlbViewer, j as HI_CONTEXT_ACTION, g as MeasurementLinePlanElementViewModel, A as PLAN_ELEMENT_CHANGE_TYPES, l as PlanElementViewModel, h as PlanObjectViewModel, N as Planner, y as RapiAccess, C as RapiInvalidIdError, O as RapiOfflineError, I as RoomDesignerApi, S as RoomleConfigurator, P as RoomleGLBViewer, w as RoomleLightSource, D as RoomlePlanner, E as RoomleSdk, m as StaticPlanObjectViewModel, p as WallPlanElementViewModel, _ as createExtObj, d as createExtObjId, b as getCatalogIdFromConfigurationHash, u as isExtObjId, f as isExternalObject, v as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, k as isSafari, T as removeExtObjIdPrefix };
|
|
@@ -2628,13 +2628,7 @@ var An = /* @__PURE__ */ new Se(), jn = /* @__PURE__ */ new d(), Mn = [
|
|
|
2628
2628
|
n.add(this.sliceCount, "value", 1, 4, 1).name("slice count").onChange(() => t()), n.add(this.stepCount, "value", 1, 32, 1).name("step count").onChange(() => t()), n.add(this.radius, "value", 1, 25).name("radius").onChange(() => t()), n.add(this.expFactor, "value", 1, 3).name("exp factor").onChange(() => t()), n.add(this.thickness, "value", .01, 10).name("thickness").onChange(() => t()), n.add(this.backfaceLighting, "value", 0, 1).name("backface lighting").onChange(() => t()), n.add(this.aoIntensity, "value", 0, 4).name("AO intensity").onChange(() => t()), n.add(this.giIntensity, "value", 0, 100).name("GI intensity").onChange(() => t()), n.add(this.useLinearThickness, "value").name("use linear thickness").onChange(() => t()), n.add(this.useScreenSpaceSampling, "value").name("use screen-space sampling").onChange(() => t());
|
|
2629
2629
|
}
|
|
2630
2630
|
assemble(e, t, n, r, i) {
|
|
2631
|
-
if (!(r instanceof l)) return t;
|
|
2632
|
-
e.setMRT(De({
|
|
2633
|
-
output: Le,
|
|
2634
|
-
diffuseColor: et,
|
|
2635
|
-
normal: Ie(Ke),
|
|
2636
|
-
velocity: He
|
|
2637
|
-
}));
|
|
2631
|
+
if (!(r instanceof l) || this.sliceCount.value === 0 || this.stepCount.value === 0) return t;
|
|
2638
2632
|
let a = e.getTextureNode("output"), o = e.getTextureNode("diffuseColor"), s = e.getTextureNode("depth"), c = e.getTextureNode("normal"), u = In(a, s, Et((e) => Ae(c.sample(e))), r);
|
|
2639
2633
|
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;
|
|
2640
2634
|
let d = u.getGINode(), f = u.getAONode(), p = F(nt(a.rgb.mul(f.r), o.rgb.mul(d.rgb)), a.a);
|
|
@@ -3025,6 +3019,12 @@ var Un = /* @__PURE__ */ Array.from({ length: 32 }, (e, t) => [Hn(t + 1, 2), Hn(
|
|
|
3025
3019
|
}
|
|
3026
3020
|
assembleRenderPasses(e, t) {
|
|
3027
3021
|
let n = Xe(e, t), r = n;
|
|
3022
|
+
n.setMRT(De({
|
|
3023
|
+
output: Le,
|
|
3024
|
+
diffuseColor: et,
|
|
3025
|
+
normal: Ie(Ke),
|
|
3026
|
+
velocity: He
|
|
3027
|
+
}));
|
|
3028
3028
|
for (let i of this.renderPasses.values()) r = i.assemble(n, r, e, t, this.debugMode);
|
|
3029
3029
|
return r;
|
|
3030
3030
|
}
|
|
@@ -3155,4 +3155,4 @@ de([ue, le("design:type", Object)], tr.prototype, "_domHelper", void 0), de([ue,
|
|
|
3155
3155
|
//#endregion
|
|
3156
3156
|
export { tr as RoomleWebGPURenderer };
|
|
3157
3157
|
|
|
3158
|
-
//# sourceMappingURL=roomle-webgpu-renderer-
|
|
3158
|
+
//# sourceMappingURL=roomle-webgpu-renderer-CNZiK43x.mjs.map
|