@roomle/web-sdk 4.3.0-alpha.1 → 4.3.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.
Files changed (58) hide show
  1. package/lib/ConfiguratorKernel.wasm +0 -0
  2. package/lib/RoomleCore.js +3 -3
  3. package/lib/RoomleCore.wasm +0 -0
  4. package/lib/RoomleToolsCore.wasm +0 -0
  5. package/lib/{api-C0UElaCW.mjs → api-C430uhWG.mjs} +2 -2
  6. package/lib/{api-C0UElaCW.mjs.map → api-C430uhWG.mjs.map} +1 -1
  7. package/lib/asset-loader.worker-eqHzNAwa.mjs.map +1 -1
  8. package/lib/budgeteer.sw-BUMElkO1.mjs.map +1 -1
  9. package/lib/{component-dimensioning--4sX2AgY.mjs → component-dimensioning-BXN285kw.mjs} +2 -2
  10. package/lib/{component-dimensioning--4sX2AgY.mjs.map → component-dimensioning-BXN285kw.mjs.map} +1 -1
  11. package/lib/{component-raycast-helper-CskJedpv.mjs → component-raycast-helper-CADFRMLS.mjs} +2 -2
  12. package/lib/{component-raycast-helper-CskJedpv.mjs.map → component-raycast-helper-CADFRMLS.mjs.map} +1 -1
  13. package/lib/configurator-9ICb3RBz.mjs +2 -0
  14. package/lib/{configurator-vxRFxJ-B.mjs → configurator-CUiTTJmW.mjs} +4 -4
  15. package/lib/{configurator-vxRFxJ-B.mjs.map → configurator-CUiTTJmW.mjs.map} +1 -1
  16. package/lib/{glb-viewer-B-r0E1aa.mjs → glb-viewer-DB5c3Qk5.mjs} +4 -4
  17. package/lib/{glb-viewer-B-r0E1aa.mjs.map → glb-viewer-DB5c3Qk5.mjs.map} +1 -1
  18. package/lib/glb-viewer-_gIYHXT9.mjs +2 -0
  19. package/lib/{highlight-coordinator-CR5rcFh_.mjs → highlight-coordinator-RCfVwPHC.mjs} +2 -2
  20. package/lib/{highlight-coordinator-CR5rcFh_.mjs.map → highlight-coordinator-RCfVwPHC.mjs.map} +1 -1
  21. package/lib/{homag-intelligence-DHTCBB64.mjs → homag-intelligence-8eBT714O.mjs} +3 -3
  22. package/lib/{homag-intelligence-DHTCBB64.mjs.map → homag-intelligence-8eBT714O.mjs.map} +1 -1
  23. package/lib/{material-viewer-ZlNDhA8D.mjs → material-viewer-CfZwcbei.mjs} +4 -4
  24. package/lib/{material-viewer-ZlNDhA8D.mjs.map → material-viewer-CfZwcbei.mjs.map} +1 -1
  25. package/lib/{packages-C9J0u-cc.mjs → packages-0GadOkxt.mjs} +5 -5
  26. package/lib/{packages-C9J0u-cc.mjs.map → packages-0GadOkxt.mjs.map} +1 -1
  27. package/lib/{planner-ClY-VUWt.mjs → planner-CyQKj8Ok.mjs} +3 -3
  28. package/lib/{planner-ClY-VUWt.mjs.map → planner-CyQKj8Ok.mjs.map} +1 -1
  29. package/lib/planner-D63FNjtX.mjs +2 -0
  30. package/lib/roomle-headless.d.ts +42 -11
  31. package/lib/roomle-headless.js +8 -8
  32. package/lib/{roomle-sdk-BpCPIwDm.mjs → roomle-sdk-CpgzRTKP.mjs} +2627 -2626
  33. package/lib/{roomle-sdk-BpCPIwDm.mjs.map → roomle-sdk-CpgzRTKP.mjs.map} +1 -1
  34. package/lib/roomle-sdk.d.ts +42 -11
  35. package/lib/roomle-sdk.js +7 -7
  36. package/lib/{scene-renderer-CLkhNnnv.mjs → scene-renderer-CSBoi_8w.mjs} +2 -2
  37. package/lib/{scene-renderer-CLkhNnnv.mjs.map → scene-renderer-CSBoi_8w.mjs.map} +1 -1
  38. package/lib/{script-loader-9GrUxzSB.mjs → script-loader-BmScoq7Y.mjs} +2 -2
  39. package/lib/{script-loader-9GrUxzSB.mjs.map → script-loader-BmScoq7Y.mjs.map} +1 -1
  40. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  41. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +34 -8
  42. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js +5 -1
  43. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
  44. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  45. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +3 -3
  46. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  47. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  48. package/lib/{stats-helper-D9l8soWd.mjs → stats-helper-P4jYV8as.mjs} +2 -2
  49. package/lib/{stats-helper-D9l8soWd.mjs.map → stats-helper-P4jYV8as.mjs.map} +1 -1
  50. package/lib/{threejs-utils-CKV1QNU9.mjs → threejs-utils-DKJ0uer7.mjs} +89 -86
  51. package/lib/threejs-utils-DKJ0uer7.mjs.map +1 -0
  52. package/lib/{tools-core-CKaB3WsP.mjs → tools-core-CAEfSB8I.mjs} +3 -3
  53. package/lib/{tools-core-CKaB3WsP.mjs.map → tools-core-CAEfSB8I.mjs.map} +1 -1
  54. package/package.json +2 -2
  55. package/lib/configurator-CjFo24FH.mjs +0 -2
  56. package/lib/glb-viewer-BnJkmakv.mjs +0 -2
  57. package/lib/planner-C-5Mg-Lv.mjs +0 -2
  58. package/lib/threejs-utils-CKV1QNU9.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
- import "./roomle-sdk-BpCPIwDm.mjs";
2
- import "./configurator-vxRFxJ-B.mjs";
3
- import "./planner-ClY-VUWt.mjs";
4
- import "./glb-viewer-B-r0E1aa.mjs";
1
+ import "./roomle-sdk-CpgzRTKP.mjs";
2
+ import "./configurator-CUiTTJmW.mjs";
3
+ import "./planner-CyQKj8Ok.mjs";
4
+ import "./glb-viewer-DB5c3Qk5.mjs";
5
5
  //#region ../common/src/utils/id-inferrer.ts
6
6
  var e = (e) => e.split(":").length - 1 == 1, t = (e) => e.split(":").length - 1 <= 0, n = (e) => e ? e.startsWith("component@") : !1, r = (e) => e.startsWith("{") && e.endsWith("}"), i = (e) => e.startsWith("ps_");
7
7
  //#endregion
8
8
  export { i as a, e as i, r as n, t as r, n as t };
9
9
 
10
- //# sourceMappingURL=packages-C9J0u-cc.mjs.map
10
+ //# sourceMappingURL=packages-0GadOkxt.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"packages-C9J0u-cc.mjs","names":[],"sources":["../../../common/src/utils/id-inferrer.ts"],"sourcesContent":["import type { RapiId, RapiPlanSnapshotId } from '@roomle/web-sdk';\n\nexport const isIdAnItem = (id: string) => id.split(':').length - 1 === 1;\n\nexport const isIdAPlan = (id: string) => id.split(':').length - 1 <= 0;\n\nexport const isIdAComponent = (id: string) =>\n id ? id.startsWith('component@') : false;\n\nexport const isIdAConfigurationString = (id: string) =>\n id.startsWith('{') && id.endsWith('}');\n\nexport const isPlanSnapshotId = (\n id: string | RapiId,\n): id is RapiPlanSnapshotId => id.startsWith('ps_');\n"],"mappings":";;;;;AAEA,IAAa,KAAc,MAAe,EAAG,MAAM,IAAI,CAAC,SAAS,KAAM,GAE1D,KAAa,MAAe,EAAG,MAAM,IAAI,CAAC,SAAS,KAAK,GAExD,KAAkB,MAC7B,IAAK,EAAG,WAAW,aAAa,GAAG,IAExB,KAA4B,MACvC,EAAG,WAAW,IAAI,IAAI,EAAG,SAAS,IAAI,EAE3B,KACX,MAC6B,EAAG,WAAW,MAAM"}
1
+ {"version":3,"file":"packages-0GadOkxt.mjs","names":[],"sources":["../../../common/src/utils/id-inferrer.ts"],"sourcesContent":["import type { RapiId, RapiPlanSnapshotId } from '@roomle/web-sdk';\n\nexport const isIdAnItem = (id: string) => id.split(':').length - 1 === 1;\n\nexport const isIdAPlan = (id: string) => id.split(':').length - 1 <= 0;\n\nexport const isIdAComponent = (id: string) =>\n id ? id.startsWith('component@') : false;\n\nexport const isIdAConfigurationString = (id: string) =>\n id.startsWith('{') && id.endsWith('}');\n\nexport const isPlanSnapshotId = (\n id: string | RapiId,\n): id is RapiPlanSnapshotId => id.startsWith('ps_');\n"],"mappings":";;;;;AAEA,IAAa,KAAc,MAAe,EAAG,MAAM,IAAI,CAAC,SAAS,KAAM,GAE1D,KAAa,MAAe,EAAG,MAAM,IAAI,CAAC,SAAS,KAAK,GAExD,KAAkB,MAC7B,IAAK,EAAG,WAAW,aAAa,GAAG,IAExB,KAA4B,MACvC,EAAG,WAAW,IAAI,IAAI,EAAG,SAAS,IAAI,EAE3B,KACX,MAC6B,EAAG,WAAW,MAAM"}
@@ -1,5 +1,5 @@
1
- import { A as e, C as t, H as n, I as r, V as i, Z as a, c as o, ct as s, ft as c, n as l, ot as u, st as d, tt as f, u as p, w as m } from "./roomle-sdk-BpCPIwDm.mjs";
2
- import { t as h } from "./script-loader-9GrUxzSB.mjs";
1
+ import { A as e, C as t, H as n, I as r, V as i, Z as a, c as o, ct as s, ft as c, n as l, ot as u, st as d, tt as f, u as p, w as m } from "./roomle-sdk-CpgzRTKP.mjs";
2
+ import { t as h } from "./script-loader-BmScoq7Y.mjs";
3
3
  //#region packages/planner-core/src/input/planner-input-manager.ts
4
4
  var g = class extends r {
5
5
  _canDrag(e) {
@@ -41,4 +41,4 @@ var g = class extends r {
41
41
  //#endregion
42
42
  export { v as t };
43
43
 
44
- //# sourceMappingURL=planner-ClY-VUWt.mjs.map
44
+ //# sourceMappingURL=planner-CyQKj8Ok.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"planner-ClY-VUWt.mjs","names":[],"sources":["../../packages/planner-core/src/input/planner-input-manager.ts","../../packages/planner-core/src/utils/injectables.ts","../../packages/planner-core/src/planner.ts"],"sourcesContent":["import type { INPUT_EVENT_TYPE } from '../../../common-core/src/input/input-manager';\nimport InputManager from '../../../common-core/src/input/input-manager';\n\nexport default class PlannerInputManager extends InputManager {\n protected _canDrag(_type: INPUT_EVENT_TYPE): boolean {\n return true;\n }\n}\n","import ScriptLoader from '../../../common-core/src/script-loader';\nimport {\n DependencyInjectionAssignment,\n DI_TYPE,\n} from '../../../common-core/src/di/container';\nimport Logger from '../../../common-core/src/logger';\nimport { default as PlannerMeshGenerator } from '../webgl/planner-mesh-generator';\nimport { RapiAccess } from '../../../common-core/src/rapi-access';\nimport PlannerInputManager from '../input/planner-input-manager';\nimport PlannerSelectionHandler from './planner-selection-handler';\nimport GlobalInitData from '../../../common-core/src/utils/global-init-data';\nimport ConfiguratorViewModel from '../../../common-core/src/view-model/configurator-view-model';\n\nexport const INJECTABLES: DependencyInjectionAssignment[] = [\n new DependencyInjectionAssignment('script-loader', ScriptLoader),\n new DependencyInjectionAssignment(\n 'planner-input-manager',\n PlannerInputManager,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('logger', Logger),\n new DependencyInjectionAssignment(\n 'planner-mesh-generator',\n PlannerMeshGenerator,\n ),\n new DependencyInjectionAssignment(\n 'configurator-view-model',\n ConfiguratorViewModel,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('rapi-access', RapiAccess),\n new DependencyInjectionAssignment('global-init-data', GlobalInitData),\n new DependencyInjectionAssignment(\n 'planner-selection-handler',\n PlannerSelectionHandler,\n ),\n];\n","import './utils/global-definitions';\nimport { Main, BASE_CONTEXT } from '../../common-core/src/main';\nimport { RoomlePlanner } from './roomle-planner';\nimport RoomleDependencyInjection from '../../common-core/src/di/roomle-dependency-injection';\nimport { INJECTABLES } from './utils/injectables';\nimport type PlannerKernelAccess from './services/planner-kernel-access';\nimport type Logger from '../../common-core/src/logger';\nimport { KERNEL_TYPE } from '../../common-core/src/services/common-kernel-access';\nimport type { PluginName } from '../../configurator-core/src/utils/plugin-types';\nimport type InitData from '../../common-core/src/utils/init-data';\nimport { isInIframe } from '../../common-core/src/utils/rapi-utils';\n\nexport class Planner<\n P extends readonly PluginName[] = readonly [],\n> extends Main {\n private _planner: RoomlePlanner<P>;\n private _activePlugins: P;\n\n constructor(creator?: string, activePlugins?: P) {\n super(creator);\n this._activePlugins = (activePlugins || []) as P;\n }\n protected setupGlobals(): void {\n //globals are initialized in bootFinished()\n }\n\n protected setupDependencies(): void {\n RoomleDependencyInjection.setup(INJECTABLES);\n this.lookup<Logger>('logger', this._context);\n // instantiate kernel acccess\n // instantiate pka\n // set pka on kernel access\n const plannerKernelAccess = this.lookup<PlannerKernelAccess>(\n 'planner-kernel-access',\n this._context,\n );\n plannerKernelAccess.init(KERNEL_TYPE.PLANNER);\n }\n\n protected cleanUpGlobals(): void {\n throw new Error('Method not implemented.');\n }\n\n protected cleanUpDependencies(): void {\n throw new Error('Method not implemented.');\n }\n\n protected async bootFinished(): Promise<void> {\n this._planner = new RoomlePlanner<P>(this._context, this._activePlugins);\n\n this._planner.getMain = () => {\n return this;\n };\n\n if (!window.RoomlePlanner) {\n if (this._activePlugins.length === 0) {\n // cast to unknown because we know that the planner is a RoomlePlanner\n window.RoomlePlanner = this._planner as unknown as RoomlePlanner;\n } else {\n window.RoomlePlanner = this._planner as RoomlePlanner<\n readonly PluginName[]\n >;\n }\n }\n\n const initData = this.lookup<InitData>('init-data', this._context);\n\n if (initData?.hi && isInIframe()) {\n await this._planner.setupHomagIntelligence();\n }\n }\n\n public getApi(): RoomlePlanner<P> {\n return this._planner;\n }\n\n protected getContextName(): string {\n return BASE_CONTEXT.PLANNER;\n }\n}\n"],"mappings":";;;AAGA,IAAqB,IAArB,cAAiD,EAAa;CAC5D,SAAmB,GAAkC;AACnD,SAAO;;GCQE,IAA+C;CAC1D,IAAI,EAA8B,iBAAiB,EAAa;CAChE,IAAI,EACF,yBACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,UAAU,EAAO;CACnD,IAAI,EACF,0BACA,EACD;CACD,IAAI,EACF,2BACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,eAAe,EAAW;CAC5D,IAAI,EAA8B,oBAAoB,EAAe;CACrE,IAAI,EACF,6BACA,EACD;CACF,ECxBY,IAAb,cAEU,EAAK;CAIb,YAAY,GAAkB,GAAmB;AAE/C,EADA,MAAM,EAAQ,EACd,KAAK,iBAAkB,KAAiB,EAAE;;CAE5C,eAA+B;CAI/B,oBAAoC;AAMN,EAL5B,EAA0B,MAAM,EAAY,EAC5C,KAAK,OAAe,UAAU,KAAK,SAAS,EAIhB,KAAK,OAC/B,yBACA,KAAK,SACN,CACmB,KAAK,EAAY,QAAQ;;CAG/C,iBAAiC;AAC/B,QAAU,MAAM,0BAA0B;;CAG5C,sBAAsC;AACpC,QAAU,MAAM,0BAA0B;;CAG5C,MAAgB,eAA8B;AAoB5C,EAnBA,KAAK,WAAW,IAAI,EAAiB,KAAK,UAAU,KAAK,eAAe,EAExE,KAAK,SAAS,gBACL,MAGJ,OAAO,kBACN,KAAK,eAAe,QAEtB,OAAO,gBAAgB,KAAK,WAQf,KAAK,OAAiB,aAAa,KAAK,SAAS,EAEpD,MAAM,GAAY,IAC9B,MAAM,KAAK,SAAS,wBAAwB;;CAIhD,SAAkC;AAChC,SAAO,KAAK;;CAGd,iBAAmC;AACjC,SAAO,EAAa"}
1
+ {"version":3,"file":"planner-CyQKj8Ok.mjs","names":[],"sources":["../../packages/planner-core/src/input/planner-input-manager.ts","../../packages/planner-core/src/utils/injectables.ts","../../packages/planner-core/src/planner.ts"],"sourcesContent":["import type { INPUT_EVENT_TYPE } from '../../../common-core/src/input/input-manager';\nimport InputManager from '../../../common-core/src/input/input-manager';\n\nexport default class PlannerInputManager extends InputManager {\n protected _canDrag(_type: INPUT_EVENT_TYPE): boolean {\n return true;\n }\n}\n","import ScriptLoader from '../../../common-core/src/script-loader';\nimport {\n DependencyInjectionAssignment,\n DI_TYPE,\n} from '../../../common-core/src/di/container';\nimport Logger from '../../../common-core/src/logger';\nimport { default as PlannerMeshGenerator } from '../webgl/planner-mesh-generator';\nimport { RapiAccess } from '../../../common-core/src/rapi-access';\nimport PlannerInputManager from '../input/planner-input-manager';\nimport PlannerSelectionHandler from './planner-selection-handler';\nimport GlobalInitData from '../../../common-core/src/utils/global-init-data';\nimport ConfiguratorViewModel from '../../../common-core/src/view-model/configurator-view-model';\n\nexport const INJECTABLES: DependencyInjectionAssignment[] = [\n new DependencyInjectionAssignment('script-loader', ScriptLoader),\n new DependencyInjectionAssignment(\n 'planner-input-manager',\n PlannerInputManager,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('logger', Logger),\n new DependencyInjectionAssignment(\n 'planner-mesh-generator',\n PlannerMeshGenerator,\n ),\n new DependencyInjectionAssignment(\n 'configurator-view-model',\n ConfiguratorViewModel,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('rapi-access', RapiAccess),\n new DependencyInjectionAssignment('global-init-data', GlobalInitData),\n new DependencyInjectionAssignment(\n 'planner-selection-handler',\n PlannerSelectionHandler,\n ),\n];\n","import './utils/global-definitions';\nimport { Main, BASE_CONTEXT } from '../../common-core/src/main';\nimport { RoomlePlanner } from './roomle-planner';\nimport RoomleDependencyInjection from '../../common-core/src/di/roomle-dependency-injection';\nimport { INJECTABLES } from './utils/injectables';\nimport type PlannerKernelAccess from './services/planner-kernel-access';\nimport type Logger from '../../common-core/src/logger';\nimport { KERNEL_TYPE } from '../../common-core/src/services/common-kernel-access';\nimport type { PluginName } from '../../configurator-core/src/utils/plugin-types';\nimport type InitData from '../../common-core/src/utils/init-data';\nimport { isInIframe } from '../../common-core/src/utils/rapi-utils';\n\nexport class Planner<\n P extends readonly PluginName[] = readonly [],\n> extends Main {\n private _planner: RoomlePlanner<P>;\n private _activePlugins: P;\n\n constructor(creator?: string, activePlugins?: P) {\n super(creator);\n this._activePlugins = (activePlugins || []) as P;\n }\n protected setupGlobals(): void {\n //globals are initialized in bootFinished()\n }\n\n protected setupDependencies(): void {\n RoomleDependencyInjection.setup(INJECTABLES);\n this.lookup<Logger>('logger', this._context);\n // instantiate kernel acccess\n // instantiate pka\n // set pka on kernel access\n const plannerKernelAccess = this.lookup<PlannerKernelAccess>(\n 'planner-kernel-access',\n this._context,\n );\n plannerKernelAccess.init(KERNEL_TYPE.PLANNER);\n }\n\n protected cleanUpGlobals(): void {\n throw new Error('Method not implemented.');\n }\n\n protected cleanUpDependencies(): void {\n throw new Error('Method not implemented.');\n }\n\n protected async bootFinished(): Promise<void> {\n this._planner = new RoomlePlanner<P>(this._context, this._activePlugins);\n\n this._planner.getMain = () => {\n return this;\n };\n\n if (!window.RoomlePlanner) {\n if (this._activePlugins.length === 0) {\n // cast to unknown because we know that the planner is a RoomlePlanner\n window.RoomlePlanner = this._planner as unknown as RoomlePlanner;\n } else {\n window.RoomlePlanner = this._planner as RoomlePlanner<\n readonly PluginName[]\n >;\n }\n }\n\n const initData = this.lookup<InitData>('init-data', this._context);\n\n if (initData?.hi && isInIframe()) {\n await this._planner.setupHomagIntelligence();\n }\n }\n\n public getApi(): RoomlePlanner<P> {\n return this._planner;\n }\n\n protected getContextName(): string {\n return BASE_CONTEXT.PLANNER;\n }\n}\n"],"mappings":";;;AAGA,IAAqB,IAArB,cAAiD,EAAa;CAC5D,SAAmB,GAAkC;AACnD,SAAO;;GCQE,IAA+C;CAC1D,IAAI,EAA8B,iBAAiB,EAAa;CAChE,IAAI,EACF,yBACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,UAAU,EAAO;CACnD,IAAI,EACF,0BACA,EACD;CACD,IAAI,EACF,2BACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,eAAe,EAAW;CAC5D,IAAI,EAA8B,oBAAoB,EAAe;CACrE,IAAI,EACF,6BACA,EACD;CACF,ECxBY,IAAb,cAEU,EAAK;CAIb,YAAY,GAAkB,GAAmB;AAE/C,EADA,MAAM,EAAQ,EACd,KAAK,iBAAkB,KAAiB,EAAE;;CAE5C,eAA+B;CAI/B,oBAAoC;AAMN,EAL5B,EAA0B,MAAM,EAAY,EAC5C,KAAK,OAAe,UAAU,KAAK,SAAS,EAIhB,KAAK,OAC/B,yBACA,KAAK,SACN,CACmB,KAAK,EAAY,QAAQ;;CAG/C,iBAAiC;AAC/B,QAAU,MAAM,0BAA0B;;CAG5C,sBAAsC;AACpC,QAAU,MAAM,0BAA0B;;CAG5C,MAAgB,eAA8B;AAoB5C,EAnBA,KAAK,WAAW,IAAI,EAAiB,KAAK,UAAU,KAAK,eAAe,EAExE,KAAK,SAAS,gBACL,MAGJ,OAAO,kBACN,KAAK,eAAe,QAEtB,OAAO,gBAAgB,KAAK,WAQf,KAAK,OAAiB,aAAa,KAAK,SAAS,EAEpD,MAAM,GAAY,IAC9B,MAAM,KAAK,SAAS,wBAAwB;;CAIhD,SAAkC;AAChC,SAAO,KAAK;;CAGd,iBAAmC;AACjC,SAAO,EAAa"}
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./planner-CyQKj8Ok.mjs";
2
+ export { e as Planner };
@@ -2286,6 +2286,11 @@ export declare const CORE_PLAN_ROOM_GEOMETRY_MODE: {
2286
2286
  readonly PLAN: 2;
2287
2287
  };
2288
2288
 
2289
+ export declare const CORE_PLAN_VIEW_TYPE: {
2290
+ readonly FLOOR: 0;
2291
+ readonly ELEVATION: 1;
2292
+ };
2293
+
2289
2294
  export declare const CORE_SNAP_STATE: {
2290
2295
  readonly DEFAULT: 0;
2291
2296
  readonly DOCKING: 1;
@@ -2640,6 +2645,11 @@ export declare interface DynamicLightSettingSource {
2640
2645
  ls?: PreDefinedLightSettings;
2641
2646
  }
2642
2647
 
2648
+ export declare interface EdgeDeflection {
2649
+ connectionPosition: KernelVector3f;
2650
+ deflectionAngleInRadians: number;
2651
+ }
2652
+
2643
2653
  export declare interface EdgeType {
2644
2654
  value: Enumify_3<typeof CORE_EDGE_TYPE>;
2645
2655
  }
@@ -2652,6 +2662,7 @@ export declare interface Element_2 {
2652
2662
 
2653
2663
  export declare interface ElevationPlan {
2654
2664
  planSvg: string;
2665
+ viewType?: PlanViewType;
2655
2666
  }
2656
2667
 
2657
2668
  export declare interface ElevationPlans {
@@ -2669,12 +2680,6 @@ export declare interface ElevationProfilePoint {
2669
2680
  slopeAngleInRadians: number;
2670
2681
  }
2671
2682
 
2672
- export declare interface ElevationView {
2673
- lineOfSight: KernelVector3f;
2674
- objects: PlanObject[];
2675
- profile: ElevationProfile;
2676
- }
2677
-
2678
2683
  export declare class EmsArray<T> {
2679
2684
  get(index: number): T;
2680
2685
  push_back(element: T): void;
@@ -3412,6 +3417,18 @@ export declare class FloorMaterial extends BaseMaterial {
3412
3417
  rotation(): KernelVector3f;
3413
3418
  }
3414
3419
 
3420
+ export declare interface FloorPlanEdge {
3421
+ id: number;
3422
+ start: KernelVector3f;
3423
+ end: KernelVector3f;
3424
+ startDeflection?: EdgeDeflection | null;
3425
+ endDeflection?: EdgeDeflection | null;
3426
+ }
3427
+
3428
+ export declare interface FloorPlanEdges {
3429
+ edges: FloorPlanEdge[];
3430
+ }
3431
+
3415
3432
  export declare class FloorPlanElementViewModel extends PlanElementViewModel {
3416
3433
  constructor(planObject: PlanObject);
3417
3434
  addMesh(mesh: Mesh): void;
@@ -5930,7 +5947,7 @@ export declare interface PlanModelViewHelper_2 {
5930
5947
  getGroupedObjects(anObject: PlanObject): KernelPlanObject[];
5931
5948
  calculateLightSourceDistribution(plan: Plan_2, lightSourceConfiguration: LightSourceConfiguration): RoomLightSourceDistributionArray;
5932
5949
  getObjectSnapInformation(anObject: PlanObject, debugHelpLines: boolean): ObjectSnapInformation;
5933
- getElevationViews(plan: Plan_2): ElevationView[];
5950
+ getPlanViews(plan: Plan_2): PlanView[];
5934
5951
  }
5935
5952
 
5936
5953
  export declare class Planner<P extends readonly PluginName[] = readonly []> extends Main {
@@ -6834,6 +6851,15 @@ export declare abstract class PlanText extends PlanElement {
6834
6851
  getText(): string;
6835
6852
  }
6836
6853
 
6854
+ export declare interface PlanView {
6855
+ id: number;
6856
+ viewType: PlanViewType;
6857
+ lineOfSight: KernelVector3f;
6858
+ objects: PlanObject[];
6859
+ profile: ElevationProfile;
6860
+ floorPlanEdges: FloorPlanEdges;
6861
+ }
6862
+
6837
6863
  export declare class PlanViewModel extends ConfiguratorViewModel implements PlannerKernelCallbackI {
6838
6864
  private _plannerMeshGenerator;
6839
6865
  private _roomlePlannerUiCallback;
@@ -6987,6 +7013,10 @@ export declare class PlanViewModel extends ConfiguratorViewModel implements Plan
6987
7013
  externalObjectRemoveSubModule(_groupId: string, _subModuleId: string): void;
6988
7014
  }
6989
7015
 
7016
+ export declare interface PlanViewType {
7017
+ value: Enumify_3<typeof CORE_PLAN_VIEW_TYPE>;
7018
+ }
7019
+
6990
7020
  export declare interface PluginConfigMap {
6991
7021
  'external-objects': RapiConfigurationEnhanced | ExternalConfiguration;
6992
7022
  }
@@ -9297,15 +9327,16 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
9297
9327
  private _createPlanFromElement;
9298
9328
  loadPlanXml(xml: string, options?: InitDataDefinition & GlobalInitDataDefinition): Promise<void>;
9299
9329
  /**
9300
- * Creates 2D elevation plans of the current plan, one per elevation view.
9301
- * Each plan is returned as raw SVG markup (wireframe rendering with
9330
+ * Creates the 2D plans of the current plan: the floor plan of the whole
9331
+ * construction first, then one elevation plan per construction edge. Each
9332
+ * plan is returned as raw SVG markup (wireframe rendering with
9302
9333
  * dimensionings).
9303
9334
  *
9304
- * @returns the elevation plans, each containing its SVG markup
9335
+ * @returns the plans, each containing its SVG markup and its view type
9305
9336
  */
9306
9337
  create2DElevationPlan(): Promise<ElevationPlans>;
9307
9338
  /**
9308
- * Creates the 2D elevation plans of the current plan (see
9339
+ * Creates the 2D plans of the current plan (see
9309
9340
  * {@link create2DElevationPlan}) and downloads each plan as an SVG file.
9310
9341
  */
9311
9342
  download2DElevationPlan(): Promise<void>;
@@ -1,16 +1,16 @@
1
- import { a as e, i as t, n, r, t as i } from "./packages-C9J0u-cc.mjs";
1
+ import { a as e, i as t, n, r, t as i } from "./packages-0GadOkxt.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-CKV1QNU9.mjs";
3
+ import { mt as s, vt as c } from "./threejs-utils-DKJ0uer7.mjs";
4
4
  import { Si as l, m as u, nt as d } from "./three.core-0KaTx8dm.mjs";
5
5
  import { i as f } from "./decorate-CjaqqbUP.mjs";
6
6
  import { V as p } from "./common-utils-CyQUubmw.mjs";
7
- import { A as m, F as h, G as ee, J as te, K as ne, M as re, N as ie, P as ae, S as oe, V as se, W as ce, a as g, at as le, b as ue, ct as de, dt as fe, i as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, o as _, ot as v, q as y, r as b, s as x, st as S, t as C, u as w, ut as T, x as E, y as D, z as O } from "./roomle-sdk-BpCPIwDm.mjs";
7
+ import { A as m, F as h, G as ee, J as te, K as ne, M as re, N as ie, P as ae, S as oe, V as se, W as ce, a as g, at as le, b as ue, ct as de, dt as fe, i as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, o as _, ot as v, q as y, r as b, s as x, st as S, t as C, u as w, ut as T, x as E, y as D, z as O } from "./roomle-sdk-CpgzRTKP.mjs";
8
8
  import { n as k } from "./roomle-renderer-FUqNfNIf.mjs";
9
- import { n as A } from "./script-loader-9GrUxzSB.mjs";
10
- import { t as j } from "./configurator-vxRFxJ-B.mjs";
11
- import { t as M } from "./planner-ClY-VUWt.mjs";
12
- import { n as N, t as P } from "./glb-viewer-B-r0E1aa.mjs";
13
- import { t as be } from "./api-C0UElaCW.mjs";
9
+ import { n as A } from "./script-loader-BmScoq7Y.mjs";
10
+ import { t as j } from "./configurator-CUiTTJmW.mjs";
11
+ import { t as M } from "./planner-CyQKj8Ok.mjs";
12
+ import { n as N, t as P } from "./glb-viewer-DB5c3Qk5.mjs";
13
+ import { t as be } from "./api-C430uhWG.mjs";
14
14
  import { t as xe } from "./roomle-headless-setup-DbO_rLjK.mjs";
15
15
  import { createRequire as Se } from "module";
16
16
  //#region packages/headless-core/src/headless-tween-stub.ts