@xtctwins/tctwins-bimx-engine 0.3.1 → 0.3.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.
@@ -1,4 +1,4 @@
1
- import { A as c, O as _, H as l, I as a } from "./index-CwRGVhoT.mjs";
1
+ import { A as c, O as _, H as l, I as a } from "./index-BDupeKSG.mjs";
2
2
  import { defineComponent as i, openBlock as r, createElementBlock as d, createElementVNode as e, unref as t, toDisplayString as p, createVNode as m } from "vue";
3
3
  const u = { class: "alert_wrapper" }, h = { class: "alert_box_wrapper" }, f = { class: "alert_box" }, g = { class: "alert_img" }, v = ["src"], k = { class: "alert_title" }, w = { class: "alert_close" }, x = /* @__PURE__ */ i({
4
4
  __name: "Alert",
@@ -1,6 +1,6 @@
1
- import { _ as F } from "./Alert-CSiEPFGt.mjs";
1
+ import { _ as F } from "./Alert-5pEYzrMO.mjs";
2
2
  import { defineComponent as Y, ref as V, watch as G, onMounted as J, onBeforeUnmount as K, openBlock as l, createElementBlock as d, unref as i, createCommentVNode as y, createElementVNode as u, normalizeClass as B, Fragment as S, renderList as N, toDisplayString as Q, withDirectives as Z, createVNode as nn, vShow as en } from "vue";
3
- import { A as on, B as tn, C as a, D as E, O as _, I as an } from "./index-CwRGVhoT.mjs";
3
+ import { A as on, B as tn, C as a, D as E, O as _, I as an } from "./index-BDupeKSG.mjs";
4
4
  import { A as f } from "./bimTools-D3TraX9d.mjs";
5
5
  const rn = { class: "annotation_component" }, cn = {
6
6
  key: 0,
@@ -1,4 +1,4 @@
1
- import { au as e, M as t, av as o, aw as i, V as l, ax as n, ay as I, az as r, aA as C, aB as f, aC as g, aD as u, aE as B, J as M } from "./index-CwRGVhoT.mjs";
1
+ import { au as e, M as t, av as o, aw as i, V as l, ax as n, ay as I, az as r, aA as C, aB as f, aC as g, aD as u, aE as B, J as M } from "./index-BDupeKSG.mjs";
2
2
  export {
3
3
  e as BIMXViewer,
4
4
  t as BIMX_CONFIGS,
@@ -1,4 +1,4 @@
1
- (function(Lr,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@element-plus/icons-vue"),require("ali-oss"),require("axios"),require("element-plus"),require("pinia"),require("mitt")):typeof define=="function"&&define.amd?define(["exports","vue","@element-plus/icons-vue","ali-oss","axios","element-plus","pinia","mitt"],t):(Lr=typeof globalThis<"u"?globalThis:Lr||self,t(Lr.BIMX_Viewer_Lib={},Lr.Vue,Lr.ElementPlusIconsVue,Lr.AliOss,Lr.axios,Lr.ElementPlus,Lr.Pinia,Lr.Mitt))})(this,function(Lr,t,Jt,tL,Wv,Kv,zp,rL){"use strict";var cje=Object.defineProperty;var uje=(Lr,t,Jt)=>t in Lr?cje(Lr,t,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Lr[t]=Jt;var ei=(Lr,t,Jt)=>uje(Lr,typeof t!="symbol"?t+"":t,Jt);const Yx={"zh-CN":{bimxViewer:{common:{confirm:"确认",cancel:"取消",delete:"删除",add:"添加",edit:"编辑",save:"保存",submit:"提交",close:"关闭",back:"返回",next:"下一个",previous:"上一个",search:"搜索",reset:"重置",export:"导出",import:"导入",upload:"上传",download:"下载",refresh:"刷新",placeholder_input:"请输入",placeholder_select:"请选择",all:"全部",placeholder_date:"请选择日期",placeholder_search:"请输入搜索内容",image:"图片",placeholder_comment:"请输入评论内容",title:"标题",view:"查看",created:"创建",done:"完成",lang_zh:"中文",lang_en:"英文",organization:"组织",date:"日期",unknown:"未知",loading:"加载中...",noData:"暂无数据",emptyPage:"这里空空的,快去上传文件吧~",areYouSureDelete:"您确认要删除",questionMark:"吗?",success:"操作成功",error:"操作失败",warning:"警告",info:"提示",confirmEdit:"确认修改"},toolbar:{tree:"结构树",reset:"复位",roam:"漫游",measure:"测量",section:"剖切",comment:"批注",anno:"标注",screenshot:"截图",inspector:"属性",setting:"设置",fullscreen:"全屏",exitFullscreen:"退出全屏",virtualMouse:"虚拟鼠标",enjoy:"共享",share:"分享",cooperate:"协同",bcf:"BCF",navigate:"视图方向",mouse:"迷你鼠标",hidden:"透视"},hidden:{hide:"隐藏",perspective:"透视",select:"选中",recover:"恢复"},bcf:{title:"BCF",addNew:"新建BCF",detail:"BCF详情",list:"BCF列表",filter:"筛选",type:"类别",priority:"优先级",status:"状态",stage:"阶段",assignedTo:"分配给",dueDate:"截止日期",description:"问题描述",comment:"评论",noComments:"暂无评论",thisComment:"这条评论",viewpoint:"视角",addViewpoint:"添加视角",addObject:"添加模型对象",addMarker:"添加标记",viewElements:"查看元素",labels:"标签",author:"创建者",createDate:"创建日期",modifiedDate:"修改日期",createNow:"立即创建",error_title_required:"请输入标题!",elements:"个元素",creator:"创建人",commentNow:"立即评论",addComment:"添加评论",editComment:"修改评论",snapshot:"快照截屏",screenshot:"立即截屏",index:"序号",time:"时间",createTime:"创建时间",emptyHint:"这里空空的,快去创建你的BCF吧~",addedObjects:"已添加对象共:",addedAnnotations:"已添加标注共:",hintClickToAddObject:"直接点击模型上的结构即可添加对象",hintHoldLeftClickMultiSelect:"按下鼠标左键可连续多选",types:{basic:"模型基本结构",conflict:"模型结构冲突",error:"模型错误"},priorities:{high:"高",middle:"中",low:"低"},statuses:{closed:"已关闭",inProgress:"进行中",resolved:"已解决"},stages:{planningEnd:"初步规划结束",constructionStart:"施工开始",constructionEnd:"施工结束"},tags:{architecture:"建筑",hvac:"暖通",mep:"MEP",structure:"结构"},messages:{pleaseInputTitle:"请输入标题!",deleteConfirm:"确认删除该BCF?",deleteCommentConfirm:"确认删除该评论?"}},mobileComments:{empty:"这里空空的,快去创建你的CMT吧~",filter:{title:"筛选",priority:"筛选优先级",status:"筛选状态",author:"筛选创建人",tag:"筛选标签(可多选)"},createText:"创建文字批注",pleaseInputContent:"请输入内容",backToModel:"返回模型",deleteComment:"删除批注",newComment:"新建批注",list:"批注列表",createSuccess:"批注创建成功",notice:{title:"提示"}},mobileBcf:{selectPanel:{titleSuffix:"标题"},add:{continueScreenshot:"继续截屏",createNow:"立即创建",confirmEdit:"确认修改"},filter:{tag:"筛选标签(可多选)"}},setting:{title:"设置",effect:"效果",bgColor:"背景颜色",showEdges:"显示边缘",lightIntensity:"光源强度",appearance:"外观模式",skybox:"天空盒",perspective:"透视/正交",ortho:"正交",mode2d3d:"2D/3D",modelInvert:"模型倒置",zAxisUp:"Z轴向上",modelSpace:"显示模型空间",spaceEffect:"空间效果",language:"语言",modelViewSwitch:"模型视角切换",zoomSpeed:"缩放速率",outliersDetect:"启用离群检测",colors:{white:"白色",lightGray:"浅灰",gray:"灰色",darkGray:"深灰",black:"黑色"},spaceEffects:{transparent:"透明",wireframe:"线框",hide:"隐藏",bright:"亮",dark:"暗"}},bgColor:{gradientBlue:"渐变蓝",gray:"纯灰度",dimSky:"昏暗天空",white:"纯白色",milkBlue:"奶白蓝"},roles:{guest:"游客",user:"普通用户",admin:"管理员",creator:"创建者"},measure:{title:"测量",settings:"测量设置",distance:"距离",area:"面积",angle:"角度",angleLabel:"角度",totalLength:"总长度:",x:"X值:",y:"Y值:",z:"Z值:",scaleLabel:"比例:",unitLabel:"单位:",unitPlaceholder:"单位",precisionLabel:"精度:",precisionPlaceholder:"精度",clear:"清除",clearAll:"清除所有"},structure:{title:"结构树",search:"搜索构件",expand:"展开",collapse:"收起",showAll:"显示全部",hideAll:"隐藏全部",objects:"对象",categories:"类别",floors:"楼层",files:"文件",all:"全部"},inspector:{title:"属性",basic:"基本信息",properties:"属性",materials:"材质",noSelection:"未选中任何对象,请单击模型对象以查看构件属性。",name:"名称",type:"类型",objectCount:"对象数量",pSetsCount:"属性集数量",author:"作者",instanceProperties:"实例属性",typeProperties:"类型属性"},roam:{title:"漫游",courseTitle:"在第一视角中导航",dontRemind:"不要再提醒我",gotIt:"好的,我知道了",speedLabel:"移动速度:",firstPerson:"第一人称",thirdPerson:"第三人称",speed:"速度",height:"高度",dontShowCourseMessage:"不要再显示漫游教程"},screenshot:{title:"截图",capture:"截取",save:"保存",widthPlaceholder:"请输入长度",heightPlaceholder:"请输入宽度",custom:"自定义"},annotation:{title:"标注",text:"文本",line:"线条",arrow:"箭头",clear:"清除",image:"图片",record:"语音",video:"视频",file:"文档"},section:{allSections:"全部剖切",sectionPrefix:"剖切面#",xAxis:"X轴",yAxis:"Y轴",zAxis:"Z轴",bulk:{deleteAll:"删除所有剖切面",flipAll:"翻转所有剖切面",showAll:"显示所有剖切效果",hideAll:"隐藏所有剖切效果"}},validity:{"1day":"1天","7day":"7天","14day":"14天",permanent:"永久有效"},roleList:{viewOnly:"仅查看",viewDownload:"查看、下载文件"},navigate:{top:"俯视图",bottom:"仰视图",left:"左视图",right:"右视图",front:"前视图",back:"后视图",leftBottom:"西南",rightBottom:"东南",rightTop:"东北",leftTop:"西北"},enjoy:{annotation:"批注"},allocationRole:{viewOnly:"仅查看",editable:"可编辑"},project:{recentlyUsed:"最近使用",myProjects:"我参与的"},directory:{rename:"重命名",exit:"退出"},fontSize:{large:"大",medium:"中",small:"小"},commentTool:{pencil:"铅笔",arrow:"箭头",rectangle:"矩形",circle:"圆形",text:"文本"},alert:{selectPoint:"请先在模型上选择一个点"},clickEvent:{focus:"聚焦",hide:"隐藏",onlyShow:"仅显示",cancel:"取消",edge:"线框",fill:"填充",transparent:"透明",solid:"实体",multiSelect:"多选"}}},"en-US":{bimxViewer:{common:{confirm:"Confirm",cancel:"Cancel",delete:"Delete",add:"Add",edit:"Edit",save:"Save",submit:"Submit",close:"Close",back:"Back",next:"Next",previous:"Previous",search:"Search",reset:"Reset",export:"Export",import:"Import",upload:"Upload",download:"Download",refresh:"Refresh",placeholder_input:"Please input",placeholder_select:"Please select",all:"All",placeholder_date:"Please select date",placeholder_search:"Please input search content",image:"Image",placeholder_comment:"Please input comment content",title:"Title",view:"View",created:"Created",done:"Done",lang_zh:"Chinese",lang_en:"English",organization:"Organization",date:"Date",unknown:"Unknown",loading:"Loading...",noData:"No Data",emptyPage:"It's empty here, upload some files~",areYouSureDelete:"Are you sure you want to delete",questionMark:"?",success:"Success",error:"Error",warning:"Warning",info:"Info",confirmEdit:"Confirm Edit"},toolbar:{tree:"Structure Tree",reset:"Reset",roam:"Roaming",measure:"Measure",section:"Section",comment:"Comment",anno:"Mark",screenshot:"Screenshot",inspector:"Properties",setting:"Settings",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen",virtualMouse:"Mouse",enjoy:"Teamwork",share:"Share",cooperate:"Collaborate",bcf:"BCF",navigate:"Navigate",mouse:"Mini Mouse",hidden:"Perspective"},hidden:{hide:"Hide",perspective:"Perspective",select:"Selected",recover:"Recover"},bcf:{title:"BCF",addNew:"New BCF",detail:"BCF Detail",list:"BCF List",filter:"Filter",type:"Type",priority:"Priority",status:"Status",stage:"Stage",assignedTo:"Assigned To",dueDate:"Due Date",description:"Description",comment:"Comment",noComments:"No comments",thisComment:"This comment",viewpoint:"Viewpoint",addViewpoint:"Add Viewpoint",addObject:"Add Model Object",addMarker:"Add Marker",viewElements:"View Elements",labels:"Labels",author:"Author",createDate:"Create Date",modifiedDate:"Modified Date",createNow:"Create Now",error_title_required:"Please input title!",elements:"Elements",creator:"Creator",commentNow:"Comment Now",addComment:"Add Comment",editComment:"Edit Comment",snapshot:"Snapshot",screenshot:"Take Screenshot",index:"Index",time:"Time",createTime:"Create Time",emptyHint:"No BCF here, create your first BCF now~",addedObjects:"Added objects:",addedAnnotations:"Added annotations:",hintClickToAddObject:"Click on structure in the model to add objects",hintHoldLeftClickMultiSelect:"Hold left mouse button to multi-select",types:{basic:"Model Basic Structure",conflict:"Model Structure Conflict",error:"Model Error"},priorities:{high:"High",middle:"Medium",low:"Low"},statuses:{closed:"Closed",inProgress:"In Progress",resolved:"Resolved"},stages:{planningEnd:"Planning End",constructionStart:"Construction Start",constructionEnd:"Construction End"},tags:{architecture:"Architecture",hvac:"HVAC",mep:"MEP",structure:"Structure"},messages:{pleaseInputTitle:"Please input title!",deleteConfirm:"Confirm to delete this BCF?",deleteCommentConfirm:"Confirm to delete this comment?"}},mobileComments:{empty:"No comments here, create your CMT now~",filter:{title:"Filter",priority:"Filter by priority",status:"Filter by status",author:"Filter by author",tag:"Filter by tags (multiple)"},createText:"Create text comment",pleaseInputContent:"Please input content",backToModel:"Back to Model",deleteComment:"Delete comment",newComment:"New Comment",list:"Comment List",createSuccess:"Comment created successfully",notice:{title:"Notice"}},mobileBcf:{selectPanel:{titleSuffix:"Title"},add:{continueScreenshot:"Continue screenshot",createNow:"Create Now",confirmEdit:"Confirm Edit"},filter:{tag:"Filter by tags (multiple)"}},setting:{title:"Settings",effect:"Effect",bgColor:"Background Color",showEdges:"Show Edges",lightIntensity:"Light Intensity",appearance:"Appearance",skybox:"Skybox",perspective:"Perspective/Orthogonal",ortho:"Orthogonal",mode2d3d:"2D/3D",modelInvert:"Model Invert",zAxisUp:"Z-Axis Up",modelSpace:"Show Model Space",spaceEffect:"Space Effect",language:"Language",modelViewSwitch:"Model View Switch",zoomSpeed:"Zoom Speed",outliersDetect:"Outliers Detection",colors:{white:"White",lightGray:"Light Gray",gray:"Gray",darkGray:"Dark Gray",black:"Black"},spaceEffects:{transparent:"Transparent",wireframe:"Wireframe",hide:"Hide",bright:"Bright",dark:"Dark"}},bgColor:{gradientBlue:"Gradient Blue",gray:"Gray",dimSky:"Dim Sky",white:"White",milkBlue:"Milk Blue"},roles:{guest:"Guest",user:"User",admin:"Administrator",creator:"Creator"},measure:{title:"Measure",settings:"Measure Settings",distance:"Distance",area:"Area",angle:"Angle",angleLabel:"Angle",totalLength:"Total Length:",x:"X:",y:"Y:",z:"Z:",scaleLabel:"Scale:",unitLabel:"Unit:",unitPlaceholder:"Unit",precisionLabel:"Precision:",precisionPlaceholder:"Precision",clear:"Clear",clearAll:"Clear All"},structure:{title:"Structure Tree",search:"Search Components",expand:"Expand",collapse:"Collapse",showAll:"Show All",hideAll:"Hide All",objects:"Objects",categories:"Categories",floors:"Floors",files:"Files",all:"All"},inspector:{title:"Properties",basic:"Basic Info",properties:"Properties",materials:"Materials",noSelection:"No object selected, please click on a model object to view component properties.",name:"Name",type:"Type",objectCount:"Object Count",pSetsCount:"Property Sets Count",author:"Author",instanceProperties:"Instance Properties",typeProperties:"Type Properties"},roam:{title:"Roaming",courseTitle:"Navigate in First Person",dontRemind:"Don't remind me",gotIt:"Got it",speedLabel:"Move speed:",firstPerson:"First Person",thirdPerson:"Third Person",speed:"Speed",height:"Height",dontShowCourseMessage:"Do not show roaming tutorial again"},screenshot:{title:"Screenshot",capture:"Capture",save:"Save",widthPlaceholder:"Please input width",heightPlaceholder:"Please input height",custom:"Custom"},annotation:{title:"Annotation",text:"Text",line:"Line Annotation",arrow:"Arrow Annotation",clear:"Clear Annotation",image:"Image",record:"Voice",video:"Video",file:"Document"},section:{allSections:"All Sections",sectionPrefix:"Section #",xAxis:"X Axis",yAxis:"Y Axis",zAxis:"Z Axis",bulk:{deleteAll:"Delete all sections",flipAll:"Flip all sections",showAll:"Show all section effects",hideAll:"Hide all section effects"}},validity:{"1day":"1 day","7day":"7 days","14day":"14 days",permanent:"Permanent"},roleList:{viewOnly:"View only",viewDownload:"View & Download"},navigate:{top:"Top View",bottom:"Bottom View",left:"Left View",right:"Right View",front:"Front View",back:"Back View",leftBottom:"Southwest",rightBottom:"Southeast",rightTop:"Northeast",leftTop:"Northwest"},enjoy:{annotation:"Annotation"},allocationRole:{viewOnly:"View Only",editable:"Editable"},project:{recentlyUsed:"Recently Used",myProjects:"My Projects"},directory:{rename:"Rename",exit:"Exit"},fontSize:{large:"Large",medium:"Medium",small:"Small"},commentTool:{pencil:"Pencil",arrow:"Arrow",rectangle:"Rectangle",circle:"Circle",text:"Text"},alert:{selectPoint:"Please select a point on the model"},clickEvent:{focus:"Focus",hide:"Hide",onlyShow:"Only Show",cancel:"Cancel",edge:"Wireframe",fill:"Fill",transparent:"Transparent",solid:"Solid",multiSelect:"Multi-select"}}}},nL={legacy:!1,locale:"zh-CN",fallbackLocale:"zh-CN",messages:Yx,globalInjection:!0};let Xv=null;const iL=s=>{Xv=s},Jx=()=>Xv||(console.warn("[Bimx Engine] 全局 i18n 实例尚未初始化"),null),Lu=()=>{const s=Jx();return s?(C,...i)=>s.global.t(`bimxViewer.${C}`,...i):C=>C},Tn=()=>{const s=Jx();return s?(C,...i)=>s.global.t(`bimxViewer.${C}`,...i):C=>C},sL="https://bimkk-api-test.tcbim.com",$t="https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com",oL="https://convert-test.tcbim.com",aL=3e5,_r=rL();let Vu={BIMX_CONFIGS:{viewerManager:!1,RoamTool:!1},BimViewer:{viewerManager:!1}};const lL={isMember:!1,isInShare:!1,isShareHost:!1,isShareClient:!1},cL={file:!1,image:!1,record:!1,text:!1,video:!1},Zx={offsetX:0,offsetY:0},uL={pos:"right-bottom",posNum:[0,0]},dL=120,fL="light-gray",hL=!1,pL="right",mL="left",AL=0,gL=0,vL=0,yL=0,bL={pos:"bottom",posNum:[18]},_L={pos:"bottom",posNum:[70]},wL={pos:"bottom",posNum:[70]},CL="linear-gradient(180deg, #fffefb 0%, #daebff 100%)",xL=0;Lr.BIMX_CONFIGS=void 0;function EL(){Lr.BIMX_CONFIGS={isMobile:!1,loadMeta:!0,multiModel:!1,outliersDetect:!1,showRoam:!0,showTree:!1,showInspector:!1,userInfo:lL,annoLimit:cL,commentOffset:Zx,measureOffset:Zx,skyboxImg:void 0,topHeight:AL,leftWidth:yL,bottomHeight:vL,rightWidth:gL,inspectorPos:pL,treePos:mL,commentPos:bL,annotationPos:_L,roamPos:wL,showNavCube:!0,navCubePos:uL,navCubeSize:dL,themeColor:fL,hideTool:hL,backButton:!1,backgroundColor:CL,editPrivilege:xL,locale:void 0,hideLogo:!1}}EL();function qx(s=""){_r.emit("BIMX_CONFIGS",s)}function e2(s){for(const C in s)jn(C,s[C],!1);qx()}function jn(s,C,i=!0){C!==void 0&&(Lr.BIMX_CONFIGS[s]=C,i&&(s=="isMobile"||s=="measureOffset"||s=="commentOffset"||s=="navCubePos"||s=="navCubeSize"||s=="locale")&&qx(s))}function er(s){return Lr.BIMX_CONFIGS[s]}const _i=zp.defineStore("toolbar",{state:()=>({isPc:!0,pTools:[{id:0,key:"tree",name:"toolbar.tree",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"ptree",imgActive:"ptree-active",position:1,isActive:!1},{id:1,key:"reset",name:"toolbar.reset",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"preset",imgActive:"preset",position:0,isActive:!1},{id:2,key:"roam",name:"toolbar.roam",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"proam",imgActive:"proam-active",position:0,isActive:!1},{id:3,key:"measure",name:"toolbar.measure",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"pmeasure",imgActive:"pmeasure-active",position:0,isActive:!1},{id:4,key:"section",name:"toolbar.section",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"pslicing",imgActive:"pslicing-active",position:0,isActive:!1},{id:5,key:"comment",name:"toolbar.comment",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"pcomment",imgActive:"pcomment-active",position:0,isActive:!1},{id:6,key:"anno",name:"toolbar.anno",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"panno",imgActive:"panno-active",position:0,isActive:!1},{id:7,key:"screenshot",name:"toolbar.screenshot",hasActiveState:!0,component:"ScreenShotTool",isShowDelimiter:!1,img:"pscreenshot",imgActive:"pscreenshot-active",position:0,isActive:!1},{id:8,key:"inspector",name:"toolbar.inspector",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"pinspector",imgActive:"pinspector-active",position:0,isActive:!1},{id:9,key:"setting",name:"toolbar.setting",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"psetting",imgActive:"psetting-active",position:0,isActive:!1},{id:10,key:"fullscreen",name:"toolbar.fullscreen",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pfullscreen",imgActive:"pfullscreen-active",position:0,isActive:!1},{id:11,key:"enjoy",name:"toolbar.enjoy",hasActiveState:!0,component:"",isShowDelimiter:!1,img:"penjoy",imgActive:"penjoy-active",position:2,isActive:!1},{id:12,key:"share",name:"toolbar.share",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pshare",imgActive:"pshare-active",position:2,isActive:!1},{id:13,key:"cooperate",name:"toolbar.cooperate",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pcooperate",imgActive:"pcooperate",position:2,isActive:!1},{id:14,key:"bcf",name:"toolbar.bcf",hasActiveState:!0,component:"BCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",position:1,isActive:!1}],mTools:[{id:0,key:"reset",name:"toolbar.reset",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"reset",imgActive:"reset",isActive:!1},{id:1,key:"navigate",name:"toolbar.navigate",hasActiveState:!0,component:"NavigateTool",isShowDelimiter:!1,img:"navigate",imgActive:"navigate-active",isActive:!1},{id:2,key:"measure",name:"toolbar.measure",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"measure",imgActive:"measure-active",isActive:!1},{id:3,key:"comment",name:"toolbar.comment",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"comment",imgActive:"comment-active",isActive:!1},{id:4,key:"anno",name:"toolbar.anno",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"anno",imgActive:"anno-active",isActive:!1},{id:5,key:"enjoy",name:"toolbar.enjoy",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"enjoy",imgActive:"enjoy",isActive:!1},{id:6,key:"tree",name:"toolbar.tree",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"tree",imgActive:"tree-active",isActive:!1},{id:7,key:"inspector",name:"toolbar.inspector",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"inspector",imgActive:"inspector-active",isActive:!1},{id:8,key:"section",name:"toolbar.section",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"section",imgActive:"section-active",isActive:!1},{id:9,key:"roam",name:"toolbar.roam",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"roam",imgActive:"roam-active",isActive:!1},{id:10,key:"hidden",name:"toolbar.hidden",hasActiveState:!0,component:"HiddenTool",isShowDelimiter:!1,img:"hidden",imgActive:"hidden-active",isActive:!1},{id:11,key:"setting",name:"toolbar.setting",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"setting",imgActive:"setting-active",isActive:!1},{id:12,key:"share",name:"toolbar.share",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"share",imgActive:"share",isActive:!1},{id:13,key:"fullscreen",name:"toolbar.fullscreen",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"fullscreen",imgActive:"fullscreen-active",isActive:!1},{id:14,key:"cooperate",name:"toolbar.cooperate",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"cooperate",imgActive:"cooperate",isActive:!1},{id:15,key:"bcf",name:"toolbar.bcf",hasActiveState:!0,component:"MobileBCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",isActive:!1},{id:16,key:"mouse",name:"toolbar.mouse",hasActiveState:!0,component:"MouseTool",isShowDelimiter:!1,img:"mouse",imgActive:"mouse-active",isActive:!1}],visibleToolIds:[],readyToolIds:[]}),actions:{setDevice(s){this.isPc=s=="pc"},toggleToolVisibility(s){const C=this.visibleToolIds.indexOf(s);C===-1?this.visibleToolIds.push(s):this.visibleToolIds.splice(C,1)},setEnableTools(s){this.visibleToolIds=s},setEnableToolsByKey(s){let C=[];er("isMobile")?C=t2(s,SL):C=t2(s,kL);const i=[];for(let m=0;m<C.length;m++){const y=(this.isPc?this.pTools:this.mTools).find(g=>g.key===C[m]);y&&i.push(y.id)}this.visibleToolIds=this.visibleToolIds.concat(i)},setToolActiveStatus(s,C){const i=(this.isPc?this.pTools:this.mTools).find(m=>m.id===s);i&&(i.isActive=C!==void 0?C:!i.isActive)},setToolActiveStatusBykey(s,C){const i=(this.isPc?this.pTools:this.mTools).find(m=>m.key===s);i&&(i.isActive=C!==void 0?C:!i.isActive)},setAllToolClose(s=[]){if(s.length>0)for(let C=0;C<this.visibleToolIds.length;C++)s.includes(this.visibleToolIds[C])||(this.tools[this.visibleToolIds[C]].isActive=!1);else for(let C=0;C<this.visibleToolIds.length;C++)this.tools[this.visibleToolIds[C]].isActive=!1},setReadyById(s){(this.isPc?this.pTools:this.mTools).find(i=>i.id===s)&&this.readyToolIds.push(s)},ifToolAllReady(){for(let s=0;s<this.visibleTools.length;s++){const C=this.visibleTools[s];if(!(C.component==""||C.key=="bcf")&&!this.readyTools.includes(C.id))return!1}return!0},setReadyTools(s){this.readyToolIds=[]}},getters:{tools:s=>s.isPc?s.pTools:s.mTools,visibleTools:s=>s.visibleToolIds.map(C=>(s.isPc?s.pTools:s.mTools).find(i=>i.id===C)).filter(C=>!!C),readyTools:s=>s.readyToolIds,visibleComponents:s=>(s.isPc?s.pTools:s.mTools).filter(C=>s.visibleToolIds.includes(C.id)).map(C=>C.component),getKeyById:s=>C=>{var i;return(i=(s.isPc?s.pTools:s.mTools).find(m=>m.id===C))==null?void 0:i.key},getToolById:s=>C=>(s.isPc?s.pTools:s.mTools).find(i=>i.id===C),hasActiveState:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.id===C);return i?i.hasActiveState:!1},isToolEnable:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.id===C);return i?s.visibleToolIds.includes(i.id):!1},isToolEnableBykey:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.key===C);return i?s.visibleToolIds.includes(i.id):!1},isToolActive:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.id===C);return i?i.isActive:!1},isToolActiveBykey:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.key===C);return i?i.isActive:!1}}});function Hp(){return _i()}function BL(){_i().setAllToolClose(),_i().setReadyTools([]),_i().setEnableTools([])}let SL=["reset","navigate","measure","comment","anno","enjoy","tree","inspector","section","roam","hidden","setting","share","fullscreen","cooperate","bcf","mouse"],kL=["tree","reset","roam","measure","section","comment","anno","screenshot","inspector","setting","fullscreen","enjoy","share","cooperate","bcf"];function t2(s,C){const i={};C.forEach((y,g)=>{i[y]=g});const m=s.filter(y=>i.hasOwnProperty(y)).map(y=>({value:y,index:i[y]}));return m.sort((y,g)=>y.index-g.index),m.map(y=>y.value)}const Ic=t.ref(null),PL=s=>{Ic.value=s},$p=zp.defineStore("locale",()=>{const s=()=>{var f,c;const m=er("locale");if(m&&(m==="zh-CN"||m==="en-US"))return m;const y=(c=(f=Ic.value)==null?void 0:f.global)==null?void 0:c.locale,g=(y==null?void 0:y.value)??y;if(g&&(g==="zh-CN"||g==="en-US"))return g;const d=localStorage.getItem("BIMX_LOCALE");if(d&&(d==="zh-CN"||d==="en-US"))return d;const u=navigator.language;return u.startsWith("zh")?"zh-CN":u.startsWith("en")?"en-US":"zh-CN"},C=t.ref(s()),i=m=>{var y;C.value=m,(y=Ic.value)!=null&&y.global&&(Ic.value.global.locale=m),localStorage.setItem("BIMX_LOCALE",m)};return t.watch(C,m=>{var y;(y=Ic.value)!=null&&y.global&&(Ic.value.global.locale=m)}),t.watch(()=>{var m,y;return(y=(m=Ic.value)==null?void 0:m.global)==null?void 0:y.locale},m=>{m&&(m==="zh-CN"||m==="en-US")&&m!==C.value&&(C.value=m)}),{locale:C,setLocale:i}}),Ko=zp.defineStore("viewer",()=>{const s=t.ref(null),C=t.computed(()=>s.value!==null),i=t.ref({measureType:"distance"}),m=t.ref({xrayedObjectIds:[],highlightedObjectIds:[],selectedObjectIds:[],visibleObjectIds:[],edgesObjectIds:[]});function y(v){s.value=v,window.bimViewer=v}function g(v=""){const b=s.value;if(b){if(v===""){if(Lr.BIMX_CONFIGS.isMobile&&(b.setIsTouch(!0),b.navCubeMode.visible=!1),Lr.BIMX_CONFIGS.measureOffset){const w=er("measureOffset");b.setMeasureOffSet(w.offsetX,w.offsetY)}if(Lr.BIMX_CONFIGS.commentOffset){const w=er("commentOffset");b.setCommentsOffset(w.offsetX,w.offsetY)}Lr.BIMX_CONFIGS.navCubePos&&d(b,er("navCubePos"),er),Lr.BIMX_CONFIGS.navCubeSize&&b.setNavCubeSize(er("navCubeSize")),Lr.BIMX_CONFIGS.locale&&$p().setLocale(er("locale"));return}switch(v){case"isMobile":b.setIsTouch(Lr.BIMX_CONFIGS.isMobile),b.navCubeMode.visible=!Lr.BIMX_CONFIGS.isMobile;break;case"measureOffset":b.setMeasureOffSet(er("measureOffset").offsetX,er("measureOffset").offsetY);break;case"commentOffset":b.setCommentsOffset(er("commentOffset").offsetX,er("commentOffset").offsetY);break;case"navCubePos":d(b,er("navCubePos"),er);break;case"navCubeSize":b.setNavCubeSize(er("navCubeSize"));break;case"locale":$p().setLocale(er("locale"));break}}}function d(v,b,w){const _=b&&b.pos?b.pos:"right-bottom",x=b&&b.posNum?b.posNum:[0,_.includes("top")?w("topHeight"):0];_.includes("right")&&v.setNavCubePosition("right",x[0]),_.includes("top")&&v.setNavCubePosition("top",x[1]),_.includes("left")&&v.setNavCubePosition("left",x[0]),_.includes("bottom")&&v.setNavCubePosition("bottom",x[1])}function u(v){v.measure&&(i.value.measureType=v.measure)}function f(v,b){const _=_i().getKeyById(v);_?c(_,b):console.log("[Bimx Engine] 未找到工具 ID 对应的 key:",v)}function c(v,b){const w=_i(),_=b??!w.isToolActiveBykey(v),x=s.value;if(x)switch(v){case"tree":break;case"reset":x.resetView();break;case"roam":x.SetFirstPersonModeActive(_);break;case"measure":x.measureTool.setActive(_),_&&x.measureTool.setActiveByType(i.value.measureType,_);break;case"section":x.SetSectionToolActive(_);break;case"comment":_?setTimeout(()=>{x.SetCommentsToolActive(_)},100):x.SetCommentsToolActive(_);break;case"anno":x.SetAnnotationToolActive(_);break;case"screenshot":break;case"inspector":break;case"fullscreen":_?document.documentElement.requestFullscreen():document.exitFullscreen&&document.exitFullscreen();break;case"hidden":x.disableClickEvent=_;break}}function h(){var v;(v=s.value)==null||v.closeAll()}function p(){var v;(v=s.value)==null||v.destroy(),console.log("[Bimx Engine] 引擎实例已销毁")}function A(v,b){var w;(w=s.value)==null||w.showSpinner(v),b&&b()}return{viewerInstance:s,isReady:C,viewerState:i,entityState:m,setViewerInstance:y,configViewer:g,saveViewerState:u,setToolActiveById:f,setToolActiveByKey:c,setAllClose:h,destroyViewer:p,showRequestBusy:A}});let r2=!1;Vu.BIMX_CONFIGS.viewerManager||(_r.on("BIMX_CONFIGS",s=>{window.bimViewer?Xn.ConfigViewer(s):r2=!0}),Vu.BIMX_CONFIGS.viewerManager=!0);const ML=()=>{Xn.SetAllClose(),r2&&Xn.ConfigViewer()};Vu.BimViewer.viewerManager||(_r.on("BimViewer",ML),Vu.BimViewer.viewerManager=!0);class Xn{static get viewerState(){return Ko().viewerState}static set viewerState(C){Ko().viewerState=C}static get entityState(){return Ko().entityState}static set entityState(C){Ko().entityState=C}static ConfigViewer(C=""){Ko().configViewer(C)}static SaveViewerState(C){Ko().saveViewerState(C)}static SetToolActiveById(C,i){Ko().setToolActiveById(C,i)}static SetToolActiveByKey(C,i){Ko().setToolActiveByKey(C,i)}static SetAllClose(){Ko().setAllClose()}static DestroyViewer(){Ko().destroyViewer()}static showRequestBusy(C,i){Ko().showRequestBusy(C,i)}}function wi(s){const{event:C,handler:i,defer:m=!1}=s,y=()=>{var u,f;(f=(u=window.bimViewer)==null?void 0:u.eventTrigger)==null||f.on(C,i)},g=()=>{var u,f;(f=(u=window.bimViewer)==null?void 0:u.eventTrigger)==null||f.off(C,i)};if(!t.getCurrentInstance())return console.warn("[Bimx Engine] useBimViewerEvent 在 setup() 上下文之外调用,无法注册自动清理。事件监听将不会在组件卸载时自动移除,可能导致内存泄漏。请将 useBimViewerEvent() 调用移至 setup() / <script setup> 顶层。"),y(),{subscribe:y,unsubscribe:g};if(m){const u=()=>y();_r.on("BimViewer",u),t.onBeforeUnmount(()=>{_r.off("BimViewer",u),g()})}else y(),t.onBeforeUnmount(()=>g());return{subscribe:y,unsubscribe:g}}const TL=["src"],IL=["src"],DL=["src"],FL=["src"],RL=["src"],NL=["src"],OL=["src"],LL=t.defineComponent({__name:"ClickEvent",setup(s,{expose:C}){const i=Tn();_i();const m=t.ref(!0);t.onMounted(()=>{});let y="",g,d;const u=()=>{d=window.bimViewer,wi({event:"pickedNothing",handler:()=>{m.value&&(h.value=!1,B.value=[],Xn.entityState.selectedObjectIds=[],d.setAllObjectsSelected(!1))}}),wi({event:"touchEntity",handler:L=>{m.value&&(g=L,y=g.id,b(y))}}),d.viewer.cameraControl.on("touchmoveCanvas",()=>{})};_r.on("BimViewer",u);const f=t.ref(0),c=t.ref(0),h=t.ref(!1),p=t.ref(!0),A=t.ref(!0),v=t.ref(!1),b=L=>{(!g||g&&L!==g.id)&&(g=d.viewer.scene.objects[L]),y=L,B.value.length>0&&!B.value.find(H=>H==y)&&B.value.push(y),p.value=!g.xrayed,A.value=!g.highlighted;const{aabb:U}=g,G=[(U[0]+U[3])/2,(U[1]+U[4])/2,(U[2]+U[5])/2],W=d.viewer.scene.camera.projectWorldPos(G);let Q=W[0]-172/2,D=W[1]-198/2;Q<0?Q=0:Q>window.innerWidth-198&&(Q=window.innerWidth-198),D<0?D=0:D>window.innerHeight-172-72&&(D=window.innerHeight-172-72),f.value=Q,c.value=D,h.value=!0,d.setEntitySelected(g,!0)},w=()=>{B.value.find(L=>L==g.id)||(B.value=B.value.filter(L=>L!=g.id),Xn.entityState.selectedObjectIds=B.value),_()},_=()=>{g=null,y="",p.value=!0,A.value=!0,h.value=!1,x.value=-1,_r.emit("unFocus")},x=t.ref(-1),B=t.ref([]),k=L=>{x.value=L},I=L=>{switch(B.value.length>0&&(B.value.push(y),Xn.entityState.selectedObjectIds.find(U=>U==g.id)||Xn.entityState.selectedObjectIds.push(g.id)),L!==5&&L!==0&&(window.bimViewer.disableClickEvent=!1,d.setAllObjectsSelected(!1)),L==5&&B.value.length==0&&(window.bimViewer.disableClickEvent=!0),L){case 0:B.value.length>0?d.viewFitObjects(B.value):d.viewFitEntity(g),setTimeout(()=>{d.setAllObjectsSelected(!1)},1e3);break;case 1:B.value.length>0?d.setObjectsVisible(Xn.entityState.selectedObjectIds,!1):d.setEntityVisible(g,!1);break;case 2:v.value?d.setAllObjectsVisible(!0):(d.setAllObjectsVisible(!1),B.value.length>0?d.setObjectsVisible(Xn.entityState.selectedObjectIds,!0):d.setEntityVisible(g,!0),d.setAllObjectsSelected(!1)),v.value=!v.value;break;case 3:B.value.length>0?(d.viewer.scene.setObjectsXRayed(B.value,p.value),B.value.forEach(U=>{const G=d.viewer.scene.objects[U];G.edges=G.xrayed?!0:d.edgesActive,d.setEntityHighlighted(G,!1)})):(d.setEntityXRayed(g),g.edges=g.xrayed?!0:d.edgesActive,d.setEntityHighlighted(g,!1));break;case 4:B.value.length>0?B.value.forEach(U=>{const G=d.viewer.scene.objects[U];d.setEntityHighlighted(G,A.value),G.xrayed&&(d.setEntityXRayed(G,!1),G.edges=d.edgesActive)}):(d.setEntityHighlighted(g),g.xrayed&&(d.setEntityXRayed(g,!1),g.edges=d.edgesActive));break;case 5:B.value.find(U=>U==y)||(B.value.push(y),d.setObjectsSelected(B.value,!0)),Xn.entityState.selectedObjectIds=B.value,_r.emit("multiSelect");break}L!==5&&L!==0&&(d.setEntitySelected(g,!1),B.value=[],Xn.entityState.selectedObjectIds=B.value),Xn.entityState.xrayedObjectIds=d.viewer.scene.xrayedObjectIds,Xn.entityState.highlightedObjectIds=d.viewer.scene.highlightedObjectIds,Xn.entityState.selectedObjectIds=d.viewer.scene.selectedObjectIds,Xn.entityState.visibleObjectIds=d.viewer.scene.visibleObjectIds,Xn.entityState.edgesObjectIds=d.viewer.scene.edgesObjectIds,setTimeout(()=>{_()},300)},R=()=>{_()},j=()=>{m.value=!1},$=()=>{m.value=!0};return _r.on("focusEntity",b),t.onBeforeUnmount(()=>{_r.off("BimViewer",u),_r.off("focusEntity",b)}),C({reset:R,enable:$,disable:j}),(L,U)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:"entity_tools",style:t.normalizeStyle({left:`${f.value}px`,top:`${c.value}px`})},[t.createElementVNode("div",{class:"close_btns",onClick:w},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/close-dark-circle.svg`},null,8,TL)]),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==0},"detail_btn fit"]),onPointerdown:U[0]||(U[0]=G=>k(0)),onPointerup:U[1]||(U[1]=G=>I(0))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/fit.svg`},null,8,IL),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("clickEvent.focus")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==1},"detail_btn hide_self"]),onPointerdown:U[2]||(U[2]=G=>k(1)),onPointerup:U[3]||(U[3]=G=>I(1))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/hide-self.svg`},null,8,DL),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("clickEvent.hide")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==2},"detail_btn hide_other"]),onPointerdown:U[4]||(U[4]=G=>k(2)),onPointerup:U[5]||(U[5]=G=>I(2))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/hide-other.svg`},null,8,FL),t.createElementVNode("span",null,t.toDisplayString(v.value?t.unref(i)("clickEvent.cancel"):t.unref(i)("clickEvent.onlyShow")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==3},"detail_btn edge_solid"]),onPointerdown:U[6]||(U[6]=G=>k(3)),onPointerup:U[7]||(U[7]=G=>I(3))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/${p.value?"edge":"solid"}.svg`},null,8,RL),t.createElementVNode("span",null,t.toDisplayString(p.value?t.unref(i)("clickEvent.edge"):t.unref(i)("clickEvent.fill")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==4},"detail_btn opacity_fill"]),onPointerdown:U[8]||(U[8]=G=>k(4)),onPointerup:U[9]||(U[9]=G=>I(4))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/${A.value?"opacity":"fill"}.svg`},null,8,NL),t.createElementVNode("span",null,t.toDisplayString(A.value?t.unref(i)("clickEvent.transparent"):t.unref(i)("clickEvent.solid")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==5},"detail_btn multi_select"]),onPointerdown:U[10]||(U[10]=G=>k(5)),onPointerup:U[11]||(U[11]=G=>I(5))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/multiSelect.svg`},null,8,OL),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("clickEvent.multiSelect")),1)],34)],4)),[[t.vShow,h.value]])}}),zt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},VL=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],Yv=["sun","mon","tue","wed","thu","fri","sat"],Br="update:modelValue",zr="change",ji="input",Aa=["","default","small","large"],n2=["left","center","right"];/**
1
+ (function(Lr,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@element-plus/icons-vue"),require("ali-oss"),require("axios"),require("element-plus"),require("pinia"),require("mitt")):typeof define=="function"&&define.amd?define(["exports","vue","@element-plus/icons-vue","ali-oss","axios","element-plus","pinia","mitt"],t):(Lr=typeof globalThis<"u"?globalThis:Lr||self,t(Lr.BIMX_Viewer_Lib={},Lr.Vue,Lr.ElementPlusIconsVue,Lr.AliOss,Lr.axios,Lr.ElementPlus,Lr.Pinia,Lr.Mitt))})(this,function(Lr,t,Jt,tL,Wv,Kv,zp,rL){"use strict";var cje=Object.defineProperty;var uje=(Lr,t,Jt)=>t in Lr?cje(Lr,t,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Lr[t]=Jt;var ei=(Lr,t,Jt)=>uje(Lr,typeof t!="symbol"?t+"":t,Jt);const Yx={"zh-CN":{bimxViewer:{common:{confirm:"确认",cancel:"取消",delete:"删除",add:"添加",edit:"编辑",save:"保存",submit:"提交",close:"关闭",back:"返回",next:"下一个",previous:"上一个",search:"搜索",reset:"重置",export:"导出",import:"导入",upload:"上传",download:"下载",refresh:"刷新",placeholder_input:"请输入",placeholder_select:"请选择",all:"全部",placeholder_date:"请选择日期",placeholder_search:"请输入搜索内容",image:"图片",placeholder_comment:"请输入评论内容",title:"标题",view:"查看",created:"创建",done:"完成",lang_zh:"中文",lang_en:"英文",organization:"组织",date:"日期",unknown:"未知",loading:"加载中...",noData:"暂无数据",emptyPage:"这里空空的,快去上传文件吧~",areYouSureDelete:"您确认要删除",questionMark:"吗?",success:"操作成功",error:"操作失败",warning:"警告",info:"提示",confirmEdit:"确认修改"},toolbar:{tree:"结构树",reset:"复位",roam:"漫游",measure:"测量",section:"剖切",comment:"批注",anno:"标注",screenshot:"截图",inspector:"属性",setting:"设置",fullscreen:"全屏",exitFullscreen:"退出全屏",virtualMouse:"虚拟鼠标",enjoy:"共享",share:"分享",cooperate:"协同",bcf:"BCF",navigate:"视图方向",mouse:"迷你鼠标",hidden:"透视"},hidden:{hide:"隐藏",perspective:"透视",select:"选中",recover:"恢复"},bcf:{title:"BCF",addNew:"新建BCF",detail:"BCF详情",list:"BCF列表",filter:"筛选",type:"类别",priority:"优先级",status:"状态",stage:"阶段",assignedTo:"分配给",dueDate:"截止日期",description:"问题描述",comment:"评论",noComments:"暂无评论",thisComment:"这条评论",viewpoint:"视角",addViewpoint:"添加视角",addObject:"添加模型对象",addMarker:"添加标记",viewElements:"查看元素",labels:"标签",author:"创建者",createDate:"创建日期",modifiedDate:"修改日期",createNow:"立即创建",error_title_required:"请输入标题!",elements:"个元素",creator:"创建人",commentNow:"立即评论",addComment:"添加评论",editComment:"修改评论",snapshot:"快照截屏",screenshot:"立即截屏",index:"序号",time:"时间",createTime:"创建时间",emptyHint:"这里空空的,快去创建你的BCF吧~",addedObjects:"已添加对象共:",addedAnnotations:"已添加标注共:",hintClickToAddObject:"直接点击模型上的结构即可添加对象",hintHoldLeftClickMultiSelect:"按下鼠标左键可连续多选",types:{basic:"模型基本结构",conflict:"模型结构冲突",error:"模型错误"},priorities:{high:"高",middle:"中",low:"低"},statuses:{closed:"已关闭",inProgress:"进行中",resolved:"已解决"},stages:{planningEnd:"初步规划结束",constructionStart:"施工开始",constructionEnd:"施工结束"},tags:{architecture:"建筑",hvac:"暖通",mep:"MEP",structure:"结构"},messages:{pleaseInputTitle:"请输入标题!",deleteConfirm:"确认删除该BCF?",deleteCommentConfirm:"确认删除该评论?"}},mobileComments:{empty:"这里空空的,快去创建你的CMT吧~",filter:{title:"筛选",priority:"筛选优先级",status:"筛选状态",author:"筛选创建人",tag:"筛选标签(可多选)"},createText:"创建文字批注",pleaseInputContent:"请输入内容",backToModel:"返回模型",deleteComment:"删除批注",newComment:"新建批注",list:"批注列表",createSuccess:"批注创建成功",notice:{title:"提示"}},mobileBcf:{selectPanel:{titleSuffix:"标题"},add:{continueScreenshot:"继续截屏",createNow:"立即创建",confirmEdit:"确认修改"},filter:{tag:"筛选标签(可多选)"}},setting:{title:"设置",effect:"效果",bgColor:"背景颜色",showEdges:"显示边缘",lightIntensity:"光源强度",appearance:"外观模式",skybox:"天空盒",perspective:"透视/正交",ortho:"正交",mode2d3d:"2D/3D",modelInvert:"模型倒置",zAxisUp:"Z轴向上",modelSpace:"显示模型空间",spaceEffect:"空间效果",language:"语言",modelViewSwitch:"模型视角切换",zoomSpeed:"缩放速率",outliersDetect:"启用离群检测",colors:{white:"白色",lightGray:"浅灰",gray:"灰色",darkGray:"深灰",black:"黑色"},spaceEffects:{transparent:"透明",wireframe:"线框",hide:"隐藏",bright:"亮",dark:"暗"}},bgColor:{gradientBlue:"渐变蓝",gray:"纯灰度",dimSky:"昏暗天空",white:"纯白色",milkBlue:"奶白蓝"},roles:{guest:"游客",user:"普通用户",admin:"管理员",creator:"创建者"},measure:{title:"测量",settings:"测量设置",distance:"距离",area:"面积",angle:"角度",angleLabel:"角度",totalLength:"总长度:",x:"X值:",y:"Y值:",z:"Z值:",scaleLabel:"比例:",unitLabel:"单位:",unitPlaceholder:"单位",precisionLabel:"精度:",precisionPlaceholder:"精度",clear:"清除",clearAll:"清除所有"},structure:{title:"结构树",search:"搜索构件",expand:"展开",collapse:"收起",showAll:"显示全部",hideAll:"隐藏全部",objects:"对象",categories:"类别",floors:"楼层",files:"文件",all:"全部"},inspector:{title:"属性",basic:"基本信息",properties:"属性",materials:"材质",noSelection:"未选中任何对象,请单击模型对象以查看构件属性。",name:"名称",type:"类型",objectCount:"对象数量",pSetsCount:"属性集数量",author:"作者",instanceProperties:"实例属性",typeProperties:"类型属性"},roam:{title:"漫游",courseTitle:"在第一视角中导航",dontRemind:"不要再提醒我",gotIt:"好的,我知道了",speedLabel:"移动速度:",firstPerson:"第一人称",thirdPerson:"第三人称",speed:"速度",height:"高度",dontShowCourseMessage:"不要再显示漫游教程"},screenshot:{title:"截图",capture:"截取",save:"保存",widthPlaceholder:"请输入长度",heightPlaceholder:"请输入宽度",custom:"自定义"},annotation:{title:"标注",text:"文本",line:"线条",arrow:"箭头",clear:"清除",image:"图片",record:"语音",video:"视频",file:"文档"},section:{allSections:"全部剖切",sectionPrefix:"剖切面#",xAxis:"X轴",yAxis:"Y轴",zAxis:"Z轴",bulk:{deleteAll:"删除所有剖切面",flipAll:"翻转所有剖切面",showAll:"显示所有剖切效果",hideAll:"隐藏所有剖切效果"}},validity:{"1day":"1天","7day":"7天","14day":"14天",permanent:"永久有效"},roleList:{viewOnly:"仅查看",viewDownload:"查看、下载文件"},navigate:{top:"俯视图",bottom:"仰视图",left:"左视图",right:"右视图",front:"前视图",back:"后视图",leftBottom:"西南",rightBottom:"东南",rightTop:"东北",leftTop:"西北"},enjoy:{annotation:"批注"},allocationRole:{viewOnly:"仅查看",editable:"可编辑"},project:{recentlyUsed:"最近使用",myProjects:"我参与的"},directory:{rename:"重命名",exit:"退出"},fontSize:{large:"大",medium:"中",small:"小"},commentTool:{pencil:"铅笔",arrow:"箭头",rectangle:"矩形",circle:"圆形",text:"文本"},alert:{selectPoint:"请先在模型上选择一个点"},clickEvent:{focus:"聚焦",hide:"隐藏",onlyShow:"仅显示",cancel:"取消",edge:"线框",fill:"填充",transparent:"透明",solid:"实体",multiSelect:"多选"}}},"en-US":{bimxViewer:{common:{confirm:"Confirm",cancel:"Cancel",delete:"Delete",add:"Add",edit:"Edit",save:"Save",submit:"Submit",close:"Close",back:"Back",next:"Next",previous:"Previous",search:"Search",reset:"Reset",export:"Export",import:"Import",upload:"Upload",download:"Download",refresh:"Refresh",placeholder_input:"Please input",placeholder_select:"Please select",all:"All",placeholder_date:"Please select date",placeholder_search:"Please input search content",image:"Image",placeholder_comment:"Please input comment content",title:"Title",view:"View",created:"Created",done:"Done",lang_zh:"Chinese",lang_en:"English",organization:"Organization",date:"Date",unknown:"Unknown",loading:"Loading...",noData:"No Data",emptyPage:"It's empty here, upload some files~",areYouSureDelete:"Are you sure you want to delete",questionMark:"?",success:"Success",error:"Error",warning:"Warning",info:"Info",confirmEdit:"Confirm Edit"},toolbar:{tree:"Structure Tree",reset:"Reset",roam:"Roaming",measure:"Measure",section:"Section",comment:"Comment",anno:"Mark",screenshot:"Screenshot",inspector:"Properties",setting:"Settings",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen",virtualMouse:"Mouse",enjoy:"Teamwork",share:"Share",cooperate:"Collaborate",bcf:"BCF",navigate:"Navigate",mouse:"Mini Mouse",hidden:"Perspective"},hidden:{hide:"Hide",perspective:"Perspective",select:"Selected",recover:"Recover"},bcf:{title:"BCF",addNew:"New BCF",detail:"BCF Detail",list:"BCF List",filter:"Filter",type:"Type",priority:"Priority",status:"Status",stage:"Stage",assignedTo:"Assigned To",dueDate:"Due Date",description:"Description",comment:"Comment",noComments:"No comments",thisComment:"This comment",viewpoint:"Viewpoint",addViewpoint:"Add Viewpoint",addObject:"Add Model Object",addMarker:"Add Marker",viewElements:"View Elements",labels:"Labels",author:"Author",createDate:"Create Date",modifiedDate:"Modified Date",createNow:"Create Now",error_title_required:"Please input title!",elements:"Elements",creator:"Creator",commentNow:"Comment Now",addComment:"Add Comment",editComment:"Edit Comment",snapshot:"Snapshot",screenshot:"Take Screenshot",index:"Index",time:"Time",createTime:"Create Time",emptyHint:"No BCF here, create your first BCF now~",addedObjects:"Added objects:",addedAnnotations:"Added annotations:",hintClickToAddObject:"Click on structure in the model to add objects",hintHoldLeftClickMultiSelect:"Hold left mouse button to multi-select",types:{basic:"Model Basic Structure",conflict:"Model Structure Conflict",error:"Model Error"},priorities:{high:"High",middle:"Medium",low:"Low"},statuses:{closed:"Closed",inProgress:"In Progress",resolved:"Resolved"},stages:{planningEnd:"Planning End",constructionStart:"Construction Start",constructionEnd:"Construction End"},tags:{architecture:"Architecture",hvac:"HVAC",mep:"MEP",structure:"Structure"},messages:{pleaseInputTitle:"Please input title!",deleteConfirm:"Confirm to delete this BCF?",deleteCommentConfirm:"Confirm to delete this comment?"}},mobileComments:{empty:"No comments here, create your CMT now~",filter:{title:"Filter",priority:"Filter by priority",status:"Filter by status",author:"Filter by author",tag:"Filter by tags (multiple)"},createText:"Create text comment",pleaseInputContent:"Please input content",backToModel:"Back to Model",deleteComment:"Delete comment",newComment:"New Comment",list:"Comment List",createSuccess:"Comment created successfully",notice:{title:"Notice"}},mobileBcf:{selectPanel:{titleSuffix:"Title"},add:{continueScreenshot:"Continue screenshot",createNow:"Create Now",confirmEdit:"Confirm Edit"},filter:{tag:"Filter by tags (multiple)"}},setting:{title:"Settings",effect:"Effect",bgColor:"Background Color",showEdges:"Show Edges",lightIntensity:"Light Intensity",appearance:"Appearance",skybox:"Skybox",perspective:"Perspective/Orthogonal",ortho:"Orthogonal",mode2d3d:"2D/3D",modelInvert:"Model Invert",zAxisUp:"Z-Axis Up",modelSpace:"Show Model Space",spaceEffect:"Space Effect",language:"Language",modelViewSwitch:"Model View Switch",zoomSpeed:"Zoom Speed",outliersDetect:"Outliers Detection",colors:{white:"White",lightGray:"Light Gray",gray:"Gray",darkGray:"Dark Gray",black:"Black"},spaceEffects:{transparent:"Transparent",wireframe:"Wireframe",hide:"Hide",bright:"Bright",dark:"Dark"}},bgColor:{gradientBlue:"Gradient Blue",gray:"Gray",dimSky:"Dim Sky",white:"White",milkBlue:"Milk Blue"},roles:{guest:"Guest",user:"User",admin:"Administrator",creator:"Creator"},measure:{title:"Measure",settings:"Measure Settings",distance:"Distance",area:"Area",angle:"Angle",angleLabel:"Angle",totalLength:"Total Length:",x:"X:",y:"Y:",z:"Z:",scaleLabel:"Scale:",unitLabel:"Unit:",unitPlaceholder:"Unit",precisionLabel:"Precision:",precisionPlaceholder:"Precision",clear:"Clear",clearAll:"Clear All"},structure:{title:"Structure Tree",search:"Search Components",expand:"Expand",collapse:"Collapse",showAll:"Show All",hideAll:"Hide All",objects:"Objects",categories:"Categories",floors:"Floors",files:"Files",all:"All"},inspector:{title:"Properties",basic:"Basic Info",properties:"Properties",materials:"Materials",noSelection:"No object selected, please click on a model object to view component properties.",name:"Name",type:"Type",objectCount:"Object Count",pSetsCount:"Property Sets Count",author:"Author",instanceProperties:"Instance Properties",typeProperties:"Type Properties"},roam:{title:"Roaming",courseTitle:"Navigate in First Person",dontRemind:"Don't remind me",gotIt:"Got it",speedLabel:"Move speed:",firstPerson:"First Person",thirdPerson:"Third Person",speed:"Speed",height:"Height",dontShowCourseMessage:"Do not show roaming tutorial again"},screenshot:{title:"Screenshot",capture:"Capture",save:"Save",widthPlaceholder:"Please input width",heightPlaceholder:"Please input height",custom:"Custom"},annotation:{title:"Annotation",text:"Text",line:"Line Annotation",arrow:"Arrow Annotation",clear:"Clear Annotation",image:"Image",record:"Voice",video:"Video",file:"Document"},section:{allSections:"All Sections",sectionPrefix:"Section #",xAxis:"X Axis",yAxis:"Y Axis",zAxis:"Z Axis",bulk:{deleteAll:"Delete all sections",flipAll:"Flip all sections",showAll:"Show all section effects",hideAll:"Hide all section effects"}},validity:{"1day":"1 day","7day":"7 days","14day":"14 days",permanent:"Permanent"},roleList:{viewOnly:"View only",viewDownload:"View & Download"},navigate:{top:"Top View",bottom:"Bottom View",left:"Left View",right:"Right View",front:"Front View",back:"Back View",leftBottom:"Southwest",rightBottom:"Southeast",rightTop:"Northeast",leftTop:"Northwest"},enjoy:{annotation:"Annotation"},allocationRole:{viewOnly:"View Only",editable:"Editable"},project:{recentlyUsed:"Recently Used",myProjects:"My Projects"},directory:{rename:"Rename",exit:"Exit"},fontSize:{large:"Large",medium:"Medium",small:"Small"},commentTool:{pencil:"Pencil",arrow:"Arrow",rectangle:"Rectangle",circle:"Circle",text:"Text"},alert:{selectPoint:"Please select a point on the model"},clickEvent:{focus:"Focus",hide:"Hide",onlyShow:"Only Show",cancel:"Cancel",edge:"Wireframe",fill:"Fill",transparent:"Transparent",solid:"Solid",multiSelect:"Multi-select"}}}},nL={legacy:!1,locale:"zh-CN",fallbackLocale:"zh-CN",messages:Yx,globalInjection:!0};let Xv=null;const iL=s=>{Xv=s},Jx=()=>Xv||(console.warn("[Bimx Engine] 全局 i18n 实例尚未初始化"),null),Lu=()=>{const s=Jx();return s?(C,...i)=>s.global.t(`bimxViewer.${C}`,...i):C=>C},Tn=()=>{const s=Jx();return s?(C,...i)=>s.global.t(`bimxViewer.${C}`,...i):C=>C},sL="https://bimkk-api.tcbim.com",$t="https://bimkk-oss-production.oss-cn-beijing.aliyuncs.com",oL="https://convert.tcbim.com",aL=3e5,_r=rL();let Vu={BIMX_CONFIGS:{viewerManager:!1,RoamTool:!1},BimViewer:{viewerManager:!1}};const lL={isMember:!1,isInShare:!1,isShareHost:!1,isShareClient:!1},cL={file:!1,image:!1,record:!1,text:!1,video:!1},Zx={offsetX:0,offsetY:0},uL={pos:"right-bottom",posNum:[0,0]},dL=120,fL="light-gray",hL=!1,pL="right",mL="left",AL=0,gL=0,vL=0,yL=0,bL={pos:"bottom",posNum:[18]},_L={pos:"bottom",posNum:[70]},wL={pos:"bottom",posNum:[70]},CL="linear-gradient(180deg, #fffefb 0%, #daebff 100%)",xL=0;Lr.BIMX_CONFIGS=void 0;function EL(){Lr.BIMX_CONFIGS={isMobile:!1,loadMeta:!0,multiModel:!1,outliersDetect:!1,showRoam:!0,showTree:!1,showInspector:!1,userInfo:lL,annoLimit:cL,commentOffset:Zx,measureOffset:Zx,skyboxImg:void 0,topHeight:AL,leftWidth:yL,bottomHeight:vL,rightWidth:gL,inspectorPos:pL,treePos:mL,commentPos:bL,annotationPos:_L,roamPos:wL,showNavCube:!0,navCubePos:uL,navCubeSize:dL,themeColor:fL,hideTool:hL,backButton:!1,backgroundColor:CL,editPrivilege:xL,locale:void 0,hideLogo:!1}}EL();function qx(s=""){_r.emit("BIMX_CONFIGS",s)}function e2(s){for(const C in s)jn(C,s[C],!1);qx()}function jn(s,C,i=!0){C!==void 0&&(Lr.BIMX_CONFIGS[s]=C,i&&(s=="isMobile"||s=="measureOffset"||s=="commentOffset"||s=="navCubePos"||s=="navCubeSize"||s=="locale")&&qx(s))}function er(s){return Lr.BIMX_CONFIGS[s]}const _i=zp.defineStore("toolbar",{state:()=>({isPc:!0,pTools:[{id:0,key:"tree",name:"toolbar.tree",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"ptree",imgActive:"ptree-active",position:1,isActive:!1},{id:1,key:"reset",name:"toolbar.reset",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"preset",imgActive:"preset",position:0,isActive:!1},{id:2,key:"roam",name:"toolbar.roam",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"proam",imgActive:"proam-active",position:0,isActive:!1},{id:3,key:"measure",name:"toolbar.measure",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"pmeasure",imgActive:"pmeasure-active",position:0,isActive:!1},{id:4,key:"section",name:"toolbar.section",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"pslicing",imgActive:"pslicing-active",position:0,isActive:!1},{id:5,key:"comment",name:"toolbar.comment",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"pcomment",imgActive:"pcomment-active",position:0,isActive:!1},{id:6,key:"anno",name:"toolbar.anno",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"panno",imgActive:"panno-active",position:0,isActive:!1},{id:7,key:"screenshot",name:"toolbar.screenshot",hasActiveState:!0,component:"ScreenShotTool",isShowDelimiter:!1,img:"pscreenshot",imgActive:"pscreenshot-active",position:0,isActive:!1},{id:8,key:"inspector",name:"toolbar.inspector",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"pinspector",imgActive:"pinspector-active",position:0,isActive:!1},{id:9,key:"setting",name:"toolbar.setting",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"psetting",imgActive:"psetting-active",position:0,isActive:!1},{id:10,key:"fullscreen",name:"toolbar.fullscreen",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pfullscreen",imgActive:"pfullscreen-active",position:0,isActive:!1},{id:11,key:"enjoy",name:"toolbar.enjoy",hasActiveState:!0,component:"",isShowDelimiter:!1,img:"penjoy",imgActive:"penjoy-active",position:2,isActive:!1},{id:12,key:"share",name:"toolbar.share",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pshare",imgActive:"pshare-active",position:2,isActive:!1},{id:13,key:"cooperate",name:"toolbar.cooperate",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pcooperate",imgActive:"pcooperate",position:2,isActive:!1},{id:14,key:"bcf",name:"toolbar.bcf",hasActiveState:!0,component:"BCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",position:1,isActive:!1}],mTools:[{id:0,key:"reset",name:"toolbar.reset",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"reset",imgActive:"reset",isActive:!1},{id:1,key:"navigate",name:"toolbar.navigate",hasActiveState:!0,component:"NavigateTool",isShowDelimiter:!1,img:"navigate",imgActive:"navigate-active",isActive:!1},{id:2,key:"measure",name:"toolbar.measure",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"measure",imgActive:"measure-active",isActive:!1},{id:3,key:"comment",name:"toolbar.comment",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"comment",imgActive:"comment-active",isActive:!1},{id:4,key:"anno",name:"toolbar.anno",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"anno",imgActive:"anno-active",isActive:!1},{id:5,key:"enjoy",name:"toolbar.enjoy",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"enjoy",imgActive:"enjoy",isActive:!1},{id:6,key:"tree",name:"toolbar.tree",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"tree",imgActive:"tree-active",isActive:!1},{id:7,key:"inspector",name:"toolbar.inspector",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"inspector",imgActive:"inspector-active",isActive:!1},{id:8,key:"section",name:"toolbar.section",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"section",imgActive:"section-active",isActive:!1},{id:9,key:"roam",name:"toolbar.roam",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"roam",imgActive:"roam-active",isActive:!1},{id:10,key:"hidden",name:"toolbar.hidden",hasActiveState:!0,component:"HiddenTool",isShowDelimiter:!1,img:"hidden",imgActive:"hidden-active",isActive:!1},{id:11,key:"setting",name:"toolbar.setting",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"setting",imgActive:"setting-active",isActive:!1},{id:12,key:"share",name:"toolbar.share",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"share",imgActive:"share",isActive:!1},{id:13,key:"fullscreen",name:"toolbar.fullscreen",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"fullscreen",imgActive:"fullscreen-active",isActive:!1},{id:14,key:"cooperate",name:"toolbar.cooperate",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"cooperate",imgActive:"cooperate",isActive:!1},{id:15,key:"bcf",name:"toolbar.bcf",hasActiveState:!0,component:"MobileBCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",isActive:!1},{id:16,key:"mouse",name:"toolbar.mouse",hasActiveState:!0,component:"MouseTool",isShowDelimiter:!1,img:"mouse",imgActive:"mouse-active",isActive:!1}],visibleToolIds:[],readyToolIds:[]}),actions:{setDevice(s){this.isPc=s=="pc"},toggleToolVisibility(s){const C=this.visibleToolIds.indexOf(s);C===-1?this.visibleToolIds.push(s):this.visibleToolIds.splice(C,1)},setEnableTools(s){this.visibleToolIds=s},setEnableToolsByKey(s){let C=[];er("isMobile")?C=t2(s,SL):C=t2(s,kL);const i=[];for(let m=0;m<C.length;m++){const y=(this.isPc?this.pTools:this.mTools).find(g=>g.key===C[m]);y&&i.push(y.id)}this.visibleToolIds=this.visibleToolIds.concat(i)},setToolActiveStatus(s,C){const i=(this.isPc?this.pTools:this.mTools).find(m=>m.id===s);i&&(i.isActive=C!==void 0?C:!i.isActive)},setToolActiveStatusBykey(s,C){const i=(this.isPc?this.pTools:this.mTools).find(m=>m.key===s);i&&(i.isActive=C!==void 0?C:!i.isActive)},setAllToolClose(s=[]){if(s.length>0)for(let C=0;C<this.visibleToolIds.length;C++)s.includes(this.visibleToolIds[C])||(this.tools[this.visibleToolIds[C]].isActive=!1);else for(let C=0;C<this.visibleToolIds.length;C++)this.tools[this.visibleToolIds[C]].isActive=!1},setReadyById(s){(this.isPc?this.pTools:this.mTools).find(i=>i.id===s)&&this.readyToolIds.push(s)},ifToolAllReady(){for(let s=0;s<this.visibleTools.length;s++){const C=this.visibleTools[s];if(!(C.component==""||C.key=="bcf")&&!this.readyTools.includes(C.id))return!1}return!0},setReadyTools(s){this.readyToolIds=[]}},getters:{tools:s=>s.isPc?s.pTools:s.mTools,visibleTools:s=>s.visibleToolIds.map(C=>(s.isPc?s.pTools:s.mTools).find(i=>i.id===C)).filter(C=>!!C),readyTools:s=>s.readyToolIds,visibleComponents:s=>(s.isPc?s.pTools:s.mTools).filter(C=>s.visibleToolIds.includes(C.id)).map(C=>C.component),getKeyById:s=>C=>{var i;return(i=(s.isPc?s.pTools:s.mTools).find(m=>m.id===C))==null?void 0:i.key},getToolById:s=>C=>(s.isPc?s.pTools:s.mTools).find(i=>i.id===C),hasActiveState:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.id===C);return i?i.hasActiveState:!1},isToolEnable:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.id===C);return i?s.visibleToolIds.includes(i.id):!1},isToolEnableBykey:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.key===C);return i?s.visibleToolIds.includes(i.id):!1},isToolActive:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.id===C);return i?i.isActive:!1},isToolActiveBykey:s=>C=>{const i=(s.isPc?s.pTools:s.mTools).find(m=>m.key===C);return i?i.isActive:!1}}});function Hp(){return _i()}function BL(){_i().setAllToolClose(),_i().setReadyTools([]),_i().setEnableTools([])}let SL=["reset","navigate","measure","comment","anno","enjoy","tree","inspector","section","roam","hidden","setting","share","fullscreen","cooperate","bcf","mouse"],kL=["tree","reset","roam","measure","section","comment","anno","screenshot","inspector","setting","fullscreen","enjoy","share","cooperate","bcf"];function t2(s,C){const i={};C.forEach((y,g)=>{i[y]=g});const m=s.filter(y=>i.hasOwnProperty(y)).map(y=>({value:y,index:i[y]}));return m.sort((y,g)=>y.index-g.index),m.map(y=>y.value)}const Ic=t.ref(null),PL=s=>{Ic.value=s},$p=zp.defineStore("locale",()=>{const s=()=>{var f,c;const m=er("locale");if(m&&(m==="zh-CN"||m==="en-US"))return m;const y=(c=(f=Ic.value)==null?void 0:f.global)==null?void 0:c.locale,g=(y==null?void 0:y.value)??y;if(g&&(g==="zh-CN"||g==="en-US"))return g;const d=localStorage.getItem("BIMX_LOCALE");if(d&&(d==="zh-CN"||d==="en-US"))return d;const u=navigator.language;return u.startsWith("zh")?"zh-CN":u.startsWith("en")?"en-US":"zh-CN"},C=t.ref(s()),i=m=>{var y;C.value=m,(y=Ic.value)!=null&&y.global&&(Ic.value.global.locale=m),localStorage.setItem("BIMX_LOCALE",m)};return t.watch(C,m=>{var y;(y=Ic.value)!=null&&y.global&&(Ic.value.global.locale=m)}),t.watch(()=>{var m,y;return(y=(m=Ic.value)==null?void 0:m.global)==null?void 0:y.locale},m=>{m&&(m==="zh-CN"||m==="en-US")&&m!==C.value&&(C.value=m)}),{locale:C,setLocale:i}}),Ko=zp.defineStore("viewer",()=>{const s=t.ref(null),C=t.computed(()=>s.value!==null),i=t.ref({measureType:"distance"}),m=t.ref({xrayedObjectIds:[],highlightedObjectIds:[],selectedObjectIds:[],visibleObjectIds:[],edgesObjectIds:[]});function y(v){s.value=v,window.bimViewer=v}function g(v=""){const b=s.value;if(b){if(v===""){if(Lr.BIMX_CONFIGS.isMobile&&(b.setIsTouch(!0),b.navCubeMode.visible=!1),Lr.BIMX_CONFIGS.measureOffset){const w=er("measureOffset");b.setMeasureOffSet(w.offsetX,w.offsetY)}if(Lr.BIMX_CONFIGS.commentOffset){const w=er("commentOffset");b.setCommentsOffset(w.offsetX,w.offsetY)}Lr.BIMX_CONFIGS.navCubePos&&d(b,er("navCubePos"),er),Lr.BIMX_CONFIGS.navCubeSize&&b.setNavCubeSize(er("navCubeSize")),Lr.BIMX_CONFIGS.locale&&$p().setLocale(er("locale"));return}switch(v){case"isMobile":b.setIsTouch(Lr.BIMX_CONFIGS.isMobile),b.navCubeMode.visible=!Lr.BIMX_CONFIGS.isMobile;break;case"measureOffset":b.setMeasureOffSet(er("measureOffset").offsetX,er("measureOffset").offsetY);break;case"commentOffset":b.setCommentsOffset(er("commentOffset").offsetX,er("commentOffset").offsetY);break;case"navCubePos":d(b,er("navCubePos"),er);break;case"navCubeSize":b.setNavCubeSize(er("navCubeSize"));break;case"locale":$p().setLocale(er("locale"));break}}}function d(v,b,w){const _=b&&b.pos?b.pos:"right-bottom",x=b&&b.posNum?b.posNum:[0,_.includes("top")?w("topHeight"):0];_.includes("right")&&v.setNavCubePosition("right",x[0]),_.includes("top")&&v.setNavCubePosition("top",x[1]),_.includes("left")&&v.setNavCubePosition("left",x[0]),_.includes("bottom")&&v.setNavCubePosition("bottom",x[1])}function u(v){v.measure&&(i.value.measureType=v.measure)}function f(v,b){const _=_i().getKeyById(v);_?c(_,b):console.log("[Bimx Engine] 未找到工具 ID 对应的 key:",v)}function c(v,b){const w=_i(),_=b??!w.isToolActiveBykey(v),x=s.value;if(x)switch(v){case"tree":break;case"reset":x.resetView();break;case"roam":x.SetFirstPersonModeActive(_);break;case"measure":x.measureTool.setActive(_),_&&x.measureTool.setActiveByType(i.value.measureType,_);break;case"section":x.SetSectionToolActive(_);break;case"comment":_?setTimeout(()=>{x.SetCommentsToolActive(_)},100):x.SetCommentsToolActive(_);break;case"anno":x.SetAnnotationToolActive(_);break;case"screenshot":break;case"inspector":break;case"fullscreen":_?document.documentElement.requestFullscreen():document.exitFullscreen&&document.exitFullscreen();break;case"hidden":x.disableClickEvent=_;break}}function h(){var v;(v=s.value)==null||v.closeAll()}function p(){var v;(v=s.value)==null||v.destroy(),console.log("[Bimx Engine] 引擎实例已销毁")}function A(v,b){var w;(w=s.value)==null||w.showSpinner(v),b&&b()}return{viewerInstance:s,isReady:C,viewerState:i,entityState:m,setViewerInstance:y,configViewer:g,saveViewerState:u,setToolActiveById:f,setToolActiveByKey:c,setAllClose:h,destroyViewer:p,showRequestBusy:A}});let r2=!1;Vu.BIMX_CONFIGS.viewerManager||(_r.on("BIMX_CONFIGS",s=>{window.bimViewer?Xn.ConfigViewer(s):r2=!0}),Vu.BIMX_CONFIGS.viewerManager=!0);const ML=()=>{Xn.SetAllClose(),r2&&Xn.ConfigViewer()};Vu.BimViewer.viewerManager||(_r.on("BimViewer",ML),Vu.BimViewer.viewerManager=!0);class Xn{static get viewerState(){return Ko().viewerState}static set viewerState(C){Ko().viewerState=C}static get entityState(){return Ko().entityState}static set entityState(C){Ko().entityState=C}static ConfigViewer(C=""){Ko().configViewer(C)}static SaveViewerState(C){Ko().saveViewerState(C)}static SetToolActiveById(C,i){Ko().setToolActiveById(C,i)}static SetToolActiveByKey(C,i){Ko().setToolActiveByKey(C,i)}static SetAllClose(){Ko().setAllClose()}static DestroyViewer(){Ko().destroyViewer()}static showRequestBusy(C,i){Ko().showRequestBusy(C,i)}}function wi(s){const{event:C,handler:i,defer:m=!1}=s,y=()=>{var u,f;(f=(u=window.bimViewer)==null?void 0:u.eventTrigger)==null||f.on(C,i)},g=()=>{var u,f;(f=(u=window.bimViewer)==null?void 0:u.eventTrigger)==null||f.off(C,i)};if(!t.getCurrentInstance())return console.warn("[Bimx Engine] useBimViewerEvent 在 setup() 上下文之外调用,无法注册自动清理。事件监听将不会在组件卸载时自动移除,可能导致内存泄漏。请将 useBimViewerEvent() 调用移至 setup() / <script setup> 顶层。"),y(),{subscribe:y,unsubscribe:g};if(m){const u=()=>y();_r.on("BimViewer",u),t.onBeforeUnmount(()=>{_r.off("BimViewer",u),g()})}else y(),t.onBeforeUnmount(()=>g());return{subscribe:y,unsubscribe:g}}const TL=["src"],IL=["src"],DL=["src"],FL=["src"],RL=["src"],NL=["src"],OL=["src"],LL=t.defineComponent({__name:"ClickEvent",setup(s,{expose:C}){const i=Tn();_i();const m=t.ref(!0);t.onMounted(()=>{});let y="",g,d;const u=()=>{d=window.bimViewer,wi({event:"pickedNothing",handler:()=>{m.value&&(h.value=!1,B.value=[],Xn.entityState.selectedObjectIds=[],d.setAllObjectsSelected(!1))}}),wi({event:"touchEntity",handler:L=>{m.value&&(g=L,y=g.id,b(y))}}),d.viewer.cameraControl.on("touchmoveCanvas",()=>{})};_r.on("BimViewer",u);const f=t.ref(0),c=t.ref(0),h=t.ref(!1),p=t.ref(!0),A=t.ref(!0),v=t.ref(!1),b=L=>{(!g||g&&L!==g.id)&&(g=d.viewer.scene.objects[L]),y=L,B.value.length>0&&!B.value.find(H=>H==y)&&B.value.push(y),p.value=!g.xrayed,A.value=!g.highlighted;const{aabb:U}=g,G=[(U[0]+U[3])/2,(U[1]+U[4])/2,(U[2]+U[5])/2],W=d.viewer.scene.camera.projectWorldPos(G);let Q=W[0]-172/2,D=W[1]-198/2;Q<0?Q=0:Q>window.innerWidth-198&&(Q=window.innerWidth-198),D<0?D=0:D>window.innerHeight-172-72&&(D=window.innerHeight-172-72),f.value=Q,c.value=D,h.value=!0,d.setEntitySelected(g,!0)},w=()=>{B.value.find(L=>L==g.id)||(B.value=B.value.filter(L=>L!=g.id),Xn.entityState.selectedObjectIds=B.value),_()},_=()=>{g=null,y="",p.value=!0,A.value=!0,h.value=!1,x.value=-1,_r.emit("unFocus")},x=t.ref(-1),B=t.ref([]),k=L=>{x.value=L},I=L=>{switch(B.value.length>0&&(B.value.push(y),Xn.entityState.selectedObjectIds.find(U=>U==g.id)||Xn.entityState.selectedObjectIds.push(g.id)),L!==5&&L!==0&&(window.bimViewer.disableClickEvent=!1,d.setAllObjectsSelected(!1)),L==5&&B.value.length==0&&(window.bimViewer.disableClickEvent=!0),L){case 0:B.value.length>0?d.viewFitObjects(B.value):d.viewFitEntity(g),setTimeout(()=>{d.setAllObjectsSelected(!1)},1e3);break;case 1:B.value.length>0?d.setObjectsVisible(Xn.entityState.selectedObjectIds,!1):d.setEntityVisible(g,!1);break;case 2:v.value?d.setAllObjectsVisible(!0):(d.setAllObjectsVisible(!1),B.value.length>0?d.setObjectsVisible(Xn.entityState.selectedObjectIds,!0):d.setEntityVisible(g,!0),d.setAllObjectsSelected(!1)),v.value=!v.value;break;case 3:B.value.length>0?(d.viewer.scene.setObjectsXRayed(B.value,p.value),B.value.forEach(U=>{const G=d.viewer.scene.objects[U];G.edges=G.xrayed?!0:d.edgesActive,d.setEntityHighlighted(G,!1)})):(d.setEntityXRayed(g),g.edges=g.xrayed?!0:d.edgesActive,d.setEntityHighlighted(g,!1));break;case 4:B.value.length>0?B.value.forEach(U=>{const G=d.viewer.scene.objects[U];d.setEntityHighlighted(G,A.value),G.xrayed&&(d.setEntityXRayed(G,!1),G.edges=d.edgesActive)}):(d.setEntityHighlighted(g),g.xrayed&&(d.setEntityXRayed(g,!1),g.edges=d.edgesActive));break;case 5:B.value.find(U=>U==y)||(B.value.push(y),d.setObjectsSelected(B.value,!0)),Xn.entityState.selectedObjectIds=B.value,_r.emit("multiSelect");break}L!==5&&L!==0&&(d.setEntitySelected(g,!1),B.value=[],Xn.entityState.selectedObjectIds=B.value),Xn.entityState.xrayedObjectIds=d.viewer.scene.xrayedObjectIds,Xn.entityState.highlightedObjectIds=d.viewer.scene.highlightedObjectIds,Xn.entityState.selectedObjectIds=d.viewer.scene.selectedObjectIds,Xn.entityState.visibleObjectIds=d.viewer.scene.visibleObjectIds,Xn.entityState.edgesObjectIds=d.viewer.scene.edgesObjectIds,setTimeout(()=>{_()},300)},R=()=>{_()},j=()=>{m.value=!1},$=()=>{m.value=!0};return _r.on("focusEntity",b),t.onBeforeUnmount(()=>{_r.off("BimViewer",u),_r.off("focusEntity",b)}),C({reset:R,enable:$,disable:j}),(L,U)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:"entity_tools",style:t.normalizeStyle({left:`${f.value}px`,top:`${c.value}px`})},[t.createElementVNode("div",{class:"close_btns",onClick:w},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/close-dark-circle.svg`},null,8,TL)]),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==0},"detail_btn fit"]),onPointerdown:U[0]||(U[0]=G=>k(0)),onPointerup:U[1]||(U[1]=G=>I(0))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/fit.svg`},null,8,IL),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("clickEvent.focus")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==1},"detail_btn hide_self"]),onPointerdown:U[2]||(U[2]=G=>k(1)),onPointerup:U[3]||(U[3]=G=>I(1))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/hide-self.svg`},null,8,DL),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("clickEvent.hide")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==2},"detail_btn hide_other"]),onPointerdown:U[4]||(U[4]=G=>k(2)),onPointerup:U[5]||(U[5]=G=>I(2))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/hide-other.svg`},null,8,FL),t.createElementVNode("span",null,t.toDisplayString(v.value?t.unref(i)("clickEvent.cancel"):t.unref(i)("clickEvent.onlyShow")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==3},"detail_btn edge_solid"]),onPointerdown:U[6]||(U[6]=G=>k(3)),onPointerup:U[7]||(U[7]=G=>I(3))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/${p.value?"edge":"solid"}.svg`},null,8,RL),t.createElementVNode("span",null,t.toDisplayString(p.value?t.unref(i)("clickEvent.edge"):t.unref(i)("clickEvent.fill")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==4},"detail_btn opacity_fill"]),onPointerdown:U[8]||(U[8]=G=>k(4)),onPointerup:U[9]||(U[9]=G=>I(4))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/${A.value?"opacity":"fill"}.svg`},null,8,NL),t.createElementVNode("span",null,t.toDisplayString(A.value?t.unref(i)("clickEvent.transparent"):t.unref(i)("clickEvent.solid")),1)],34),t.createElementVNode("div",{class:t.normalizeClass([{detail_btn_active:x.value==5},"detail_btn multi_select"]),onPointerdown:U[10]||(U[10]=G=>k(5)),onPointerup:U[11]||(U[11]=G=>I(5))},[t.createElementVNode("img",{src:`${t.unref($t)}/industry-viewer/detail-bar/multiSelect.svg`},null,8,OL),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("clickEvent.multiSelect")),1)],34)],4)),[[t.vShow,h.value]])}}),zt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},VL=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],Yv=["sun","mon","tue","wed","thu","fri","sat"],Br="update:modelValue",zr="change",ji="input",Aa=["","default","small","large"],n2=["left","center","right"];/**
2
2
  * @vue/shared v3.5.40
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, openBlock as l, createElementBlock as r, createElementVNode as e, unref as s, toDisplayString as c, withModifiers as J, Fragment as G, renderList as j, createCommentVNode as U, createVNode as K, withCtx as ce, toRefs as Se, onMounted as pe, watch as re, normalizeStyle as ee, createTextVNode as me, createBlock as te, onBeforeUnmount as fe, normalizeClass as de, withDirectives as Le, vShow as Be } from "vue";
2
- import { O as B, I as ie, W as be, A as ae, G as he, X as ye, Y as we, Z as xe, $ as Ie, a0 as ge, a1 as ve, a2 as _e, C as Q, F as ke, a3 as $e, U as Me, a4 as Pe, a5 as Ee, a6 as Oe, R as Re, S as ze, D as X, B as Ce, Q as ue } from "./index-CwRGVhoT.mjs";
2
+ import { O as B, I as ie, W as be, A as ae, G as he, X as ye, Y as we, Z as xe, $ as Ie, a0 as ge, a1 as ve, a2 as _e, C as Q, F as ke, a3 as $e, U as Me, a4 as Pe, a5 as Ee, a6 as Oe, R as Re, S as ze, D as X, B as Ce, Q as ue } from "./index-BDupeKSG.mjs";
3
3
  import { C as Te, F as Ne, L as Fe, T as Ae } from "./bimTools-D3TraX9d.mjs";
4
4
  import { T as Ue } from "./timer-DoTiGoWP.mjs";
5
5
  const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src"], Ze = { class: "text" }, Je = /* @__PURE__ */ le({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, onMounted as E, ref as k, onBeforeUnmount as B, openBlock as s, createElementBlock as l, createElementVNode as r, Fragment as C, renderList as H, unref as c, normalizeClass as w, toDisplayString as I } from "vue";
2
- import { A as S, B as A, D as m, O, C as T, I as x } from "./index-CwRGVhoT.mjs";
2
+ import { A as S, B as A, D as m, O, C as T, I as x } from "./index-BDupeKSG.mjs";
3
3
  import { H as D } from "./bimTools-D3TraX9d.mjs";
4
4
  const j = { class: "hidden_wrapper" }, L = { class: "hidden_content" }, M = ["onClick"], N = ["src"], R = /* @__PURE__ */ y({
5
5
  __name: "HiddenTool",
@@ -1,6 +1,6 @@
1
- import { J as ee, A as te, B as ne, D as E, C as v, T as N, G as oe, O as H, H as se, I as ie } from "./index-CwRGVhoT.mjs";
2
- import { _ as ae } from "./TallPanel-CR5vNQ4c.mjs";
3
- import { _ as le } from "./Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs";
1
+ import { J as ee, A as te, B as ne, D as E, C as v, T as N, G as oe, O as H, H as se, I as ie } from "./index-BDupeKSG.mjs";
2
+ import { _ as ae } from "./TallPanel-DtXOSzmF.mjs";
3
+ import { _ as le } from "./Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs";
4
4
  import { defineComponent as ce, onMounted as re, ref as W, reactive as K, watch as _e, onBeforeUnmount as pe, openBlock as c, createElementBlock as r, Fragment as y, unref as n, createBlock as Q, withCtx as I, withDirectives as d, createElementVNode as e, createVNode as B, toDisplayString as t, vShow as m, renderList as C, createCommentVNode as O } from "vue";
5
5
  const J = {
6
6
  ExtendToStructure: "扩建物",
@@ -1,5 +1,5 @@
1
- import { A as De, B as Re, T as ae, D as ne, Q as M, C as _, O as w, F as Ce, R as Le, S as $e, G as Pe, V as ue, I as ze } from "./index-CwRGVhoT.mjs";
2
- import { _ as Ne } from "./Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs";
1
+ import { A as De, B as Re, T as ae, D as ne, Q as M, C as _, O as w, F as Ce, R as Le, S as $e, G as Pe, V as ue, I as ze } from "./index-BDupeKSG.mjs";
2
+ import { _ as Ne } from "./Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs";
3
3
  import { defineComponent as Ue, ref as n, onMounted as ie, onBeforeUnmount as Fe, watch as Oe, openBlock as i, createElementBlock as r, Fragment as E, unref as t, createBlock as Xe, withCtx as U, createElementVNode as s, renderList as F, normalizeClass as re, toDisplayString as o, createVNode as T, createCommentVNode as Ye, normalizeStyle as ce, withDirectives as He, vShow as Qe } from "vue";
4
4
  import { M as O } from "./bimTools-D3TraX9d.mjs";
5
5
  const We = {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Y, onMounted as x, onBeforeUnmount as A, ref as _, watch as C, openBlock as M, createElementBlock as $, withDirectives as D, createElementVNode as p, normalizeStyle as F, unref as V, vShow as N } from "vue";
2
- import { B as R, D as s, O as L, Q as U, V as k } from "./index-CwRGVhoT.mjs";
2
+ import { B as R, D as s, O as L, Q as U, V as k } from "./index-BDupeKSG.mjs";
3
3
  const z = { class: "mouse_tool" }, P = ["src"], Q = ["src"], J = /* @__PURE__ */ Y({
4
4
  __name: "MouseTool",
5
5
  props: ["componentId"],
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, onMounted as p, ref as w, openBlock as n, createElementBlock as i, createElementVNode as s, Fragment as g, renderList as f, unref as a, normalizeClass as h, toDisplayString as B } from "vue";
2
- import { A as I, B as N, O as S } from "./index-CwRGVhoT.mjs";
2
+ import { A as I, B as N, O as S } from "./index-BDupeKSG.mjs";
3
3
  import { N as T } from "./bimTools-D3TraX9d.mjs";
4
4
  const k = { class: "best-view-box" }, A = { class: "best-view-list" }, V = ["onClick"], x = { class: "best-view-icon" }, y = ["src"], C = { class: "best-view-name" }, R = /* @__PURE__ */ b({
5
5
  __name: "NavigateTool",
@@ -1,4 +1,4 @@
1
- import { H as r, T as o } from "./index-CwRGVhoT.mjs";
1
+ import { H as r, T as o } from "./index-BDupeKSG.mjs";
2
2
  import { defineComponent as c, ref as u, onMounted as p, openBlock as m, createBlock 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,5 +1,5 @@
1
1
  import { defineComponent as H, ref as u, onMounted as j, onBeforeUnmount as q, watch as z, openBlock as h, createElementBlock as b, unref as r, createElementVNode as e, toDisplayString as m, createCommentVNode as L } from "vue";
2
- import { B as J, A as K, C as c, M as S, D as M, O as l, P as V, I as Q } from "./index-CwRGVhoT.mjs";
2
+ import { B as J, A as K, C as c, M as S, D as M, O as l, P as V, I as Q } from "./index-BDupeKSG.mjs";
3
3
  const W = { class: "roam_container_wrapper" }, Y = {
4
4
  key: 0,
5
5
  class: "roam_container"
@@ -1,5 +1,5 @@
1
- import { _ as _e } from "./Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs";
2
- import { a7 as U, l as K, a8 as q, d as G, a9 as Y, b as N, aa as W, ab as he, f as H, n as X, a as Se, ac as Ve, ad as Ee, u as $, ae as Re, af as ke, ag as Be, y as Ce, N as Ie, ah as Pe, ai as J, w as xe, A as we, B as Ne, F as ze } from "./index-CwRGVhoT.mjs";
1
+ import { _ as _e } from "./Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs";
2
+ import { a7 as U, l as K, a8 as q, d as G, a9 as Y, b as N, aa as W, ab as he, f as H, n as X, a as Se, ac as Ve, ad as Ee, u as $, ae as Re, af as ke, ag as Be, y as Ce, N as Ie, ah as Pe, ai as J, w as xe, A as we, B as Ne, F as ze } from "./index-BDupeKSG.mjs";
3
3
  import { ref as B, inject as Te, computed as h, defineComponent as z, openBlock as R, createElementBlock as C, normalizeClass as E, unref as e, createElementVNode as y, withDirectives as Q, withModifiers as x, isRef as Z, vModelRadio as ee, renderSlot as A, createTextVNode as w, toDisplayString as I, nextTick as te, normalizeStyle as Le, onMounted as ae, provide as Ue, reactive as $e, toRefs as Ae, watch as oe, Fragment as le, renderList as se, createBlock as ne, resolveDynamicComponent as De, mergeProps as Fe, withCtx as T, createVNode as P, createCommentVNode as Oe } from "vue";
4
4
  import { a as L } from "./bimTools-D3TraX9d.mjs";
5
5
  const ie = N({
@@ -1,7 +1,7 @@
1
- import { _ as pe } from "./Alert-CSiEPFGt.mjs";
2
- import { A as fe, B as he, T as F, C, D as B, Q as $, O as d, G as ke, U as ge, H as we, I as be } from "./index-CwRGVhoT.mjs";
3
- import { E as ye } from "./el-slider-CBVU9_og.mjs";
4
- import { _ as Se } from "./Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs";
1
+ import { _ as pe } from "./Alert-5pEYzrMO.mjs";
2
+ import { A as fe, B as he, T as F, C, D as B, Q as $, O as d, G as ke, U as ge, H as we, I as be } from "./index-BDupeKSG.mjs";
3
+ import { E as ye } from "./el-slider-CHaMBaUG.mjs";
4
+ import { _ as Se } from "./Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs";
5
5
  import { defineComponent as Ce, ref as v, onMounted as Ve, watch as xe, onBeforeUnmount as Pe, openBlock as s, createElementBlock as l, Fragment as z, unref as i, createBlock as Te, withCtx as E, createElementVNode as o, toDisplayString as u, withDirectives as G, renderList as K, vShow as Q, createVNode as m, normalizeClass as Le, withModifiers as Be, createTextVNode as $e } from "vue";
6
6
  import { B as ze } from "./bimTools-D3TraX9d.mjs";
7
7
  const Ee = { class: "section_panel_middle" }, Ie = { class: "section_middle_title" }, Ae = { class: "section_control_button" }, De = ["src"], Oe = { class: "control_buttons" }, Me = ["onClick"], Ue = { class: "section_panel_cont" }, Ne = {
@@ -1,6 +1,6 @@
1
- import { c as Ke, aj as ye, d as ae, l as ge, a8 as he, a7 as pe, a9 as we, b as Re, e as ne, ab as We, f as He, af as je, a as Ge, u as Ye, ag as Ze, ac as _e, ak as qe, q as De, N as Je, E as O, al as Ae, am as Qe, w as Xe, A as et, B as tt, T as Ue, C as M, D as W, G as lt, an as ot, p as nt, H as it, V as st, K as at, I as ut } from "./index-CwRGVhoT.mjs";
2
- import { _ as dt } from "./Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs";
3
- import { E as ct } from "./el-slider-CBVU9_og.mjs";
1
+ import { c as Ke, aj as ye, d as ae, l as ge, a8 as he, a7 as pe, a9 as we, b as Re, e as ne, ab as We, f as He, af as je, a as Ge, u as Ye, ag as Ze, ac as _e, ak as qe, q as De, N as Je, E as O, al as Ae, am as Qe, w as Xe, A as et, B as tt, T as Ue, C as M, D as W, G as lt, an as ot, p as nt, H as it, V as st, K as at, I as ut } from "./index-BDupeKSG.mjs";
2
+ import { _ as dt } from "./Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs";
3
+ import { E as ct } from "./el-slider-CHaMBaUG.mjs";
4
4
  import { Loading as vt } from "@element-plus/icons-vue";
5
5
  import { defineComponent as Be, computed as L, ref as f, shallowRef as rt, watch as Ve, onMounted as Me, openBlock as s, createElementBlock as g, withModifiers as mt, normalizeClass as C, createElementVNode as l, withKeys as ft, unref as n, renderSlot as H, createBlock as w, withCtx as S, resolveDynamicComponent as j, createCommentVNode as b, toDisplayString as a, normalizeStyle as ee, createVNode as v, nextTick as gt, onBeforeUnmount as ht, Fragment as ie, createTextVNode as E, renderList as be } from "vue";
6
6
  import { T as bt } from "./timer-DoTiGoWP.mjs";
@@ -1,8 +1,8 @@
1
- import { u as ae, w as Be, b as ze, c as et, a as tt, i as se, d as xe, e as nt, f as ye, h as De, g as ve, j as we, k as me, l as Fe, N as ot, m as st, n as Pe, r as Ee, o as at, E as rt, p as dt, q as it, _ as Re, s as lt, t as ct, v as Z, x as ut, y as ht, z as ft, A as pt, B as yt, C as ne, D as ge, T as je, F as vt, G as gt, H as kt, I as Nt } from "./index-CwRGVhoT.mjs";
2
- import { _ as Ct } from "./TallPanel-CR5vNQ4c.mjs";
1
+ import { u as ae, w as Be, b as ze, c as et, a as tt, i as se, d as xe, e as nt, f as ye, h as De, g as ve, j as we, k as me, l as Fe, N as ot, m as st, n as Pe, r as Ee, o as at, E as rt, p as dt, q as it, _ as Re, s as lt, t as ct, v as Z, x as ut, y as ht, z as ft, A as pt, B as yt, C as ne, D as ge, T as je, F as vt, G as gt, H as kt, I as Nt } from "./index-BDupeKSG.mjs";
2
+ import { _ as Ct } from "./TallPanel-DtXOSzmF.mjs";
3
3
  import { defineComponent as de, openBlock as I, createBlock as Y, Transition as mt, mergeProps as bt, unref as T, toHandlers as _t, withCtx as L, renderSlot as be, useAttrs as Et, ref as w, computed as Ke, onMounted as Ae, onUpdated as qe, resolveDynamicComponent as Ve, normalizeStyle as Ue, normalizeClass as F, nextTick as re, reactive as xt, inject as fe, onBeforeUnmount as Ye, provide as pe, h as $e, getCurrentInstance as We, watch as q, resolveComponent as oe, withDirectives as G, createElementBlock as $, withModifiers as ee, createElementVNode as D, createCommentVNode as le, createVNode as A, Fragment as ue, renderList as he, vShow as Q, toDisplayString as R } from "vue";
4
4
  import { Loading as Dt, CaretRight as wt } from "@element-plus/icons-vue";
5
- import { _ as Kt } from "./Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs";
5
+ import { _ as Kt } from "./Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs";
6
6
  import { S as ke } from "./bimTools-D3TraX9d.mjs";
7
7
  var Tt = /* @__PURE__ */ de({
8
8
  name: "ElCollapseTransition",
@@ -1,4 +1,4 @@
1
- import { B as g, C as t, T as r, K as y, L as x, H as S, I as k } from "./index-CwRGVhoT.mjs";
1
+ import { B as g, C as t, T as r, K as y, L as x, H as S, I as k } from "./index-BDupeKSG.mjs";
2
2
  import { defineComponent as P, ref as c, onMounted as W, watch as b, openBlock as _, createElementBlock as f, normalizeStyle as w, createElementVNode as o, toDisplayString as C, createVNode as T, unref as h, renderSlot as N, createCommentVNode as B } from "vue";
3
3
  const E = { class: "tall_panel_content" }, H = { class: "panel_top" }, $ = { class: "panel_title" }, L = { class: "panel_close" }, I = { class: "panel_content" }, M = {
4
4
  key: 0,
@@ -1,4 +1,4 @@
1
- import { a9 as te, a8 as M, j as ge, aj as ue, a7 as xe, b as Ee, aa as Le, f as ee, ab as Ye, x as Oe, u as Be, af as Ue, i as Ve, q as me, a as We, ac as je, E as Ae, ao as $e, F as De, am as Ge, l as Te, N as we, t as qe, ap as et, v as _, w as He, g as he, aq as Je, s as Ne, ar as Fe, as as tt, at, ag as lt } from "./index-CwRGVhoT.mjs";
1
+ import { a9 as te, a8 as M, j as ge, aj as ue, a7 as xe, b as Ee, aa as Le, f as ee, ab as Ye, x as Oe, u as Be, af as Ue, i as Ve, q as me, a as We, ac as je, E as Ae, ao as $e, F as De, am as Ge, l as Te, N as we, t as qe, ap as et, v as _, w as He, g as he, aq as Je, s as Ne, ar as Fe, as as tt, at, ag as lt } from "./index-BDupeKSG.mjs";
2
2
  import { ArrowDown as nt, Minus as rt, ArrowUp as ut, Plus as it } from "@element-plus/icons-vue";
3
3
  import { defineComponent as Me, ref as ie, reactive as ze, computed as y, watch as ve, onMounted as Qe, onUpdated as st, openBlock as C, createElementBlock as q, withModifiers as Ze, normalizeClass as H, unref as t, withDirectives as Re, withKeys as Ke, renderSlot as pe, createVNode as ye, withCtx as oe, createBlock as re, createCommentVNode as de, createSlots as ot, nextTick as ke, watchEffect as dt, shallowRef as ct, inject as mt, toRefs as Ie, normalizeStyle as se, createElementVNode as ce, toDisplayString as vt, h as ft, provide as bt, Fragment as Se, renderList as Pe } from "vue";
4
4
  const gt = Ee({
@@ -795,7 +795,7 @@ const ude = (M) => {
795
795
  }, Fn = () => {
796
796
  const M = oS();
797
797
  return M ? (z, ...a) => M.global.t(`bimxViewer.${z}`, ...a) : (z) => z;
798
- }, aQ = "https://bimkk-api-test.tcbim.com", dr = "https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com", oQ = "https://convert-test.tcbim.com", lQ = 3e5, Ci = Xz();
798
+ }, aQ = "https://bimkk-api.tcbim.com", dr = "https://bimkk-oss-production.oss-cn-beijing.aliyuncs.com", oQ = "https://convert.tcbim.com", lQ = 3e5, Ci = Xz();
799
799
  let dA = {
800
800
  BIMX_CONFIGS: {
801
801
  viewerManager: !1,
@@ -127579,19 +127579,19 @@ const nfe = { class: "bcf_wrapper" }, sfe = { class: "bcf_content" }, afe = { cl
127579
127579
  __proto__: null,
127580
127580
  default: pT
127581
127581
  }, Symbol.toStringTag, { value: "Module" })), Nfe = {
127582
- StructureTree: va(() => import("./StructureTree-CWAXoI0r.mjs")),
127583
- InspectorTool: va(() => import("./InspectorTool-DD3w7k07.mjs")),
127584
- RoamTool: va(() => import("./RoamTool-X-b0hsmJ.mjs")),
127585
- HiddenTool: va(() => import("./HiddenTool-BGFoHMWC.mjs")),
127586
- MeasureTool: va(() => import("./MeasureTool-COR8QLDf.mjs")),
127587
- SectionTool: va(() => import("./SectionTool-BqI2Qnk5.mjs")),
127588
- CommentTool: va(() => import("./CommentTool-5HhGDqpg.mjs")),
127589
- AnnotationTool: va(() => import("./AnnotationTool-CKzHkqWM.mjs")),
127590
- ScreenShotTool: va(() => import("./ScreenShotTool-0xSJZBBw.mjs")),
127591
- SettingTool: va(() => import("./SettingTool-CGkRGfZH.mjs")),
127592
- NavigateTool: va(() => import("./NavigateTool-Bw6GFzsg.mjs")),
127582
+ StructureTree: va(() => import("./StructureTree-DHaOzAP9.mjs")),
127583
+ InspectorTool: va(() => import("./InspectorTool-l4bDxTia.mjs")),
127584
+ RoamTool: va(() => import("./RoamTool-DJu93SVl.mjs")),
127585
+ HiddenTool: va(() => import("./HiddenTool-rORoKTeD.mjs")),
127586
+ MeasureTool: va(() => import("./MeasureTool-d-EV6m2R.mjs")),
127587
+ SectionTool: va(() => import("./SectionTool-DHw2Zfzv.mjs")),
127588
+ CommentTool: va(() => import("./CommentTool--UgPVIZZ.mjs")),
127589
+ AnnotationTool: va(() => import("./AnnotationTool-B3tDIyWy.mjs")),
127590
+ ScreenShotTool: va(() => import("./ScreenShotTool-D2h0Qjtv.mjs")),
127591
+ SettingTool: va(() => import("./SettingTool-D13GBT87.mjs")),
127592
+ NavigateTool: va(() => import("./NavigateTool-BNvZ8Oat.mjs")),
127593
127593
  BCFTool: va(() => Promise.resolve().then(() => jfe)),
127594
- MouseTool: va(() => import("./MouseTool-OxODcO4X.mjs"))
127594
+ MouseTool: va(() => import("./MouseTool-DKMcdeRD.mjs"))
127595
127595
  }, Ufe = SA("userInfo", {
127596
127596
  state: () => ({
127597
127597
  userId: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtctwins/tctwins-bimx-engine",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "main": "dist/BIMX_Viewer_Lib.umd.js",
5
5
  "style": "dist/style.css",
6
6
  "module": "dist/BIMX_Viewer_Lib.es.js",