@xtctwins/tctwins-bimx-engine 0.2.43 → 0.2.44
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/dist/{AnnotationTool-sCipowlW.mjs → AnnotationTool-DlWXzpPe.mjs} +2 -2
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +1 -1
- package/dist/{CommentTool-hbyFQWDo.mjs → CommentTool-C0GJuglr.mjs} +1 -1
- package/dist/{HiddenTool-CziWl19M.mjs → HiddenTool-C84vGAtK.mjs} +1 -1
- package/dist/{InspectorTool-DWMmVnRj.mjs → InspectorTool-DmwjDZMT.mjs} +3 -3
- package/dist/{MeasureTool-BSxAxLjA.mjs → MeasureTool-CctdiJZ5.mjs} +2 -2
- package/dist/{MouseTool-CL7vH3JV.mjs → MouseTool-0cUY9YI6.mjs} +1 -1
- package/dist/{NavigateTool-BxSHuhXe.mjs → NavigateTool-DD3wibk3.mjs} +1 -1
- package/dist/{RoamTool-CfsDt0JW.mjs → RoamTool-DfdjoYNI.mjs} +1 -1
- package/dist/{ScreenShotTool-B9hkkidu.mjs → ScreenShotTool-Cc8EuVgN.mjs} +2 -2
- package/dist/{SectionTool-C3csdwlU.mjs → SectionTool--31htn2k.mjs} +4 -4
- package/dist/{SettingTool-CxmgYQNM.mjs → SettingTool-B8kwPsNg.mjs} +3 -3
- package/dist/{StructureTree-_xUu206_.mjs → StructureTree-DNSm4_KZ.mjs} +3 -3
- package/dist/{alert-3HKRgQM3.mjs → alert-BBtNdmZc.mjs} +1 -1
- package/dist/{el-input-number-BmRxy_au.mjs → el-input-number-cVe5h6tA.mjs} +1 -1
- package/dist/{index-CSr90X56.mjs → index-BsQHuOtQ.mjs} +13 -13
- package/dist/{panel.vue_vue_type_style_index_0_lang-C1YRBUlZ.mjs → panel.vue_vue_type_style_index_0_lang-BoCXA-Su.mjs} +1 -1
- package/dist/{tallPanel-BBCerNGg.mjs → tallPanel-6zR8_KxY.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as X } from "./alert-
|
|
1
|
+
import { _ as X } from "./alert-BBtNdmZc.mjs";
|
|
2
2
|
import { defineComponent as D, ref as b, watch as H, onMounted as O, onBeforeUnmount as q, createElementBlock as i, openBlock as a, withDirectives as R, unref as n, createCommentVNode as p, createElementVNode as r, normalizeClass as f, Fragment as B, renderList as C, toDisplayString as U, createVNode as z, vShow as F } from "vue";
|
|
3
|
-
import { A as j, B as t, C as v, O as l, H as G } from "./index-
|
|
3
|
+
import { A as j, B as t, C as v, O as l, H as G } from "./index-BsQHuOtQ.mjs";
|
|
4
4
|
import { A as c } from "./const-1h5SNeT6.mjs";
|
|
5
5
|
const J = { class: "annotation_component" }, K = {
|
|
6
6
|
key: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ar as e, K as t, as as o, au as i, V as l, ax as r, at as I, av as n, aw as w } from "./index-
|
|
1
|
+
import { ar as e, K as t, as as o, au as i, V as l, ax as r, at as I, av as n, aw as w } from "./index-BsQHuOtQ.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
4
|
t as BIMX_CONFIGS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(kr,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("axios"),require("ali-oss"),require("element-plus"),require("@element-plus/icons-vue"),require("pinia"),require("mitt")):typeof define=="function"&&define.amd?define(["exports","vue","axios","ali-oss","element-plus","@element-plus/icons-vue","pinia","mitt"],o):(kr=typeof globalThis<"u"?globalThis:kr||self,o(kr.BIMX_Viewer_Lib={},kr.Vue,kr.axios,kr.AliOss,kr.ElementPlus,kr.ElementPlusIconsVue,kr.Pinia,kr.Mitt))})(this,function(kr,o,ic,ZS,wA,ui,bb,qS){"use strict";var Vye=Object.defineProperty;var Uye=(kr,o,ic)=>o in kr?Vye(kr,o,{enumerable:!0,configurable:!0,writable:!0,value:ic}):kr[o]=ic;var Ri=(kr,o,ic)=>Uye(kr,typeof o!="symbol"?o+"":o,ic);const eM="https://bimkk-api-test.tcbim.com",Tt="https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com",tM="https://convert-test.tcbim.com",or=qS();let Na={BIMX_CONFIGS:{viewerManager:!1,Toolbar:!1,RoamTool:!1},BimViewer:{viewerManager:!1}};const rM={isMember:!1,isInShare:!1,isShareHost:!1,isShareClient:!1},iM={file:!1,image:!1,record:!1,text:!1,video:!1},_b={offsetX:0,offsetY:0},nM={pos:"right-bottom",posNum:[0,0]},sM=120,oM="light-gray",aM=!1,lM="right",cM="left",uM=0,dM=0,hM=0,fM=0,pM={pos:"bottom",posNum:[18]},AM={pos:"bottom",posNum:[70]},mM={pos:"bottom",posNum:[70]},gM="linear-gradient(180deg, #fffefb 0%, #daebff 100%)",vM=0;kr.BIMX_CONFIGS=void 0;function yM(){kr.BIMX_CONFIGS={isMobile:!1,loadMeta:!0,multiModel:!1,outliersDetect:!0,showRoam:!0,showTree:!1,userInfo:rM,annoLimit:iM,commentOffset:_b,measureOffset:_b,skyboxImg:void 0,topHeight:uM,leftWidth:fM,bottomHeight:hM,rightWidth:dM,inspectorPos:lM,treePos:cM,commentPos:pM,annotationPos:AM,roamPos:mM,showNavCube:!0,navCubePos:nM,navCubeSize:sM,themeColor:oM,hideTool:aM,backButton:!1,backgroundColor:gM,editPrivilege:vM}}yM();function wb(M=""){or.emit("BIMX_CONFIGS",M)}function xb(M){for(const V in M)ji(V,M[V],!1);wb()}function ji(M,V,a=!0){V!==void 0&&(kr.BIMX_CONFIGS[M]=V,a&&(M=="isMobile"||M=="measureOffset"||M=="commentOffset"||M=="navCubePos"||M=="navCubeSize")&&wb(M))}function Ot(M){return kr.BIMX_CONFIGS[M]}const Gi=bb.defineStore("toolbar",{state:()=>({isPc:!0,pTools:[{id:0,key:"tree",name:"结构树",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"ptree",imgActive:"ptree-active",position:1,isActive:!1},{id:1,key:"reset",name:"复位",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"preset",imgActive:"preset",position:0,isActive:!1},{id:2,key:"roam",name:"漫游",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"proam",imgActive:"proam-active",position:0,isActive:!1},{id:3,key:"measure",name:"测量",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"pmeasure",imgActive:"pmeasure-active",position:0,isActive:!1},{id:4,key:"section",name:"剖切",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"pslicing",imgActive:"pslicing-active",position:0,isActive:!1},{id:5,key:"comment",name:"批注",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"pcomment",imgActive:"pcomment-active",position:0,isActive:!1},{id:6,key:"anno",name:"标注",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"panno",imgActive:"panno-active",position:0,isActive:!1},{id:7,key:"screenshot",name:"截图",hasActiveState:!0,component:"ScreenShotTool",isShowDelimiter:!1,img:"pscreenshot",imgActive:"pscreenshot-active",position:0,isActive:!1},{id:8,key:"inspector",name:"属性",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"pinspector",imgActive:"pinspector-active",position:0,isActive:!1},{id:9,key:"setting",name:"设置",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"psetting",imgActive:"psetting-active",position:0,isActive:!1},{id:10,key:"fullscreen",name:"全屏",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pfullscreen",imgActive:"pfullscreen-active",position:0,isActive:!1},{id:11,key:"enjoy",name:"共享",hasActiveState:!0,component:"",isShowDelimiter:!1,img:"penjoy",imgActive:"penjoy-active",position:2,isActive:!1},{id:12,key:"share",name:"分享",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pshare",imgActive:"pshare-active",position:2,isActive:!1},{id:13,key:"cooperate",name:"协同",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pcooperate",imgActive:"pcooperate",position:2,isActive:!1},{id:14,key:"bcf",name:"BCF",hasActiveState:!0,component:"BCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",position:1,isActive:!1}],mTools:[{id:0,key:"reset",name:"复位",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"reset",imgActive:"reset",isActive:!1},{id:1,key:"navigate",name:"视图方向",hasActiveState:!0,component:"NavigateTool",isShowDelimiter:!1,img:"navigate",imgActive:"navigate-active",isActive:!1},{id:2,key:"measure",name:"测量",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"measure",imgActive:"measure-active",isActive:!1},{id:3,key:"comment",name:"批注",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"comment",imgActive:"comment-active",isActive:!1},{id:4,key:"anno",name:"标注",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"anno",imgActive:"anno-active",isActive:!1},{id:5,key:"enjoy",name:"共享",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"enjoy",imgActive:"enjoy",isActive:!1},{id:6,key:"tree",name:"结构树",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"tree",imgActive:"tree-active",isActive:!1},{id:7,key:"inspector",name:"属性",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"inspector",imgActive:"inspector-active",isActive:!1},{id:8,key:"section",name:"剖切",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"section",imgActive:"section-active",isActive:!1},{id:9,key:"roam",name:"漫游",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"roam",imgActive:"roam-active",isActive:!1},{id:10,key:"hidden",name:"透视",hasActiveState:!0,component:"HiddenTool",isShowDelimiter:!1,img:"hidden",imgActive:"hidden-active",isActive:!1},{id:11,key:"setting",name:"设置",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"setting",imgActive:"setting-active",isActive:!1},{id:12,key:"share",name:"分享",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"share",imgActive:"share",isActive:!1},{id:13,key:"fullscreen",name:"全屏",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"fullscreen",imgActive:"fullscreen-active",isActive:!1},{id:14,key:"cooperate",name:"协同",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"cooperate",imgActive:"cooperate",isActive:!1},{id:15,key:"bcf",name:"BCF",hasActiveState:!0,component:"MobileBCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",isActive:!1},{id:16,key:"mouse",name:"迷你鼠标",hasActiveState:!0,component:"MouseTool",isShowDelimiter:!1,img:"mouse",imgActive:"mouse-active",isActive:!1}],visibleToolIds:[],readyToolIds:[]}),actions:{setDevice(M){this.isPc=M=="pc"},toggleToolVisibility(M){const V=this.visibleToolIds.indexOf(M);V===-1?this.visibleToolIds.push(M):this.visibleToolIds.splice(V,1)},setEnableTools(M){this.visibleToolIds=M},setEnableToolsByKey(M){let V=[];Ot("isMobile")?V=Cb(M,_M):V=Cb(M,wM);const a=[];for(let w=0;w<V.length;w++){const P=(this.isPc?this.pTools:this.mTools).find(v=>v.key===V[w]);P&&a.push(P.id)}this.visibleToolIds=this.visibleToolIds.concat(a)},setToolActiveStatus(M,V){const a=(this.isPc?this.pTools:this.mTools).find(w=>w.id===M);a&&(a.isActive=V!==void 0?V:!a.isActive)},setToolActiveStatusBykey(M,V){const a=(this.isPc?this.pTools:this.mTools).find(w=>w.key===M);a&&(a.isActive=V!==void 0?V:!a.isActive)},setAllToolClose(M=[]){if(M.length>0)for(let V=0;V<this.visibleToolIds.length;V++)M.includes(this.visibleToolIds[V])||(this.tools[this.visibleToolIds[V]].isActive=!1);else for(let V=0;V<this.visibleToolIds.length;V++)this.tools[this.visibleToolIds[V]].isActive=!1},setReadyById(M){(this.isPc?this.pTools:this.mTools).find(a=>a.id===M)&&this.readyToolIds.push(M)},ifToolAllReady(){for(let M=0;M<this.visibleTools.length;M++){const V=this.visibleTools[M];if(!(V.component==""||V.key=="bcf")&&!this.readyTools.includes(V.id))return!1}return!0},setReadyTools(M){this.readyToolIds=[]}},getters:{tools:M=>M.isPc?M.pTools:M.mTools,visibleTools:M=>M.visibleToolIds.map(V=>(M.isPc?M.pTools:M.mTools).find(a=>a.id===V)).filter(V=>!!V),readyTools:M=>M.readyToolIds,visibleComponents:M=>(M.isPc?M.pTools:M.mTools).filter(V=>M.visibleToolIds.includes(V.id)).map(V=>V.component),getKeyById:M=>V=>{var a;return(a=(M.isPc?M.pTools:M.mTools).find(w=>w.id===V))==null?void 0:a.key},getToolById:M=>V=>(M.isPc?M.pTools:M.mTools).find(a=>a.id===V),hasActiveState:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.id===V);return a?a.hasActiveState:!1},isToolEnable:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.id===V);return a?M.visibleToolIds.includes(a.id):!1},isToolEnableBykey:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.key===V);return a?M.visibleToolIds.includes(a.id):!1},isToolActive:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.id===V);return a?a.isActive:!1},isToolActiveBykey:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.key===V);return a?a.isActive:!1}}});function ah(){return Gi()}function bM(){Gi().setAllToolClose(),Gi().setReadyTools([]),Gi().setEnableTools([])}let _M=["reset","navigate","measure","comment","anno","enjoy","tree","inspector","section","roam","hidden","setting","share","fullscreen","cooperate","bcf","mouse"],wM=["tree","reset","roam","measure","section","comment","anno","screenshot","inspector","setting","fullscreen","enjoy","share","cooperate","bcf"];function Cb(M,V){const a={};V.forEach((P,v)=>{a[P]=v});const w=M.filter(P=>a.hasOwnProperty(P)).map(P=>({value:P,index:a[P]}));return w.sort((P,v)=>P.index-v.index),w.map(P=>P.value)}let Bb=!1;Na.BIMX_CONFIGS.viewerManager||(or.on("BIMX_CONFIGS",M=>{window.bimViewer?Ci.ConfigViewer(M):Bb=!0}),Na.BIMX_CONFIGS.viewerManager=!0);const xM=()=>{Ci.SetAllClose(),Bb&&Ci.ConfigViewer()};Na.BimViewer.viewerManager||(or.on("BimViewer",xM),Na.BimViewer.viewerManager=!0);class Ci{static ConfigViewer(V=""){if(V==""){if(kr.BIMX_CONFIGS.isMobile&&(window.bimViewer.setIsTouch(!0),window.bimViewer.navCubeMode.visible=!1),kr.BIMX_CONFIGS.measureOffset&&window.bimViewer.setMeasureOffSet(Ot("measureOffset").offsetX,Ot("measureOffset").offsetY),kr.BIMX_CONFIGS.commentOffset&&window.bimViewer.setCommentsOffset(Ot("commentOffset").offsetX,Ot("commentOffset").offsetY),kr.BIMX_CONFIGS.navCubePos){let a=function(){let v=0,h=0;return Ot("navCubePos").pos.includes("left")?v+=parseInt(Ot("leftWidth")):Ot("navCubePos").pos.includes("right")&&(v+=parseInt(Ot("rightWidth"))),Ot("navCubePos").pos.includes("top")?h+=parseInt(Ot("topHeight")):Ot("navCubePos").pos.includes("bottom")&&(h+=parseInt(Ot("bottomHeight"))),[v,h]};const w=Ot("navCubePos").pos?Ot("navCubePos").pos:"right-bottom",P=a();w.includes("right")&&window.bimViewer.setNavCubePosition("right",P[0]),w.includes("top")&&window.bimViewer.setNavCubePosition("top",P[1]),w.includes("left")&&window.bimViewer.setNavCubePosition("left",P[0]),w.includes("bottom")&&window.bimViewer.setNavCubePosition("bottom",P[1])}kr.BIMX_CONFIGS.navCubeSize&&window.bimViewer.setNavCubeSize(Ot("navCubeSize"));return}switch(V){case"isMobile":window.bimViewer.setIsTouch(kr.BIMX_CONFIGS.isMobile),window.bimViewer.navCubeMode.visible=!kr.BIMX_CONFIGS.isMobile;break;case"measureOffset":window.bimViewer.setCommentsOffset(Ot("measureOffset").offsetX,Ot("measureOffset").offsetY);break;case"commentOffset":window.bimViewer.setCommentsOffset(Ot("commentOffset").offsetX,Ot("commentOffset").offsetY);break;case"navCubePos":const a=Ot("navCubePos").pos?Ot("navCubePos").pos:"right-bottom",w=Ot("navCubePos").posNum?Ot("navCubePos").posNum:[0,a.includes("top")?Ot("topHeight"):0];a.includes("right")&&window.bimViewer.setNavCubePosition("right",w[0]),a.includes("left")&&window.bimViewer.setNavCubePosition("left",w[0]),a.includes("top")&&window.bimViewer.setNavCubePosition("top",w[1]),a.includes("bottom")&&window.bimViewer.setNavCubePosition("bottom",w[1]);break;case"navCubeSize":window.bimViewer.setNavCubeSize(Ot("navCubeSize"));break}}static SaveViewerState(V){V.measure&&(this.viewerState.measureType=V.measure)}static SetToolActiveById(V,a=!Gi().isToolActive(V)){const w=Gi().getKeyById(V);w?this.SetToolActiveByKey(w,a):console.log("no such key:",V)}static SetToolActiveByKey(V,a=!Gi().isToolActiveBykey(V)){switch(V){case"tree":break;case"reset":window.bimViewer.resetView();break;case"roam":window.bimViewer.SetFirstPersonModeActive(a);break;case"measure":window.bimViewer.measureTool.setActive(a),a&&window.bimViewer.measureTool.setActiveByType(this.viewerState.measureType,a);break;case"section":window.bimViewer.SetSectionToolActive(a);break;case"comment":a?setTimeout(()=>{window.bimViewer.SetCommentsToolActive(a)},100):window.bimViewer.SetCommentsToolActive(a);break;case"anno":window.bimViewer.SetAnnotationToolActive(a);break;case"screenshot":break;case"inspector":break;case"fullscreen":a?document.documentElement.requestFullscreen():document.exitFullscreen&&document.exitFullscreen();break;case"hidden":window.bimViewer.disableClickEvent=a;break}}static SetAllClose(){window.bimViewer.closeAll()}static DestroyViewer(){window.bimViewer.destroy(),console.log("旧模型已销毁")}static showRequestBusy(V,a){window.bimViewer.showSpinner(V),a&&a()}}Ri(Ci,"viewerState",{measureType:"distance"}),Ri(Ci,"entityState",{xrayedObjectIds:[],highlightedObjectIds:[],selectedObjectIds:[],visibleObjectIds:[],edgesObjectIds:[]});const CM=["src"],BM=["src"],EM=["src"],PM=["src"],kM=["src"],SM=["src"],MM=["src"],TM=o.defineComponent({__name:"ClickEvent",setup(M,{expose:V}){Gi();const a=o.ref(!0);o.onMounted(()=>{});let w="",P,v;const h=()=>{v=window.bimViewer,v.eventTrigger.on("pickedNothing",()=>{a.value&&(l.value=!1,C.value=[],Ci.entityState.selectedObjectIds=[],v.setAllObjectsSelected(!1))}),v.eventTrigger.on("touchEntity",G=>{a.value&&(P=G,w=P.id,A(w))}),v.viewer.cameraControl.on("touchmoveCanvas",()=>{})};or.on("BimViewer",h);const u=o.ref(0),d=o.ref(0),l=o.ref(!1),c=o.ref(!0),f=o.ref(!0),p=o.ref(!1),A=G=>{(!P||P&&G!==P.id)&&(P=v.viewer.scene.objects[G]),w=G,C.value.length>0&&!C.value.find(D=>D==w)&&C.value.push(w),c.value=!P.xrayed,f.value=!P.highlighted;const{aabb:U}=P,L=[(U[0]+U[3])/2,(U[1]+U[4])/2,(U[2]+U[5])/2],$=v.viewer.scene.camera.projectWorldPos(L);let K=$[0]-172/2,W=$[1]-198/2;K<0?K=0:K>window.innerWidth-198&&(K=window.innerWidth-198),W<0?W=0:W>window.innerHeight-172-72&&(W=window.innerHeight-172-72),u.value=K,d.value=W,l.value=!0,v.setEntitySelected(P,!0)},g=()=>{C.value.find(G=>G==P.id)||(C.value=C.value.filter(G=>G!=P.id),Ci.entityState.selectedObjectIds=C.value),_()},_=()=>{P=null,w="",c.value=!0,f.value=!0,l.value=!1,y.value=-1,or.emit("unFocus")},y=o.ref(-1),C=o.ref([]),x=G=>{y.value=G},S=G=>{switch(C.value.length>0&&(C.value.push(w),Ci.entityState.selectedObjectIds.find(U=>U==P.id)||Ci.entityState.selectedObjectIds.push(P.id)),G!==5&&G!==0&&(window.bimViewer.disableClickEvent=!1,v.setAllObjectsSelected(!1)),G==5&&C.value.length==0&&(window.bimViewer.disableClickEvent=!0),G){case 0:C.value.length>0?v.viewFitObjects(C.value):v.viewFitEntity(P),setTimeout(()=>{v.setAllObjectsSelected(!1)},1e3);break;case 1:C.value.length>0?v.setObjectsVisible(Ci.entityState.selectedObjectIds,!1):v.setEntityVisible(P,!1);break;case 2:p.value?v.setAllObjectsVisible(!0):(v.setAllObjectsVisible(!1),C.value.length>0?v.setObjectsVisible(Ci.entityState.selectedObjectIds,!0):v.setEntityVisible(P,!0),v.setAllObjectsSelected(!1)),p.value=!p.value;break;case 3:C.value.length>0?(v.viewer.scene.setObjectsXRayed(C.value,c.value),C.value.forEach(U=>{const L=v.viewer.scene.objects[U];L.edges=L.xrayed?!0:v.edgesActive,v.setEntityHighlighted(L,!1)})):(v.setEntityXRayed(P),P.edges=P.xrayed?!0:v.edgesActive,v.setEntityHighlighted(P,!1));break;case 4:C.value.length>0?C.value.forEach(U=>{const L=v.viewer.scene.objects[U];v.setEntityHighlighted(L,f.value),L.xrayed&&(v.setEntityXRayed(L,!1),L.edges=v.edgesActive)}):(v.setEntityHighlighted(P),P.xrayed&&(v.setEntityXRayed(P,!1),P.edges=v.edgesActive));break;case 5:C.value.find(U=>U==w)||(C.value.push(w),v.setObjectsSelected(C.value,!0)),Ci.entityState.selectedObjectIds=C.value,or.emit("multiSelect");break}G!==5&&G!==0&&(v.setEntitySelected(P,!1),C.value=[],Ci.entityState.selectedObjectIds=C.value),Ci.entityState.xrayedObjectIds=v.viewer.scene.xrayedObjectIds,Ci.entityState.highlightedObjectIds=v.viewer.scene.highlightedObjectIds,Ci.entityState.selectedObjectIds=v.viewer.scene.selectedObjectIds,Ci.entityState.visibleObjectIds=v.viewer.scene.visibleObjectIds,Ci.entityState.edgesObjectIds=v.viewer.scene.edgesObjectIds,setTimeout(()=>{_()},300)},T=()=>{_()},N=()=>{a.value=!1},z=()=>{a.value=!0};return or.on("focusEntity",A),o.onBeforeUnmount(()=>{or.off("BimViewer",h),or.off("focusEntity",A)}),V({reset:T,enable:z,disable:N}),(G,U)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:"entity_tools",style:o.normalizeStyle({left:`${u.value}px`,top:`${d.value}px`})},[o.createElementVNode("div",{class:"close_btns",onClick:g},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/close-dark-circle.svg`},null,8,CM)]),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==0},"detail_btn fit"]),onPointerdown:U[0]||(U[0]=L=>x(0)),onPointerup:U[1]||(U[1]=L=>S(0))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/fit.svg`},null,8,BM),U[12]||(U[12]=o.createElementVNode("span",null,"聚焦",-1))],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==1},"detail_btn hide_self"]),onPointerdown:U[2]||(U[2]=L=>x(1)),onPointerup:U[3]||(U[3]=L=>S(1))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/hide-self.svg`},null,8,EM),U[13]||(U[13]=o.createElementVNode("span",null,"隐藏",-1))],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==2},"detail_btn hide_other"]),onPointerdown:U[4]||(U[4]=L=>x(2)),onPointerup:U[5]||(U[5]=L=>S(2))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/hide-other.svg`},null,8,PM),o.createElementVNode("span",null,o.toDisplayString(p.value?"取消":"仅显示"),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==3},"detail_btn edge_solid"]),onPointerdown:U[6]||(U[6]=L=>x(3)),onPointerup:U[7]||(U[7]=L=>S(3))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/${c.value?"edge":"solid"}.svg`},null,8,kM),o.createElementVNode("span",null,o.toDisplayString(c.value?"线框":"填充"),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==4},"detail_btn opacity_fill"]),onPointerdown:U[8]||(U[8]=L=>x(4)),onPointerup:U[9]||(U[9]=L=>S(4))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/${f.value?"opacity":"fill"}.svg`},null,8,SM),o.createElementVNode("span",null,o.toDisplayString(f.value?"透明":"实体"),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==5},"detail_btn multi_select"]),onPointerdown:U[10]||(U[10]=L=>x(5)),onPointerup:U[11]||(U[11]=L=>S(5))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/multiSelect.svg`},null,8,MM),U[14]||(U[14]=o.createElementVNode("span",null,"多选",-1))],34)],4)),[[o.vShow,l.value]])}}),IM=Symbol(),xA="el",DM="is-",gl=(M,V,a,w,P)=>{let v=`${M}-${V}`;return a&&(v+=`-${a}`),w&&(v+=`__${w}`),P&&(v+=`--${P}`),v},FM=Symbol("namespaceContextKey"),CA=M=>{const V=o.getCurrentInstance()?o.inject(FM,o.ref(xA)):o.ref(xA);return o.computed(()=>o.unref(V)||xA)},$r=(M,V)=>{const a=CA();return{namespace:a,b:(_="")=>gl(a.value,M,_,"",""),e:_=>_?gl(a.value,M,"",_,""):"",m:_=>_?gl(a.value,M,"","",_):"",be:(_,y)=>_&&y?gl(a.value,M,_,y,""):"",em:(_,y)=>_&&y?gl(a.value,M,"",_,y):"",bm:(_,y)=>_&&y?gl(a.value,M,_,"",y):"",bem:(_,y,C)=>_&&y&&C?gl(a.value,M,_,y,C):"",is:(_,...y)=>{const C=y.length>=1?y[0]:!0;return _&&C?`${DM}${_}`:""},cssVar:_=>{const y={};for(const C in _)_[C]&&(y[`--${a.value}-${C}`]=_[C]);return y},cssVarName:_=>`--${a.value}-${_}`,cssVarBlock:_=>{const y={};for(const C in _)_[C]&&(y[`--${a.value}-${M}-${C}`]=_[C]);return y},cssVarBlockName:_=>`--${a.value}-${M}-${_}`}};/**
|
|
1
|
+
(function(kr,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("axios"),require("ali-oss"),require("element-plus"),require("@element-plus/icons-vue"),require("pinia"),require("mitt")):typeof define=="function"&&define.amd?define(["exports","vue","axios","ali-oss","element-plus","@element-plus/icons-vue","pinia","mitt"],o):(kr=typeof globalThis<"u"?globalThis:kr||self,o(kr.BIMX_Viewer_Lib={},kr.Vue,kr.axios,kr.AliOss,kr.ElementPlus,kr.ElementPlusIconsVue,kr.Pinia,kr.Mitt))})(this,function(kr,o,ic,ZS,wA,ui,bb,qS){"use strict";var Vye=Object.defineProperty;var Uye=(kr,o,ic)=>o in kr?Vye(kr,o,{enumerable:!0,configurable:!0,writable:!0,value:ic}):kr[o]=ic;var Ri=(kr,o,ic)=>Uye(kr,typeof o!="symbol"?o+"":o,ic);const eM="https://bimkk-api.tcbim.com",Tt="https://bimkk-oss-production.oss-cn-beijing.aliyuncs.com",tM="https://convert.tcbim.com",or=qS();let Na={BIMX_CONFIGS:{viewerManager:!1,Toolbar:!1,RoamTool:!1},BimViewer:{viewerManager:!1}};const rM={isMember:!1,isInShare:!1,isShareHost:!1,isShareClient:!1},iM={file:!1,image:!1,record:!1,text:!1,video:!1},_b={offsetX:0,offsetY:0},nM={pos:"right-bottom",posNum:[0,0]},sM=120,oM="light-gray",aM=!1,lM="right",cM="left",uM=0,dM=0,hM=0,fM=0,pM={pos:"bottom",posNum:[18]},AM={pos:"bottom",posNum:[70]},mM={pos:"bottom",posNum:[70]},gM="linear-gradient(180deg, #fffefb 0%, #daebff 100%)",vM=0;kr.BIMX_CONFIGS=void 0;function yM(){kr.BIMX_CONFIGS={isMobile:!1,loadMeta:!0,multiModel:!1,outliersDetect:!0,showRoam:!0,showTree:!1,userInfo:rM,annoLimit:iM,commentOffset:_b,measureOffset:_b,skyboxImg:void 0,topHeight:uM,leftWidth:fM,bottomHeight:hM,rightWidth:dM,inspectorPos:lM,treePos:cM,commentPos:pM,annotationPos:AM,roamPos:mM,showNavCube:!0,navCubePos:nM,navCubeSize:sM,themeColor:oM,hideTool:aM,backButton:!1,backgroundColor:gM,editPrivilege:vM}}yM();function wb(M=""){or.emit("BIMX_CONFIGS",M)}function xb(M){for(const V in M)ji(V,M[V],!1);wb()}function ji(M,V,a=!0){V!==void 0&&(kr.BIMX_CONFIGS[M]=V,a&&(M=="isMobile"||M=="measureOffset"||M=="commentOffset"||M=="navCubePos"||M=="navCubeSize")&&wb(M))}function Ot(M){return kr.BIMX_CONFIGS[M]}const Gi=bb.defineStore("toolbar",{state:()=>({isPc:!0,pTools:[{id:0,key:"tree",name:"结构树",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"ptree",imgActive:"ptree-active",position:1,isActive:!1},{id:1,key:"reset",name:"复位",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"preset",imgActive:"preset",position:0,isActive:!1},{id:2,key:"roam",name:"漫游",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"proam",imgActive:"proam-active",position:0,isActive:!1},{id:3,key:"measure",name:"测量",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"pmeasure",imgActive:"pmeasure-active",position:0,isActive:!1},{id:4,key:"section",name:"剖切",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"pslicing",imgActive:"pslicing-active",position:0,isActive:!1},{id:5,key:"comment",name:"批注",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"pcomment",imgActive:"pcomment-active",position:0,isActive:!1},{id:6,key:"anno",name:"标注",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"panno",imgActive:"panno-active",position:0,isActive:!1},{id:7,key:"screenshot",name:"截图",hasActiveState:!0,component:"ScreenShotTool",isShowDelimiter:!1,img:"pscreenshot",imgActive:"pscreenshot-active",position:0,isActive:!1},{id:8,key:"inspector",name:"属性",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"pinspector",imgActive:"pinspector-active",position:0,isActive:!1},{id:9,key:"setting",name:"设置",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"psetting",imgActive:"psetting-active",position:0,isActive:!1},{id:10,key:"fullscreen",name:"全屏",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pfullscreen",imgActive:"pfullscreen-active",position:0,isActive:!1},{id:11,key:"enjoy",name:"共享",hasActiveState:!0,component:"",isShowDelimiter:!1,img:"penjoy",imgActive:"penjoy-active",position:2,isActive:!1},{id:12,key:"share",name:"分享",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pshare",imgActive:"pshare-active",position:2,isActive:!1},{id:13,key:"cooperate",name:"协同",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pcooperate",imgActive:"pcooperate",position:2,isActive:!1},{id:14,key:"bcf",name:"BCF",hasActiveState:!0,component:"BCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",position:1,isActive:!1}],mTools:[{id:0,key:"reset",name:"复位",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"reset",imgActive:"reset",isActive:!1},{id:1,key:"navigate",name:"视图方向",hasActiveState:!0,component:"NavigateTool",isShowDelimiter:!1,img:"navigate",imgActive:"navigate-active",isActive:!1},{id:2,key:"measure",name:"测量",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"measure",imgActive:"measure-active",isActive:!1},{id:3,key:"comment",name:"批注",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"comment",imgActive:"comment-active",isActive:!1},{id:4,key:"anno",name:"标注",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"anno",imgActive:"anno-active",isActive:!1},{id:5,key:"enjoy",name:"共享",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"enjoy",imgActive:"enjoy",isActive:!1},{id:6,key:"tree",name:"结构树",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"tree",imgActive:"tree-active",isActive:!1},{id:7,key:"inspector",name:"属性",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"inspector",imgActive:"inspector-active",isActive:!1},{id:8,key:"section",name:"剖切",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"section",imgActive:"section-active",isActive:!1},{id:9,key:"roam",name:"漫游",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"roam",imgActive:"roam-active",isActive:!1},{id:10,key:"hidden",name:"透视",hasActiveState:!0,component:"HiddenTool",isShowDelimiter:!1,img:"hidden",imgActive:"hidden-active",isActive:!1},{id:11,key:"setting",name:"设置",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"setting",imgActive:"setting-active",isActive:!1},{id:12,key:"share",name:"分享",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"share",imgActive:"share",isActive:!1},{id:13,key:"fullscreen",name:"全屏",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"fullscreen",imgActive:"fullscreen-active",isActive:!1},{id:14,key:"cooperate",name:"协同",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"cooperate",imgActive:"cooperate",isActive:!1},{id:15,key:"bcf",name:"BCF",hasActiveState:!0,component:"MobileBCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",isActive:!1},{id:16,key:"mouse",name:"迷你鼠标",hasActiveState:!0,component:"MouseTool",isShowDelimiter:!1,img:"mouse",imgActive:"mouse-active",isActive:!1}],visibleToolIds:[],readyToolIds:[]}),actions:{setDevice(M){this.isPc=M=="pc"},toggleToolVisibility(M){const V=this.visibleToolIds.indexOf(M);V===-1?this.visibleToolIds.push(M):this.visibleToolIds.splice(V,1)},setEnableTools(M){this.visibleToolIds=M},setEnableToolsByKey(M){let V=[];Ot("isMobile")?V=Cb(M,_M):V=Cb(M,wM);const a=[];for(let w=0;w<V.length;w++){const P=(this.isPc?this.pTools:this.mTools).find(v=>v.key===V[w]);P&&a.push(P.id)}this.visibleToolIds=this.visibleToolIds.concat(a)},setToolActiveStatus(M,V){const a=(this.isPc?this.pTools:this.mTools).find(w=>w.id===M);a&&(a.isActive=V!==void 0?V:!a.isActive)},setToolActiveStatusBykey(M,V){const a=(this.isPc?this.pTools:this.mTools).find(w=>w.key===M);a&&(a.isActive=V!==void 0?V:!a.isActive)},setAllToolClose(M=[]){if(M.length>0)for(let V=0;V<this.visibleToolIds.length;V++)M.includes(this.visibleToolIds[V])||(this.tools[this.visibleToolIds[V]].isActive=!1);else for(let V=0;V<this.visibleToolIds.length;V++)this.tools[this.visibleToolIds[V]].isActive=!1},setReadyById(M){(this.isPc?this.pTools:this.mTools).find(a=>a.id===M)&&this.readyToolIds.push(M)},ifToolAllReady(){for(let M=0;M<this.visibleTools.length;M++){const V=this.visibleTools[M];if(!(V.component==""||V.key=="bcf")&&!this.readyTools.includes(V.id))return!1}return!0},setReadyTools(M){this.readyToolIds=[]}},getters:{tools:M=>M.isPc?M.pTools:M.mTools,visibleTools:M=>M.visibleToolIds.map(V=>(M.isPc?M.pTools:M.mTools).find(a=>a.id===V)).filter(V=>!!V),readyTools:M=>M.readyToolIds,visibleComponents:M=>(M.isPc?M.pTools:M.mTools).filter(V=>M.visibleToolIds.includes(V.id)).map(V=>V.component),getKeyById:M=>V=>{var a;return(a=(M.isPc?M.pTools:M.mTools).find(w=>w.id===V))==null?void 0:a.key},getToolById:M=>V=>(M.isPc?M.pTools:M.mTools).find(a=>a.id===V),hasActiveState:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.id===V);return a?a.hasActiveState:!1},isToolEnable:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.id===V);return a?M.visibleToolIds.includes(a.id):!1},isToolEnableBykey:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.key===V);return a?M.visibleToolIds.includes(a.id):!1},isToolActive:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.id===V);return a?a.isActive:!1},isToolActiveBykey:M=>V=>{const a=(M.isPc?M.pTools:M.mTools).find(w=>w.key===V);return a?a.isActive:!1}}});function ah(){return Gi()}function bM(){Gi().setAllToolClose(),Gi().setReadyTools([]),Gi().setEnableTools([])}let _M=["reset","navigate","measure","comment","anno","enjoy","tree","inspector","section","roam","hidden","setting","share","fullscreen","cooperate","bcf","mouse"],wM=["tree","reset","roam","measure","section","comment","anno","screenshot","inspector","setting","fullscreen","enjoy","share","cooperate","bcf"];function Cb(M,V){const a={};V.forEach((P,v)=>{a[P]=v});const w=M.filter(P=>a.hasOwnProperty(P)).map(P=>({value:P,index:a[P]}));return w.sort((P,v)=>P.index-v.index),w.map(P=>P.value)}let Bb=!1;Na.BIMX_CONFIGS.viewerManager||(or.on("BIMX_CONFIGS",M=>{window.bimViewer?Ci.ConfigViewer(M):Bb=!0}),Na.BIMX_CONFIGS.viewerManager=!0);const xM=()=>{Ci.SetAllClose(),Bb&&Ci.ConfigViewer()};Na.BimViewer.viewerManager||(or.on("BimViewer",xM),Na.BimViewer.viewerManager=!0);class Ci{static ConfigViewer(V=""){if(V==""){if(kr.BIMX_CONFIGS.isMobile&&(window.bimViewer.setIsTouch(!0),window.bimViewer.navCubeMode.visible=!1),kr.BIMX_CONFIGS.measureOffset&&window.bimViewer.setMeasureOffSet(Ot("measureOffset").offsetX,Ot("measureOffset").offsetY),kr.BIMX_CONFIGS.commentOffset&&window.bimViewer.setCommentsOffset(Ot("commentOffset").offsetX,Ot("commentOffset").offsetY),kr.BIMX_CONFIGS.navCubePos){let a=function(){let v=0,h=0;return Ot("navCubePos").pos.includes("left")?v+=parseInt(Ot("leftWidth")):Ot("navCubePos").pos.includes("right")&&(v+=parseInt(Ot("rightWidth"))),Ot("navCubePos").pos.includes("top")?h+=parseInt(Ot("topHeight")):Ot("navCubePos").pos.includes("bottom")&&(h+=parseInt(Ot("bottomHeight"))),[v,h]};const w=Ot("navCubePos").pos?Ot("navCubePos").pos:"right-bottom",P=a();w.includes("right")&&window.bimViewer.setNavCubePosition("right",P[0]),w.includes("top")&&window.bimViewer.setNavCubePosition("top",P[1]),w.includes("left")&&window.bimViewer.setNavCubePosition("left",P[0]),w.includes("bottom")&&window.bimViewer.setNavCubePosition("bottom",P[1])}kr.BIMX_CONFIGS.navCubeSize&&window.bimViewer.setNavCubeSize(Ot("navCubeSize"));return}switch(V){case"isMobile":window.bimViewer.setIsTouch(kr.BIMX_CONFIGS.isMobile),window.bimViewer.navCubeMode.visible=!kr.BIMX_CONFIGS.isMobile;break;case"measureOffset":window.bimViewer.setCommentsOffset(Ot("measureOffset").offsetX,Ot("measureOffset").offsetY);break;case"commentOffset":window.bimViewer.setCommentsOffset(Ot("commentOffset").offsetX,Ot("commentOffset").offsetY);break;case"navCubePos":const a=Ot("navCubePos").pos?Ot("navCubePos").pos:"right-bottom",w=Ot("navCubePos").posNum?Ot("navCubePos").posNum:[0,a.includes("top")?Ot("topHeight"):0];a.includes("right")&&window.bimViewer.setNavCubePosition("right",w[0]),a.includes("left")&&window.bimViewer.setNavCubePosition("left",w[0]),a.includes("top")&&window.bimViewer.setNavCubePosition("top",w[1]),a.includes("bottom")&&window.bimViewer.setNavCubePosition("bottom",w[1]);break;case"navCubeSize":window.bimViewer.setNavCubeSize(Ot("navCubeSize"));break}}static SaveViewerState(V){V.measure&&(this.viewerState.measureType=V.measure)}static SetToolActiveById(V,a=!Gi().isToolActive(V)){const w=Gi().getKeyById(V);w?this.SetToolActiveByKey(w,a):console.log("no such key:",V)}static SetToolActiveByKey(V,a=!Gi().isToolActiveBykey(V)){switch(V){case"tree":break;case"reset":window.bimViewer.resetView();break;case"roam":window.bimViewer.SetFirstPersonModeActive(a);break;case"measure":window.bimViewer.measureTool.setActive(a),a&&window.bimViewer.measureTool.setActiveByType(this.viewerState.measureType,a);break;case"section":window.bimViewer.SetSectionToolActive(a);break;case"comment":a?setTimeout(()=>{window.bimViewer.SetCommentsToolActive(a)},100):window.bimViewer.SetCommentsToolActive(a);break;case"anno":window.bimViewer.SetAnnotationToolActive(a);break;case"screenshot":break;case"inspector":break;case"fullscreen":a?document.documentElement.requestFullscreen():document.exitFullscreen&&document.exitFullscreen();break;case"hidden":window.bimViewer.disableClickEvent=a;break}}static SetAllClose(){window.bimViewer.closeAll()}static DestroyViewer(){window.bimViewer.destroy(),console.log("旧模型已销毁")}static showRequestBusy(V,a){window.bimViewer.showSpinner(V),a&&a()}}Ri(Ci,"viewerState",{measureType:"distance"}),Ri(Ci,"entityState",{xrayedObjectIds:[],highlightedObjectIds:[],selectedObjectIds:[],visibleObjectIds:[],edgesObjectIds:[]});const CM=["src"],BM=["src"],EM=["src"],PM=["src"],kM=["src"],SM=["src"],MM=["src"],TM=o.defineComponent({__name:"ClickEvent",setup(M,{expose:V}){Gi();const a=o.ref(!0);o.onMounted(()=>{});let w="",P,v;const h=()=>{v=window.bimViewer,v.eventTrigger.on("pickedNothing",()=>{a.value&&(l.value=!1,C.value=[],Ci.entityState.selectedObjectIds=[],v.setAllObjectsSelected(!1))}),v.eventTrigger.on("touchEntity",G=>{a.value&&(P=G,w=P.id,A(w))}),v.viewer.cameraControl.on("touchmoveCanvas",()=>{})};or.on("BimViewer",h);const u=o.ref(0),d=o.ref(0),l=o.ref(!1),c=o.ref(!0),f=o.ref(!0),p=o.ref(!1),A=G=>{(!P||P&&G!==P.id)&&(P=v.viewer.scene.objects[G]),w=G,C.value.length>0&&!C.value.find(D=>D==w)&&C.value.push(w),c.value=!P.xrayed,f.value=!P.highlighted;const{aabb:U}=P,L=[(U[0]+U[3])/2,(U[1]+U[4])/2,(U[2]+U[5])/2],$=v.viewer.scene.camera.projectWorldPos(L);let K=$[0]-172/2,W=$[1]-198/2;K<0?K=0:K>window.innerWidth-198&&(K=window.innerWidth-198),W<0?W=0:W>window.innerHeight-172-72&&(W=window.innerHeight-172-72),u.value=K,d.value=W,l.value=!0,v.setEntitySelected(P,!0)},g=()=>{C.value.find(G=>G==P.id)||(C.value=C.value.filter(G=>G!=P.id),Ci.entityState.selectedObjectIds=C.value),_()},_=()=>{P=null,w="",c.value=!0,f.value=!0,l.value=!1,y.value=-1,or.emit("unFocus")},y=o.ref(-1),C=o.ref([]),x=G=>{y.value=G},S=G=>{switch(C.value.length>0&&(C.value.push(w),Ci.entityState.selectedObjectIds.find(U=>U==P.id)||Ci.entityState.selectedObjectIds.push(P.id)),G!==5&&G!==0&&(window.bimViewer.disableClickEvent=!1,v.setAllObjectsSelected(!1)),G==5&&C.value.length==0&&(window.bimViewer.disableClickEvent=!0),G){case 0:C.value.length>0?v.viewFitObjects(C.value):v.viewFitEntity(P),setTimeout(()=>{v.setAllObjectsSelected(!1)},1e3);break;case 1:C.value.length>0?v.setObjectsVisible(Ci.entityState.selectedObjectIds,!1):v.setEntityVisible(P,!1);break;case 2:p.value?v.setAllObjectsVisible(!0):(v.setAllObjectsVisible(!1),C.value.length>0?v.setObjectsVisible(Ci.entityState.selectedObjectIds,!0):v.setEntityVisible(P,!0),v.setAllObjectsSelected(!1)),p.value=!p.value;break;case 3:C.value.length>0?(v.viewer.scene.setObjectsXRayed(C.value,c.value),C.value.forEach(U=>{const L=v.viewer.scene.objects[U];L.edges=L.xrayed?!0:v.edgesActive,v.setEntityHighlighted(L,!1)})):(v.setEntityXRayed(P),P.edges=P.xrayed?!0:v.edgesActive,v.setEntityHighlighted(P,!1));break;case 4:C.value.length>0?C.value.forEach(U=>{const L=v.viewer.scene.objects[U];v.setEntityHighlighted(L,f.value),L.xrayed&&(v.setEntityXRayed(L,!1),L.edges=v.edgesActive)}):(v.setEntityHighlighted(P),P.xrayed&&(v.setEntityXRayed(P,!1),P.edges=v.edgesActive));break;case 5:C.value.find(U=>U==w)||(C.value.push(w),v.setObjectsSelected(C.value,!0)),Ci.entityState.selectedObjectIds=C.value,or.emit("multiSelect");break}G!==5&&G!==0&&(v.setEntitySelected(P,!1),C.value=[],Ci.entityState.selectedObjectIds=C.value),Ci.entityState.xrayedObjectIds=v.viewer.scene.xrayedObjectIds,Ci.entityState.highlightedObjectIds=v.viewer.scene.highlightedObjectIds,Ci.entityState.selectedObjectIds=v.viewer.scene.selectedObjectIds,Ci.entityState.visibleObjectIds=v.viewer.scene.visibleObjectIds,Ci.entityState.edgesObjectIds=v.viewer.scene.edgesObjectIds,setTimeout(()=>{_()},300)},T=()=>{_()},N=()=>{a.value=!1},z=()=>{a.value=!0};return or.on("focusEntity",A),o.onBeforeUnmount(()=>{or.off("BimViewer",h),or.off("focusEntity",A)}),V({reset:T,enable:z,disable:N}),(G,U)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:"entity_tools",style:o.normalizeStyle({left:`${u.value}px`,top:`${d.value}px`})},[o.createElementVNode("div",{class:"close_btns",onClick:g},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/close-dark-circle.svg`},null,8,CM)]),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==0},"detail_btn fit"]),onPointerdown:U[0]||(U[0]=L=>x(0)),onPointerup:U[1]||(U[1]=L=>S(0))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/fit.svg`},null,8,BM),U[12]||(U[12]=o.createElementVNode("span",null,"聚焦",-1))],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==1},"detail_btn hide_self"]),onPointerdown:U[2]||(U[2]=L=>x(1)),onPointerup:U[3]||(U[3]=L=>S(1))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/hide-self.svg`},null,8,EM),U[13]||(U[13]=o.createElementVNode("span",null,"隐藏",-1))],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==2},"detail_btn hide_other"]),onPointerdown:U[4]||(U[4]=L=>x(2)),onPointerup:U[5]||(U[5]=L=>S(2))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/hide-other.svg`},null,8,PM),o.createElementVNode("span",null,o.toDisplayString(p.value?"取消":"仅显示"),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==3},"detail_btn edge_solid"]),onPointerdown:U[6]||(U[6]=L=>x(3)),onPointerup:U[7]||(U[7]=L=>S(3))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/${c.value?"edge":"solid"}.svg`},null,8,kM),o.createElementVNode("span",null,o.toDisplayString(c.value?"线框":"填充"),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==4},"detail_btn opacity_fill"]),onPointerdown:U[8]||(U[8]=L=>x(4)),onPointerup:U[9]||(U[9]=L=>S(4))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/${f.value?"opacity":"fill"}.svg`},null,8,SM),o.createElementVNode("span",null,o.toDisplayString(f.value?"透明":"实体"),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:y.value==5},"detail_btn multi_select"]),onPointerdown:U[10]||(U[10]=L=>x(5)),onPointerup:U[11]||(U[11]=L=>S(5))},[o.createElementVNode("img",{src:`${o.unref(Tt)}/industry-viewer/detail-bar/multiSelect.svg`},null,8,MM),U[14]||(U[14]=o.createElementVNode("span",null,"多选",-1))],34)],4)),[[o.vShow,l.value]])}}),IM=Symbol(),xA="el",DM="is-",gl=(M,V,a,w,P)=>{let v=`${M}-${V}`;return a&&(v+=`-${a}`),w&&(v+=`__${w}`),P&&(v+=`--${P}`),v},FM=Symbol("namespaceContextKey"),CA=M=>{const V=o.getCurrentInstance()?o.inject(FM,o.ref(xA)):o.ref(xA);return o.computed(()=>o.unref(V)||xA)},$r=(M,V)=>{const a=CA();return{namespace:a,b:(_="")=>gl(a.value,M,_,"",""),e:_=>_?gl(a.value,M,"",_,""):"",m:_=>_?gl(a.value,M,"","",_):"",be:(_,y)=>_&&y?gl(a.value,M,_,y,""):"",em:(_,y)=>_&&y?gl(a.value,M,"",_,y):"",bm:(_,y)=>_&&y?gl(a.value,M,_,"",y):"",bem:(_,y,C)=>_&&y&&C?gl(a.value,M,_,y,C):"",is:(_,...y)=>{const C=y.length>=1?y[0]:!0;return _&&C?`${DM}${_}`:""},cssVar:_=>{const y={};for(const C in _)_[C]&&(y[`--${a.value}-${C}`]=_[C]);return y},cssVarName:_=>`--${a.value}-${_}`,cssVarBlock:_=>{const y={};for(const C in _)_[C]&&(y[`--${a.value}-${M}-${C}`]=_[C]);return y},cssVarBlockName:_=>`--${a.value}-${M}-${_}`}};/**
|
|
2
2
|
* @vue/shared v3.5.25
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as le, ref as o, createElementBlock as n, openBlock as l, createElementVNode as e, unref as m, toDisplayString as B, createCommentVNode as U, createVNode as G, withModifiers as J, Fragment as Z, renderList as Q, withCtx as ne, toRefs as Se, onMounted as ue, watch as ae, normalizeStyle as q, createBlock as se, createTextVNode as re, withDirectives as be, vShow as ye, onBeforeUnmount as ge, normalizeClass as ce } from "vue";
|
|
2
|
-
import { O as S, H as ie, R as fe, F as me, S as Ce, U as we, W as Ie, X as xe, Y as pe, Z as de, $ as ve, B as V, D as he, a0 as $e, Q as Le, a1 as Pe, a2 as Be, a3 as Me, M as Oe, P as ze, C as X, A as ke } from "./index-
|
|
2
|
+
import { O as S, H as ie, R as fe, F as me, S as Ce, U as we, W as Ie, X as xe, Y as pe, Z as de, $ as ve, B as V, D as he, a0 as $e, Q as Le, a1 as Pe, a2 as Be, a3 as Me, M as Oe, P as ze, C as X, A as ke } from "./index-BsQHuOtQ.mjs";
|
|
3
3
|
import { C as Te, F as Ee, L as Re, T as Ne } from "./const-1h5SNeT6.mjs";
|
|
4
4
|
import { T as Fe } from "./timer-DoTiGoWP.mjs";
|
|
5
5
|
const Ue = { class: "prompt_wrapper" }, Ae = { class: "prompt_box" }, He = ["src"], We = { class: "text" }, Ye = /* @__PURE__ */ le({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, onMounted as y, ref as E, onBeforeUnmount as k, createElementBlock as s, openBlock as l, createElementVNode as r, Fragment as B, renderList as C, unref as a, normalizeClass as w, toDisplayString as H } from "vue";
|
|
2
|
-
import { A as S, C as m, O as A, B as O, H as T } from "./index-
|
|
2
|
+
import { A as S, C as m, O as A, B as O, H as T } from "./index-BsQHuOtQ.mjs";
|
|
3
3
|
import { H as I } from "./const-1h5SNeT6.mjs";
|
|
4
4
|
const x = { class: "hidden_wrapper" }, j = { class: "hidden_content" }, D = ["onClick"], L = ["src"], M = /* @__PURE__ */ V({
|
|
5
5
|
__name: "HiddenTool",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Y, C as D, B as v, T as j, F as ee, O as N, G as te, H as ne } from "./index-
|
|
2
|
-
import { _ as oe } from "./tallPanel-
|
|
3
|
-
import { _ as se } from "./panel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { A as Y, C as D, B as v, T as j, F as ee, O as N, G as te, H as ne } from "./index-BsQHuOtQ.mjs";
|
|
2
|
+
import { _ as oe } from "./tallPanel-6zR8_KxY.mjs";
|
|
3
|
+
import { _ as se } from "./panel.vue_vue_type_style_index_0_lang-BoCXA-Su.mjs";
|
|
4
4
|
import { defineComponent as ie, onMounted as le, ref as H, reactive as G, watch as ae, onBeforeUnmount as re, createElementBlock as a, openBlock as l, Fragment as y, createBlock as K, createCommentVNode as M, unref as p, withCtx as I, withDirectives as u, createElementVNode as e, createVNode as B, toDisplayString as s, vShow as d, renderList as h } from "vue";
|
|
5
5
|
const Q = {
|
|
6
6
|
ExtendToStructure: "扩建物",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Se, T as oe, C as ae, B as f, O as M, D as De, M as Re, P as Ce, F as $e, V as ne, H as Le } from "./index-
|
|
2
|
-
import { _ as Pe } from "./panel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { A as Se, T as oe, C as ae, B as f, O as M, D as De, M as Re, P as Ce, F as $e, V as ne, H as Le } from "./index-BsQHuOtQ.mjs";
|
|
2
|
+
import { _ as Pe } from "./panel.vue_vue_type_style_index_0_lang-BoCXA-Su.mjs";
|
|
3
3
|
import { defineComponent as Ne, ref as o, onMounted as ue, onBeforeUnmount as Ue, watch as Xe, createElementBlock as n, openBlock as a, Fragment as I, createBlock as Ye, withDirectives as ze, unref as r, withCtx as U, createElementVNode as s, renderList as X, normalizeClass as ie, toDisplayString as b, createVNode as w, createCommentVNode as Fe, normalizeStyle as re, vShow as Oe } from "vue";
|
|
4
4
|
import { M as Y } from "./const-1h5SNeT6.mjs";
|
|
5
5
|
const He = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, onMounted as X, onBeforeUnmount as Y, ref as _, watch as x, createElementBlock as M, openBlock as $, withDirectives as F, createElementVNode as g, normalizeStyle as D, unref as L, vShow as N } from "vue";
|
|
2
|
-
import { A as R, C as s, O as V, V as k } from "./index-
|
|
2
|
+
import { A as R, C as s, O as V, V as k } from "./index-BsQHuOtQ.mjs";
|
|
3
3
|
const U = { class: "mouse_tool" }, z = ["src"], P = ["src"], J = /* @__PURE__ */ C({
|
|
4
4
|
__name: "MouseTool",
|
|
5
5
|
props: ["componentId"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as u, onMounted as p, ref as b, createElementBlock as i, openBlock as n, createElementVNode as s, Fragment as w, renderList as g, unref as r, normalizeClass as f, toDisplayString as h } from "vue";
|
|
2
2
|
import { N } from "./const-1h5SNeT6.mjs";
|
|
3
|
-
import { A as S, O as T } from "./index-
|
|
3
|
+
import { A as S, O as T } from "./index-BsQHuOtQ.mjs";
|
|
4
4
|
const k = { class: "best-view-box" }, A = { class: "best-view-list" }, I = ["onClick"], V = { class: "best-view-icon" }, y = ["src"], B = { class: "best-view-name" }, D = /* @__PURE__ */ u({
|
|
5
5
|
__name: "NavigateTool",
|
|
6
6
|
props: ["componentId"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as H, ref as u, onMounted as A, onBeforeUnmount as j, watch as K, createElementBlock as g, openBlock as p, createCommentVNode as B, unref as a, createElementVNode as o, toDisplayString as k } from "vue";
|
|
2
|
-
import { A as q, B as m, K as D, C as b, O as l, L as S, H as z } from "./index-
|
|
2
|
+
import { A as q, B as m, K as D, C as b, O as l, L as S, H as z } from "./index-BsQHuOtQ.mjs";
|
|
3
3
|
const J = { class: "roam_container_wrapper" }, Q = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "roam_container"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as ge } from "./panel.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { j as O, a4 as q, d as H, b as N, a5 as U, a6 as $, a7 as Y, l as W, a as he, a8 as Se, a9 as Ve, _ as L, u as T, aa as Re, v as X, ab as ke, ac as Ee, ad as Ce, y as Ie, o as Be, ae as we, af as J, w as Pe, A as Ne, D as ze } from "./index-
|
|
1
|
+
import { _ as ge } from "./panel.vue_vue_type_style_index_0_lang-BoCXA-Su.mjs";
|
|
2
|
+
import { j as O, a4 as q, d as H, b as N, a5 as U, a6 as $, a7 as Y, l as W, a as he, a8 as Se, a9 as Ve, _ as L, u as T, aa as Re, v as X, ab as ke, ac as Ee, ad as Ce, y as Ie, o as Be, ae as we, af as J, w as Pe, A as Ne, D as ze } from "./index-BsQHuOtQ.mjs";
|
|
3
3
|
import { ref as E, inject as Ge, computed as h, defineComponent as I, createElementBlock as C, openBlock as k, normalizeClass as R, unref as e, createElementVNode as _, withDirectives as Q, withModifiers as w, isRef as Z, vModelRadio as ee, renderSlot as x, createTextVNode as P, toDisplayString as D, nextTick as oe, normalizeStyle as Ue, onMounted as ae, provide as $e, reactive as Le, toRefs as Te, watch as le, Fragment as te, renderList as ne, createBlock as se, resolveDynamicComponent as xe, mergeProps as De, withCtx as z, createVNode as B, createCommentVNode as Fe } from "vue";
|
|
4
4
|
import { a as G } from "./const-1h5SNeT6.mjs";
|
|
5
5
|
const ie = N({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _e } from "./alert-
|
|
2
|
-
import { A as me, T as j, B as g, C as $, O as d, F as pe, Q as fe, G as ke, H as ge } from "./index-
|
|
3
|
-
import { E as we } from "./el-input-number-
|
|
4
|
-
import { _ as be } from "./panel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as _e } from "./alert-BBtNdmZc.mjs";
|
|
2
|
+
import { A as me, T as j, B as g, C as $, O as d, F as pe, Q as fe, G as ke, H as ge } from "./index-BsQHuOtQ.mjs";
|
|
3
|
+
import { E as we } from "./el-input-number-cVe5h6tA.mjs";
|
|
4
|
+
import { _ as be } from "./panel.vue_vue_type_style_index_0_lang-BoCXA-Su.mjs";
|
|
5
5
|
import { defineComponent as he, ref as u, onMounted as ye, watch as Ce, onBeforeUnmount as Se, createElementBlock as s, openBlock as n, Fragment as B, createBlock as Ve, withDirectives as G, unref as r, withCtx as z, createElementVNode as t, renderList as H, toDisplayString as w, vShow as K, createVNode as v, normalizeClass as Pe, createTextVNode as Te, withModifiers as xe } from "vue";
|
|
6
6
|
import { B as Le } from "./const-1h5SNeT6.mjs";
|
|
7
7
|
const $e = { class: "section_panel_middle" }, Be = { class: "section_control_button" }, ze = ["src"], Ee = { class: "control_buttons" }, Ie = ["onClick"], Oe = { class: "section_panel_cont" }, De = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as Oe, d as X, j as de, a4 as ve, b as Le, ag as ce, a5 as me, a6 as fe, aa as Ke, v as Re, t as J, _ as We, ac as je, a as He, u as Ge, ad as Ze, a8 as Ye, ah as qe, o as Ee, E as x, ai as Ae, aj as Je, w as Qe, A as Xe, T as De, B as P, C as H, F as _e, ak as el, n as ll, G as tl, V as ol, H as nl } from "./index-
|
|
2
|
-
import { _ as sl } from "./panel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { E as il } from "./el-input-number-
|
|
1
|
+
import { c as Oe, d as X, j as de, a4 as ve, b as Le, ag as ce, a5 as me, a6 as fe, aa as Ke, v as Re, t as J, _ as We, ac as je, a as He, u as Ge, ad as Ze, a8 as Ye, ah as qe, o as Ee, E as x, ai as Ae, aj as Je, w as Qe, A as Xe, T as De, B as P, C as H, F as _e, ak as el, n as ll, G as tl, V as ol, H as nl } from "./index-BsQHuOtQ.mjs";
|
|
2
|
+
import { _ as sl } from "./panel.vue_vue_type_style_index_0_lang-BoCXA-Su.mjs";
|
|
3
|
+
import { E as il } from "./el-input-number-cVe5h6tA.mjs";
|
|
4
4
|
import { defineComponent as ye, computed as N, ref as m, shallowRef as al, watch as pe, onMounted as Ue, createElementBlock as g, openBlock as i, withModifiers as ul, normalizeClass as S, unref as s, createElementVNode as o, createCommentVNode as p, withKeys as dl, createBlock as w, withCtx as A, resolveDynamicComponent as G, toDisplayString as Y, normalizeStyle as Z, renderSlot as Be, createVNode as u, nextTick as vl, onBeforeUnmount as rl, resolveComponent as cl, Fragment as Q, createTextVNode as B, renderList as re } from "vue";
|
|
5
5
|
import { b as O } from "./const-1h5SNeT6.mjs";
|
|
6
6
|
import { T as ml } from "./timer-DoTiGoWP.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as ye, u as de, w as Be, b as Ge, c as Qe, a as Xe, i as oe, h as De, d as Te, e as ge, f as we, g as _e, j as ze, N as Ze, k as et, l as Pe, r as xe, m as tt, E as nt, n as ot, o as st, p as dt, q as at, s as X, t as rt, v as ke, x as it, y as lt, z as ct, A as ut, B as te, C as Ne, T as $e, D as ht, F as ft, G as pt, H as vt } from "./index-
|
|
2
|
-
import { _ as yt } from "./tallPanel-
|
|
3
|
-
import { _ as gt } from "./panel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as ye, u as de, w as Be, b as Ge, c as Qe, a as Xe, i as oe, h as De, d as Te, e as ge, f as we, g as _e, j as ze, N as Ze, k as et, l as Pe, r as xe, m as tt, E as nt, n as ot, o as st, p as dt, q as at, s as X, t as rt, v as ke, x as it, y as lt, z as ct, A as ut, B as te, C as Ne, T as $e, D as ht, F as ft, G as pt, H as vt } from "./index-BsQHuOtQ.mjs";
|
|
2
|
+
import { _ as yt } from "./tallPanel-6zR8_KxY.mjs";
|
|
3
|
+
import { _ as gt } from "./panel.vue_vue_type_style_index_0_lang-BoCXA-Su.mjs";
|
|
4
4
|
import { defineComponent as ee, createBlock as J, openBlock as w, Transition as kt, mergeProps as Nt, unref as V, toHandlers as Ct, withCtx as S, renderSlot as be, ref as T, computed as Ke, onMounted as Ae, onUpdated as Fe, resolveDynamicComponent as Re, normalizeStyle as qe, normalizeClass as z, useAttrs as mt, reactive as _t, nextTick as fe, inject as pe, h as je, provide as ve, resolveComponent as ne, withDirectives as Y, createElementBlock as $, withModifiers as Z, createElementVNode as x, createVNode as I, createCommentVNode as le, Fragment as ue, renderList as he, vShow as W, getCurrentInstance as Ue, watch as R, toDisplayString as q, onBeforeUnmount as bt } from "vue";
|
|
5
5
|
import { S as Ce } from "./const-1h5SNeT6.mjs";
|
|
6
6
|
import { Loading as Et, CaretRight as xt } from "@element-plus/icons-vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as s, G as l, H as _ } from "./index-
|
|
1
|
+
import { O as s, G as l, H as _ } from "./index-BsQHuOtQ.mjs";
|
|
2
2
|
import { defineComponent as c, createElementBlock as a, openBlock as i, createElementVNode as e, unref as r, createVNode as d } from "vue";
|
|
3
3
|
const p = { class: "alert_wrapper" }, m = { class: "alert_box_wrapper" }, u = { class: "alert_box" }, f = { class: "alert_img" }, h = ["src"], v = { class: "alert_close" }, g = /* @__PURE__ */ c({
|
|
4
4
|
__name: "alert",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as le, ref as ne, reactive as Me, computed as p, watch as ie, onMounted as Re, onUpdated as Je, createElementBlock as K, openBlock as B, withModifiers as Ke, normalizeClass as $, unref as t, withDirectives as Le, createCommentVNode as oe, createVNode as me, withKeys as Te, renderSlot as ge, withCtx as ue, createBlock as D, createSlots as Qe, inject as Ze, nextTick as ye, toRefs as Be, normalizeStyle as re, createElementVNode as se, toDisplayString as De, h as et, shallowRef as tt, provide as nt, Fragment as he, renderList as Ee } from "vue";
|
|
2
|
-
import { a4 as A, f as fe, b as we, a6 as U, ag as te, a5 as Se, v as ee, aa as $e, a7 as xe, _ as Pe, x as Xe, u as Ne, ac as Ye, i as Ve, o as J, a as Ue, a8 as Oe, E as _e, al as Fe, D as lt, aj as We, j as Ie, q as je, am as at, s as G, w as Ge, e as ve, an as qe, p as pe, ao as ze, ap as rt, aq as ot, ad as ut } from "./index-
|
|
2
|
+
import { a4 as A, f as fe, b as we, a6 as U, ag as te, a5 as Se, v as ee, aa as $e, a7 as xe, _ as Pe, x as Xe, u as Ne, ac as Ye, i as Ve, o as J, a as Ue, a8 as Oe, E as _e, al as Fe, D as lt, aj as We, j as Ie, q as je, am as at, s as G, w as Ge, e as ve, an as qe, p as pe, ao as ze, ap as rt, aq as ot, ad as ut } from "./index-BsQHuOtQ.mjs";
|
|
3
3
|
import { ArrowDown as st, Minus as it, ArrowUp as dt, Plus as ct } from "@element-plus/icons-vue";
|
|
4
4
|
const mt = we({
|
|
5
5
|
id: {
|
|
@@ -8,7 +8,7 @@ import Lz from "axios";
|
|
|
8
8
|
import jz from "ali-oss";
|
|
9
9
|
import { ElMessage as HE } from "element-plus";
|
|
10
10
|
import { CircleClose as bA, CircleCheck as Nz, Loading as zE, View as Uz, Hide as Vz, Close as nB, Clock as Hz, Calendar as zz, ArrowUp as Qz, ArrowDown as QE, DArrowLeft as yu, ArrowLeft as Eb, ArrowRight as Kp, DArrowRight as _u } from "@element-plus/icons-vue";
|
|
11
|
-
const Gz = "https://bimkk-api
|
|
11
|
+
const Gz = "https://bimkk-api.tcbim.com", or = "https://bimkk-oss-production.oss-cn-beijing.aliyuncs.com", Wz = "https://convert.tcbim.com", Si = Oz();
|
|
12
12
|
let xc = {
|
|
13
13
|
BIMX_CONFIGS: {
|
|
14
14
|
viewerManager: !1,
|
|
@@ -126039,19 +126039,19 @@ const uhe = { class: "bcf_wrapper" }, che = { class: "bcf_content" }, hhe = { cl
|
|
|
126039
126039
|
__proto__: null,
|
|
126040
126040
|
default: ZM
|
|
126041
126041
|
}, Symbol.toStringTag, { value: "Module" })), Nhe = {
|
|
126042
|
-
StructureTree: va(() => import("./StructureTree-
|
|
126043
|
-
InspectorTool: va(() => import("./InspectorTool-
|
|
126044
|
-
RoamTool: va(() => import("./RoamTool-
|
|
126045
|
-
HiddenTool: va(() => import("./HiddenTool-
|
|
126046
|
-
MeasureTool: va(() => import("./MeasureTool-
|
|
126047
|
-
SectionTool: va(() => import("./SectionTool
|
|
126048
|
-
CommentTool: va(() => import("./CommentTool-
|
|
126049
|
-
AnnotationTool: va(() => import("./AnnotationTool-
|
|
126050
|
-
ScreenShotTool: va(() => import("./ScreenShotTool-
|
|
126051
|
-
SettingTool: va(() => import("./SettingTool-
|
|
126052
|
-
NavigateTool: va(() => import("./NavigateTool-
|
|
126042
|
+
StructureTree: va(() => import("./StructureTree-DNSm4_KZ.mjs")),
|
|
126043
|
+
InspectorTool: va(() => import("./InspectorTool-DmwjDZMT.mjs")),
|
|
126044
|
+
RoamTool: va(() => import("./RoamTool-DfdjoYNI.mjs")),
|
|
126045
|
+
HiddenTool: va(() => import("./HiddenTool-C84vGAtK.mjs")),
|
|
126046
|
+
MeasureTool: va(() => import("./MeasureTool-CctdiJZ5.mjs")),
|
|
126047
|
+
SectionTool: va(() => import("./SectionTool--31htn2k.mjs")),
|
|
126048
|
+
CommentTool: va(() => import("./CommentTool-C0GJuglr.mjs")),
|
|
126049
|
+
AnnotationTool: va(() => import("./AnnotationTool-DlWXzpPe.mjs")),
|
|
126050
|
+
ScreenShotTool: va(() => import("./ScreenShotTool-Cc8EuVgN.mjs")),
|
|
126051
|
+
SettingTool: va(() => import("./SettingTool-B8kwPsNg.mjs")),
|
|
126052
|
+
NavigateTool: va(() => import("./NavigateTool-DD3wibk3.mjs")),
|
|
126053
126053
|
BCFTool: va(() => Promise.resolve().then(() => jhe)),
|
|
126054
|
-
MouseTool: va(() => import("./MouseTool-
|
|
126054
|
+
MouseTool: va(() => import("./MouseTool-0cUY9YI6.mjs"))
|
|
126055
126055
|
}, Uhe = VE("userInfo", {
|
|
126056
126056
|
state: () => ({
|
|
126057
126057
|
userId: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as r, T as o } from "./index-
|
|
1
|
+
import { G as r, T as o } from "./index-BsQHuOtQ.mjs";
|
|
2
2
|
import { defineComponent as c, ref as u, onMounted as p, createBlock as m, openBlock as h, unref as l, withCtx as _, createElementVNode as e, normalizeStyle as g, toDisplayString as f, createVNode as w, renderSlot as k } from "vue";
|
|
3
3
|
import { ElDialog as v } from "element-plus";
|
|
4
4
|
const y = { class: "panel_top" }, T = { class: "panel_title" }, V = { class: "panel_close" }, S = { class: "panel_content" }, C = /* @__PURE__ */ c({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as g, B as t, T as r, I as y, J as x, G as S, H as k } from "./index-
|
|
1
|
+
import { A as g, B as t, T as r, I as y, J as x, G as S, H as k } from "./index-BsQHuOtQ.mjs";
|
|
2
2
|
import { defineComponent as P, ref as c, onMounted as W, watch as b, createElementBlock as f, openBlock as _, normalizeStyle as w, createElementVNode as o, createCommentVNode as C, toDisplayString as T, createVNode as N, unref as h, renderSlot as B } from "vue";
|
|
3
3
|
const E = { class: "tall_panel_content" }, H = { class: "panel_top" }, $ = { class: "panel_title" }, L = { class: "panel_close" }, A = { class: "panel_content" }, I = {
|
|
4
4
|
key: 0,
|