@inweb/viewer-three 27.6.1 → 27.6.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.
@@ -21,7 +21,7 @@
21
21
  // acknowledge and accept the above terms.
22
22
  ///////////////////////////////////////////////////////////////////////////////
23
23
 
24
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ODA=t.ODA||{},t.ODA.Three=t.ODA.Three||{}))}(this,function(t){"use strict";class e{constructor(){this._commands=new Map}registerCommand(t,e,i,n){this._commands.set(t,{id:t,handler:e,thisArg:n,description:i})}registerCommandAlias(t,e){this.registerCommand(e,(e,...i)=>this.executeCommand(t,e,...i))}getCommand(t){return this._commands.get(t)}getCommands(){const t=new Map;return this._commands.forEach((e,i)=>t.set(i,e)),t}executeCommand(t,e,...i){const n=this._commands.get(t);if(!n){if(e){if(e.draggers.includes(t))return e.setActiveDragger(t)}return void console.warn(`Command '${t}' not found`)}const{handler:s,thisArg:r}=n,a=s.apply(r,[e,...i]);return null==e||e.emit({type:"command",data:t,args:i}),a}}const i=new Map;function n(t=""){let n=i.get(t);return n||(n=new e,i.set(t,n)),n}class s{constructor(){this._providers=new Map}registerDragger(t,e){this._providers.set(t,e)}registerDraggerAlias(t,e){const i=this._providers.get(t);i&&this.registerDragger(e,t=>i(t))}getDraggers(){const t=new Map;return this._providers.forEach((e,i)=>t.set(i,e)),t}createDragger(t,e){const i=this._providers.get(t);if(!i)return null;const n=i(e);return n.name=t,n}}const r=new Map;function a(t=""){let e=r.get(t);return e||(e=new s,r.set(t,e)),e}class o{constructor(){this._providers=new Map}registerComponent(t,e){this._providers.set(t,e)}registerComponentAlias(t,e){const i=this._providers.get(t);i&&this.registerComponent(e,t=>i(t))}getComponents(){const t=new Map;return this._providers.forEach((e,i)=>t.set(i,e)),t}createComponent(t,e){const i=this._providers.get(t);if(!i)return null;const n=i(e);return n.name=t,n}}const h=new Map;function l(t=""){let e=h.get(t);return e||(e=new o,h.set(t,e)),e}let c=class{constructor(){this.name="",this.abortController=new AbortController}dispose(){this.cancel()}isSupport(t,e){return!1}load(t,e,i){return Promise.resolve(this)}cancel(){this.abortController.abort()}yield(){return new Promise(t=>{setTimeout(t,0)})}extractFileName(t){const e=/[^/\\?#:]+(?=\?|#|$)/;return"string"==typeof t?(t.match(e)||[])[0]||"":t instanceof globalThis.File&&(t.name.match(e)||[])[0]||""}};class d{constructor(){this._providers=new Map}registerLoader(t,e){this._providers.set(t,e)}getLoader(t){return this._providers.get(t)}getLoaders(){const t=new Map;return this._providers.forEach((e,i)=>t.set(i,e)),t}createLoader(t,e,i){let n=null;return this._providers.forEach((s,r)=>{const a=s(t);a.isSupport(e,i)&&(n=a,n.name=r)}),n}}const u=new Map;function p(t=""){let e=u.get(t);return e||(e=new d,u.set(t,e)),e}function m(){return{showWCS:!0,cameraAnimation:!0,antialiasing:!0,groundShadow:!1,shadows:!1,cameraAxisXSpeed:4,cameraAxisYSpeed:1,ambientOcclusion:!1,enableStreamingMode:!0,enablePartialMode:!1,memoryLimit:3294967296,cuttingPlaneFillColor:{red:255,green:152,blue:0},enableSectionFill:!0,sectionFillColor:{r:255,g:152,b:0},sectionUseObjectColor:!1,enableSectionHatch:!0,sectionHatchColor:{r:0,g:0,b:0},sectionHatchScale:8,enableSectionOutline:!0,sectionOutlineColor:{r:0,g:0,b:0},sectionOutlineWidth:2,edgesColor:{r:255,g:152,b:0},facesColor:{r:255,g:152,b:0},edgesVisibility:!0,edgesOverlap:!0,facesOverlap:!1,facesTransparancy:200,enableCustomHighlight:!0,sceneGraph:!1,edgeModel:!0,reverseZoomWheel:!1,enableZoomWheel:!0,enableGestures:!0,geometryType:"vsfx",rulerUnit:"Default",rulerPrecision:2,cameraMode:"perspective",snapshotMimeType:"image/jpeg",snapshotQuality:.25}}function f(t){return"object"==typeof t&&null!==t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}class g{constructor(t){this._updateCount=0,this._emitter=t,this._data=g.defaults(),this._defaults=g.defaults(),this.loadFromStorage()}static defaults(){return{showWCS:!0,cameraAnimation:!0,antialiasing:!0,groundShadow:!1,shadows:!1,cameraAxisXSpeed:4,cameraAxisYSpeed:1,ambientOcclusion:!1,enableStreamingMode:!0,enablePartialMode:!1,memoryLimit:3294967296,cuttingPlaneFillColor:{red:255,green:152,blue:0},enableSectionFill:!0,sectionFillColor:{r:255,g:152,b:0},sectionUseObjectColor:!1,enableSectionHatch:!0,sectionHatchColor:{r:0,g:0,b:0},sectionHatchScale:8,enableSectionOutline:!0,sectionOutlineColor:{r:0,g:0,b:0},sectionOutlineWidth:2,edgesColor:{r:255,g:152,b:0},facesColor:{r:255,g:152,b:0},edgesVisibility:!0,edgesOverlap:!0,facesOverlap:!1,facesTransparancy:200,enableCustomHighlight:!0,sceneGraph:!1,edgeModel:!0,reverseZoomWheel:!1,enableZoomWheel:!0,enableGestures:!0,geometryType:"vsfx",rulerUnit:"Default",rulerPrecision:2,cameraMode:"perspective",snapshotMimeType:"image/jpeg",snapshotQuality:.25}}change(){void 0!==this._emitter&&0===this._updateCount&&(this.saveToStorage(),this._emitter.emit({type:"optionschange",data:this}))}beginUpdate(){this._updateCount++}endUpdate(){this._updateCount--,this.change()}saveToStorage(){if("undefined"!=typeof window)try{localStorage.setItem("od-client-settings",JSON.stringify(this.data))}catch(t){console.error("Cannot save client settings.",t)}}loadFromStorage(){if("undefined"!=typeof window)try{const t=localStorage.getItem("od-client-settings");t&&(this.data=JSON.parse(t))}catch(t){console.error("Cannot load client settings.",t)}}resetToDefaults(t,e=this._defaults){if(Array.isArray(t)){const i={};for(const n of t)n in e&&(i[n]=e[n]);this.data=i}else this.data=e}setProperty(t,e=this._defaults[t],i=this.isValidValue(t,e)){i?this._data[t]!==e&&(this._data[t]=e,this.change()):console.warn(`Options.${t}: Invalid value`,e)}isValidValue(t,e){return typeof e==typeof this._defaults[t]}get data(){return this._data}set data(t){this.beginUpdate();try{for(const e of Object.keys(t))e in this._defaults?this[e]=t[e]:this._data[e]=t[e];"enablePartialMode"in t&&(this.enablePartialMode=t.enablePartialMode),"sectionFillColor"in t&&(this.sectionFillColor=t.sectionFillColor)}finally{this.endUpdate()}}get showWCS(){return this._data.showWCS}set showWCS(t){this.setProperty("showWCS",t)}get cameraAnimation(){return this._data.cameraAnimation}set cameraAnimation(t){this.setProperty("cameraAnimation",t)}get antialiasing(){return this._data.antialiasing}set antialiasing(t){this.setProperty("antialiasing",t,"boolean"==typeof t||"string"==typeof t)}get groundShadow(){return this._data.groundShadow}set groundShadow(t){this.setProperty("groundShadow",t)}get shadows(){return this._data.shadows}set shadows(t){this.setProperty("shadows",t)}get cameraAxisXSpeed(){return this._data.cameraAxisXSpeed}set cameraAxisXSpeed(t){this.setProperty("cameraAxisXSpeed",t)}get cameraAxisYSpeed(){return this._data.cameraAxisYSpeed}set cameraAxisYSpeed(t){this.setProperty("cameraAxisYSpeed",t)}get ambientOcclusion(){return this._data.ambientOcclusion}set ambientOcclusion(t){this.setProperty("ambientOcclusion",t)}get enableStreamingMode(){return this._data.enableStreamingMode}set enableStreamingMode(t){this.setProperty("enableStreamingMode",t),this.setProperty("enablePartialMode",this.enablePartialMode&&this.enableStreamingMode)}get enablePartialMode(){return this._data.enablePartialMode}set enablePartialMode(t){this.setProperty("enablePartialMode",t),this.setProperty("enableStreamingMode",this.enableStreamingMode||this.enablePartialMode),this.setProperty("sceneGraph",this.sceneGraph&&!this.enablePartialMode)}get memoryLimit(){return this._data.memoryLimit}set memoryLimit(t){this.setProperty("memoryLimit",t)}get cuttingPlaneFillColor(){return this._data.cuttingPlaneFillColor}set cuttingPlaneFillColor(t){0===this._updateCount&&console.warn("Options.cuttingPlaneFillColor has been deprecated since 27.5 and will be removed in a future release, use sectionFillColor instead"),this.setProperty("cuttingPlaneFillColor",t,function(t){return"object"==typeof t&&null!==t&&"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue}(t)),this.setProperty("sectionFillColor",{r:this._data.cuttingPlaneFillColor.red,g:this._data.cuttingPlaneFillColor.green,b:this._data.cuttingPlaneFillColor.blue},!0)}get enableSectionFill(){return this._data.enableSectionFill}set enableSectionFill(t){this.setProperty("enableSectionFill",t)}get sectionFillColor(){return this._data.sectionFillColor}set sectionFillColor(t){this.setProperty("sectionFillColor",t,f(t)),this.setProperty("cuttingPlaneFillColor",{red:this._data.sectionFillColor.r,green:this._data.sectionFillColor.g,blue:this._data.sectionFillColor.b},!0)}get sectionUseObjectColor(){return this._data.sectionUseObjectColor}set sectionUseObjectColor(t){this.setProperty("sectionUseObjectColor",t)}get enableSectionHatch(){return this._data.enableSectionHatch}set enableSectionHatch(t){this.setProperty("enableSectionHatch",t)}get sectionHatchColor(){return this._data.sectionHatchColor}set sectionHatchColor(t){this.setProperty("sectionHatchColor",t,f(t))}get sectionHatchScale(){return this._data.sectionHatchScale}set sectionHatchScale(t){this.setProperty("sectionHatchScale",t)}get enableSectionOutline(){return this._data.enableSectionOutline}set enableSectionOutline(t){this.setProperty("enableSectionOutline",t)}get sectionOutlineColor(){return this._data.sectionOutlineColor}set sectionOutlineColor(t){this.setProperty("sectionOutlineColor",t,f(t))}get sectionOutlineWidth(){return this._data.sectionOutlineWidth}set sectionOutlineWidth(t){this.setProperty("sectionOutlineWidth",t)}get edgesColor(){return this._data.edgesColor}set edgesColor(t){this.setProperty("edgesColor",t,f(t))}get facesColor(){return this._data.facesColor}set facesColor(t){this.setProperty("facesColor",t,f(t))}get edgesVisibility(){return this._data.edgesVisibility}set edgesVisibility(t){this.setProperty("edgesVisibility",t)}get edgesOverlap(){return this._data.edgesOverlap}set edgesOverlap(t){this.setProperty("edgesOverlap",t)}get facesOverlap(){return this._data.facesOverlap}set facesOverlap(t){this.setProperty("facesOverlap",t)}get facesTransparancy(){return this._data.facesTransparancy}set facesTransparancy(t){this.setProperty("facesTransparancy",t)}get enableCustomHighlight(){return this._data.enableCustomHighlight}set enableCustomHighlight(t){this.setProperty("enableCustomHighlight",t)}get sceneGraph(){return this._data.sceneGraph}set sceneGraph(t){this.setProperty("sceneGraph",t),this.setProperty("enablePartialMode",this.enablePartialMode&&!this.sceneGraph)}get edgeModel(){return Boolean(this._data.edgeModel)}set edgeModel(t){this.setProperty("edgeModel",t)}get reverseZoomWheel(){return this._data.reverseZoomWheel}set reverseZoomWheel(t){this.setProperty("reverseZoomWheel",t)}get enableZoomWheel(){return this._data.enableZoomWheel}set enableZoomWheel(t){this.setProperty("enableZoomWheel",t)}get enableGestures(){return this._data.enableGestures}set enableGestures(t){this.setProperty("enableGestures",t)}get geometryType(){return this._data.geometryType}set geometryType(t){this.setProperty("geometryType",t)}get rulerUnit(){return this._data.rulerUnit}set rulerUnit(t){this.setProperty("rulerUnit",t)}get rulerPrecision(){return this._data.rulerPrecision}set rulerPrecision(t){this.setProperty("rulerPrecision",t,"number"==typeof t||"Default"===t||"Auto"===t)}get cameraMode(){return this._data.cameraMode}set cameraMode(t){this.setProperty("cameraMode",t,"perspective"===t||"orthographic"===t)}get snapshotMimeType(){return this._data.snapshotMimeType}set snapshotMimeType(t){this.setProperty("snapshotMimeType",t)}get snapshotQuality(){return this._data.snapshotQuality}set snapshotQuality(t){this.setProperty("snapshotQuality",t)}}const v=["click","contextmenu","dblclick","mousedown","mouseleave","mousemove","mouseup","pointercancel","pointerdown","pointerleave","pointermove","pointerup","touchcancel","touchend","touchmove","touchstart","wheel"],_=v;class y{constructor(){this.performance={fps:0,frameTime:0,timeToFirstRender:0,loadTime:0},this.render={viewport:{width:0,height:0},antialiasing:"",drawCalls:0,triangles:0,points:0,lines:0},this.scene={objects:0,triangles:0,points:0,lines:0,edges:0},this.optimizedScene={objects:0,triangles:0,points:0,lines:0,edges:0},this.memory={geometries:0,geometryBytes:0,optimizedGeometryBytes:0,textures:0,textureBytes:0,materials:0,totalEstimatedGpuBytes:0,usedJSHeapSize:0},this.system={webglRenderer:"",webglVendor:""}}}
24
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ODA=t.ODA||{},t.ODA.Three=t.ODA.Three||{}))}(this,function(t){"use strict";class e{constructor(){this._commands=new Map}registerCommand(t,e,i,n){this._commands.set(t,{id:t,handler:e,thisArg:n,description:i})}registerCommandAlias(t,e){this.registerCommand(e,(e,...i)=>this.executeCommand(t,e,...i))}getCommand(t){return this._commands.get(t)}getCommands(){const t=new Map;return this._commands.forEach((e,i)=>t.set(i,e)),t}executeCommand(t,e,...i){const n=this._commands.get(t);if(!n){if(e){if(e.draggers.includes(t))return e.setActiveDragger(t)}return void console.warn(`Command '${t}' not found`)}const{handler:s,thisArg:r}=n,a=s.apply(r,[e,...i]);return null==e||e.emit({type:"command",data:t,args:i}),a}}const i=new Map;function n(t=""){let n=i.get(t);return n||(n=new e,i.set(t,n)),n}class s{constructor(){this._providers=new Map}registerDragger(t,e){this._providers.set(t,e)}registerDraggerAlias(t,e){const i=this._providers.get(t);i&&this.registerDragger(e,t=>i(t))}getDraggers(){const t=new Map;return this._providers.forEach((e,i)=>t.set(i,e)),t}createDragger(t,e){const i=this._providers.get(t);if(!i)return null;const n=i(e);return n.name=t,n}}const r=new Map;function a(t=""){let e=r.get(t);return e||(e=new s,r.set(t,e)),e}class o{constructor(){this._providers=new Map}registerComponent(t,e){this._providers.set(t,e)}registerComponentAlias(t,e){const i=this._providers.get(t);i&&this.registerComponent(e,t=>i(t))}getComponents(){const t=new Map;return this._providers.forEach((e,i)=>t.set(i,e)),t}createComponent(t,e){const i=this._providers.get(t);if(!i)return null;const n=i(e);return n.name=t,n}}const h=new Map;function l(t=""){let e=h.get(t);return e||(e=new o,h.set(t,e)),e}let c=class{constructor(){this.name="",this.abortController=new AbortController}dispose(){this.cancel()}isSupport(t,e){return!1}load(t,e,i){return Promise.resolve(this)}cancel(){this.abortController.abort()}yield(){return new Promise(t=>{setTimeout(t,0)})}extractFileName(t){const e=/[^/\\?#:]+(?=\?|#|$)/;return"string"==typeof t?(t.match(e)||[])[0]||"":t instanceof globalThis.File&&(t.name.match(e)||[])[0]||""}};class d{constructor(){this._providers=new Map}registerLoader(t,e){this._providers.set(t,e)}getLoader(t){return this._providers.get(t)}getLoaders(){const t=new Map;return this._providers.forEach((e,i)=>t.set(i,e)),t}createLoader(t,e,i){let n=null;return this._providers.forEach((s,r)=>{const a=s(t);a.isSupport(e,i)&&(n=a,n.name=r)}),n}}const u=new Map;function p(t=""){let e=u.get(t);return e||(e=new d,u.set(t,e)),e}function m(){return{showWCS:!0,cameraAnimation:!0,antialiasing:!0,groundShadow:!1,shadows:!1,cameraAxisXSpeed:4,cameraAxisYSpeed:1,ambientOcclusion:!1,enableStreamingMode:!0,enablePartialMode:!1,memoryLimit:3294967296,cuttingPlaneFillColor:{red:255,green:152,blue:0},enableSectionFill:!0,sectionFillColor:{r:255,g:152,b:0},sectionUseObjectColor:!1,enableSectionHatch:!0,sectionHatchColor:{r:0,g:0,b:0},sectionHatchScale:8,enableSectionOutline:!0,sectionOutlineColor:{r:0,g:0,b:0},sectionOutlineWidth:2,edgesColor:{r:255,g:152,b:0},facesColor:{r:255,g:152,b:0},edgesVisibility:!0,edgesOverlap:!0,facesOverlap:!1,facesTransparancy:200,enableCustomHighlight:!0,sceneGraph:!1,edgeModel:!0,reverseZoomWheel:!1,enableZoomWheel:!0,enableGestures:!0,geometryType:"vsfx",rulerUnit:"Default",rulerPrecision:2,cameraMode:"perspective",snapshotMimeType:"image/jpeg",snapshotQuality:.25}}function f(t){return"object"==typeof t&&null!==t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}class g{constructor(t){this._updateCount=0,this._emitter=t,this._data=g.defaults(),this._defaults=g.defaults(),this.loadFromStorage()}static defaults(){return{showWCS:!0,cameraAnimation:!0,antialiasing:!0,groundShadow:!1,shadows:!1,cameraAxisXSpeed:4,cameraAxisYSpeed:1,ambientOcclusion:!1,enableStreamingMode:!0,enablePartialMode:!1,memoryLimit:3294967296,cuttingPlaneFillColor:{red:255,green:152,blue:0},enableSectionFill:!0,sectionFillColor:{r:255,g:152,b:0},sectionUseObjectColor:!1,enableSectionHatch:!0,sectionHatchColor:{r:0,g:0,b:0},sectionHatchScale:8,enableSectionOutline:!0,sectionOutlineColor:{r:0,g:0,b:0},sectionOutlineWidth:2,edgesColor:{r:255,g:152,b:0},facesColor:{r:255,g:152,b:0},edgesVisibility:!0,edgesOverlap:!0,facesOverlap:!1,facesTransparancy:200,enableCustomHighlight:!0,sceneGraph:!1,edgeModel:!0,reverseZoomWheel:!1,enableZoomWheel:!0,enableGestures:!0,geometryType:"vsfx",rulerUnit:"Default",rulerPrecision:2,cameraMode:"perspective",snapshotMimeType:"image/jpeg",snapshotQuality:.25}}change(){void 0!==this._emitter&&0===this._updateCount&&(this.saveToStorage(),this._emitter.emit({type:"optionschange",data:this}))}beginUpdate(){this._updateCount++}endUpdate(){this._updateCount--,this.change()}saveToStorage(){if("undefined"!=typeof window)try{localStorage.setItem("od-client-settings",JSON.stringify(this.data))}catch(t){console.error("Cannot save client settings.",t)}}loadFromStorage(){if("undefined"!=typeof window)try{const t=localStorage.getItem("od-client-settings");t&&(this.data=JSON.parse(t))}catch(t){console.error("Cannot load client settings.",t)}}resetToDefaults(t,e=this._defaults){if(Array.isArray(t)){const i={};for(const n of t)n in e&&(i[n]=e[n]);this.data=i}else this.data=e}setProperty(t,e=this._defaults[t],i=this.isValidValue(t,e)){i?this._data[t]!==e&&(this._data[t]=e,this.change()):console.warn(`Options.${t}: Invalid value`,e)}isValidValue(t,e){return typeof e==typeof this._defaults[t]}get data(){return this._data}set data(t){this.beginUpdate();try{for(const e of Object.keys(t))e in this._defaults?this[e]=t[e]:this._data[e]=t[e];"enablePartialMode"in t&&(this.enablePartialMode=t.enablePartialMode),"sectionFillColor"in t&&(this.sectionFillColor=t.sectionFillColor)}finally{this.endUpdate()}}get showWCS(){return this._data.showWCS}set showWCS(t){this.setProperty("showWCS",t)}get cameraAnimation(){return this._data.cameraAnimation}set cameraAnimation(t){this.setProperty("cameraAnimation",t)}get antialiasing(){return this._data.antialiasing}set antialiasing(t){this.setProperty("antialiasing",t,"boolean"==typeof t||"string"==typeof t)}get groundShadow(){return this._data.groundShadow}set groundShadow(t){this.setProperty("groundShadow",t)}get shadows(){return this._data.shadows}set shadows(t){this.setProperty("shadows",t)}get cameraAxisXSpeed(){return this._data.cameraAxisXSpeed}set cameraAxisXSpeed(t){this.setProperty("cameraAxisXSpeed",t)}get cameraAxisYSpeed(){return this._data.cameraAxisYSpeed}set cameraAxisYSpeed(t){this.setProperty("cameraAxisYSpeed",t)}get ambientOcclusion(){return this._data.ambientOcclusion}set ambientOcclusion(t){this.setProperty("ambientOcclusion",t)}get enableStreamingMode(){return this._data.enableStreamingMode}set enableStreamingMode(t){this.beginUpdate();try{this.setProperty("enableStreamingMode",t),this.setProperty("enablePartialMode",this.enablePartialMode&&this.enableStreamingMode)}finally{this.endUpdate()}}get enablePartialMode(){return this._data.enablePartialMode}set enablePartialMode(t){this.beginUpdate();try{this.setProperty("enablePartialMode",t),this.setProperty("enableStreamingMode",this.enableStreamingMode||this.enablePartialMode),this.setProperty("sceneGraph",this.sceneGraph&&!this.enablePartialMode)}finally{this.endUpdate()}}get memoryLimit(){return this._data.memoryLimit}set memoryLimit(t){this.setProperty("memoryLimit",t)}get cuttingPlaneFillColor(){return this._data.cuttingPlaneFillColor}set cuttingPlaneFillColor(t){0===this._updateCount&&console.warn("Options.cuttingPlaneFillColor has been deprecated since 27.5 and will be removed in a future release, use sectionFillColor instead"),this.beginUpdate();try{this.setProperty("cuttingPlaneFillColor",t,function(t){return"object"==typeof t&&null!==t&&"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue}(t)),this.setProperty("sectionFillColor",{r:this._data.cuttingPlaneFillColor.red,g:this._data.cuttingPlaneFillColor.green,b:this._data.cuttingPlaneFillColor.blue})}finally{this.endUpdate()}}get enableSectionFill(){return this._data.enableSectionFill}set enableSectionFill(t){this.setProperty("enableSectionFill",t)}get sectionFillColor(){return this._data.sectionFillColor}set sectionFillColor(t){this.beginUpdate();try{this.setProperty("sectionFillColor",t,f(t)),this.setProperty("cuttingPlaneFillColor",{red:this._data.sectionFillColor.r,green:this._data.sectionFillColor.g,blue:this._data.sectionFillColor.b})}finally{this.endUpdate()}}get sectionUseObjectColor(){return this._data.sectionUseObjectColor}set sectionUseObjectColor(t){this.setProperty("sectionUseObjectColor",t)}get enableSectionHatch(){return this._data.enableSectionHatch}set enableSectionHatch(t){this.setProperty("enableSectionHatch",t)}get sectionHatchColor(){return this._data.sectionHatchColor}set sectionHatchColor(t){this.setProperty("sectionHatchColor",t,f(t))}get sectionHatchScale(){return this._data.sectionHatchScale}set sectionHatchScale(t){this.setProperty("sectionHatchScale",t)}get enableSectionOutline(){return this._data.enableSectionOutline}set enableSectionOutline(t){this.setProperty("enableSectionOutline",t)}get sectionOutlineColor(){return this._data.sectionOutlineColor}set sectionOutlineColor(t){this.setProperty("sectionOutlineColor",t,f(t))}get sectionOutlineWidth(){return this._data.sectionOutlineWidth}set sectionOutlineWidth(t){this.setProperty("sectionOutlineWidth",t)}get edgesColor(){return this._data.edgesColor}set edgesColor(t){this.setProperty("edgesColor",t,f(t))}get facesColor(){return this._data.facesColor}set facesColor(t){this.setProperty("facesColor",t,f(t))}get edgesVisibility(){return this._data.edgesVisibility}set edgesVisibility(t){this.setProperty("edgesVisibility",t)}get edgesOverlap(){return this._data.edgesOverlap}set edgesOverlap(t){this.setProperty("edgesOverlap",t)}get facesOverlap(){return this._data.facesOverlap}set facesOverlap(t){this.setProperty("facesOverlap",t)}get facesTransparancy(){return this._data.facesTransparancy}set facesTransparancy(t){this.setProperty("facesTransparancy",t)}get enableCustomHighlight(){return this._data.enableCustomHighlight}set enableCustomHighlight(t){this.setProperty("enableCustomHighlight",t)}get sceneGraph(){return this._data.sceneGraph}set sceneGraph(t){this.beginUpdate();try{this.setProperty("sceneGraph",t),this.setProperty("enablePartialMode",this.enablePartialMode&&!this.sceneGraph)}finally{this.endUpdate()}}get edgeModel(){return Boolean(this._data.edgeModel)}set edgeModel(t){this.setProperty("edgeModel",t)}get reverseZoomWheel(){return this._data.reverseZoomWheel}set reverseZoomWheel(t){this.setProperty("reverseZoomWheel",t)}get enableZoomWheel(){return this._data.enableZoomWheel}set enableZoomWheel(t){this.setProperty("enableZoomWheel",t)}get enableGestures(){return this._data.enableGestures}set enableGestures(t){this.setProperty("enableGestures",t)}get geometryType(){return this._data.geometryType}set geometryType(t){this.setProperty("geometryType",t)}get rulerUnit(){return this._data.rulerUnit}set rulerUnit(t){this.setProperty("rulerUnit",t)}get rulerPrecision(){return this._data.rulerPrecision}set rulerPrecision(t){this.setProperty("rulerPrecision",t,"number"==typeof t||"Default"===t||"Auto"===t)}get cameraMode(){return this._data.cameraMode}set cameraMode(t){this.setProperty("cameraMode",t,"perspective"===t||"orthographic"===t)}get snapshotMimeType(){return this._data.snapshotMimeType}set snapshotMimeType(t){this.setProperty("snapshotMimeType",t)}get snapshotQuality(){return this._data.snapshotQuality}set snapshotQuality(t){this.setProperty("snapshotQuality",t)}}const v=["click","contextmenu","dblclick","mousedown","mouseleave","mousemove","mouseup","pointercancel","pointerdown","pointerleave","pointermove","pointerup","touchcancel","touchend","touchmove","touchstart","wheel"],_=v;class y{constructor(){this.performance={fps:0,frameTime:0,timeToFirstRender:0,loadTime:0},this.render={viewport:{width:0,height:0},antialiasing:"",drawCalls:0,triangles:0,points:0,lines:0},this.scene={objects:0,triangles:0,points:0,lines:0,edges:0},this.optimizedScene={objects:0,triangles:0,points:0,lines:0,edges:0},this.memory={geometries:0,geometryBytes:0,optimizedGeometryBytes:0,textures:0,textureBytes:0,materials:0,totalEstimatedGpuBytes:0,usedJSHeapSize:0},this.system={webglRenderer:"",webglVendor:""}}}
25
25
  /**
26
26
  * @license
27
27
  * Copyright 2010-2025 Three.js Authors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inweb/viewer-three",
3
- "version": "27.6.1",
3
+ "version": "27.6.2",
4
4
  "description": "JavaScript library for rendering CAD and BIM files in a browser using Three.js",
5
5
  "homepage": "https://cloud.opendesign.com/docs/index.html",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -35,10 +35,10 @@
35
35
  "docs": "typedoc"
36
36
  },
37
37
  "dependencies": {
38
- "@inweb/client": "~27.6.1",
39
- "@inweb/eventemitter2": "~27.6.1",
40
- "@inweb/markup": "~27.6.1",
41
- "@inweb/viewer-core": "~27.6.1"
38
+ "@inweb/client": "~27.6.2",
39
+ "@inweb/eventemitter2": "~27.6.2",
40
+ "@inweb/markup": "~27.6.2",
41
+ "@inweb/viewer-core": "~27.6.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@streamparser/json": "^0.0.22",