@roomle/embedding-lib 5.26.0-alpha.3 → 5.26.0-alpha.5
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/docs/md/web/embedding/CHANGELOG.md +4 -3
- package/{drag-in-DuufO5eB.mjs → drag-in-BEjBh6zz.mjs} +2 -2
- package/{drag-in-DTA1FCDc.mjs → drag-in-BmoiEqfA.mjs} +1 -1
- package/{from-custom-view-BdnViEhf.mjs → from-custom-view-CobBUshK.mjs} +3 -3
- package/from-custom-view-fYea37BE.mjs +1 -0
- package/{from-website-CktA6Icy.mjs → from-website-C2cG-X9g.mjs} +1 -1
- package/{from-website-CcDHgCCy.mjs → from-website-CDEUbvDF.mjs} +1 -1
- package/package.json +1 -1
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/nobilia-api-options.d.ts +45 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/state.d.ts +11 -5
- package/packages/embedding-lib/src/plugins/strategy/from-custom-view.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/mock/mock-draco-loader.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/mock/mock-idb-manager.d.ts +2 -2
- package/packages/web-sdk/packages/common-core/mock/mock-image-renderer.d.ts +2 -2
- package/packages/web-sdk/packages/common-core/mock/mock-input-event-dispatcher.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/configurator-kernel-access.d.ts +2 -2
- package/packages/web-sdk/packages/common-core/src/main.d.ts +1 -2
- package/packages/web-sdk/packages/common-core/src/rapi-access.d.ts +6 -5
- package/packages/web-sdk/packages/common-core/src/services/hdr-environment-loader.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/utils/enumerable.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/utils/threejs-utils.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/utils/ui-callback.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/view-model/configurator-view-model.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/ao-pass.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/render-pass-manager.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/webgl/scene-manager.d.ts +1 -1
- package/packages/web-sdk/packages/configurator-core/src/roomle-configurator.d.ts +10 -10
- package/packages/web-sdk/packages/homag-intelligence/src/emulator.d.ts +2 -2
- package/packages/web-sdk/packages/homag-intelligence/src/model/oc-scripts-domain.model.d.ts +3 -3
- package/packages/web-sdk/packages/homag-intelligence/src/orders.d.ts +1 -1
- package/packages/web-sdk/packages/material-viewer/src/roomle-material-viewer.d.ts +1 -1
- package/packages/web-sdk/packages/planner-core/src/roomle-planner.d.ts +2 -2
- package/packages/web-sdk/packages/planner-core/src/services/planner-kernel-access.d.ts +4 -4
- package/packages/web-sdk/packages/planner-core/src/webgl/planner-scene-manager.d.ts +2 -2
- package/packages/web-sdk/packages/typings/rapi-types.d.ts +10 -10
- package/roomle-embedding-lib.es.js +1 -1
- package/roomle-embedding-lib.es.min.js +1 -1
- package/roomle-embedding-lib.umd.js +1 -1
- package/roomle-embedding-lib.umd.min.js +1 -1
- package/src/common/components/overlays/part-list/partlist-setup.d.ts +2 -1
- package/src/common/utils/helper.d.ts +2 -2
- package/src/common/utils/ui-actions.d.ts +2 -1
- package/src/configurator/business-logic/sdk-connector-configurator.d.ts +2 -1
- package/src/configurator/business-logic/sdk-connector.d.ts +2 -2
- package/src/configurator/components/grid-view/-utils/CollapsedView.vue.d.ts +14 -14
- package/src/configurator/embedding/exposed-api.d.ts +1 -1
- package/src/configurator/embedding/exposed-callbacks.d.ts +1 -1
- package/src/planner/business-logic/sdk-connector-planner.d.ts +2 -2
- package/src/planner/components/overlays/RoomSidebar.vue.d.ts +2 -0
- package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +2 -0
- package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +2 -0
- package/from-custom-view-DIYHP31u.mjs +0 -1
- package/packages/web-sdk/packages/configurator-core/src/utils/test-helpers/async-test-helper.d.ts +0 -1
- package/src/common/store/common-ui-state.d.ts +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
## [5.26.0-alpha.
|
|
1
|
+
## [5.26.0-alpha.5](https://github.com/roomle-dev/roomle-ui/compare/embedding-lib-v5.26.0-alpha.4...embedding-lib-v5.26.0-alpha.5) (2025-08-20)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* re-add semantic-release package ([2fa5967](https://github.com/roomle-dev/roomle-ui/commit/2fa5967bb896ee1f194d0ac9d65fe2eef9fbae62))
|
|
7
|
+
* remove duplicate deps ([c5bdec6](https://github.com/roomle-dev/roomle-ui/commit/c5bdec628e610dd1365e6ca73216a4c086127280))
|
|
@@ -41,7 +41,7 @@ class E extends D {
|
|
|
41
41
|
async init() {
|
|
42
42
|
if (await super.init(), this._mode === "website")
|
|
43
43
|
try {
|
|
44
|
-
const { DragInFromWebsiteStrategy: t } = await import("./from-website-
|
|
44
|
+
const { DragInFromWebsiteStrategy: t } = await import("./from-website-C2cG-X9g.mjs");
|
|
45
45
|
this._strategy = new t(
|
|
46
46
|
this._instance,
|
|
47
47
|
this._mainDomElement,
|
|
@@ -52,7 +52,7 @@ class E extends D {
|
|
|
52
52
|
}
|
|
53
53
|
else if (this._mode === "custom-view")
|
|
54
54
|
try {
|
|
55
|
-
const { DragInFromCustomViewStrategy: t } = await import("./from-custom-view-
|
|
55
|
+
const { DragInFromCustomViewStrategy: t } = await import("./from-custom-view-CobBUshK.mjs");
|
|
56
56
|
this._strategy = new t(
|
|
57
57
|
this._instance,
|
|
58
58
|
this._mainDomElement,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class t{_mainDomElement;_instance;_mode="website";_viewName="main";constructor(t,e,s,a){this._instance=t,this._mainDomElement=e,this._mode=s,this._viewName=a}async init(){return Promise.resolve()}}const e="rml-drag-in-styles",s="rml-drag-in-drag-element",a="rml-drag-in-overlay",r="rml-drag-in-drag-ghost",i="rml-drag-in-fade-in",n="rml-drag-in-fade-out",o={DISPLAY_NONE:"rml-display-none"},d="250ms",m="forwards",g=`@keyframes ${i} {from{opacity: 0;}to {opacity: 0.5;}}`,l=`@keyframes ${n} {from{opacity: 0.5;}to {opacity: 0;}}`,c=`${i} ${d} ${m}`,h=`${n} ${d} ${m}`,u="https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg",p=112,_=112,y=Object.freeze(Object.defineProperty({__proto__:null,DragIn:class extends t{options={};_customDragSignal=new AbortController;_injectStyles(){if(!document.getElementById(e)){const t=document.createElement("style");t.type="text/css",t.id=e,t.innerHTML=`\n .${o.DISPLAY_NONE}{display:none}\n .${a}{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;}\n .${r}{position:absolute;top:0;left:0;width:1px;height:1px;z-index:999;pointer-events:none;background-color:transparent;}\n ${g}\n ${l}\n `,document.head.appendChild(t)}}_initializeDragGhost(){const t=this._mainDomElement.parentNode;let e=t.querySelector("."+r);e||(e=document.createElement("div"),e.classList.add(r),e.innerText=" ",t.appendChild(e))}constructor(t,e,s,a){super(t,e,s,a),this._mainDomElement=e,this._injectStyles(),this._initializeDragGhost()}async init(){if(await super.init(),"website"===this._mode)try{const{DragInFromWebsiteStrategy:t}=await import("./from-website-
|
|
1
|
+
class t{_mainDomElement;_instance;_mode="website";_viewName="main";constructor(t,e,s,a){this._instance=t,this._mainDomElement=e,this._mode=s,this._viewName=a}async init(){return Promise.resolve()}}const e="rml-drag-in-styles",s="rml-drag-in-drag-element",a="rml-drag-in-overlay",r="rml-drag-in-drag-ghost",i="rml-drag-in-fade-in",n="rml-drag-in-fade-out",o={DISPLAY_NONE:"rml-display-none"},d="250ms",m="forwards",g=`@keyframes ${i} {from{opacity: 0;}to {opacity: 0.5;}}`,l=`@keyframes ${n} {from{opacity: 0.5;}to {opacity: 0;}}`,c=`${i} ${d} ${m}`,h=`${n} ${d} ${m}`,u="https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg",p=112,_=112,y=Object.freeze(Object.defineProperty({__proto__:null,DragIn:class extends t{options={};_customDragSignal=new AbortController;_injectStyles(){if(!document.getElementById(e)){const t=document.createElement("style");t.type="text/css",t.id=e,t.innerHTML=`\n .${o.DISPLAY_NONE}{display:none}\n .${a}{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;}\n .${r}{position:absolute;top:0;left:0;width:1px;height:1px;z-index:999;pointer-events:none;background-color:transparent;}\n ${g}\n ${l}\n `,document.head.appendChild(t)}}_initializeDragGhost(){const t=this._mainDomElement.parentNode;let e=t.querySelector("."+r);e||(e=document.createElement("div"),e.classList.add(r),e.innerText=" ",t.appendChild(e))}constructor(t,e,s,a){super(t,e,s,a),this._mainDomElement=e,this._injectStyles(),this._initializeDragGhost()}async init(){if(await super.init(),"website"===this._mode)try{const{DragInFromWebsiteStrategy:t}=await import("./from-website-CDEUbvDF.mjs");this._strategy=new t(this._instance,this._mainDomElement,{settings:this.options,mode:"website"})}catch(t){throw t}else{if("custom-view"!==this._mode)throw new Error("Unsupported mode");try{const{DragInFromCustomViewStrategy:t}=await import("./from-custom-view-fYea37BE.mjs");this._strategy=new t(this._instance,this._mainDomElement,this.options,this._viewName)}catch(t){throw t}}}get isDragging(){return this._strategy.isDragging}dragStart(t,e,s="rml_id"){this._strategy.dragStart(t,e,s)}dragUpdate(t){this._strategy.dragUpdate(t)}dragEnd(){this._strategy.dragEnd()}touchStart(t,e,s="rml_id"){this._strategy.touchStart(t,e,s)}touchMove(t){this._strategy.touchMove(t)}touchEnd(){this._strategy.touchEnd()}dispose(){this._strategy.dispose()}beforeUpdateGhost(t){this._strategy.beforeUpdateGhost(t)}registerCustomDrag({customDragStart:t,customDragEnd:e,customDragUpdate:s,beforeUpdateGhost:a}){a&&this._strategy.beforeUpdateGhost(a);const r=this._customDragSignal.signal,i=e=>{"true"===e.target.getAttribute("data-rml-draggable")&&t(e)},n=t=>{this._strategy.releaseInput(t),this._strategy.isDragging&&e(t)},o=t=>{s(t)};document.querySelectorAll('[data-rml-draggable="true"]').forEach(t=>{t.draggable=!1}),document.addEventListener("mousedown",i,{signal:r}),document.addEventListener("mouseup",n,{signal:r}),document.addEventListener("mousemove",o,{signal:r}),document.addEventListener("mouseleave",n,{signal:r}),document.addEventListener("touchstart",i,{signal:r}),document.addEventListener("touchend",n,{signal:r}),document.addEventListener("touchmove",o,{signal:r})}unregisterCustomDrag(){this._customDragSignal.abort(),this._customDragSignal=new AbortController}releaseInput(t){this._strategy.releaseInput(t)}}},Symbol.toStringTag,{value:"Module"}));export{s as R,e as a,g as b,l as c,u as d,p as e,_ as f,c as g,h,a as i,o as j,r as k,y as l};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as f, e as D, T as S, i as T, b as v, c as A, d as I } from "./touch-drag-DXJTOrk5.mjs";
|
|
2
|
-
import { f as O, e as B, d as _ } from "./drag-in-
|
|
2
|
+
import { f as O, e as B, d as _ } from "./drag-in-BEjBh6zz.mjs";
|
|
3
3
|
const L = (a) => `[data-rml-custom-view="${a}"]`, c = (a) => {
|
|
4
4
|
a.preventDefault(), a.stopPropagation();
|
|
5
5
|
}, Y = (a, t, s, e) => {
|
|
@@ -72,8 +72,8 @@ class M {
|
|
|
72
72
|
_startTarget = null;
|
|
73
73
|
_onBeforeUpdateDrag = () => ({});
|
|
74
74
|
isDragging = !1;
|
|
75
|
-
constructor(t, s, e) {
|
|
76
|
-
this._instance = t, this._options =
|
|
75
|
+
constructor(t, s, e, r) {
|
|
76
|
+
this._instance = t, this._options = e || {}, this._viewName = r, this._mainDomElement = s, this._mainDomElement.parentElement?.addEventListener("dragleave", () => {
|
|
77
77
|
this._instance.cancelDragIn();
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as t,e,T as r,i as s,b as a,c as i,d as n}from"./touch-drag-B5zCf87J.mjs";import{f as o,e as h,d as g}from"./drag-in-BmoiEqfA.mjs";const _=t=>{t.preventDefault(),t.stopPropagation()};class l{_startX=0;_startY=0;_lastX=0;_lastY=0;_epsilon;_isWaiting=!1;_onCustomDragStart;constructor({onCustomDragStart:e},r={}){this._epsilon="number"==typeof r.epsilon?r.epsilon:t,this._onCustomDragStart=e}onMove(t){this._lastX=t.clientX,this._lastY=t.clientY,this._isWaiting&&((t,e)=>{const r=this._lastX-t,s=this._lastY-e;return Math.sqrt(r*r+s*s)})(this._startX,this._startY)>this._epsilon&&(this._onCustomDragStart(t),this._isWaiting=!1)}onStart(t){this._startX=t.clientX,this._startY=t.clientY,this.onMove(t),this._isWaiting=!0}onEnd(){this._reset()}_reset(){this._startX=0,this._startY=0,this._lastX=0,this._lastY=0,this._isWaiting=!1}}const u="data-rml-old-draggable",c=(e,r)=>{const o=s(e),h={delay:o?i:n,epsilon:o?a:t};if(!r)return h;if(!(o||e instanceof MouseEvent))return h;const{delayKey:g,epsilonKey:_}=o?{delayKey:"touchDragDelay",epsilonKey:"touchDragEpsilon"}:{delayKey:"customDragDelay",epsilonKey:"customDragEpsilon"};return"number"==typeof r[g]&&(h.delay=r.touchDragDelay),"number"==typeof r[_]&&(h.epsilon=r.touchDragEpsilon),h};class d{_options={};_instance;_mainDomElement;_viewName;_currentCustomDrag=null;_currentBb=null;_startTarget=null;_onBeforeUpdateDrag=()=>({});isDragging=!1;constructor(t,e,r,s){this._instance=t,this._options=r||{},this._viewName=s,this._mainDomElement=e,this._mainDomElement.parentElement?.addEventListener("dragleave",()=>{this._instance.cancelDragIn()})}beforeUpdateGhost(t){this._onBeforeUpdateDrag=t}async _dragStart(t,r,s="rml_id"){var a;this._startTarget&&(this._startTarget.style.pointerEvents="none",this._startTarget.style.userSelect="none",this._startTarget.setAttribute(u,this._startTarget.draggable.toString()),this._startTarget.draggable=!1,this._startTarget.removeEventListener("dragstart",_),this._startTarget.addEventListener("dragstart",_)),this._currentBb=await this._instance.getBoundingClientRect((a=this._viewName,`[data-rml-custom-view="${a}"]`));const{clientX:i,clientY:n}=e(r),o=this._currentBb.x+i,h=this._currentBb.y+n;this.isDragging=!0,this._instance.dragInObject(t,o,h,s)}_dragUpdate(t){if(document.body.focus(),this._currentCustomDrag&&this._currentCustomDrag.onMove(t),!this._currentBb||!this.isDragging)return;const{clientX:r,clientY:s}=e(t),{url:a,width:i,height:n}=(t=>{let e="",r=h,s=o;if(!t)return{url:g,width:r,height:s};const a=t;if(a instanceof HTMLElement){const t=a.getBoundingClientRect(),i=a.getAttribute("data-rml-ghost-url"),n=a.getAttribute("data-rml-ghost-width"),o=a.getAttribute("data-rml-ghost-height");i?e=i:!i&&a instanceof HTMLImageElement&&a.src&&(e=a.src),e?(r=t.width,s=t.height):e=g,r=n?parseInt(n,10):r,s=o?parseInt(o,10):s}return{url:e||g,width:r,height:s}})(this._startTarget),_=this._currentBb.x+r,l=this._currentBb.y+s,u=this._options||{},c={ghost:{visibleIn:{x:this._currentBb.x-(u.dragInOverlapX||0),y:this._currentBb.y+(u.dragInOverlapY||0),width:this._currentBb.width+(u.dragInOverlapX||0),height:this._currentBb.height+(u.dragInOverlapY||0)},url:a,width:i,height:n},mode:"custom-view"},{x:d,y:m,options:p}=this._onBeforeUpdateDrag(_,l,c),D="number"==typeof d?d:_,b="number"==typeof m?m:l,y=p||c;this._instance.updateDrag(D,b,y)}_dragEnd(){this._currentCustomDrag&&this._currentCustomDrag.onEnd(),this._currentCustomDrag=null,this.isDragging=!1,this._currentBb=null,this._resetStartTarget(),this._instance.enableEvents(),this._instance.dragInObjectEnd()}dragStart(t,e,a){this._instance.disableEvents(),this._startTarget=e.target,this._currentCustomDrag=s(e)?new r(void 0,{onTouchDragStart:(e,r)=>{this._dragStart(t,r,a)}},c(e,this._options)):new l({onCustomDragStart:e=>this._dragStart(t,e,a)},c(e,this._options)),this._currentCustomDrag.onStart(e)}dragEnd(){this._dragEnd()}dragUpdate(t){this._dragUpdate(t)}touchStart(t,e,r="rml_id"){this.dragStart(t,e,r)}touchMove(t){this.dragUpdate(t)}touchEnd(){this.dragEnd()}dispose(){}_resetStartTarget(){this._startTarget&&(this._startTarget.style.pointerEvents="",this._startTarget.style.userSelect="",this._startTarget.draggable="true"===this._startTarget.getAttribute(u),this._startTarget.removeAttribute(u),this._startTarget.removeEventListener("dragstart",_))}releaseInput(t){this._currentCustomDrag&&this._currentCustomDrag.onEnd(),this._resetStartTarget()}}export{d as DragInFromCustomViewStrategy};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as b, e as I, a as A, i as F, T as M } from "./touch-drag-DXJTOrk5.mjs";
|
|
2
|
-
import { R as m, a as E, b as C, c as N, d as O, e as R, f as T, g as G, h as p, i as y, j as x, k as w } from "./drag-in-
|
|
2
|
+
import { R as m, a as E, b as C, c as N, d as O, e as R, f as T, g as G, h as p, i as y, j as x, k as w } from "./drag-in-BEjBh6zz.mjs";
|
|
3
3
|
const S = (r, n, t = 0, e = 0) => {
|
|
4
4
|
const s = n.x + n.width + t, i = n.x - t, a = n.y + n.height + e, o = n.y - e, { x: h, y: g } = r;
|
|
5
5
|
return h >= i && h <= s && g >= o && g <= a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as t,e,a as n,i as s,T as i}from"./touch-drag-B5zCf87J.mjs";import{R as a,a as o,b as r,c as h,d as g,e as d,f as l,g as m,h as c,i as u,j as _,k as f}from"./drag-in-
|
|
1
|
+
import{g as t,e,a as n,i as s,T as i}from"./touch-drag-B5zCf87J.mjs";import{R as a,a as o,b as r,c as h,d as g,e as d,f as l,g as m,h as c,i as u,j as _,k as f}from"./drag-in-BmoiEqfA.mjs";const p=(t,e,n=0,s=0)=>{const i=e.x+e.width+n,a=e.x-n,o=e.y+e.height+s,r=e.y-s,{x:h,y:g}=t;return h>=a&&h<=i&&g>=r&&g<=o},D=(t,e,n,s=0,i=0)=>{if(n&&(n.hiddenIn||n.visibleIn))return n.visibleIn?p({x:t,y:e},n.visibleIn,s,i):!!n.hiddenIn&&!p({x:t,y:e},n.hiddenIn,-s,-i)};class y{_dragGhostAnimationFrameId=null;_dragGhostRemoveAnimationFrameId=null;_dragGhostElement=null;constructor(t=null){this._dragGhostElement=t}updateDragGhost(t,e,n){this._dragGhostRemoveAnimationFrameId&&(cancelAnimationFrame(this._dragGhostRemoveAnimationFrameId),this._dragGhostRemoveAnimationFrameId=null),!n.ghost?.external&&n.ghost&&(this._dragGhostAnimationFrameId||(this._dragGhostAnimationFrameId=requestAnimationFrame(()=>{(()=>{if(!document.getElementById(o)){const t=document.createElement("style");t.type="text/css",t.id=o,t.innerHTML=`\n ${r}\n ${h}\n `,document.head.appendChild(t)}})();const s={x:t,y:e};!n.ghost&&this._dragGhostElement&&(n.ghost={}),n.ghost&&!n.ghost.element&&this._dragGhostElement&&(n.ghost.element=this._dragGhostElement),(({x:t,y:e},n)=>{let s=document.getElementById(a);if(!s){if(s=document.createElement("div"),n.ghost?.element)s.appendChild(n.ghost.element);else{const t=document.createElement("img");t.src=n.ghost?.url||g,t.width=n.ghost?.width||d,t.height=n.ghost?.height||l,s.appendChild(t)}s.id=a,s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.willChange="transform",s.style.transform="translate3d(0, 0, 0)",s.style.zIndex="9999",s.style.opacity="0.5",D(t,e,n.ghost||{},n.settings?.dragInOverlapX,n.settings?.dragInOverlapY)||(s.style.display="none"),s.style.pointerEvents="none",document.body.appendChild(s)}})(s,n),(({x:t,y:e},n)=>{const s=document.getElementById(a);if(!s)return;let i=n.ghost?.width,o=n.ghost?.height;typeof i>"u"&&(i=s.getBoundingClientRect().width||d),typeof o>"u"&&(o=s.getBoundingClientRect().height||l);const r=t-i/2,h=e-o/2;s.style.transform=`translate3d(${r}px, ${h}px, 0)`,n.ghost&&(D(t,e,n.ghost,n.settings?.dragInOverlapX,n.settings?.dragInOverlapY)?s.style.animation!=m&&(s.style.animation=m):s.style.animation!=c&&(s.style.animation=c))})(s,n),this._dragGhostAnimationFrameId=null})))}removeDragGhost(){this._dragGhostAnimationFrameId&&(cancelAnimationFrame(this._dragGhostAnimationFrameId),this._dragGhostAnimationFrameId=null),this._dragGhostRemoveAnimationFrameId||(this._dragGhostRemoveAnimationFrameId=requestAnimationFrame(()=>{const t=document.getElementById(a);t&&document.body.removeChild(t),this._dragGhostRemoveAnimationFrameId=null}))}}class x{_options={};_instance;_mainDomElement;_currentDrag={};_currentTouch=null;_firefoxDragPosition={x:0,y:0};_onBeforeUpdateDrag=()=>({});isDragging=!1;_firefoxFallback=t=>{if(!this._currentDrag.event)return;t.preventDefault();const e=t||window.event;this._firefoxDragPosition.x=e.pageX||0,this._firefoxDragPosition.y=e.pageY||0};constructor(t,e,n){this._instance=t,this._mainDomElement=e,this._options=n||{},this._firefoxFallback=this._firefoxFallback.bind(this),document.addEventListener("dragover",this._firefoxFallback),this._mainDomElement.parentElement?.addEventListener("dragleave",()=>{this._instance.cancelDragIn()})}beforeUpdateGhost(t){this._onBeforeUpdateDrag=t}dragStart(s,i,a="rml_id"){const o=this._mainDomElement.parentNode;if("relative"!==t(o).position)return;this._mainDomElement.style.pointerEvents="none";let r=o.querySelector("."+u);r||(r=document.createElement("div"),r.classList.add(u),o.appendChild(r)),r.classList.remove(_.DISPLAY_NONE),i.target.getAttribute("draggable");const h=o.querySelector("."+f);this._currentDrag.event=i;const g=i.target,d=g.cloneNode(!0),l=g.getBoundingClientRect();d.style.width=`${l.width}px`,d.style.height=`${l.height}px`,this._currentDrag.ghost=new y(d),this._currentDrag.offset||(this._currentDrag.offset={x:0,y:0});const{clientX:m,clientY:c}=e(i,this._firefoxDragPosition);this._currentDrag.offset.x=m-l.left,this._currentDrag.offset.y=c-l.top,i instanceof DragEvent&&i.dataTransfer&&i.dataTransfer.setDragImage&&i.dataTransfer.setDragImage(h,0,0);const{x:p,y:D}=n(o,this._currentDrag.event||i,this._firefoxDragPosition),x=Math.max(1,p),v=Math.max(1,D);this.isDragging=!0,this._instance.dragInObject(s,x,v,a)}dragUpdate(t){const i=this._mainDomElement.parentNode,{x:a,y:o}=n(i,t,this._firefoxDragPosition);if(0===a&&0===o)return;const r=Math.max(1,a),h=Math.max(1,o);if(1===r&&1===h)return;let g=r,d=h;if(s(t)){const t=this._options.settings?.fingerSize||0;g=Math.max(2,r+t),d=Math.max(2,h-t)}const{x:l,y:m,options:c}=this._onBeforeUpdateDrag(g,d,{}),u=c||{settings:{},ghost:{}};u.ghost||(u.ghost={}),u.ghost.visibleIn&&u.ghost.hiddenIn||(u.ghost.hiddenIn=this._mainDomElement.getBoundingClientRect());const _="number"==typeof l?l:g,f="number"==typeof m?m:d;if(this._currentDrag.ghost){const{clientX:n,clientY:s}=e(t,this._firefoxDragPosition);this._currentDrag.ghost.updateDragGhost(n,s,u)}this._instance.updateDrag(_,f,{})}dragEnd(){this._mainDomElement.style.pointerEvents="all";const t=this._mainDomElement.parentNode;this.isDragging=!1,this._instance.dragInObjectEnd(),this._currentDrag.ghost&&(this._currentDrag.ghost.removeDragGhost(),this._currentDrag.ghost=null),this._currentDrag={},this._firefoxDragPosition={x:0,y:0};const e=t.querySelector("."+u);e&&e.classList.add(_.DISPLAY_NONE)}touchStart(t,e,n="rml_id"){e.preventDefault();const s={};"number"==typeof this._options?.settings?.touchDragDelay&&(s.delay=this._options.settings.touchDragDelay),this._options?.settings?.touchDragEpsilon&&(s.epsilon=this._options.settings.touchDragEpsilon),this._currentTouch=new i(void 0,{onTouchDragStart:(e,s)=>{this.dragStart(t,s,n)}},s),this._currentTouch.onStart(e)}touchMove(t){this._currentTouch&&this._currentTouch.onMove(t),this._currentDrag.event&&this.dragUpdate(t)}touchEnd(){this._currentTouch&&this._currentTouch.onEnd(),this._currentTouch=null,this.dragEnd()}dispose(){document.removeEventListener("dragover",this._firefoxFallback)}releaseInput(t){}}export{x as DragInFromWebsiteStrategy};
|
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
enableArrangementCorrection: boolean;
|
|
3
|
+
uiConfiguration: {
|
|
4
|
+
userRight: string;
|
|
5
|
+
materialAttributes: string[];
|
|
6
|
+
attributesVisibleInPlanner: string[];
|
|
7
|
+
attributeGroupsVisibleInPlanner: any[];
|
|
8
|
+
showPossibleSubModules: boolean;
|
|
9
|
+
animatedOpenClose: boolean;
|
|
10
|
+
showThumbnails: boolean;
|
|
11
|
+
};
|
|
12
|
+
materialConfiguration: {
|
|
13
|
+
defaultMaterial: string;
|
|
14
|
+
replaceUnmappedMaterialsWithDefault: boolean;
|
|
15
|
+
materialMapping: {
|
|
16
|
+
materialName: string;
|
|
17
|
+
materialId: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
debugConfiguration: {
|
|
21
|
+
createDebugGeometry: boolean;
|
|
22
|
+
};
|
|
23
|
+
tecConfigInfo: {
|
|
24
|
+
baseUrlDebug: string;
|
|
25
|
+
/**
|
|
26
|
+
* If you do not want to use the proxy provided by Roomle
|
|
27
|
+
* uncomment the next three lines and comment the line
|
|
28
|
+
* which has the Roomle proxy URL in it.
|
|
29
|
+
* BE AWARE: That the example url dfteccdeveu01-app.azurewebsites.net
|
|
30
|
+
* only works if you requesting from localhost:3100 otherwise you
|
|
31
|
+
* will have CORS issues
|
|
32
|
+
*/
|
|
33
|
+
subscriptionId: string;
|
|
34
|
+
key: string;
|
|
35
|
+
/** comment this line if you do not want to use the Roomle proxy */
|
|
36
|
+
baseUrl: string;
|
|
37
|
+
om: {
|
|
38
|
+
subscriptionId: string;
|
|
39
|
+
key: string;
|
|
40
|
+
importBaseUrl: string;
|
|
41
|
+
};
|
|
42
|
+
libraryId: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
export declare const state: {
|
|
2
2
|
selection: {
|
|
3
|
-
type:
|
|
4
|
-
payload:
|
|
3
|
+
type: string;
|
|
4
|
+
payload: {
|
|
5
|
+
groupId: string;
|
|
6
|
+
rootModuleId: string;
|
|
7
|
+
subModuleId: string;
|
|
8
|
+
} | {
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
5
11
|
parameters: any[];
|
|
6
12
|
};
|
|
7
13
|
currentContext: string;
|
|
8
|
-
currentCustomView:
|
|
9
|
-
currentSidebar:
|
|
14
|
+
currentCustomView: string;
|
|
15
|
+
currentSidebar: string;
|
|
10
16
|
abortController: AbortController;
|
|
11
|
-
isBuildingCatalog: any
|
|
17
|
+
isBuildingCatalog: Promise<any>;
|
|
12
18
|
waitForCatalog: () => Promise<void>;
|
|
13
19
|
};
|
|
14
20
|
export declare const resetSelectionState: () => void;
|
|
@@ -15,7 +15,7 @@ export declare class DragInFromCustomViewStrategy implements DragInStrategy {
|
|
|
15
15
|
private _startTarget;
|
|
16
16
|
private _onBeforeUpdateDrag;
|
|
17
17
|
isDragging: boolean;
|
|
18
|
-
constructor(instance: ExposedApi, options: DragInSettings, viewName: PossibleCustomViewsAndMain);
|
|
18
|
+
constructor(instance: ExposedApi, mainDomElement: HTMLIFrameElement, options: DragInSettings, viewName: PossibleCustomViewsAndMain);
|
|
19
19
|
beforeUpdateGhost(handler: OnBeforeUpdateDragGhost): void;
|
|
20
20
|
_dragStart(id: RapiId, event: MouseEvent | TouchEvent, type?: string): Promise<void>;
|
|
21
21
|
_dragUpdate(event: MouseEvent | TouchEvent): void;
|
|
@@ -10,11 +10,11 @@ export default class MockIdbManager implements Context {
|
|
|
10
10
|
private _getValue;
|
|
11
11
|
private _setValue;
|
|
12
12
|
private _getEntries;
|
|
13
|
-
deleteValue(
|
|
13
|
+
deleteValue(_key: IDBValidKey, _objStore: UseIdbStore): Promise<void>;
|
|
14
14
|
private _createStore;
|
|
15
15
|
getKey(...args: string[]): string;
|
|
16
16
|
setValue<T>(key: string, value: T, store: UseIdbStore): Promise<void>;
|
|
17
17
|
getValue<T>(key: IDBValidKey, store: UseIdbStore): Promise<SavedIdbData<T> | undefined>;
|
|
18
|
-
clearStore(
|
|
18
|
+
clearStore(_objStore: UseIdbStore): Promise<void>;
|
|
19
19
|
pruneOldEntries(): Promise<void>;
|
|
20
20
|
}
|
|
@@ -7,13 +7,13 @@ export default class MockImageRenderer {
|
|
|
7
7
|
private _roomleRenderer;
|
|
8
8
|
constructor(roomleRenderer?: RoomleWebGLRenderer);
|
|
9
9
|
private _getRoomleRenderer;
|
|
10
|
-
setEnvMap(
|
|
10
|
+
setEnvMap(_scene: Scene, _envMap: Texture): void;
|
|
11
11
|
switchToPlannerSettings(): void;
|
|
12
12
|
switchToConfiguratorSettings(): void;
|
|
13
13
|
static getCameraTargetForBBox(bbox: Box3, spacing?: number): CameraTarget;
|
|
14
14
|
preparePerspectiveImage(_scene: Scene, _uiScene: Scene, _camera: PerspectiveCamera, _cameraTarget: CameraTarget, _options?: PrepareImageOptions, _objectRotation?: number): Promise<Base64Image>;
|
|
15
15
|
renderPerspectiveImage(_scene: Scene, _camera: PerspectiveCamera, _cameraTarget: CameraTarget, _size?: number): Promise<Base64Image>;
|
|
16
|
-
static placeCameraForPerspectiveImage(
|
|
16
|
+
static placeCameraForPerspectiveImage(_camera: PerspectiveCamera, _cameraTarget: CameraTarget, _angleX: number, _angleY: number): void;
|
|
17
17
|
prepareTopImage(_scene: Scene, _uiScene: Scene, _cameraTarget: CameraTarget, _options?: PrepareImageOptions): Promise<Base64Image>;
|
|
18
18
|
private _render;
|
|
19
19
|
}
|
|
@@ -7,6 +7,6 @@ export default class MockInputEventDispatcher {
|
|
|
7
7
|
dispatchTouchEvent(type: string, { x, y }: Position2): void;
|
|
8
8
|
dispatchDoubleTouchEvent(type: string, pos0: Position2, pos1: Position2, timeToAdd?: number): void;
|
|
9
9
|
dispatchMouseEvent(type: string, { x, y }: Position2, options?: any): void;
|
|
10
|
-
dispatchGenericEvent(type: string
|
|
10
|
+
dispatchGenericEvent(type: string): void;
|
|
11
11
|
dispatchEvent(event: Event, options?: any): void;
|
|
12
12
|
}
|
|
@@ -79,8 +79,8 @@ export default class ConfiguratorKernelAccess extends CommonKernelAccess {
|
|
|
79
79
|
protected _setupKernel(): void;
|
|
80
80
|
onLoadComponentError(error: Error, id: RapiId): void;
|
|
81
81
|
configurationLoaded(conversationId: number, objectId: number, componentId: number, hash: string, errors: EmscriptenString[], _valid: boolean): void;
|
|
82
|
-
componentDefinitionLoaded(
|
|
83
|
-
componentDefinitionLoadingError(
|
|
82
|
+
componentDefinitionLoaded(_conversationId: number, componentId: number): void;
|
|
83
|
+
componentDefinitionLoadingError(_conversationId: number, errorMessage: string): void;
|
|
84
84
|
configurationLoadingError(_runtimeId: number, errors?: EmscriptenString[]): void;
|
|
85
85
|
componentConfigurationUpdated(componentId: number, geometryChanged: boolean): void;
|
|
86
86
|
setActiveGroupInView(group: string): void;
|
|
@@ -103,8 +103,7 @@ export default abstract class Main implements LifeCycleCallbacks {
|
|
|
103
103
|
/**
|
|
104
104
|
* returns the instance of the rapi access so that
|
|
105
105
|
* the user of the SDK can fetch data from the Roomle backend
|
|
106
|
-
* @
|
|
107
|
-
* @return RapiAccess
|
|
106
|
+
* @returns RapiAccess
|
|
108
107
|
*/
|
|
109
108
|
getRapiAccess(): RapiAccess;
|
|
110
109
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Base64Image } from './common-interfaces';
|
|
2
2
|
import { RoomleError } from './error-handler';
|
|
3
3
|
import { SHORT_TYPES } from './utils/url-shortener';
|
|
4
|
-
import { Base64String, MAIL_TYPE, PriceId, RapiAdditionalContent, RapiAuth, RapiCatalog, RapiComponent, RapiConfiguration, RapiConfiguratorSettings, RapiId, RapiItem, RapiJson, RapiMaterial, RapiMaterialGroup, RapiMesh,
|
|
4
|
+
import { Base64String, MAIL_TYPE, PriceId, RapiAdditionalContent, RapiAuth, RapiCatalog, RapiComponent, RapiConfiguration, RapiConfiguratorSettings, RapiId, RapiItem, RapiJson, RapiMaterial, RapiMaterialGroup, RapiMesh, RapiMeta, RapiPackage, RapiPlan, RapiPlanSnapshotGetData, RapiPlanSnapshotId, RapiPlanSnapshotPostData, RapiPrice, RapiShortId, RapiSkin, RapiTag, RapiTenant, RapiTexture, UserAction } from '../../typings/rapi-types';
|
|
5
5
|
import { Context } from './di/context';
|
|
6
6
|
import { default as InitData } from './utils/init-data';
|
|
7
7
|
|
|
@@ -16,11 +16,12 @@ type HttpVerbGet = 'GET';
|
|
|
16
16
|
type HttpVerbPost = 'POST';
|
|
17
17
|
type HttpVerbPut = 'PUT';
|
|
18
18
|
export type ImageKeysOnObject = 'perspectiveImage' | 'topImage';
|
|
19
|
+
type RapiResolvePossibleTypes = RapiShortId | RapiJson | RapiMeta | RapiJson[] | Base64String;
|
|
19
20
|
export interface FetchOptions {
|
|
20
21
|
id?: RapiId;
|
|
21
22
|
method?: HttpVerbGet | HttpVerbPost | HttpVerbPut;
|
|
22
|
-
data?: RapiJson | Base64String;
|
|
23
|
-
resolve?: (data:
|
|
23
|
+
data?: RapiJson | Base64String | FormData;
|
|
24
|
+
resolve?: (data: RapiResolvePossibleTypes | PromiseLike<RapiResolvePossibleTypes>) => void;
|
|
24
25
|
reject?: (error: RoomleError) => void;
|
|
25
26
|
accept?: string;
|
|
26
27
|
contentType?: string;
|
|
@@ -98,7 +99,7 @@ export default class RapiAccess implements Context {
|
|
|
98
99
|
getTags(ids: RapiId[]): Promise<RapiTag[]>;
|
|
99
100
|
getTexture(id: RapiId): Promise<RapiTexture>;
|
|
100
101
|
getCatalog(id: RapiId): Promise<RapiCatalog>;
|
|
101
|
-
getMesh(id: RapiId, format?: string, quality?: number): Promise<
|
|
102
|
+
getMesh(id: RapiId, format?: string, quality?: number): Promise<RapiMesh>;
|
|
102
103
|
getMeshesOfCatalog(catalogId: RapiId): Promise<RapiMesh[]>;
|
|
103
104
|
getTexturesOf(rapiJson: RapiJson): Promise<RapiTexture[]>;
|
|
104
105
|
getItemsOf(rapiJson: RapiJson): Promise<RapiItem[]>;
|
|
@@ -196,6 +197,6 @@ export default class RapiAccess implements Context {
|
|
|
196
197
|
updateCache(rapiPath: RAPI_PATHS, data: RapiJson & {
|
|
197
198
|
id: RapiId;
|
|
198
199
|
}): void;
|
|
199
|
-
getExternalObjects(externalObjectIds:
|
|
200
|
+
getExternalObjects(externalObjectIds: Array<`__ext__obj__#${string}`>): Promise<any[]>;
|
|
200
201
|
}
|
|
201
202
|
export {};
|
|
@@ -12,7 +12,7 @@ export default class HdrEnvironmentLoader implements Context {
|
|
|
12
12
|
private _exrLoader;
|
|
13
13
|
private _rgbeLoader;
|
|
14
14
|
constructor(creator: string);
|
|
15
|
-
loadUrl(
|
|
15
|
+
loadUrl(_renderer: WebGLRenderer, url: string): Promise<EnvironmentMapResult>;
|
|
16
16
|
private _loadExr;
|
|
17
17
|
private _loadRgbe;
|
|
18
18
|
registerEnvironmentChangedCallback(callBack: (maps: EnvironmentMapResult) => void): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const enumerable: (value: boolean) => (
|
|
1
|
+
export declare const enumerable: (value: boolean) => (_target: any, _propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
2
2
|
export declare const isEnumerable: (classInstance: any, name: string) => boolean;
|
|
3
3
|
export declare const getEnumerables: (classInstance: any) => string[];
|
|
@@ -66,7 +66,7 @@ export declare const disposeGeometry: (geometry: BufferGeometry) => void;
|
|
|
66
66
|
export declare const disposeMaterial: (material: MeshStandardMaterial) => void;
|
|
67
67
|
export declare const getBoundingBoxMaterial: () => MeshBasicMaterial;
|
|
68
68
|
export declare const getDebugBoundingBoxMaterial: (colorString?: string) => MeshStandardMaterial;
|
|
69
|
-
export declare const getSelectionGeometry: (
|
|
69
|
+
export declare const getSelectionGeometry: (_position: Vector3, size: Vector3) => BufferGeometry;
|
|
70
70
|
export declare const vectorIsZero: (vector: Vector3) => boolean;
|
|
71
71
|
export declare const getMaterialId: (material: any, type?: KernelEnum) => string;
|
|
72
72
|
export declare const vectorIsEqual: (vector1: Vector3, vector2: Vector3, tolerance?: number) => boolean;
|
|
@@ -7,7 +7,7 @@ export declare class UiCallback implements Context {
|
|
|
7
7
|
mute(): void;
|
|
8
8
|
unmute(): void;
|
|
9
9
|
constructor(creator: string);
|
|
10
|
-
get(
|
|
10
|
+
get(_target: UiCallback, prop: keyof UiCallback): UiCallback[keyof UiCallback];
|
|
11
11
|
cameraStartsMoving: () => void;
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated has been moved to global callbacks
|
|
@@ -99,7 +99,7 @@ export default class ConfiguratorViewModel implements ConfiguratorKernelCallback
|
|
|
99
99
|
configurationLoaded(conversationId: number, objectId: number, componentId: number, _hash: string, _errors: any): void;
|
|
100
100
|
finishParameterChange(resolve: () => void, _reject: () => void): void;
|
|
101
101
|
planObjectConfigurationUpdated(planObjectId: number, _configuration: ConfigurationString, _hash: string, pendingDocking: boolean): void;
|
|
102
|
-
planObjectCreated(
|
|
102
|
+
planObjectCreated(_conversationId: number, planObjectId: number): void;
|
|
103
103
|
planObjectUpdated(planObject: PlanObject, pendingDocking: boolean): void;
|
|
104
104
|
sceneCleared(): void;
|
|
105
105
|
setListener(listener: ConfiguratorViewModelCallbackI): void;
|
|
@@ -57,5 +57,5 @@ export declare class AORenderPass {
|
|
|
57
57
|
updateParameters(parameters: AORenderPassParameters): void;
|
|
58
58
|
updateTextures(parameters: AOPassParameters): void;
|
|
59
59
|
clear(renderer: WebGLRenderer, renderTarget?: WebGLRenderTarget): void;
|
|
60
|
-
render(renderer: WebGLRenderer, camera: Camera,
|
|
60
|
+
render(renderer: WebGLRenderer, camera: Camera, _scene: Scene, renderTarget?: WebGLRenderTarget): void;
|
|
61
61
|
}
|
|
@@ -76,7 +76,7 @@ export declare class RenderPassManager {
|
|
|
76
76
|
getRenderPassRenderTarget(renderer: WebGLRenderer): WebGLRenderTarget | null;
|
|
77
77
|
getPostPassRenderTarget(renderer: WebGLRenderer): WebGLRenderTarget | null;
|
|
78
78
|
setGroundVisibility(visible: boolean): void;
|
|
79
|
-
updatePasses(
|
|
79
|
+
updatePasses(_renderer: WebGLRenderer, scene: Scene, camera: Camera): void;
|
|
80
80
|
private _evaluateIfShadowAndAoUpdateIsNeeded;
|
|
81
81
|
private _dynamicChanges;
|
|
82
82
|
private _updateSceneRenderPass;
|
|
@@ -100,7 +100,7 @@ export default abstract class SceneManager implements Context, LifeCycleCallback
|
|
|
100
100
|
private _renderUi;
|
|
101
101
|
private _animateCamera;
|
|
102
102
|
protected shouldClearShadowsAndAO(): boolean;
|
|
103
|
-
protected _setupScene(
|
|
103
|
+
protected _setupScene(_offset?: CanvasOffset, transparent?: boolean): void;
|
|
104
104
|
loadEnvMap(url: string): Promise<void>;
|
|
105
105
|
private _getEnvMapIntensityAndRotation;
|
|
106
106
|
private _setDefaultEnvironmentScene;
|
|
@@ -107,7 +107,7 @@ export default class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
107
107
|
*
|
|
108
108
|
* @param element which should contain the configurator
|
|
109
109
|
* @param initData
|
|
110
|
-
* @
|
|
110
|
+
* @returns Promise which is resolved when configurator is initialized
|
|
111
111
|
*/
|
|
112
112
|
init(element: HTMLElement, initData?: InitDataDefinition): Promise<void>;
|
|
113
113
|
/**
|
|
@@ -170,7 +170,7 @@ export default class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
170
170
|
/**
|
|
171
171
|
* Generates images of the current configuration
|
|
172
172
|
*
|
|
173
|
-
* @
|
|
173
|
+
* @returns Promise containing the `topImage`, `perspectgetAdditionalContentsOfiveImage` and a boolean `isLocally` which indicates if the images were generated while being offline
|
|
174
174
|
*/
|
|
175
175
|
generateImagesOfCurrentConfiguration(): Promise<object>;
|
|
176
176
|
/**
|
|
@@ -282,18 +282,18 @@ export default class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
282
282
|
*/
|
|
283
283
|
disableMultiselect(): void;
|
|
284
284
|
/**
|
|
285
|
-
* @
|
|
285
|
+
* @returns Promise with the current configuration string/hash
|
|
286
286
|
*/
|
|
287
287
|
getCurrentConfiguration(): Promise<ConfigurationString>;
|
|
288
288
|
/**
|
|
289
289
|
* Loads the component (defined as string) into the kernel
|
|
290
290
|
*
|
|
291
291
|
* @param componentString
|
|
292
|
-
* @
|
|
292
|
+
* @returns Promise which gets resolved when the component has been loaded
|
|
293
293
|
*/
|
|
294
294
|
loadComponentIntoKernel(componentString: string): Promise<void>;
|
|
295
295
|
/**
|
|
296
|
-
* @
|
|
296
|
+
* @returns Promise containing the short url for the current configuration
|
|
297
297
|
*/
|
|
298
298
|
getShortUrlOfCurrentConfiguration(): Promise<string>;
|
|
299
299
|
/**
|
|
@@ -308,7 +308,7 @@ export default class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
308
308
|
*
|
|
309
309
|
* @param tagId
|
|
310
310
|
* @param options `{ include: RAPI_PATHS[] }`
|
|
311
|
-
* @
|
|
311
|
+
* @returns Promise containing the tag including items and materials for that tag
|
|
312
312
|
*/
|
|
313
313
|
getTagById(tagId: RapiId, options?: {
|
|
314
314
|
include: RAPI_PATHS[];
|
|
@@ -323,7 +323,7 @@ export default class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
323
323
|
* If the current environment is not floor environment it will be changed
|
|
324
324
|
*
|
|
325
325
|
* @param material
|
|
326
|
-
* @
|
|
326
|
+
* @returns promise that resolves when material has been changed
|
|
327
327
|
*/
|
|
328
328
|
changeFloorMaterial(material: RapiMaterial): Promise<void>;
|
|
329
329
|
/**
|
|
@@ -344,7 +344,7 @@ export default class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
344
344
|
* roomle_floor:EicheLondon
|
|
345
345
|
*
|
|
346
346
|
* @param materialId
|
|
347
|
-
* @
|
|
347
|
+
* @returns promise that resolves when material has been changed
|
|
348
348
|
*/
|
|
349
349
|
changeFloorMaterialById(materialId: string): Promise<void>;
|
|
350
350
|
/**
|
|
@@ -558,12 +558,12 @@ export default class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
558
558
|
get globalCallbacks(): GlobalCallback;
|
|
559
559
|
/**
|
|
560
560
|
* Returns the runtime component id of root component of the current plan object
|
|
561
|
-
* @
|
|
561
|
+
* @returns number the number of the runtime id of the root component
|
|
562
562
|
*/
|
|
563
563
|
getRuntimeComponentIdOfRootComponent(): number;
|
|
564
564
|
/**
|
|
565
565
|
* returns the current configuration hash, this can be used for analytics or other stuff like caching etc
|
|
566
|
-
* @
|
|
566
|
+
* @returns string current configuration hash
|
|
567
567
|
*/
|
|
568
568
|
getCurrentConfigurationHash(): Promise<ConfigurationHash>;
|
|
569
569
|
getCurrentSelection(): string[];
|
|
@@ -63,8 +63,8 @@ export declare class Emulator implements GlueLogic {
|
|
|
63
63
|
selectGroup(groupId: string): Promise<void>;
|
|
64
64
|
selectCheckAttributes(root: PosModuleRootData): Promise<void>;
|
|
65
65
|
selectRoot(_groupId: any, rootId: string): Promise<void>;
|
|
66
|
-
deleteRoot(
|
|
67
|
-
selectSubModule(
|
|
66
|
+
deleteRoot(_groupId: any, rootId: string): Promise<void>;
|
|
67
|
+
selectSubModule(_groupId: any, rootId: string, moduleId: string): Promise<void>;
|
|
68
68
|
openCloseGroup(groupId: string): Promise<void>;
|
|
69
69
|
deleteRootModule(remainingGroup: ExternalObjectGroup, rootModuleIdToDelete: string, splitOffGroups: ExternalObjectGroup[]): void;
|
|
70
70
|
duplicateGroup(sourceGroupId: string, newGroupPosition: ExternalObjectGroupPosition): Promise<void>;
|
|
@@ -274,15 +274,15 @@ export interface MDTextAttributeInfo extends BaseMDAttributeInfo {
|
|
|
274
274
|
type: MDType.Text;
|
|
275
275
|
}
|
|
276
276
|
export interface MDIntegerAttributeInfo extends BaseMDAttributeInfo {
|
|
277
|
-
selections?:
|
|
277
|
+
selections?: Array<MDIntegerAttributeSelection | MDNumberMinMaxAttributeSelection>;
|
|
278
278
|
type: MDType.Integer;
|
|
279
279
|
}
|
|
280
280
|
export interface MDRealAttributeInfo extends BaseMDAttributeInfo {
|
|
281
|
-
selections?:
|
|
281
|
+
selections?: Array<MDRealAttributeSelection | MDNumberMinMaxAttributeSelection>;
|
|
282
282
|
type: MDType.Real;
|
|
283
283
|
}
|
|
284
284
|
export interface MDDimAttributeInfo extends BaseMDAttributeInfo {
|
|
285
|
-
selections?:
|
|
285
|
+
selections?: Array<MDDimAttributeSelection | MDNumberMinMaxAttributeSelection>;
|
|
286
286
|
type: MDType.Dim;
|
|
287
287
|
}
|
|
288
288
|
export interface MDModuleInfo {
|
|
@@ -28,7 +28,7 @@ export declare const createEmptyOrder: () => {
|
|
|
28
28
|
items: any[];
|
|
29
29
|
};
|
|
30
30
|
export declare const sendToOM: (apiOptions: ApiOptions, roomlePlanner: RoomlePlanner, gluLogic: GlueLogic, withPrice?: boolean) => Promise<void>;
|
|
31
|
-
export declare const fetchPrice: (apiOptions: ApiOptions, gluLogic: GlueLogic, planId?: string) => Promise<any>;
|
|
31
|
+
export declare const fetchPrice: (apiOptions: ApiOptions, gluLogic: GlueLogic, planId?: string, useExtraHeaders?: boolean) => Promise<any>;
|
|
32
32
|
export default class Orders {
|
|
33
33
|
private _roomlePlanner;
|
|
34
34
|
private _gluLogic;
|
|
@@ -75,7 +75,7 @@ export default class RoomleMaterialViewer implements GlobalAPI, Context, Externa
|
|
|
75
75
|
* roomle_floor:EicheLondon
|
|
76
76
|
*
|
|
77
77
|
* @param materialId
|
|
78
|
-
* @
|
|
78
|
+
* @returns promise that resolves when material has been changed
|
|
79
79
|
*/
|
|
80
80
|
changeFloorMaterialById(materialId: string): Promise<void>;
|
|
81
81
|
/**
|
|
@@ -187,7 +187,7 @@ export default class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
187
187
|
/**
|
|
188
188
|
* Returns the runtime component id of the plan object with the given id
|
|
189
189
|
* @param planObjectId id of the plan object you want to get the runtime component id of the root component from
|
|
190
|
-
* @
|
|
190
|
+
* @returns number the number of the runtime id of the root component
|
|
191
191
|
*/
|
|
192
192
|
getRuntimeComponentIdOfRootComponent(planObjectId: number): number;
|
|
193
193
|
/**
|
|
@@ -428,7 +428,7 @@ export default class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
428
428
|
selectExternalObjectGroup(groupId: string): Promise<void>;
|
|
429
429
|
selectExternalObjectRootModule(rootModuleId: string): Promise<void>;
|
|
430
430
|
selectExternalObjectSubModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
431
|
-
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string,
|
|
431
|
+
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, _subModuleId: string | null, open: boolean, animate: boolean): Promise<void>;
|
|
432
432
|
private _selectKernelComponent;
|
|
433
433
|
_selectExternalObjectGroup(groupId: string, switchToPlanner: boolean): Promise<void>;
|
|
434
434
|
_selectExternalObjectModule(rootModuleId: string, subModuleId: string | null, selectPlanObject: boolean, switchToConfigurator: boolean, selectComponent: boolean, highlightSelection: boolean): Promise<void>;
|
|
@@ -59,7 +59,7 @@ export default class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
59
59
|
planBoundsChanged(): void;
|
|
60
60
|
planCleared(): void;
|
|
61
61
|
planCompletelyLoaded(plan: Plan): void;
|
|
62
|
-
planElement3dMeshChanged(
|
|
62
|
+
planElement3dMeshChanged(_plan: Plan, element: PlanElement): void;
|
|
63
63
|
private _onStaticItemAdded;
|
|
64
64
|
private _onConfigurableItemAdded;
|
|
65
65
|
private _onConfigurableConstructionItemAdded;
|
|
@@ -94,10 +94,10 @@ export default class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
94
94
|
private _decoupleReferences;
|
|
95
95
|
isConstructionPlanElement(planElement: PlanElement): boolean;
|
|
96
96
|
planObjectSelectionChanged(configurationRuntimeId: number, elementRuntimeId: number): void;
|
|
97
|
-
protected _componentSelectionChanged(
|
|
97
|
+
protected _componentSelectionChanged(_planObject: ConfiguratorPlanObject, component: KernelComponent, planComponentSelection: boolean): void;
|
|
98
98
|
protected _externalObjectParameterChanged(objectOrComponentId: number, parameterKey: string, value: string): void;
|
|
99
|
-
protected _externalObjectConfigurationChanged(
|
|
100
|
-
protected _externalObjectConfigurationLoaded(
|
|
99
|
+
protected _externalObjectConfigurationChanged(_objectId: number, configuration: string): void;
|
|
100
|
+
protected _externalObjectConfigurationLoaded(_objectId: number, configuration: string): void;
|
|
101
101
|
protected _externalObjectConfigurationDeleted(groupId: string): void;
|
|
102
102
|
protected _externalObjectComponentDeleted(remainingGroupOrGroups: ExternalObjectGroup | ExternalObjectGroup[], deletedRootModuleId: string): void;
|
|
103
103
|
_externalObjectConfigurationDuplicated(sourceGroupId: string, newGroupPosition: ExternalObjectGroupPosition): void;
|
|
@@ -48,7 +48,7 @@ export default class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
48
48
|
private _configurableItemGuard;
|
|
49
49
|
private _planCompletelyLoadedGuard;
|
|
50
50
|
private _dragStartBounds;
|
|
51
|
-
currentSelection: SelectionPayload;
|
|
51
|
+
currentSelection: SelectionPayload | null;
|
|
52
52
|
private _paperBackground;
|
|
53
53
|
private _cameraState;
|
|
54
54
|
private _planElementHighlighter;
|
|
@@ -122,7 +122,7 @@ export default class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
122
122
|
highlightPlanElementById(runtimeId: number | null): void;
|
|
123
123
|
destroy(): void;
|
|
124
124
|
planObjectConfigurationLoaded(plan: Plan, element: PlanElement, success: boolean): void;
|
|
125
|
-
planObjectConfigurationChanged(
|
|
125
|
+
planObjectConfigurationChanged(_plan: Plan, element: PlanElementViewModel): Promise<void>;
|
|
126
126
|
addMesh(_planElement: PlanElement, _material: any, _vertices: Float32Array, _indices: Int32Array, _uvCoords: Float32Array, _normals: Float32Array): void;
|
|
127
127
|
updateCameraOnDrawWalls(): void;
|
|
128
128
|
getBounds(): Box3;
|