pccv_front/public/autodesk/extensions/BoxSelection/BoxSelection.min.js
2025-08-29 11:44:29 +08:00

18 lines
19 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* LMV v7.99.1
*
* Copyright 2024 Autodesk, Inc.
* All rights reserved.
*
* This computer source code and related instructions and comments are the
* unpublished confidential and proprietary information of Autodesk, Inc.
* and are protected under Federal copyright and state trade secret law.
* They may not be disclosed to, copied or used by any third party without
* the prior written consent of Autodesk, Inc.
*
* Autodesk Viewer SDK Usage Limitations:
*
* The Autodesk Viewer SDK JavaScript must be delivered from an
* Autodesk-hosted URL.
*/(()=>{var e={3600:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(1354),i=o.n(n),s=o(6314),r=o.n(s)()(i());r.push([e.id,".icon-box-selection{fill:none;stroke:currentColor;stroke-width:1;stroke-dasharray:4 2}.box-selection-contains{border:1px solid gray;background-color:rgba(75,160,255,.3);position:fixed}.box-selection-intersects{border:1px dotted gray;background-color:rgba(75,255,160,.3);position:fixed}","",{version:3,sources:["webpack://./extensions/BoxSelection/BoxSelection.css"],names:[],mappings:"AAAA,oBAAoB,SAAS,CAAC,mBAAmB,CAAC,cAAc,CAAC,oBAAoB,CAAC,wBAAwB,qBAAqB,CAAC,oCAAoC,CAAC,cAAc,CAAC,0BAA0B,sBAAsB,CAAC,oCAAoC,CAAC,cAAc",sourcesContent:[".icon-box-selection{fill:none;stroke:currentColor;stroke-width:1;stroke-dasharray:4 2}.box-selection-contains{border:1px solid gray;background-color:rgba(75,160,255,.3);position:fixed}.box-selection-intersects{border:1px dotted gray;background-color:rgba(75,255,160,.3);position:fixed}"],sourceRoot:""}]);const a=r},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,i,s){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var h=[].concat(e[c]);n&&r[h[0]]||(void 0!==s&&(void 0===h[5]||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=s),o&&(h[2]?(h[1]="@media ".concat(h[2]," {").concat(h[1],"}"),h[2]=o):h[2]=o),i&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=i):h[4]="".concat(i)),t.push(h))}},t}},1354:e=>{"use strict";e.exports=function(e){var t=e[1],o=e[3];if(!o)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),s="/*# ".concat(i," */");return[t].concat([s]).join("\n")}return[t].join("\n")}},5072:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var s={},r=[],a=0;a<e.length;a++){var l=e[a],c=n.base?l[0]+n.base:l[0],h=s[c]||0,u="".concat(c," ").concat(h);s[c]=h+1;var d=o(u),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var x=i(p,n);n.byIndex=a,t.splice(a,0,{identifier:u,updater:x,references:1})}r.push(u)}return r}function i(e,t){var o=t.domAPI(t);o.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,i){var s=n(e=e||[],i=i||{});return function(e){e=e||[];for(var r=0;r<s.length;r++){var a=o(s[r]);t[a].references--}for(var l=n(e,i),c=0;c<s.length;c++){var h=o(s[c]);0===t[h].references&&(t[h].updater(),t.splice(h,1))}s=l}}},7659:e=>{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var i=void 0!==o.layer;i&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,i&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var s=o.sourceMap;s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={id:n,exports:{}};return e[n](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var n={};(()=>{"use strict";o.r(n),o.d(n,{BoxSelectionExtension:()=>ie});const e=THREE.Vector4,t=0,i=1,s=2;function r(e,t){switch(t){case 0:return e.x;case 1:return e.y;case 2:return e.z}return 0}function a(o,n,s,a,l,c){return function(t,o,n,i,s){var a,l,c,h,u;o.length=0,l=t.length&&t[t.length-1],h=i*r(l,n)-l.w*s;for(var d=0;d<t.length;d++,l=a,h=u){if(h<=0^(u=i*r(a=t[d],n)-a.w*s)<=0){c=h/(h-u);var p=new e;p.x=l.x+c*(a.x-l.x),p.y=l.y+c*(a.y-l.y),p.z=l.z+c*(a.z-l.z),p.w=l.w+c*(a.w-l.w),o.push(p)}u<=0&&o.push(a.clone())}}(a[0],l[0],o,n,n*s),0===l[0].length?t:(h=a,u=l,(d=c)[0]=h[0],h[0]=u[0],u[0]=d[0],i);var h,u,d}function l(e,o){for(var n=0,r=0,l=0,c=0,h=0,u=0,d=e.length,p=0;p<d;p++){var x=e[p];x.x<o.min.x*x.w&&n++,x.x>o.max.x*x.w&&r++,x.y<o.min.y*x.w&&l++,x.y>o.max.y*x.w&&c++,x.z<o.min.z*x.w&&h++,x.z>o.max.z*x.w&&u++}if(n+r+l+c+h+u===0)return s;if(n===d||r===d||l===d||c===d||h===d||u===d)return e.length=0,t;var m=[],v=[e],S=[m],y=[null];return n&&a(0,-1,o.min.x,v,S,y)===t||r&&a(0,1,o.max.x,v,S,y)===t||l&&a(1,-1,o.min.y,v,S,y)===t||c&&a(1,1,o.max.y,v,S,y)===t||h&&a(2,-1,o.min.z,v,S,y)===t||u&&a(2,1,o.max.z,v,S,y)===t?(e.length=0,t):(v[0]===m&&(e.length=0,e.push(...m)),i)}const{enumMeshLines:c,enumMeshTriangles:h}=Autodesk.Viewing.Private.VertexEnumerator,u=THREE.Frustum,d=THREE.Vector3,p=THREE.Vector4,x=THREE.Box3,m=THREE.Matrix4;var v=new u,S=new m,y=new m,g=new THREE.Box3;g.min.x=-1,g.min.y=-1,g.min.z=-1,g.max.x=1,g.max.y=1,g.max.z=1;var f=new x,w=new d,A=new d,b=new d,T=new d,C=new d,P=new d,B=new d,E=new d,N=new d,M=new d,O=new p,I=new p,k=new p;function z(e,t){for(var o=N,n=M,i=e.planes,s=0,r=0;r<6;r++){var a=i[r];o.x=a.normal.x>0?t.min.x:t.max.x,n.x=a.normal.x>0?t.max.x:t.min.x,o.y=a.normal.y>0?t.min.y:t.max.y,n.y=a.normal.y>0?t.max.y:t.min.y,o.z=a.normal.z>0?t.min.z:t.max.z,n.z=a.normal.z>0?t.max.z:t.min.z;var l=a.distanceToPoint(o),c=a.distanceToPoint(n);if(l<0&&c<0)return 0;l>0&&c>0&&s++}return 6===s?2:1}function V(e,t,o){let n=e.x,i=e.y,s=e.z,r=t.elements;o.x=r[0]*n+r[4]*i+r[8]*s+r[12],o.y=r[1]*n+r[5]*i+r[9]*s+r[13],o.z=r[2]*n+r[6]*i+r[10]*s+r[14],o.w=r[3]*n+r[7]*i+r[11]*s+r[15]}function R(e,o,n,i){let r=!0,a=!1;return e.isLine?c(e,((e,i)=>{V(e,o,O),V(i,o,I);let c=l([O,I,k],n);c!==s&&(r=!1),c!==t&&(a=!0)})):h(e,((e,i,c)=>{V(e,o,O),V(i,o,I),V(c,o,k);let h=l([O,I,k],n);h!==s&&(r=!1),h!==t&&(a=!0)})),r?2:a?1:0}function H(e,t){this.camera=e,this.scene=t,this.startPoint=new d,this.endPoint=new d,this.result=[]}H.prototype.select=function(e,t,o){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.result=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInRenderScene(v,o),this.result},H.prototype.updateFrustum=function(e,t){e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),S.multiplyMatrices(this.camera.projectionMatrix,S.copy(this.camera.matrixWorld).invert());var o=Math.min(e.x,t.x),n=Math.max(e.y,t.y),i=Math.max(e.x,t.x),s=Math.min(e.y,t.y);w.set(o,n,-1),A.set(i,n,-1),b.set(i,s,-1),T.set(o,s,-1),C.set(o,n,1),P.set(i,n,1),B.set(i,s,1),E.set(o,s,1),g.min.x=o,g.min.y=s,g.min.z=-1,g.max.x=i,g.max.y=n,g.max.z=1,y.copy(S).invert(),w.applyProjection(y),A.applyProjection(y),b.applyProjection(y),T.applyProjection(y),C.applyProjection(y),P.applyProjection(y),B.applyProjection(y),E.applyProjection(y);var r=v.planes;r[0].setFromCoplanarPoints(w,C,P),r[1].setFromCoplanarPoints(A,P,B),r[2].setFromCoplanarPoints(B,E,T),r[3].setFromCoplanarPoints(E,C,w),r[4].setFromCoplanarPoints(A,b,T),r[5].setFromCoplanarPoints(B,P,C)},H.prototype.searchChildInRenderScene=function(e,t){let o=this.scene.getModels(),n={intersectsBox:function(t){return z(e,t)}};for(let i of o){let o=i.getFragmentList(),s=new Map;if(i.getIterator().intersectFrustum(n,((t,n)=>{let i;if(n?i=2:(o.getWorldBounds(t,f),i=z(e,f)),0===i)return;if(2!==i){o.getWorldMatrix(t,y),y.multiplyMatrices(S,y),i=R(o.getGeometry(t),y,g)}if(0===i)return;let r=o.getDbIds(t),a=s.get(r);(void 0===a||2===a&&2!==i)&&s.set(r,i)})),t){let e={model:i,ids:[]};s.forEach(((t,o)=>{2===t&&e.ids.push(o)})),this.result.push(e)}else this.result.push({model:i,ids:Array.from(s.keys())})}};class L{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.viewer=e,this.options=t,this.isDown=!1,this.element=document.createElement("div"),this.styleContains=this.options.styleContains||this.options.cssClassName||"box-selection-contains",this.styleIntersects=this.options.styleIntersects||this.options.cssClassName||"box-selection-intersects",this.element.classList.add(this.styleContains),this.element.style.pointerEvents="none",this.startPoint=new THREE.Vector2,this.endPoint=new THREE.Vector2,this.useGeometricIntersection=this.options.useGeometricIntersection||Autodesk.Viewing.isMobileDevice(),this.boxIntersection=new H(this.viewer.getCamera(),this.viewer.impl.modelQueue())}getName(){return"box-selection"}getNames(){return["box-selection"]}activate(){this.active=!0}deactivate(){this.onSelectOver(),this.active=!1}isActive(){return this.active}getCursor(){return"crosshair"}register(){}handleGesture(e){switch(e.type){case"dragstart":return this.handleButtonDown(e,0);case"dragmove":return this.handleMouseMove(e);case"dragend":return this.handleButtonUp(e,0)}return!1}handleButtonDown(e,t){return 0===t&&(this.viewer.impl.selector.clearSelection(),this.isDown=!0,this.onSelectStart(e),!0)}handleMouseMove(e){return!!this.isDown&&(this.onSelectMove(e),!0)}handleButtonUp(e,t){if(0!==t)return!1;this.isDown=!1,this.onSelectOver(e);const o=this.getSelection();return o.forEach((e=>{e.selectionType=this.options.selectionType})),this.viewer.impl.selector.setAggregateSelection(o),!0}getSelection(){const e=this.viewer.impl.getCanvasBoundingClientRect(),t=this.viewer.impl.clientToViewport(Math.min(this.startPoint.x,this.endPoint.x)-e.left,Math.max(this.startPoint.y,this.endPoint.y)-e.top),o=this.viewer.impl.clientToViewport(Math.max(this.startPoint.x,this.endPoint.x)-e.left,Math.min(this.startPoint.y,this.endPoint.y)-e.top);if(this.useGeometricIntersection)return this.boxIntersection.select(t,o,this.endPoint.x>this.startPoint.x);{const e=this.viewer.impl.hitBoxTestViewport(t,Math.abs(this.startPoint.x-this.endPoint.x)/this.viewer.impl.canvas.clientWidth,Math.abs(this.startPoint.y-this.endPoint.y)/this.viewer.impl.canvas.clientHeight),o=[],n={},i={};for(let t=0;t<e.length;t++){const o=e[t].model.id;i[o]||(i[o]=e[t].model),n[o]||(n[o]=[]),n[o].push(e[t].dbId)}for(let e in n)o.push({model:i[e],ids:n[e]});return o}}onSelectStart(e){let t,o;this.viewer.canvas.parentElement.appendChild(this.element),e.changedPointers&&e.changedPointers.length?(t=e.changedPointers[0].clientX,o=e.changedPointers[0].clientY):(t=e.clientX,o=e.clientY),this.element.style.left=t+"px",this.element.style.top=o+"px",this.element.style.width="0px",this.element.style.height="0px",this.startPoint.x=t,this.startPoint.y=o}onSelectMove(e){let t,o;e.changedPointers&&e.changedPointers.length?(t=e.changedPointers[0].clientX,o=e.changedPointers[0].clientY):(t=e.clientX,o=e.clientY),this.endPoint.x=t,this.endPoint.y=o;let n=Math.min(this.startPoint.x,this.endPoint.x),i=Math.max(this.startPoint.x,this.endPoint.x),s=Math.min(this.startPoint.y,this.endPoint.y),r=Math.max(this.startPoint.y,this.endPoint.y);this.element.style.left=n+"px",this.element.style.top=s+"px",this.element.style.width=i-n+"px",this.element.style.height=r-s+"px",this.useGeometricIntersection&&this.endPoint.x>=this.startPoint.x?this.element.classList.replace(this.styleIntersects,this.styleContains):this.element.classList.replace(this.styleContains,this.styleIntersects)}onSelectOver(){this.element.parentElement&&this.element.parentElement.removeChild(this.element)}}const J={en:JSON.parse('{"@@locale":"en","@@context":"BoxSelection Extension","Select":"Select"}'),"en-GB":JSON.parse('{"@@locale":"en","@@context":"BoxSelection Extension","Select":"Select"}'),cs:JSON.parse('{"@@locale":"cs","@@context":"Rozšíření BoxSelection","Select":"Vybrat"}'),de:JSON.parse('{"@@locale":"de","@@context":"Erweiterung BoxSelection","Select":"Auswählen"}'),es:JSON.parse('{"@@locale":"es","@@context":"BoxSelection Extension","Select":"Seleccionar"}'),fr:JSON.parse('{"@@locale":"fr","@@context":"Extension BoxSelection","Select":"Sélectionner"}'),"fr-CA":JSON.parse('{"@@locale":"fr-CA","@@context":"Extension BoxSelection","Select":"Sélectionner"}'),it:JSON.parse('{"@@locale":"it","@@context":"Estensione BoxSelection","Select":"Seleziona"}'),ja:JSON.parse('{"@@locale":"ja","@@context":"BoxSelection Extension","Select":"選択"}'),ko:JSON.parse('{"@@locale":"ko","@@context":"BoxSelection 확장","Select":"선택"}'),pl:JSON.parse('{"@@locale":"pl","@@context":"Rozszerzenie BoxSelection","Select":"Wybierz"}'),"pt-BR":JSON.parse('{"@@locale":"pt","@@context":"Extensão BoxSelection","Select":"Selecionar"}'),ru:JSON.parse('{"@@locale":"ru","@@context":"Расширение BoxSelection","Select":"Выбрать"}'),tr:JSON.parse('{"@@locale":"tr","@@context":"BoxSelection Uzantısı","Select":"Seç"}'),"zh-Hans":JSON.parse('{"@@locale":"zh-Hans","@@context":"BoxSelection 扩展","Select":"选择"}'),"zh-Hant":JSON.parse('{"@@locale":"zh-Hant","@@context":"BoxSelection 延伸","Select":"選取"}'),"zh-HK":JSON.parse('{"@@locale":"zh-hk","@@context":"BoxSelection 擴充程式","Select":"選取"}'),nl:JSON.parse('{"@@locale":"nl","@@context":"BoxSelection-extensie","Select":"Selecteren"}'),sv:JSON.parse('{"@@locale":"sv","@@context":"BoxSelection-tillägg","Select":"Välj"}'),da:JSON.parse('{"@@locale":"da","@@context":"BoxSelection-udvidelse","Select":"Vælg"}'),no:JSON.parse('{"@@locale":"no","@@context":"BoxSelection-utvidelse","Select":"Velg"}')};var _=o(5072),j=o.n(_),F=o(7825),U=o.n(F),D=o(7659),G=o.n(D),W=o(5056),K=o.n(W),X=o(540),Y=o.n(X),q=o(1113),Q=o.n(q),Z=o(3600),$={};$.styleTagTransform=Q(),$.setAttributes=K(),$.insert=G().bind(null,"head"),$.domAPI=U(),$.insertStyleElement=Y();j()(Z.A,$);Z.A&&Z.A.locals&&Z.A.locals;const ee=Autodesk.Viewing,te=ee.UI.Button.State,oe="box-selection",ne=oe;class ie extends ee.Extension{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,t),this.name=oe,this._onToolChanged=this._onToolChanged.bind(this),this.options.selectionType=t.selectionType||(t.useGeometricIntersection?ee.SelectionType.REGULAR:ee.SelectionType.MIXED)}load(){return this.extendLocalization(J),this.boxSelectionTool=new L(this.viewer,this.options),this.viewer.toolController.registerTool(this.boxSelectionTool,((e,t)=>{this.setActive(e,t)})),this.registerHotkeys(),!0}unload(){if(this.viewer.getActiveNavigationTool()===ne&&this.viewer.setActiveNavigationTool(),this.boxSelectionToolButton){const e=this.viewer.getToolbar().getControl(Autodesk.Viewing.TOOLBAR.NAVTOOLSID);e&&(e.removeControl(this.boxSelectionToolButton.getId()),this.boxSelectionToolButton=null)}return this.viewer.toolController.deregisterTool(this.boxSelectionTool),this.viewer.removeEventListener(Autodesk.Viewing.TOOL_CHANGE_EVENT,this._onToolChanged),this.viewer.getHotkeyManager().popHotkeys("Autodesk.BoxSelection"),!0}createToolbarButton(){const e=new Autodesk.Viewing.UI.Button("toolbar-box-selection");e.setIcon("adsk-icon-selection"),e.setToolTip("Select"),e.onClick=()=>{const t=e.getState();t===Autodesk.Viewing.UI.Button.State.INACTIVE?this.activate(oe):t===Autodesk.Viewing.UI.Button.State.ACTIVE&&this.deactivate()},this.boxSelectionToolButton=e}addToolbarButton(e){var t,o;if(!this.boxSelectionToolButton)return;const n=null===(t=(o=this.viewer).getToolbar)||void 0===t?void 0:t.call(o),i=null==n?void 0:n.getControl(Autodesk.Viewing.TOOLBAR.NAVTOOLSID);if(!i)return;const s=i.getControl(this.boxSelectionToolButton.getId());e&&!s?i.addControl(this.boxSelectionToolButton,{index:0}):!e&&s&&i.removeControl(this.boxSelectionToolButton)}onToolbarCreated(e){this.viewer.addEventListener(Autodesk.Viewing.TOOL_CHANGE_EVENT,this._onToolChanged),this.createToolbarButton(),this.addToolbarButton(!1)}registerHotkeys(){this.viewer.getHotkeyManager().pushHotkeys("Autodesk.BoxSelection",[{keycodes:[Autodesk.Viewing.KeyCode.CONTROL],onPress:()=>(this.boxSelectionTool.isActive()||(this.viewer.toolController.activateTool(this.boxSelectionTool.getName()),this.boxSelectionTool.__hotKey=!0),!0),onRelease:()=>(this.boxSelectionTool.__hotKey&&(this.viewer.toolController.deactivateTool(this.boxSelectionTool.getName()),this.boxSelectionTool.__hotKey=!1),!0)}])}activate(e){return e===oe&&(this._updateActiveState(!0),this.viewer.setActiveNavigationTool(oe)),!0}deactivate(){return this.viewer.setActiveNavigationTool(),this._updateActiveState(!1),!0}setSelectionType(e){this.options.selectionType=e||ee.SelectionType.REGULAR}_updateActiveState(e){this.activeStatus=e,this.mode=e?oe:""}_onToolChanged(e){if(e.toolName===ne&&this.boxSelectionToolButton){const t=e.active?te.ACTIVE:te.INACTIVE;this.boxSelectionToolButton.setState(t),this._updateActiveState(!t)}}}ee.theExtensionManager.registerExtension("Autodesk.BoxSelection",ie)})(),Autodesk.Extensions.BoxSelection=n})();
//# sourceMappingURL=BoxSelection.min.js.map