mixdashboards 1.0.32 → 1.0.39
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/CoordinateSystem-BMkAxlii.js +6 -0
- package/dist/CoordinateSystem-DWnjjFwb.cjs +1 -0
- package/dist/EChartComponentBase-BQOhWkz2.js +114 -0
- package/dist/EChartComponentBase-BaQpBzVC.cjs +1 -0
- package/dist/LegendVisualProvider-BDw4_0K3.cjs +1 -0
- package/dist/LegendVisualProvider-BP9kA8co.js +44 -0
- package/dist/MarkerView-BG_nYESR.cjs +1 -0
- package/dist/MarkerView-CtWJi5UZ.js +192 -0
- package/dist/RoamController--cgD3aNm.cjs +1 -0
- package/dist/RoamController-DmBIwcAZ.js +124 -0
- package/dist/UniverSheet-KlvmL1Yw.cjs +1 -0
- package/dist/UniverSheet-MSHzUXq0.js +180 -0
- package/dist/VisualMapping-D-MA7S0X.js +260 -0
- package/dist/VisualMapping-MilpZvD_.cjs +1 -0
- package/dist/accelerationChart-B1HPMmd2.js +577 -0
- package/dist/accelerationChart-DZj2V2vD.cjs +6 -0
- package/dist/actionItem-BYCPoQK7.cjs +1 -0
- package/dist/actionItem-Bb2xiYlY.js +686 -0
- package/dist/alarmLevelChart-Bb0mAbwQ.cjs +2 -0
- package/dist/alarmLevelChart-CCioESvL.js +182 -0
- package/dist/alertTable-CQwr8YYt.js +301 -0
- package/dist/alertTable-oaX5eJC0.cjs +1 -0
- package/dist/annualRainfallChart-C21jEMBe.js +185 -0
- package/dist/annualRainfallChart-pO8q6aUJ.cjs +1 -0
- package/dist/api-C0GhBpqd.js +125 -0
- package/dist/api-P_s372dW.cjs +1 -0
- package/dist/aqi-DlY2r7OA.cjs +3 -0
- package/dist/aqi-iLwQH4rc.js +145 -0
- package/dist/aqiIndass-BaIVBfdC.cjs +3 -0
- package/dist/aqiIndass-DBeVSBdy.js +301 -0
- package/dist/arrayCard-DNNUEPvW.js +93 -0
- package/dist/arrayCard-OlVAAsZq.cjs +1 -0
- package/dist/audio-CAP4D-J2.js +301 -0
- package/dist/audio-CThzVIDU.cjs +1 -0
- package/dist/axisAlignTicks-BqVUa467.js +481 -0
- package/dist/axisAlignTicks-CDNWKJRo.cjs +1 -0
- package/dist/bar-BjR566__.cjs +2 -0
- package/dist/bar-D8C06GO4.js +232 -0
- package/dist/bmp-Cjizh2x6.js +226 -0
- package/dist/bmp-DsmTzyce.cjs +1 -0
- package/dist/box-DqewT3MF.js +352 -0
- package/dist/box-qgu_67OD.cjs +1 -0
- package/dist/chartConfigPanel-BiQArCoQ.cjs +1 -0
- package/dist/chartConfigPanel-DwAUq3pf.js +408 -0
- package/dist/circleBar-CO89T7kj.cjs +4 -0
- package/dist/circleBar-DGHDWQih.js +196 -0
- package/dist/clock-32hGccm4.cjs +1 -0
- package/dist/clock-CT8YXEU3.js +274 -0
- package/dist/clt-5bP_g1O-.cjs +1 -0
- package/dist/clt-FfIEfGtn.js +293 -0
- package/dist/cmc-B2nQFZIS.js +269 -0
- package/dist/cmc-dbuLkE8o.cjs +1 -0
- package/dist/cmp-QQlYcnqo.js +378 -0
- package/dist/cmp-l3U9fIrz.cjs +6 -0
- package/dist/composite-CbsUYl-u.js +136 -0
- package/dist/composite-Cf24lSyN.cjs +1 -0
- package/dist/composite-DjhrBgG1.js +323 -0
- package/dist/composite-DlY2_x6P.cjs +3 -0
- package/dist/config-BLSroAzs.cjs +1 -0
- package/dist/config-Cc2W4vke.js +9 -0
- package/dist/controlList-BdF8xNAi.js +879 -0
- package/dist/controlList-De6PXdOc.cjs +1 -0
- package/dist/controlRecordList-CKpAr1ON.js +421 -0
- package/dist/controlRecordList-u5a7chIX.cjs +1 -0
- package/dist/crd-BVAf41oX.js +113 -0
- package/dist/crd-BoaXQhFQ.cjs +1 -0
- package/dist/createSeriesData-Cz83cqoZ.cjs +1 -0
- package/dist/createSeriesData-E53TTCAt.js +116 -0
- package/dist/createSeriesDataSimply-Bsly4zZA.js +14 -0
- package/dist/createSeriesDataSimply-CjfZL_jf.cjs +1 -0
- package/dist/ctrBtn-C9kQiqY1.cjs +1 -0
- package/dist/ctrBtn-ZPRYWE66.js +215 -0
- package/dist/ctrSet-C87dxLfQ.js +247 -0
- package/dist/ctrSet-CNCrnLSs.cjs +1 -0
- package/dist/ctrSwitch-CVEtbdfb.cjs +1 -0
- package/dist/ctrSwitch-CkC_Axtp.js +207 -0
- package/dist/cursorHelper-DE0KU4_J.js +29 -0
- package/dist/cursorHelper-DsTR8jVF.cjs +1 -0
- package/dist/customGraphicKeyframeAnimation-BJ_z0kB3.js +330 -0
- package/dist/customGraphicKeyframeAnimation-CEIvOjMs.cjs +1 -0
- package/dist/dataManagement-CjlNfeYq.js +672 -0
- package/dist/dataManagement-n711sd1g.cjs +1 -0
- package/dist/dataReport-BsVjW3p7.cjs +4 -0
- package/dist/dataReport-ByjswEqq.js +787 -0
- package/dist/dataSample-BXwc06Sb.js +114 -0
- package/dist/dataSample-D4ycwmll.cjs +1 -0
- package/dist/dataTable-DX500R1i.js +217 -0
- package/dist/dataTable-K7j4fhnq.cjs +1 -0
- package/dist/datetime-DVbJtALf.js +113 -0
- package/dist/datetime-DYXWKrXI.cjs +1 -0
- package/dist/deepClusterSlipSurface-B7nkEM9A.cjs +1 -0
- package/dist/deepClusterSlipSurface-CQUE05cK.js +372 -0
- package/dist/deepDataMatrix-DHZA0IAm.cjs +1 -0
- package/dist/deepDataMatrix-ai5rB6ET.js +238 -0
- package/dist/deepDisplacement3D-BFqKqSYg.cjs +4289 -0
- package/dist/deepDisplacement3D-BsUzvbQb.js +26052 -0
- package/dist/deepDisplacementChart-2JZNrhrw.cjs +5 -0
- package/dist/deepDisplacementChart-BCIuCMdK.js +585 -0
- package/dist/deepDisplacementChart-Ba67v6um.cjs +6 -0
- package/dist/deepDisplacementChart-igl4rW1K.js +340 -0
- package/dist/deepDisplacementView-BedWJsx7.js +231 -0
- package/dist/deepDisplacementView-wQxyKzB-.cjs +8 -0
- package/dist/deepNodeTemperatureChart-DLeb9jKp.js +347 -0
- package/dist/deepNodeTemperatureChart-albL8hKa.cjs +1 -0
- package/dist/deepTangentAngleChart-C6xOiITk.js +420 -0
- package/dist/deepTangentAngleChart-DukevXaM.cjs +1 -0
- package/dist/deepTemperatureField-B-y94GPV.js +398 -0
- package/dist/deepTemperatureField-De4xKoHw.cjs +1 -0
- package/dist/deepTrendChart-DCkV2HNv.js +345 -0
- package/dist/deepTrendChart-MmuYSXtu.cjs +1 -0
- package/dist/deviceOnlineStatus-B5cCjhNA.cjs +2 -0
- package/dist/deviceOnlineStatus-CFuCTx7_.js +178 -0
- package/dist/deviceStatus-B2ibBDSi.js +194 -0
- package/dist/deviceStatus-DsEtKiGo.cjs +1 -0
- package/dist/displacementDataTable-BDqG1IvI.js +256 -0
- package/dist/displacementDataTable-oLnUdafv.cjs +1 -0
- package/dist/displacementTrajectoryChart-CBhPwZhe.cjs +22 -0
- package/dist/displacementTrajectoryChart-Crf55oKi.js +597 -0
- package/dist/displacementTrendChart-10n_lC9j.js +364 -0
- package/dist/displacementTrendChart-CWihCuIJ.cjs +5 -0
- package/dist/dxf-D8zHpz5g.js +2768 -0
- package/dist/dxf-DDh_DcQy.cjs +1 -0
- package/dist/dzc-DLCdTCwW.js +144 -0
- package/dist/dzc-uNTDJqpi.cjs +2 -0
- package/dist/echarts-BB8O2KSA.cjs +21 -0
- package/dist/echarts-BVht3HHb.js +13787 -0
- package/dist/ele-aqi-icon-BMm9WgFH.cjs +1 -0
- package/dist/ele-aqi-icon-DsYfU5th.js +5 -0
- package/dist/ele-bar-icon-C-GiCs2a.js +5 -0
- package/dist/ele-bar-icon-V94clxg_.cjs +1 -0
- package/dist/ele-bmp-icon-BBI0-SX7.cjs +1 -0
- package/dist/ele-bmp-icon-Pdolk1J5.js +5 -0
- package/dist/ele-circleBar-icon-DNBUxt0A.js +5 -0
- package/dist/ele-circleBar-icon-Da0-L9sa.cjs +1 -0
- package/dist/ele-clt-icon-BEVOS7Tq.cjs +1 -0
- package/dist/ele-clt-icon-DuU4Q401.js +5 -0
- package/dist/ele-cmp-icon-CEP91RUe.js +5 -0
- package/dist/ele-cmp-icon-yUlU6c_Q.cjs +1 -0
- package/dist/ele-crd-icon-BXxB7P3T.js +5 -0
- package/dist/ele-crd-icon-BvNgAPKW.cjs +1 -0
- package/dist/ele-ctrSet-icon-BtKGrCid.js +5 -0
- package/dist/ele-ctrSet-icon-DCsPO0tL.cjs +1 -0
- package/dist/ele-dateTime-icon-BEGFlwID.js +5 -0
- package/dist/ele-dateTime-icon-BgZ2_KWW.cjs +1 -0
- package/dist/ele-dzc-icon-D6eVpaHp.js +5 -0
- package/dist/ele-dzc-icon-h5wOUHF0.cjs +1 -0
- package/dist/ele-evn-icon-DUQMS-9T.cjs +1 -0
- package/dist/ele-evn-icon-MWzAujnD.js +5 -0
- package/dist/ele-gag-icon-CB5dJeYF.js +5 -0
- package/dist/ele-gag-icon-Ce1hl9NI.cjs +1 -0
- package/dist/ele-glbModel-icon-ByACDCrv.cjs +1 -0
- package/dist/ele-glbModel-icon-l_SMi3ik.js +5 -0
- package/dist/ele-grd-icon-DR52zwGR.js +5 -0
- package/dist/ele-grd-icon-ZUb-megQ.cjs +1 -0
- package/dist/ele-gridview-icon-D3GcssP6.cjs +1 -0
- package/dist/ele-gridview-icon-cSd1oIDi.js +5 -0
- package/dist/ele-lin-icon-Dax-ZiWV.js +5 -0
- package/dist/ele-lin-icon-Dke_1AmT.cjs +1 -0
- package/dist/ele-lst-icon-CKpeRKmk.js +5 -0
- package/dist/ele-lst-icon-CrxnHZ-A.cjs +1 -0
- package/dist/ele-mxa-icon-CJWttkCK.js +5 -0
- package/dist/ele-mxa-icon-fgN0MLnh.cjs +1 -0
- package/dist/ele-rtn-icon-BrsJIU8J.cjs +1 -0
- package/dist/ele-rtn-icon-CqCKSHIw.js +5 -0
- package/dist/ele-textbox-icon-ClGaLi5p.js +5 -0
- package/dist/ele-textbox-icon-g_5kV8t6.cjs +1 -0
- package/dist/ele-vdo-icon-Bgp9gaT6.cjs +1 -0
- package/dist/ele-vdo-icon-DcWebTR5.js +5 -0
- package/dist/ele-vlu-icon-Bg6EHZdJ.js +5 -0
- package/dist/ele-vlu-icon-Dv-R7Xuc.cjs +1 -0
- package/dist/element-resize-detector-Bo5uDQAu.cjs +6 -0
- package/dist/element-resize-detector-DJcsrJ8s.js +1547 -0
- package/dist/evn-DuL5oVRl.cjs +1 -0
- package/dist/evn-YwCALVXj.js +116 -0
- package/dist/evolutionChart-4noZSdLX.js +406 -0
- package/dist/evolutionChart-AeL67MAt.cjs +1 -0
- package/dist/fileViewer-DiH3PM0r.js +415 -0
- package/dist/fileViewer-bsrjlJkC.cjs +1 -0
- package/dist/filterBar-CWEguwYc.js +394 -0
- package/dist/filterBar-Ct1BFhrS.cjs +1 -0
- package/dist/fireCombustionCurve-DYPC4zKJ.js +405 -0
- package/dist/fireCombustionCurve-DyiQn-WA.cjs +1 -0
- package/dist/fireFilterBar-Bdm2ljuO.cjs +1 -0
- package/dist/fireFilterBar-DGHPNTwF.js +221 -0
- package/dist/gag-HiNaL81R.cjs +1 -0
- package/dist/gag-kvkKzJuO.js +125 -0
- package/dist/glbModel-CUz6CyVF.js +2724 -0
- package/dist/glbModel-DtBI72ap.cjs +5 -0
- package/dist/gnssFilterBar-BQgY5x1W.cjs +1 -0
- package/dist/gnssFilterBar-TBtirXIB.js +310 -0
- package/dist/gnssHistoryTable-D1ZLJOgh.cjs +3 -0
- package/dist/gnssHistoryTable-U8O7nyO7.js +398 -0
- package/dist/gnssMapView-42zmAd9q.cjs +7 -0
- package/dist/gnssMapView-CaBfWeT1.js +699 -0
- package/dist/gnssTimeSeriesChart-BrXYvuh6.js +421 -0
- package/dist/gnssTimeSeriesChart-CV2w_Aik.cjs +1 -0
- package/dist/gnssXYTrajectory-BmzSYjQ_.cjs +5 -0
- package/dist/gnssXYTrajectory-D2DoYnze.js +304 -0
- package/dist/grd-B0GUjLm9.js +339 -0
- package/dist/grd-DW8cSFVR.cjs +1 -0
- package/dist/grdIndass-BeBXVsos.cjs +1 -0
- package/dist/grdIndass-DduUKZJm.js +216 -0
- package/dist/grg-CeX0pirQ.js +194 -0
- package/dist/grg-fnpcXtju.cjs +1 -0
- package/dist/gridview-BPwWXza9.js +183 -0
- package/dist/gridview-DpABhCIw.cjs +1 -0
- package/dist/groupCard-De1E15mW.js +132 -0
- package/dist/groupCard-WNE6gAAl.cjs +1 -0
- package/dist/headerBar-CZ3qcLHo.js +210 -0
- package/dist/headerBar-Qi1EXrr6.cjs +1 -0
- package/dist/{history-DigzRtjC.js → history-BkZhlpdY.js} +5 -3
- package/dist/history-DAmBl4_5.cjs +1 -0
- package/dist/index-ButoLLAe.js +8655 -0
- package/dist/index-Mh5Dw2sd.cjs +585 -0
- package/dist/index-kShjySl9.js +5313 -0
- package/dist/index-mAPVa0s4.cjs +11 -0
- package/dist/insarDeformChart-BGr2xe7w.cjs +1 -0
- package/dist/insarDeformChart-CnuSL1d9.js +216 -0
- package/dist/insarImageViewer-DRgGdQmN.cjs +1 -0
- package/dist/insarImageViewer-EmVThmVQ.js +268 -0
- package/dist/install-8XfFtnlL.js +853 -0
- package/dist/install-9_V0b6vf.js +497 -0
- package/dist/install-B0x4IqQr.js +1258 -0
- package/dist/install-B1IEhhn3.cjs +1 -0
- package/dist/install-B2TChEcT.js +895 -0
- package/dist/install-B65ZIqAx.cjs +1 -0
- package/dist/install-BBrAry2m.js +8 -0
- package/dist/install-BRjgycz_.cjs +1 -0
- package/dist/install-BUu5ESB7.js +447 -0
- package/dist/install-BamnGDPb.cjs +1 -0
- package/dist/install-BifpoHNI.js +1817 -0
- package/dist/install-BvOpNm0Y.cjs +1 -0
- package/dist/install-ByPD0oOh.cjs +1 -0
- package/dist/install-BzdOSCzO.js +785 -0
- package/dist/install-C8buXQPI.cjs +1 -0
- package/dist/install-C9Cdzkc6.js +265 -0
- package/dist/install-CBde4hAM.js +112 -0
- package/dist/install-CIT6k8Ga.cjs +1 -0
- package/dist/install-CYwVETsi.cjs +1 -0
- package/dist/install-C_3uGWLu.js +2328 -0
- package/dist/install-Ch5d8i37.cjs +1 -0
- package/dist/install-CltTFs4e.cjs +3 -0
- package/dist/install-Csxa7Kv7.cjs +18 -0
- package/dist/install-Cx1i_m0k.js +1168 -0
- package/dist/install-D1QM80AD.js +227 -0
- package/dist/install-D7znHb-b.js +604 -0
- package/dist/install-DHY9y86B.cjs +3 -0
- package/dist/install-DIlB2q7w.cjs +1 -0
- package/dist/install-DV5cEgNV.cjs +1 -0
- package/dist/install-DWm3j_D3.js +38 -0
- package/dist/install-FDYiy_gL.js +250 -0
- package/dist/install-LtoYukZU.cjs +1 -0
- package/dist/install-MS3ZY7fF.js +685 -0
- package/dist/install-hfre7yvV.js +727 -0
- package/dist/install-kGXY_57n.cjs +1 -0
- package/dist/install-nDY6w-GK.cjs +1 -0
- package/dist/install-oGjJ0_bF.js +588 -0
- package/dist/install-z6wShIZI.cjs +1 -0
- package/dist/installCanvasRenderer-CLT2hquJ.js +4260 -0
- package/dist/installCanvasRenderer-CyhM1Qpl.cjs +3 -0
- package/dist/installMarkArea-Cdg4iciO.js +206 -0
- package/dist/installMarkArea-CjyaJPLE.cjs +1 -0
- package/dist/installMarkLine-BgE0YACE.js +533 -0
- package/dist/installMarkLine-Bv53Iw9G.cjs +1 -0
- package/dist/installSimple-BWTCwMdY.js +586 -0
- package/dist/installSimple-c87Ufc4_.cjs +1 -0
- package/dist/kds-CpIQFgeY.js +1203 -0
- package/dist/kds-DTYWOq4K.cjs +3 -0
- package/dist/labelHelper-Cd8oB-sZ.js +26 -0
- package/dist/labelHelper-npJGYQ1j.cjs +1 -0
- package/dist/layerTabs-BATcBkTA.cjs +1 -0
- package/dist/layerTabs-uze6K91A.js +139 -0
- package/dist/lin-Ba6fHkYf.cjs +2 -0
- package/dist/lin-DU_EuPRg.js +239 -0
- package/dist/linIndass-XHKElG7L.js +273 -0
- package/dist/linIndass-urYe5inp.cjs +2 -0
- package/dist/lst-C7aee1cU.js +147 -0
- package/dist/lst-CpmoEQDY.cjs +1 -0
- package/dist/manualEntry-CJPiO5nh.cjs +1 -0
- package/dist/manualEntry-D9m_WPw3.js +662 -0
- package/dist/mapBackground-6g_71Fwa.js +6658 -0
- package/dist/mapBackground-CF_TqNBy.cjs +17 -0
- package/dist/mappingList-CR55Tq4t.cjs +1 -0
- package/dist/mappingList-luT5YE0d.js +917 -0
- package/dist/markdownViewer-CnguoUr8.js +261 -0
- package/dist/markdownViewer-D1hDk2Y7.cjs +3 -0
- package/dist/mix-control-modal-BDHAB4Tw.cjs +1 -0
- package/dist/mix-control-modal-CHiX3hQs.js +147 -0
- package/dist/mixDataPermission-BTA1jNd1.cjs +1 -0
- package/dist/mixDataPermission-BaqV0Z6N.js +760 -0
- package/dist/mixGrid-3BqQCvg8.cjs +1 -0
- package/dist/mixGrid-C0eEvwPy.js +180 -0
- package/dist/mixMap-7upgYwWk.js +258 -0
- package/dist/mixMap-Bw-We4Cm.cjs +1 -0
- package/dist/mixModel-BqE_Kd4c.js +245 -0
- package/dist/mixModel-CgV4XptM.cjs +3 -0
- package/dist/mixPie-9LfMCTQV.cjs +2 -0
- package/dist/mixPie-B-HeglUn.js +168 -0
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +7 -7
- package/dist/mjpegCamera-Cfw3rzT5.js +158 -0
- package/dist/mjpegCamera-nxKfhobY.cjs +1 -0
- package/dist/monitorAlert-Bg5vzzyG.js +225 -0
- package/dist/monitorAlert-Bt0baNh4.cjs +1 -0
- package/dist/monitorData-BvAMeOrp.js +319 -0
- package/dist/monitorData-CzPVIk_4.cjs +1 -0
- package/dist/monitorSpeedChart-0bDuU3Kj.js +603 -0
- package/dist/monitorSpeedChart-C52QjA5K.cjs +16 -0
- package/dist/mxa-BW80xKCc.js +143 -0
- package/dist/mxa-eLAgZPMC.cjs +2 -0
- package/dist/no-image-icon-CPA7RKkF.cjs +1 -0
- package/dist/no-image-icon-n2ZlEjxS.js +1864 -0
- package/dist/objectList-Cf9GMyXN.js +1809 -0
- package/dist/objectList-CpqQxG8L.cjs +1 -0
- package/dist/params-3W3p8QeC.cjs +1 -0
- package/dist/params-DfgBemk0.js +75 -0
- package/dist/photo-BODEtaYh.cjs +1 -0
- package/dist/photo-BfLkWAo8.js +256 -0
- package/dist/pie-BDLg-Rls.js +199 -0
- package/dist/pie-DxoBrm0D.cjs +2 -0
- package/dist/points-DcRmizmA.cjs +1 -0
- package/dist/points-DkG9FRF9.js +277 -0
- package/dist/pressBtn-CXG1eSWC.js +242 -0
- package/dist/pressBtn-t0g4vk7s.cjs +1 -0
- package/dist/progressBar-BXaFKSCq.js +130 -0
- package/dist/progressBar-CJEWkZ42.cjs +1 -0
- package/dist/progressCircle-DpOI5D5z.js +168 -0
- package/dist/progressCircle-uQ7vaMKM.cjs +1 -0
- package/dist/qrcode-CX8aymYZ.js +814 -0
- package/dist/qrcode-DHCRfp0M.cjs +1 -0
- package/dist/raceBar-Cv0-0ogd.cjs +4 -0
- package/dist/raceBar-DFaH342G.js +197 -0
- package/dist/rad-CFswUTwi.cjs +1 -0
- package/dist/rad-NS2G_nMg.js +143 -0
- package/dist/rainfallFilterBar-BI45QvJm.cjs +1 -0
- package/dist/rainfallFilterBar-D_Ye_NeB.js +221 -0
- package/dist/rainfallTimeCurve-BHWqX47Q.js +443 -0
- package/dist/rainfallTimeCurve-Ke1JvSWq.cjs +1 -0
- package/dist/rangeLin-D6VZ2U3C.cjs +3 -0
- package/dist/rangeLin-GMYEgLeP.js +278 -0
- package/dist/request-BD0x5Hkt.js +75 -0
- package/dist/request-Bn100qAJ.cjs +1 -0
- package/dist/retainer1-D2XmjXYH.cjs +1 -0
- package/dist/retainer1-h-Whr2c9.js +290 -0
- package/dist/retainer2-ByQdiRjq.js +504 -0
- package/dist/retainer2-cF-trL2g.cjs +1 -0
- package/dist/riskRegionTable-CQxAkG7k.js +170 -0
- package/dist/riskRegionTable-cKnxra4_.cjs +1 -0
- package/dist/sankey-Bk1IcVJQ.js +171 -0
- package/dist/sankey-MRirEgU0.cjs +1 -0
- package/dist/sausage-DRCw7Qmr.cjs +1 -0
- package/dist/sausage-xU3hOdxD.js +30 -0
- package/dist/scd-BDRpzmsa.js +2577 -0
- package/dist/scd-J-mN3eI5.cjs +1 -0
- package/dist/sectorHelper-BFEnYqut.cjs +1 -0
- package/dist/sectorHelper-DIlWFMnU.js +18 -0
- package/dist/sideMenu-BgTMtnMq.js +225 -0
- package/dist/sideMenu-l8X2E00H.cjs +1 -0
- package/dist/slopeStability-BPf7m0fJ.cjs +1 -0
- package/dist/slopeStability-C5RqZ1im.js +331 -0
- package/dist/speedCurve-C3pK-zZy.js +394 -0
- package/dist/speedCurve-CluwNAZl.cjs +1 -0
- package/dist/staticLine-C6tGGXcN.cjs +1 -0
- package/dist/staticLine-DXWOLj15.js +362 -0
- package/dist/store-BJW2NQkK.cjs +5 -0
- package/dist/store-DzDtVfSX.js +1673 -0
- package/dist/swiper-DGqDoUkX.cjs +1 -0
- package/dist/swiper-IMlGje3t.js +128 -0
- package/dist/terminalConfigList-D6xDHsnb.cjs +1 -0
- package/dist/terminalConfigList-SAyXi-BK.js +1017 -0
- package/dist/terminalList-CjSHshiR.js +1211 -0
- package/dist/terminalList-ml2C18MY.cjs +1 -0
- package/dist/textbox-AQtCe25j.cjs +1 -0
- package/dist/textbox-BLV-SY8e.js +172 -0
- package/dist/three.module-DNVo041Q.cjs +3824 -0
- package/dist/three.module-DcOQNgKS.js +16561 -0
- package/dist/timeQueryBar-BeMu_DYr.js +155 -0
- package/dist/timeQueryBar-BuKakMy8.cjs +1 -0
- package/dist/timeSeries-DP5iZKVM.js +587 -0
- package/dist/timeSeries-DfGgFWiF.cjs +4 -0
- package/dist/timeSeriesCurve-B0Mw6eNK.cjs +1 -0
- package/dist/timeSeriesCurve-BSgtPqYw.js +463 -0
- package/dist/titleStyle-BT5GlpAb.js +49 -0
- package/dist/titleStyle-NSnz6cUg.cjs +1 -0
- package/dist/toggleBtn-Dh64vVWo.cjs +1 -0
- package/dist/toggleBtn-O2Y75Uen.js +249 -0
- package/dist/trajectoryConfigPanel--C1h3tK6.js +635 -0
- package/dist/trajectoryConfigPanel-P_Qa4omj.cjs +1 -0
- package/dist/trajectoryScatter-BbpbgNb8.cjs +1 -0
- package/dist/trajectoryScatter-VLrmImlq.js +525 -0
- package/dist/universalConfigPanel-C0lDSzOB.cjs +1 -0
- package/dist/universalConfigPanel-DBg76b4F.js +477 -0
- package/dist/universalTable-Bzq9VqzA.cjs +2 -0
- package/dist/universalTable-DGK02ywi.js +410 -0
- package/dist/universalTransition-Bv7ibBUh.js +988 -0
- package/dist/universalTransition-CIN_u2Cu.cjs +1 -0
- package/dist/video-CyRoSQf1.cjs +1 -0
- package/dist/video-DCzzaEmV.js +310 -0
- package/dist/videoMonitor-BjD-ZFS0.cjs +1 -0
- package/dist/videoMonitor-ByaQeIWR.js +241 -0
- package/dist/vlu-CYZjYHaV.cjs +1 -0
- package/dist/vlu-h-9twmCr.js +100 -0
- package/dist/vue-i18n-5Nahpzrm.js +2732 -0
- package/dist/vue-i18n-BvHMBi_b.cjs +5 -0
- package/dist/weather-B7B5E1EJ.cjs +1 -0
- package/dist/weather-C_aC0XJ1.js +94 -0
- package/dist/windLin-B7V4NUV8.js +1226 -0
- package/dist/windLin-DPNzX7JN.cjs +1 -0
- package/package.json +17 -10
- package/dist/history-fvcbbxGa.cjs +0 -1
- package/dist/index-B-aA7889.js +0 -154003
- package/dist/index-CdJ-j9Gj.cjs +0 -8893
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Ce=Object.defineProperty,_e=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var pe=(s,n,e)=>n in s?Ce(s,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[n]=e,le=(s,n)=>{for(var e in n||(n={}))Ne.call(n,e)&&pe(s,e,n[e]);if(fe)for(var e of fe(n))Pe.call(n,e)&&pe(s,e,n[e]);return s},se=(s,n)=>_e(s,Le(n));var ie=(s,n,e)=>new Promise((t,k)=>{var i=v=>{try{o(e.next(v))}catch(V){k(V)}},g=v=>{try{o(e.throw(v))}catch(V){k(V)}},o=v=>v.done?t(v.value):Promise.resolve(v.value).then(i,g);o((e=e.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),Z=require("./index-Mh5Dw2sd.cjs"),c=require("./three.module-DNVo041Q.cjs"),Se=require("./element-resize-detector-Bo5uDQAu.cjs"),De=require("./api-P_s372dW.cjs"),Fe=require("./config-BLSroAzs.cjs"),J=require("element-plus"),Be=require("./store-BJW2NQkK.cjs"),Ae=a.defineComponent({__name:"Button",emits:["click"],setup(s,{emit:n}){const e=n,t=k=>{e("click",k)};return(k,i)=>(a.openBlock(),a.createElementBlock("button",{class:"my-button",onClick:t},[a.renderSlot(k.$slots,"default",{},void 0,!0)]))}}),ve=Z._export_sfc(Ae,[["__scopeId","data-v-01de59b5"]]);ve.install=s=>{s.component("MyButton",ve)};const Te={class:"my-input-wrapper"},Me=["type","placeholder","disabled","value"],Ie=a.defineComponent({__name:"Input",props:{modelValue:{},type:{default:"text"},placeholder:{},disabled:{type:Boolean,default:!1},size:{default:"default"}},emits:["update:modelValue","focus","blur"],setup(s,{emit:n}){const e=s,t=n,k=a.computed(()=>[{[`my-input--${e.size}`]:e.size!=="default","is-disabled":e.disabled}]),i=v=>{const V=v.target;t("update:modelValue",V.value)},g=v=>{t("focus",v)},o=v=>{t("blur",v)};return(v,V)=>(a.openBlock(),a.createElementBlock("div",Te,[a.createElementVNode("input",{class:a.normalizeClass(["my-input",k.value]),type:s.type,placeholder:s.placeholder,disabled:s.disabled,value:s.modelValue,onInput:i,onFocus:g,onBlur:o},null,42,Me)]))}}),he=Z._export_sfc(Ie,[["__scopeId","data-v-658697aa"]]);he.install=s=>{s.component("MyInput",he)};const Oe={key:0,class:"my-card__header"},He={class:"my-card__body"},Re={key:1,class:"my-card__footer"},ze=a.defineComponent({__name:"Card",props:{header:{},shadow:{default:"always"}},setup(s){const n=s,e=a.computed(()=>[`my-card--shadow-${n.shadow}`]);return(t,k)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["my-card",e.value])},[t.$slots.header||s.header?(a.openBlock(),a.createElementBlock("div",Oe,[a.renderSlot(t.$slots,"header",{},()=>[a.createTextVNode(a.toDisplayString(s.header),1)],!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",He,[a.renderSlot(t.$slots,"default",{},void 0,!0)]),t.$slots.footer?(a.openBlock(),a.createElementBlock("div",Re,[a.renderSlot(t.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)],2))}}),ge=Z._export_sfc(ze,[["__scopeId","data-v-33b37710"]]);ge.install=s=>{s.component("MyCard",ge)};class $e{constructor(n){this._pointer=0,this._eof=!1,this._data=n}next(){if(!this.hasNext())throw this._eof?new Error("Cannot call 'next' after EOF group has been read"):new Error("Unexpected end of input: EOF group not read before end of file. Ended on code "+this._data[this._pointer]);const n={code:parseInt(this._data[this._pointer])};return this._pointer++,n.value=be(n.code,this._data[this._pointer].trim()),this._pointer++,n.code===0&&n.value==="EOF"&&(this._eof=!0),this.lastReadGroup=n,n}peek(){if(!this.hasNext())throw this._eof?new Error("Cannot call 'next' after EOF group has been read"):new Error("Unexpected end of input: EOF group not read before end of file. Ended on code "+this._data[this._pointer]);const n={code:parseInt(this._data[this._pointer])};return n.value=be(n.code,this._data[this._pointer+1].trim()),n}rewind(n=1){this._pointer=this._pointer-n*2}hasNext(){return!(this._eof||this._pointer>this._data.length-2)}isEOF(){return this._eof}}function be(s,n){return s<=9?n:s>=10&&s<=59?parseFloat(n):s>=60&&s<=99?parseInt(n):s>=100&&s<=109?n:s>=110&&s<=149?parseFloat(n):s>=160&&s<=179?parseInt(n):s>=210&&s<=239?parseFloat(n):s>=270&&s<=289?parseInt(n):s>=290&&s<=299?Ge(n):s>=300&&s<=369?n:s>=370&&s<=389?parseInt(n):s>=390&&s<=399?n:s>=400&&s<=409?parseInt(n):s>=410&&s<=419?n:s>=420&&s<=429?parseInt(n):s>=430&&s<=439?n:s>=440&&s<=459?parseInt(n):s>=460&&s<=469?parseFloat(n):s>=470&&s<=481||s===999||s>=1e3&&s<=1009?n:s>=1010&&s<=1059?parseFloat(n):s>=1060&&s<=1071?parseInt(n):(console.log("WARNING: Group code does not have a defined type: %j",{code:s,value:n}),n)}function Ge(s){if(s==="0")return!1;if(s==="1")return!0;throw TypeError("String '"+s+"' cannot be cast to Boolean type")}const ke=[0,16711680,16776960,65280,65535,255,16711935,16777215,8421504,12632256,16711680,16744319,13369344,13395558,10027008,10046540,8323072,8339263,4980736,4990502,16727808,16752511,13382400,13401958,10036736,10051404,8331008,8343359,4985600,4992806,16744192,16760703,13395456,13408614,10046464,10056268,8339200,8347455,4990464,4995366,16760576,16768895,13408512,13415014,10056192,10061132,8347392,8351551,4995328,4997670,16776960,16777087,13421568,13421670,10000384,10000460,8355584,8355647,5000192,5000230,12582656,14679935,10079232,11717734,7510016,8755276,6258432,7307071,3755008,4344870,8388352,12582783,6736896,10079334,5019648,7510092,4161280,6258495,2509824,3755046,4194048,10485631,3394560,8375398,2529280,6264908,2064128,5209919,1264640,3099686,65280,8388479,52224,6736998,38912,5019724,32512,4161343,19456,2509862,65343,8388511,52275,6737023,38950,5019743,32543,4161359,19475,2509871,65407,8388543,52326,6737049,38988,5019762,32575,4161375,19494,2509881,65471,8388575,52377,6737074,39026,5019781,32607,4161391,19513,2509890,65535,8388607,52428,6737100,39064,5019800,32639,4161407,19532,2509900,49151,8380415,39372,6730444,29336,5014936,24447,4157311,14668,2507340,32767,8372223,26316,6724044,19608,5010072,16255,4153215,9804,2505036,16383,8364031,13260,6717388,9880,5005208,8063,4149119,4940,2502476,255,8355839,204,6710988,152,5000344,127,4145023,76,2500172,4129023,10452991,3342540,8349388,2490520,6245528,2031743,5193599,1245260,3089996,8323327,12550143,6684876,10053324,4980888,7490712,4128895,6242175,2490444,3745356,12517631,14647295,10027212,11691724,7471256,8735896,6226047,7290751,3735628,4335180,16711935,16744447,13369548,13395660,9961624,9981080,8323199,8339327,4980812,4990540,16711871,16744415,13369497,13395634,9961586,9981061,8323167,8339311,4980793,4990530,16711807,16744383,13369446,13395609,9961548,9981042,8323135,8339295,4980774,4990521,16711743,16744351,13369395,13395583,9961510,9981023,8323103,8339279,4980755,4990511,3355443,5987163,8684676,11382189,14079702,16777215];function Ue(s){return ke[s]}function P(s){const n={};s.rewind();let e=s.next(),t=e.code;if(n.x=e.value,t+=10,e=s.next(),e.code!=t)throw new Error("Expected code for point value to be "+t+" but got "+e.code+".");return n.y=e.value,t+=10,e=s.next(),e.code!=t?(s.rewind(),n):(n.z=e.value,n)}function G(s,n,e){switch(n.code){case 0:s.type=n.value;break;case 5:s.handle=n.value;break;case 6:s.lineType=n.value;break;case 8:s.layer=n.value;break;case 48:s.lineTypeScale=n.value;break;case 60:s.visible=n.value===0;break;case 62:s.colorIndex=n.value,s.color=Ue(Math.abs(n.value));break;case 67:s.inPaperSpace=n.value!==0;break;case 100:break;case 101:for(;n.code!=0;)n=e.next();e.rewind();break;case 330:s.ownerHandle=n.value;break;case 347:s.materialObjectHandle=n.value;break;case 370:s.lineweight=n.value;break;case 420:s.color=n.value;break;case 1e3:s.extendedData=s.extendedData||{},s.extendedData.customStrings=s.extendedData.customStrings||[],s.extendedData.customStrings.push(n.value);break;case 1001:s.extendedData=s.extendedData||{},s.extendedData.applicationName=n.value;break;default:return!1}return!0}class We{constructor(){this.ForEntityName="3DFACE"}parseEntity(n,e){const t={type:e.value,vertices:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 70:t.shape=(e.value&1)===1,t.hasContinuousLinetypePattern=(e.value&128)===128;break;case 10:t.vertices=Xe(n,e),e=n.lastReadGroup;break;default:G(t,e,n);break}e=n.next()}return t}}function Xe(s,n){var e=[],t=!1,k=!1,i=4;for(let o=0;o<=i;o++){for(var g={};!s.isEOF()&&!(n.code===0||k);){switch(n.code){case 10:case 11:case 12:case 13:if(t){k=!0;continue}g.x=n.value,t=!0;break;case 20:case 21:case 22:case 23:g.y=n.value;break;case 30:case 31:case 32:case 33:g.z=n.value;break;default:return e}n=s.next()}e.push(g),t=!1,k=!1}return s.rewind(),e}class Ye{constructor(){this.ForEntityName="ARC"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.center=P(n);break;case 40:t.radius=e.value;break;case 50:t.startAngle=Math.PI/180*e.value;break;case 51:t.endAngle=Math.PI/180*e.value,t.angleLength=t.endAngle-t.startAngle;break;case 210:t.extrusionDirectionX=e.value;break;case 220:t.extrusionDirectionY=e.value;break;case 230:t.extrusionDirectionZ=e.value;break;default:G(t,e,n);break}e=n.next()}return t}}class Ze{constructor(){this.ForEntityName="ATTDEF"}parseEntity(n,e){var t={type:e.value,scale:1,textStyle:"STANDARD"};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 1:t.text=e.value;break;case 2:t.tag=e.value;break;case 3:t.prompt=e.value;break;case 7:t.textStyle=e.value;break;case 10:t.startPoint=P(n);break;case 11:t.endPoint=P(n);break;case 39:t.thickness=e.value;break;case 40:t.textHeight=e.value;break;case 41:t.scale=e.value;break;case 50:t.rotation=e.value;break;case 51:t.obliqueAngle=e.value;break;case 70:t.invisible=!!(e.value&1),t.constant=!!(e.value&2),t.verificationRequired=!!(e.value&4),t.preset=!!(e.value&8);break;case 71:t.backwards=!!(e.value&2),t.mirrored=!!(e.value&4);break;case 72:t.horizontalJustification=e.value;break;case 73:t.fieldLength=e.value;break;case 74:t.verticalJustification=e.value;break;case 100:break;case 210:t.extrusionDirectionX=e.value;break;case 220:t.extrusionDirectionY=e.value;break;case 230:t.extrusionDirectionZ=e.value;break;default:G(t,e,n);break}e=n.next()}return t}}class je{constructor(){this.ForEntityName="CIRCLE"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.center=P(n);break;case 40:t.radius=e.value;break;case 50:t.startAngle=Math.PI/180*e.value;break;case 51:const k=Math.PI/180*e.value;k<t.startAngle?t.angleLength=k+2*Math.PI-t.startAngle:t.angleLength=k-t.startAngle,t.endAngle=k;break;default:G(t,e,n);break}e=n.next()}return t}}class qe{constructor(){this.ForEntityName="DIMENSION"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 2:t.block=e.value;break;case 10:t.anchorPoint=P(n);break;case 11:t.middleOfText=P(n);break;case 12:t.insertionPoint=P(n);break;case 13:t.linearOrAngularPoint1=P(n);break;case 14:t.linearOrAngularPoint2=P(n);break;case 15:t.diameterOrRadiusPoint=P(n);break;case 16:t.arcPoint=P(n);break;case 70:t.dimensionType=e.value;break;case 71:t.attachmentPoint=e.value;break;case 42:t.actualMeasurement=e.value;break;case 1:t.text=e.value;break;case 50:t.angle=e.value;break;default:G(t,e,n);break}e=n.next()}return t}}class Ke{constructor(){this.ForEntityName="ELLIPSE"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.center=P(n);break;case 11:t.majorAxisEndPoint=P(n);break;case 40:t.axisRatio=e.value;break;case 41:t.startAngle=e.value;break;case 42:t.endAngle=e.value;break;case 2:t.name=e.value;break;default:G(t,e,n);break}e=n.next()}return t}}class Je{constructor(){this.ForEntityName="INSERT"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 2:t.name=e.value;break;case 41:t.xScale=e.value;break;case 42:t.yScale=e.value;break;case 43:t.zScale=e.value;break;case 10:t.position=P(n);break;case 50:t.rotation=e.value;break;case 70:t.columnCount=e.value;break;case 71:t.rowCount=e.value;break;case 44:t.columnSpacing=e.value;break;case 45:t.rowSpacing=e.value;break;case 210:t.extrusionDirection=P(n);break;default:G(t,e,n);break}e=n.next()}return t}}class Qe{constructor(){this.ForEntityName="LINE"}parseEntity(n,e){const t={type:e.value,vertices:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.vertices.unshift(P(n));break;case 11:t.vertices.push(P(n));break;case 210:t.extrusionDirection=P(n);break;case 100:break;default:G(t,e,n);break}e=n.next()}return t}}class et{constructor(){this.ForEntityName="LWPOLYLINE"}parseEntity(n,e){const t={type:e.value,vertices:[]};let k=0;for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 38:t.elevation=e.value;break;case 39:t.depth=e.value;break;case 70:t.shape=(e.value&1)===1,t.hasContinuousLinetypePattern=(e.value&128)===128;break;case 90:k=e.value;break;case 10:t.vertices=tt(k,n);break;case 43:e.value!==0&&(t.width=e.value);break;case 210:t.extrusionDirectionX=e.value;break;case 220:t.extrusionDirectionY=e.value;break;case 230:t.extrusionDirectionZ=e.value;break;default:G(t,e,n);break}e=n.next()}return t}}function tt(s,n){if(!s||s<=0)throw Error("n must be greater than 0 verticies");const e=[];let t=!1,k=!1,i=n.lastReadGroup;for(let g=0;g<s;g++){const o={};for(;!n.isEOF()&&!(i.code===0||k);){switch(i.code){case 10:if(t){k=!0;continue}o.x=i.value,t=!0;break;case 20:o.y=i.value;break;case 30:o.z=i.value;break;case 40:o.startWidth=i.value;break;case 41:o.endWidth=i.value;break;case 42:i.value!=0&&(o.bulge=i.value);break;default:return n.rewind(),t&&e.push(o),n.rewind(),e}i=n.next()}e.push(o),t=!1,k=!1}return n.rewind(),e}class nt{constructor(){this.ForEntityName="MTEXT"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 3:t.text?t.text+=e.value:t.text=e.value;break;case 1:t.text?t.text+=e.value:t.text=e.value;break;case 10:t.position=P(n);break;case 11:t.directionVector=P(n);break;case 40:t.height=e.value;break;case 41:t.width=e.value;break;case 50:t.rotation=e.value;break;case 71:t.attachmentPoint=e.value;break;case 72:t.drawingDirection=e.value;break;default:G(t,e,n);break}e=n.next()}return t}}class ot{constructor(){this.ForEntityName="POINT"}parseEntity(n,e){const k={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:k.position=P(n);break;case 39:k.thickness=e.value;break;case 210:k.extrusionDirection=P(n);break;case 100:break;default:G(k,e,n);break}e=n.next()}return k}}class at{constructor(){this.ForEntityName="VERTEX"}parseEntity(n,e){var t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.x=e.value;break;case 20:t.y=e.value;break;case 30:t.z=e.value;break;case 40:break;case 41:break;case 42:e.value!=0&&(t.bulge=e.value);break;case 70:t.curveFittingVertex=(e.value&1)!==0,t.curveFitTangent=(e.value&2)!==0,t.splineVertex=(e.value&8)!==0,t.splineControlPoint=(e.value&16)!==0,t.threeDPolylineVertex=(e.value&32)!==0,t.threeDPolylineMesh=(e.value&64)!==0,t.polyfaceMeshVertex=(e.value&128)!==0;break;case 50:break;case 71:t.faceA=e.value;break;case 72:t.faceB=e.value;break;case 73:t.faceC=e.value;break;case 74:t.faceD=e.value;break;default:G(t,e,n);break}e=n.next()}return t}}class lt{constructor(){this.ForEntityName="POLYLINE"}parseEntity(n,e){var t={type:e.value,vertices:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:break;case 20:break;case 30:break;case 39:t.thickness=e.value;break;case 40:break;case 41:break;case 70:t.shape=(e.value&1)!==0,t.includesCurveFitVertices=(e.value&2)!==0,t.includesSplineFitVertices=(e.value&4)!==0,t.is3dPolyline=(e.value&8)!==0,t.is3dPolygonMesh=(e.value&16)!==0,t.is3dPolygonMeshClosed=(e.value&32)!==0,t.isPolyfaceMesh=(e.value&64)!==0,t.hasContinuousLinetypePattern=(e.value&128)!==0;break;case 71:break;case 72:break;case 73:break;case 74:break;case 75:break;case 210:t.extrusionDirection=P(n);break;default:G(t,e,n);break}e=n.next()}return t.vertices=st(n,e),t}}function st(s,n){const e=new at,t=[];for(;!s.isEOF();)if(n.code===0){if(n.value==="VERTEX")t.push(e.parseEntity(s,n)),n=s.lastReadGroup;else if(n.value==="SEQEND"){it(s,n);break}}return t}function it(s,n){const e={type:n.value};for(n=s.next();!s.isEOF()&&n.code!=0;)G(e,n,s),n=s.next();return e}class rt{constructor(){this.ForEntityName="SOLID"}parseEntity(n,e){const t={type:e.value,points:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.points[0]=P(n);break;case 11:t.points[1]=P(n);break;case 12:t.points[2]=P(n);break;case 13:t.points[3]=P(n);break;case 210:t.extrusionDirection=P(n);break;default:G(t,e,n);break}e=n.next()}return t}}class ct{constructor(){this.ForEntityName="SPLINE"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.controlPoints||(t.controlPoints=[]),t.controlPoints.push(P(n));break;case 11:t.fitPoints||(t.fitPoints=[]),t.fitPoints.push(P(n));break;case 12:t.startTangent=P(n);break;case 13:t.endTangent=P(n);break;case 40:t.knotValues||(t.knotValues=[]),t.knotValues.push(e.value);break;case 70:(e.value&1)!=0&&(t.closed=!0),(e.value&2)!=0&&(t.periodic=!0),(e.value&4)!=0&&(t.rational=!0),(e.value&8)!=0&&(t.planar=!0),(e.value&16)!=0&&(t.planar=!0,t.linear=!0);break;case 71:t.degreeOfSplineCurve=e.value;break;case 72:t.numberOfKnots=e.value;break;case 73:t.numberOfControlPoints=e.value;break;case 74:t.numberOfFitPoints=e.value;break;case 210:t.normalVector=P(n);break;default:G(t,e,n);break}e=n.next()}return t}}class ut{constructor(){this.ForEntityName="TEXT"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.startPoint=P(n);break;case 11:t.endPoint=P(n);break;case 40:t.textHeight=e.value;break;case 41:t.xScale=e.value;break;case 50:t.rotation=e.value;break;case 1:t.text=e.value;break;case 72:t.halign=e.value;break;case 73:t.valign=e.value;break;default:G(t,e,n);break}e=n.next()}return t}}var te={exports:{}},dt=te.exports,me;function ft(){return me||(me=1,(function(s){(function(n,e){s.exports?s.exports=e():n.log=e()})(dt,function(){var n=function(){},e="undefined",t=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),k=["trace","debug","info","warn","error"],i={},g=null;function o(D,I){var x=D[I];if(typeof x.bind=="function")return x.bind(D);try{return Function.prototype.bind.call(x,D)}catch(U){return function(){return Function.prototype.apply.apply(x,[D,arguments])}}}function v(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function V(D){return D==="debug"&&(D="log"),typeof console===e?!1:D==="trace"&&t?v:console[D]!==void 0?o(console,D):console.log!==void 0?o(console,"log"):n}function E(){for(var D=this.getLevel(),I=0;I<k.length;I++){var x=k[I];this[x]=I<D?n:this.methodFactory(x,D,this.name)}if(this.log=this.debug,typeof console===e&&D<this.levels.SILENT)return"No console available for logging"}function w(D){return function(){typeof console!==e&&(E.call(this),this[D].apply(this,arguments))}}function T(D,I,x){return V(D)||w.apply(this,arguments)}function O(D,I){var x=this,U,m,C,F="loglevel";typeof D=="string"?F+=":"+D:typeof D=="symbol"&&(F=void 0);function h(S){var L=(k[S]||"silent").toUpperCase();if(!(typeof window===e||!F)){try{window.localStorage[F]=L;return}catch(W){}try{window.document.cookie=encodeURIComponent(F)+"="+L+";"}catch(W){}}}function d(){var S;if(!(typeof window===e||!F)){try{S=window.localStorage[F]}catch(Q){}if(typeof S===e)try{var L=window.document.cookie,W=encodeURIComponent(F),K=L.indexOf(W+"=");K!==-1&&(S=/^([^;]+)/.exec(L.slice(K+W.length+1))[1])}catch(Q){}return x.levels[S]===void 0&&(S=void 0),S}}function _(){if(!(typeof window===e||!F)){try{window.localStorage.removeItem(F)}catch(S){}try{window.document.cookie=encodeURIComponent(F)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(S){}}}function R(S){var L=S;if(typeof L=="string"&&x.levels[L.toUpperCase()]!==void 0&&(L=x.levels[L.toUpperCase()]),typeof L=="number"&&L>=0&&L<=x.levels.SILENT)return L;throw new TypeError("log.setLevel() called with invalid level: "+S)}x.name=D,x.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},x.methodFactory=I||T,x.getLevel=function(){return C!=null?C:m!=null?m:U},x.setLevel=function(S,L){return C=R(S),L!==!1&&h(C),E.call(x)},x.setDefaultLevel=function(S){m=R(S),d()||x.setLevel(S,!1)},x.resetLevel=function(){C=null,_(),E.call(x)},x.enableAll=function(S){x.setLevel(x.levels.TRACE,S)},x.disableAll=function(S){x.setLevel(x.levels.SILENT,S)},x.rebuild=function(){if(g!==x&&(U=R(g.getLevel())),E.call(x),g===x)for(var S in i)i[S].rebuild()},U=R(g?g.getLevel():"WARN");var z=d();z!=null&&(C=R(z)),E.call(x)}g=new O,g.getLogger=function(I){if(typeof I!="symbol"&&typeof I!="string"||I==="")throw new TypeError("You must supply a name when creating a logger.");var x=i[I];return x||(x=i[I]=new O(I,g.methodFactory)),x};var H=typeof window!==e?window.log:void 0;return g.noConflict=function(){return typeof window!==e&&window.log===g&&(window.log=H),g},g.getLoggers=function(){return i},g.default=g,g})})(te)),te.exports}var pt=ft();const N=Z.getDefaultExportFromCjs(pt);N.setLevel("error");function vt(s){s.registerEntityHandler(We),s.registerEntityHandler(Ye),s.registerEntityHandler(Ze),s.registerEntityHandler(je),s.registerEntityHandler(qe),s.registerEntityHandler(Ke),s.registerEntityHandler(Je),s.registerEntityHandler(Qe),s.registerEntityHandler(et),s.registerEntityHandler(nt),s.registerEntityHandler(ot),s.registerEntityHandler(lt),s.registerEntityHandler(rt),s.registerEntityHandler(ct),s.registerEntityHandler(ut)}class ht{constructor(){this._entityHandlers={},vt(this)}parse(n){return typeof n=="string"?this._parse(n):(console.error("Cannot read dxf source of type `"+typeof n),null)}registerEntityHandler(n){const e=new n;this._entityHandlers[e.ForEntityName]=e}parseSync(n){return this.parse(n)}parseStream(n){let e="";const t=this;return new Promise((k,i)=>{n.on("data",g=>{e+=g}),n.on("end",()=>{try{k(t._parse(e))}catch(g){i(g)}}),n.on("error",g=>{i(g)})})}_parse(n){const e={};let t=0;const k=n.split(/\r\n|\r|\n/g),i=new $e(k);if(!i.hasNext())throw Error("Empty file");const g=this;let o;function v(){for(o=i.next();!i.isEOF();)if(o.code===0&&o.value==="SECTION"){if(o=i.next(),o.code!==2){console.error("Unexpected code %s after 0:SECTION",xe(o)),o=i.next();continue}o.value==="HEADER"?(N.debug("> HEADER"),e.header=V(),N.debug("<")):o.value==="BLOCKS"?(N.debug("> BLOCKS"),e.blocks=E(),N.debug("<")):o.value==="ENTITIES"?(N.debug("> ENTITIES"),e.entities=m(!1),N.debug("<")):o.value==="TABLES"?(N.debug("> TABLES"),e.tables=T(),N.debug("<")):o.value==="EOF"?N.debug("EOF"):N.warn("Skipping section '%s'",o.value)}else o=i.next()}function V(){let h=null,d=null;const _={};for(o=i.next();;){if(Y(o,0,"ENDSEC")){h&&(_[h]=d);break}else o.code===9?(h&&(_[h]=d),h=o.value):o.code===10?d={x:o.value}:o.code===20?d.y=o.value:o.code===30?d.z=o.value:d=o.value;o=i.next()}return o=i.next(),_}function E(){const h={};for(o=i.next();o.value!=="EOF"&&!Y(o,0,"ENDSEC");)if(Y(o,0,"BLOCK")){N.debug("block {");const d=w();N.debug("}"),F(d),d.name?h[d.name]=d:N.error('block with handle "'+d.handle+'" is missing a name.')}else q(o),o=i.next();return h}function w(){const h={};for(o=i.next();o.value!=="EOF";){switch(o.code){case 1:h.xrefPath=o.value,o=i.next();break;case 2:h.name=o.value,o=i.next();break;case 3:h.name2=o.value,o=i.next();break;case 5:h.handle=o.value,o=i.next();break;case 8:h.layer=o.value,o=i.next();break;case 10:h.position=C(o),o=i.next();break;case 67:h.paperSpace=!!(o.value&&o.value==1),o=i.next();break;case 70:o.value!=0&&(h.type=o.value),o=i.next();break;case 100:o=i.next();break;case 330:h.ownerHandle=o.value,o=i.next();break;case 0:if(o.value=="ENDBLK")break;h.entities=m(!0);break;default:q(o),o=i.next()}if(Y(o,0,"ENDBLK")){o=i.next();break}}return h}function T(){const h={};for(o=i.next();o.value!=="EOF"&&!Y(o,0,"ENDSEC");)Y(o,0,"TABLE")?(o=i.next(),U[o.value]?(N.debug(o.value+" Table {"),h[U[o.value].tableName]=H(o),N.debug("}")):N.debug("Unhandled Table "+o.value)):o=i.next();return o=i.next(),h}const O="ENDTAB";function H(h){const d=U[h.value],_={};let R=0;for(o=i.next();!Y(o,0,O);)switch(o.code){case 5:_.handle=o.value,o=i.next();break;case 330:_.ownerHandle=o.value,o=i.next();break;case 100:o.value==="AcDbSymbolTable"||q(o),o=i.next();break;case 70:R=o.value,o=i.next();break;case 0:o.value===d.dxfSymbolName?_[d.tableRecordsProperty]=d.parseTableRecords():(q(o),o=i.next());break;default:q(o),o=i.next()}const z=_[d.tableRecordsProperty];if(z){let S=(()=>{if(z.constructor===Array)return z.length;if(typeof z=="object")return Object.keys(z).length})();R!==S&&N.warn("Parsed "+S+" "+d.dxfSymbolName+"'s but expected "+R)}return o=i.next(),_}function D(){const h=[];let d={};for(N.debug("ViewPort {"),o=i.next();!Y(o,0,O);)switch(o.code){case 2:d.name=o.value,o=i.next();break;case 10:d.lowerLeftCorner=C(o),o=i.next();break;case 11:d.upperRightCorner=C(o),o=i.next();break;case 12:d.center=C(o),o=i.next();break;case 13:d.snapBasePoint=C(o),o=i.next();break;case 14:d.snapSpacing=C(o),o=i.next();break;case 15:d.gridSpacing=C(o),o=i.next();break;case 16:d.viewDirectionFromTarget=C(o),o=i.next();break;case 17:d.viewTarget=C(o),o=i.next();break;case 42:d.lensLength=o.value,o=i.next();break;case 43:d.frontClippingPlane=o.value,o=i.next();break;case 44:d.backClippingPlane=o.value,o=i.next();break;case 45:d.viewHeight=o.value,o=i.next();break;case 50:d.snapRotationAngle=o.value,o=i.next();break;case 51:d.viewTwistAngle=o.value,o=i.next();break;case 79:d.orthographicType=o.value,o=i.next();break;case 110:d.ucsOrigin=C(o),o=i.next();break;case 111:d.ucsXAxis=C(o),o=i.next();break;case 112:d.ucsYAxis=C(o),o=i.next();break;case 110:d.ucsOrigin=C(o),o=i.next();break;case 281:d.renderMode=o.value,o=i.next();break;case 281:d.defaultLightingType=o.value,o=i.next();break;case 292:d.defaultLightingOn=o.value,o=i.next();break;case 330:d.ownerHandle=o.value,o=i.next();break;case 63:case 421:case 431:d.ambientColor=o.value,o=i.next();break;case 0:o.value==="VPORT"&&(N.debug("}"),h.push(d),N.debug("ViewPort {"),d={},o=i.next());break;default:q(o),o=i.next();break}return N.debug("}"),h.push(d),h}function I(){const h={};let d={},_=0,R;for(N.debug("LType {"),o=i.next();!Y(o,0,"ENDTAB");)switch(o.code){case 2:d.name=o.value,R=o.value,o=i.next();break;case 3:d.description=o.value,o=i.next();break;case 73:_=o.value,_>0&&(d.pattern=[]),o=i.next();break;case 40:d.patternLength=o.value,o=i.next();break;case 49:d.pattern.push(o.value),o=i.next();break;case 0:N.debug("}"),_>0&&_!==d.pattern.length&&N.warn("lengths do not match on LTYPE pattern"),h[R]=d,d={},N.debug("LType {"),o=i.next();break;default:o=i.next()}return N.debug("}"),h[R]=d,h}function x(){const h={};let d={},_;for(N.debug("Layer {"),o=i.next();!Y(o,0,"ENDTAB");)switch(o.code){case 2:d.name=o.value,_=o.value,o=i.next();break;case 62:d.visible=o.value>=0,d.colorIndex=Math.abs(o.value),d.color=gt(d.colorIndex),o=i.next();break;case 70:d.frozen=(o.value&1)!=0||(o.value&2)!=0,o=i.next();break;case 0:o.value==="LAYER"&&(N.debug("}"),h[_]=d,N.debug("Layer {"),d={},_=void 0,o=i.next());break;default:q(o),o=i.next();break}return N.debug("}"),h[_]=d,h}const U={VPORT:{tableRecordsProperty:"viewPorts",tableName:"viewPort",dxfSymbolName:"VPORT",parseTableRecords:D},LTYPE:{tableRecordsProperty:"lineTypes",tableName:"lineType",dxfSymbolName:"LTYPE",parseTableRecords:I},LAYER:{tableRecordsProperty:"layers",tableName:"layer",dxfSymbolName:"LAYER",parseTableRecords:x}};function m(h){const d=[],_=h?"ENDBLK":"ENDSEC";for(h||(o=i.next());;)if(o.code===0){if(o.value===_)break;const R=g._entityHandlers[o.value];if(R!=null){N.debug(o.value+" {");const z=R.parseEntity(i,o);o=i.lastReadGroup,N.debug("}"),F(z),d.push(z)}else{N.warn("Unhandled entity "+o.value),o=i.next();continue}}else o=i.next();return _=="ENDSEC"&&(o=i.next()),d}function C(h){const d={};let _=h.code;if(d.x=h.value,_+=10,h=i.next(),h.code!=_)throw new Error("Expected code for point value to be "+_+" but got "+h.code+".");return d.y=h.value,_+=10,h=i.next(),h.code!=_?(i.rewind(),d):(d.z=h.value,d)}function F(h){if(!h)throw new TypeError("entity cannot be undefined or null");h.handle||(h.handle=t++)}return v(),e}}function Y(s,n,e){return s.code===n&&s.value===e}function q(s){N.debug("unhandled group "+xe(s))}function xe(s){return s.code+":"+s.value}function gt(s){return ke[s]}const bt={key:0,class:"my-dxf-viewer__toolbar"},mt={key:0,class:"my-dxf-viewer__loading"},wt={key:1,class:"my-dxf-viewer__error"},kt={key:2,class:"my-dxf-viewer__empty"},xt={key:1,class:"my-dxf-viewer__info"},yt={class:"my-dxf-viewer__info-item"},Et={class:"my-dxf-viewer__info-item"},Vt={class:"my-dxf-viewer__info-item"},Ct=a.defineComponent({__name:"DxfViewer",props:{dxfUrl:{},dxfData:{},width:{default:"100%"},height:{default:"500px"},backgroundColor:{default:"#ffffff"},lineColor:{default:"#000000"},lineWidth:{default:1},showToolbar:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!1},emptyText:{default:"请加载 DXF 文件"}},emits:["load","error"],setup(s,{expose:n,emit:e}){const t=s,k=e,i=a.ref(null),g=a.ref(null),o=a.ref(!1),v=a.ref(""),V=a.ref(null);let E=null,w=null,T=null,O=null,H=null;const D=a.ref(1),I=a.ref({x:0,y:0}),x=a.ref(!1),U=a.ref({x:0,y:0});let m=null;const C=a.computed(()=>({"my-dxf-viewer--loading":o.value,"my-dxf-viewer--error":!!v.value})),F=a.computed(()=>{var l,u,y;return(y=(u=(l=V.value)==null?void 0:l.tables)==null?void 0:u.layer)!=null&&y.layers?Object.keys(V.value.tables.layer.layers).length:0}),h=a.computed(()=>{var l;return(l=V.value)!=null&&l.entities?V.value.entities.length:0}),d=a.computed(()=>{var B;if(!((B=V.value)!=null&&B.header))return"-";const l=V.value.header.$EXTMIN,u=V.value.header.$EXTMAX;if(!l||!u)return"-";const y=(u.x-l.x).toFixed(2),M=(u.y-l.y).toFixed(2);return`${y} × ${M}`}),_=()=>{if(!g.value)return;const l=g.value,u=l.clientWidth,y=l.clientHeight;E=new c.Scene,E.background=new c.Color(t.backgroundColor);const M=u/y,B=1e3;w=new c.OrthographicCamera(-B*M,B*M,B,-B,.1,1e4),w.position.z=100,w.lookAt(0,0,0),T=new c.WebGLRenderer({antialias:!0}),T.setSize(u,y),T.setPixelRatio(window.devicePixelRatio),l.appendChild(T.domElement),O=new c.Group,E.add(O),Q()},R=(l,u)=>{if(!E)return;H&&(E.remove(H),H=null);const y=l||2e4,M=50;H=new c.GridHelper(y,M,4079170,2763306),H.rotation.x=Math.PI/2,u&&H.position.set(u.x,u.y,-.1),H.visible=t.showGrid,E.add(H)},z=l=>ie(null,null,function*(){if(l){o.value=!0,v.value="",V.value=null;try{const u=yield fetch(l);if(!u.ok)throw new Error(`HTTP ${u.status}: ${u.statusText}`);const y=yield u.text(),B=new ht().parseSync(y);if(!B)throw new Error("DXF 解析返回空数据");V.value=B,k("load",B),B.entities&&B.entities.length>0?S(B):(console.warn("DXF 文件中没有实体数据"),v.value="DXF 文件中没有可显示的图形")}catch(u){console.error("DXF 加载/解析错误:",u),v.value=u.message||"加载 DXF 文件失败",k("error",v.value)}finally{o.value=!1}}}),S=l=>{if(!E||!O)return;for(;O.children.length>0;)O.remove(O.children[0]);const u=new c.Color(t.lineColor),y=new Set;l.entities&&l.entities.forEach(M=>{y.add(M.type);const B=W(M,u);B&&O.add(B)}),K()},L=(l,u,y)=>{const M=new c.Vector3().subVectors(u,l),B=M.length(),f=t.lineWidth,r=new c.PlaneGeometry(B,f),p=new c.MeshBasicMaterial({color:y,side:c.DoubleSide}),b=new c.Mesh(r,p),A=new c.Vector3().addVectors(l,u).multiplyScalar(.5);b.position.copy(A);const $=Math.atan2(M.y,M.x);return b.rotation.z=$,b},W=(l,u)=>{var M,B;const y=new c.LineBasicMaterial({color:u});try{if(l.type==="LINE"){const f=new c.Vector3(l.vertices[0].x,l.vertices[0].y,l.vertices[0].z||0),r=new c.Vector3(l.vertices[1].x,l.vertices[1].y,l.vertices[1].z||0);if(t.lineWidth>1)return L(f,r,u);{const p=new c.BufferGeometry,b=new Float32Array([f.x,f.y,f.z,r.x,r.y,r.z]);return p.setAttribute("position",new c.BufferAttribute(b,3)),new c.Line(p,y)}}else if(l.type==="LWPOLYLINE"){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,0))}),l.shape&&f.length>0&&f.push(f[0].clone()),t.lineWidth>1&&f.length>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const b=L(f[p],f[p+1],u);r.add(b)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}else if(l.type==="POLYLINE"){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,r.z||0))}),t.lineWidth>1&&f.length>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const b=L(f[p],f[p+1],u);r.add(b)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}else if(l.type==="CIRCLE"){const f=l.radius,b=new c.EllipseCurve(l.center.x,l.center.y,f,f,0,2*Math.PI,!1,0).getPoints(64);if(t.lineWidth>1){const A=new c.Group;for(let $=0;$<b.length;$++){const X=b[$],j=b[($+1)%b.length],Ve=L(new c.Vector3(X.x,X.y,0),new c.Vector3(j.x,j.y,0),u);A.add(Ve)}return A}else{const A=new c.BufferGeometry().setFromPoints(b);return new c.LineLoop(A,y)}}else if(l.type==="ARC"){const r=new c.EllipseCurve(l.center.x,l.center.y,l.radius,l.radius,l.startAngle,l.endAngle,!1,0).getPoints(50);if(t.lineWidth>1){const p=new c.Group;for(let b=0;b<r.length-1;b++){const A=r[b],$=r[b+1],X=L(new c.Vector3(A.x,A.y,0),new c.Vector3($.x,$.y,0),u);p.add(X)}return p}else{const p=new c.BufferGeometry().setFromPoints(r);return new c.Line(p,y)}}else if(l.type==="SPLINE"){if(l.controlPoints&&l.controlPoints.length>0){const f=[];l.controlPoints.forEach(b=>{f.push(new c.Vector3(b.x,b.y,b.z||0))});const p=new c.CatmullRomCurve3(f).getPoints(50);if(t.lineWidth>1){const b=new c.Group;for(let A=0;A<p.length-1;A++){const $=L(p[A],p[A+1],u);b.add($)}return b}else{const b=new c.BufferGeometry().setFromPoints(p);return new c.Line(b,y)}}}else if(l.type==="ELLIPSE"){const r=new c.EllipseCurve(l.center.x,l.center.y,l.majorAxisEndPoint.x,l.majorAxisEndPoint.y,l.startAngle||0,l.endAngle||Math.PI*2,!1,0).getPoints(64);if(t.lineWidth>1){const p=new c.Group;for(let b=0;b<r.length-1;b++){const A=r[b],$=r[b+1],X=L(new c.Vector3(A.x,A.y,0),new c.Vector3($.x,$.y,0),u);p.add(X)}return p}else{const p=new c.BufferGeometry().setFromPoints(r);return new c.Line(p,y)}}else if(l.type==="POINT"){const f=new c.BufferGeometry,r=new Float32Array([l.position.x,l.position.y,l.position.z||0]);f.setAttribute("position",new c.BufferAttribute(r,3));const p=new c.PointsMaterial({color:u,size:Math.max(t.lineWidth*2,3)});return new c.Points(f,p)}else if(l.type==="TEXT"||l.type==="MTEXT"){const f=l.text||l.string||"";if(!l.startPoint&&!l.position)return null;const r=l.startPoint||l.position,p=l.textHeight||l.height||10,b=new c.CircleGeometry(p*.3,8);b.translate(r.x,r.y,r.z||0);const A=new c.MeshBasicMaterial({color:u,side:c.DoubleSide});return new c.Mesh(b,A)}else if(l.type==="INSERT"){const f=l.name,r=(B=(M=V.value)==null?void 0:M.blocks)==null?void 0:B[f];if(!r||!r.entities||r.entities.length===0)return null;const p=new c.Group,b=l.position||{x:0,y:0,z:0},A=l.xScale!==void 0?{x:l.xScale||1,y:l.yScale||1,z:l.zScale||1}:{x:1,y:1,z:1},$=l.rotation||0;return r.entities.forEach(X=>{const j=W(X,u);j&&(j.position.set(b.x,b.y,b.z||0),j.scale.set(A.x,A.y,A.z),$&&(j.rotation.z=$*Math.PI/180),p.add(j))}),p.children.length>0?p:null}else if(l.type==="DIMENSION"){const f=new c.Group;if(l.definingPoint&&l.anchorPoint){const r=new c.Vector3(l.definingPoint.x,l.definingPoint.y,0),p=new c.Vector3(l.anchorPoint.x,l.anchorPoint.y,0);if(t.lineWidth>1)f.add(L(r,p,u));else{const b=new c.BufferGeometry,A=new Float32Array([r.x,r.y,r.z,p.x,p.y,p.z]);b.setAttribute("position",new c.BufferAttribute(A,3)),f.add(new c.Line(b,y))}}return f.children.length>0?f:null}else if(l.type==="HATCH"){if(l.boundaries&&l.boundaries.length>0){const f=new c.Group;return l.boundaries.forEach(r=>{r.edges&&r.edges.forEach(p=>{const b=W(p,u);b&&f.add(b)})}),f.children.length>0?f:null}return null}else if(l.type==="3DFACE"||l.type==="SOLID"){if(l.vertices&&l.vertices.length>=3){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,r.z||0))}),f.push(f[0].clone()),t.lineWidth>1&&f.length>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const b=L(f[p],f[p+1],u);r.add(b)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}}else{if(l.type==="VERTEX"||l.type==="SEQEND")return null;if(l.type==="ATTRIB"||l.type==="ATTDEF")return null;if(l.type==="LEADER"||l.type==="MLEADER"){if(l.vertices&&l.vertices.length>1){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,r.z||0))}),t.lineWidth>1){const r=new c.Group;for(let p=0;p<f.length-1;p++)r.add(L(f[p],f[p+1],u));return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}return null}else if(l.type==="RAY"||l.type==="XLINE"){if(l.startPoint&&l.unitDirectionVector){const f=new c.Vector3(l.startPoint.x,l.startPoint.y,l.startPoint.z||0),r=new c.Vector3(l.unitDirectionVector.x,l.unitDirectionVector.y,l.unitDirectionVector.z||0),p=f.clone().add(r.multiplyScalar(1e5));if(t.lineWidth>1)return L(f,p,u);{const b=new c.BufferGeometry,A=new Float32Array([f.x,f.y,f.z,p.x,p.y,p.z]);return b.setAttribute("position",new c.BufferAttribute(A,3)),new c.Line(b,y)}}return null}else{if(l.type==="REGION")return null;if(l.type==="BODY"||l.type==="3DSOLID")return null;if(l.type==="SURFACE"||l.type==="PLANESURFACE")return null;if(l.type==="VIEWPORT")return null;if(l.type==="IMAGE")return null;if(l.type==="WIPEOUT")return null;if(l.vertices&&Array.isArray(l.vertices)&&l.vertices.length>0){const f=[];if(l.vertices.forEach(r=>{r&&typeof r=="object"&&r.x!==void 0&&r.y!==void 0&&f.push(new c.Vector3(r.x,r.y,r.z||0))}),f.length>1)if(t.lineWidth>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const b=L(f[p],f[p+1],u);r.add(b)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}if(l.startPoint&&l.endPoint){const f=new c.Vector3(l.startPoint.x,l.startPoint.y,l.startPoint.z||0),r=new c.Vector3(l.endPoint.x,l.endPoint.y,l.endPoint.z||0);if(t.lineWidth>1)return L(f,r,u);{const p=new c.BufferGeometry,b=new Float32Array([f.x,f.y,f.z,r.x,r.y,r.z]);return p.setAttribute("position",new c.BufferAttribute(b,3)),new c.Line(p,y)}}if(l.center&&l.radius){const r=new c.EllipseCurve(l.center.x,l.center.y,l.radius,l.radius,0,2*Math.PI,!1,0).getPoints(64);if(t.lineWidth>1){const p=new c.Group;for(let b=0;b<r.length;b++){const A=r[b],$=r[(b+1)%r.length],X=L(new c.Vector3(A.x,A.y,0),new c.Vector3($.x,$.y,0),u);p.add(X)}return p}else{const p=new c.BufferGeometry().setFromPoints(r);return new c.LineLoop(p,y)}}console.warn(`无法渲染实体类型 ${l.type},缺少必要的几何信息`)}}}catch(f){console.warn(`创建实体失败 (${l.type}):`,f,l)}return null},K=()=>{if(!w||!O||!T)return;const l=new c.Box3().setFromObject(O);if(l.isEmpty()){console.warn("没有实体,无法适应视图");return}const u=l.getSize(new c.Vector3),y=l.getCenter(new c.Vector3),M=Math.max(u.x,u.y),B=T.domElement.clientWidth/T.domElement.clientHeight,f=M*.6;w.left=-f*B,w.right=f*B,w.top=f,w.bottom=-f,w.position.set(y.x,y.y,100),w.lookAt(y.x,y.y,0),w.updateProjectionMatrix();const r=Math.max(M*1.5,1e3);R(r,y),D.value=1,I.value={x:0,y:0}},Q=()=>{!T||!E||!w||(requestAnimationFrame(Q),T.render(E,w))},ne=()=>{if(!w)return;const l=.8;w.left*=l,w.right*=l,w.top*=l,w.bottom*=l,w.updateProjectionMatrix(),D.value/=l},oe=()=>{if(!w)return;const l=1.25;w.left*=l,w.right*=l,w.top*=l,w.bottom*=l,w.updateProjectionMatrix(),D.value/=l},re=()=>{K()},ye=()=>{H&&(H.visible=!H.visible)},ce=l=>{x.value=!0,U.value={x:l.clientX,y:l.clientY}},ue=l=>{if(!x.value||!w||!T)return;const u=l.clientX-U.value.x,y=l.clientY-U.value.y,M=-u/T.domElement.clientWidth*(w.right-w.left),B=y/T.domElement.clientHeight*(w.top-w.bottom);w.position.x+=M,w.position.y+=B,w.updateProjectionMatrix(),U.value={x:l.clientX,y:l.clientY}},ee=()=>{x.value=!1},de=l=>{l.preventDefault(),l.deltaY<0?ne():oe()},ae=()=>{if(!g.value||!w||!T)return;const l=g.value.clientWidth,u=g.value.clientHeight;if(l<=0||u<=0)return;const y=l/u,M=(w.top-w.bottom)/2,B=M*y;w.left=-B,w.right=B,w.top=M,w.bottom=-M,w.updateProjectionMatrix(),T.setSize(l,u),T.setPixelRatio(window.devicePixelRatio)},Ee=()=>{if(T&&(T.dispose(),g.value&&T.domElement&&g.value.removeChild(T.domElement)),O){const l=u=>{u.geometry&&u.geometry.dispose(),u.material&&(Array.isArray(u.material)?u.material.forEach(y=>y.dispose()):u.material.dispose()),u.children&&u.children.forEach(y=>l(y))};O.children.forEach(u=>{l(u)})}E=null,w=null,T=null,O=null,H=null};return a.watch(()=>t.dxfUrl,l=>{l&&z(l)},{immediate:!0}),a.watch(()=>t.dxfData,l=>{l&&(V.value=l,S(l))},{immediate:!0}),a.watch(()=>t.backgroundColor,l=>{E&&(E.background=new c.Color(l))}),a.watch(()=>t.lineColor,()=>{V.value&&S(V.value)}),a.watch(()=>t.lineWidth,()=>{V.value&&S(V.value)}),a.watch(()=>t.showGrid,l=>{H&&(H.visible=l)}),a.onMounted(()=>{if(_(),window.addEventListener("resize",ae),g.value&&(m=new ResizeObserver(l=>{for(const u of l)u.target===g.value&&ae()}),m.observe(g.value)),g.value){const l=g.value;l.addEventListener("mousedown",ce),l.addEventListener("mousemove",ue),l.addEventListener("mouseup",ee),l.addEventListener("mouseleave",ee),l.addEventListener("wheel",de,{passive:!1})}}),a.onBeforeUnmount(()=>{if(Ee(),window.removeEventListener("resize",ae),m&&g.value&&(m.unobserve(g.value),m.disconnect(),m=null),g.value){const l=g.value;l.removeEventListener("mousedown",ce),l.removeEventListener("mousemove",ue),l.removeEventListener("mouseup",ee),l.removeEventListener("mouseleave",ee),l.removeEventListener("wheel",de)}}),n({loadDxf:z,zoomIn:ne,zoomOut:oe,resetView:re,fitToView:K}),(l,u)=>{var y;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["my-dxf-viewer",C.value])},[s.showToolbar?(a.openBlock(),a.createElementBlock("div",bt,[a.createElementVNode("button",{class:"my-dxf-viewer__btn",onClick:ne,title:"放大"},[...u[0]||(u[0]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})],-1)])]),a.createElementVNode("button",{class:"my-dxf-viewer__btn",onClick:oe,title:"缩小"},[...u[1]||(u[1]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M19,13H5V11H19V13Z"})],-1)])]),a.createElementVNode("button",{class:"my-dxf-viewer__btn",onClick:re,title:"适应窗口"},[...u[2]||(u[2]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M9,3V4H4V9H3V4A1,1 0 0,1 4,3H9M4,20H9V21H4A1,1 0 0,1 3,20V15H4V20M20,20V15H21V20A1,1 0 0,1 20,21H15V20H20M20,9H21V4A1,1 0 0,1 20,3H15V4H20V9Z"})],-1)])]),a.createElementVNode("button",{class:a.normalizeClass(["my-dxf-viewer__btn",{active:t.showGrid&&((y=a.unref(H))==null?void 0:y.visible)}]),onClick:ye,title:"显示/隐藏网格"},[...u[3]||(u[3]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2Z"})],-1)])],2)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"my-dxf-viewer__canvas-wrapper",ref_key:"containerRef",ref:i},[a.createElementVNode("div",{ref_key:"canvasContainerRef",ref:g,class:"my-dxf-viewer__three-container"},null,512),o.value?(a.openBlock(),a.createElementBlock("div",mt,[...u[4]||(u[4]=[a.createElementVNode("div",{class:"my-dxf-viewer__spinner"},null,-1),a.createElementVNode("p",null,"解析 DXF 文件中...",-1)])])):a.createCommentVNode("",!0),v.value?(a.openBlock(),a.createElementBlock("div",wt,[u[5]||(u[5]=a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor"},[a.createElementVNode("path",{d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"})],-1)),a.createElementVNode("p",null,a.toDisplayString(v.value),1)])):a.createCommentVNode("",!0),!s.dxfUrl&&!v.value&&!o.value?(a.openBlock(),a.createElementBlock("div",kt,[u[6]||(u[6]=a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"64",height:"64",fill:"currentColor"},[a.createElementVNode("path",{d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"})],-1)),a.createElementVNode("p",null,a.toDisplayString(s.emptyText),1)])):a.createCommentVNode("",!0)],512),s.showInfo&&V.value?(a.openBlock(),a.createElementBlock("div",xt,[a.createElementVNode("div",yt,[u[7]||(u[7]=a.createElementVNode("span",null,"图层:",-1)),a.createElementVNode("span",null,a.toDisplayString(F.value),1)]),a.createElementVNode("div",Et,[u[8]||(u[8]=a.createElementVNode("span",null,"实体:",-1)),a.createElementVNode("span",null,a.toDisplayString(h.value),1)]),a.createElementVNode("div",Vt,[u[9]||(u[9]=a.createElementVNode("span",null,"边界:",-1)),a.createElementVNode("span",null,a.toDisplayString(d.value),1)])])):a.createCommentVNode("",!0)],2)}}}),_t=Z._export_sfc(Ct,[["__scopeId","data-v-37660f6e"]]),Lt={key:0,class:"data-panel__header"},Nt={class:"data-panel__title"},Pt={key:0,class:"data-panel__icon"},St={class:"icon-placeholder"},Dt={class:"data-panel__content"},Ft={class:"data-panel__label"},Bt={class:"data-panel__value-wrapper"},At={class:"data-panel__value"},Tt={key:0,class:"data-panel__unit"},Mt={key:0,class:"data-panel__status"},It={class:"status-text"},Ot={key:1,class:"data-panel__description"},Ht={key:0},Rt={key:1},zt={key:2},$t={key:1,class:"data-panel__footer"},Gt={name:"MyDataPanel"},Ut=a.defineComponent(se(le({},Gt),{props:{title:{},dataItems:{},columns:{default:3},showIcon:{type:Boolean,default:!0},theme:{default:"light"},size:{default:"medium"},compact:{type:Boolean,default:!1}},setup(s){const n=s,e=a.computed(()=>[`data-panel--${n.theme}`,`data-panel--${n.size}`,n.compact&&"data-panel--compact"]),t=a.computed(()=>({gridTemplateColumns:`repeat(${n.columns}, 1fr)`})),k=v=>{if(v.customStatus)return v.customStatus;const V=Number(v.value);return isNaN(V)?"normal":v.min!==void 0&&V<v.min||v.max!==void 0&&V>v.max?"danger":v.warnMin!==void 0&&V<v.warnMin||v.warnMax!==void 0&&V>v.warnMax?"warning":"normal"},i=v=>{const V=k(v);return{normal:"正常",warning:"警告",danger:"异常"}[V]},g=v=>typeof v=="string"?v:v.toFixed(2),o=v=>[`data-panel__item--${k(v)}`];return(v,V)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["data-panel",e.value])},[s.title||v.$slots.title?(a.openBlock(),a.createElementBlock("div",Lt,[a.renderSlot(v.$slots,"title",{},()=>[a.createElementVNode("h3",Nt,a.toDisplayString(s.title),1)],!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"data-panel__grid",style:a.normalizeStyle(t.value)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.dataItems,(E,w)=>(a.openBlock(),a.createElementBlock("div",{key:w,class:a.normalizeClass(["data-panel__item",o(E)])},[E.icon||s.showIcon?(a.openBlock(),a.createElementBlock("div",Pt,[a.renderSlot(v.$slots,"icon",{item:E},()=>[a.createElementVNode("span",St,a.toDisplayString(E.icon||"📊"),1)],!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",Dt,[a.createElementVNode("div",Ft,a.toDisplayString(E.label),1),a.createElementVNode("div",Bt,[a.createElementVNode("span",At,a.toDisplayString(g(E.value)),1),E.unit?(a.openBlock(),a.createElementBlock("span",Tt,a.toDisplayString(E.unit),1)):a.createCommentVNode("",!0)]),E.showStatus!==!1?(a.openBlock(),a.createElementBlock("div",Mt,[a.createElementVNode("span",{class:a.normalizeClass(["status-dot",`status-dot--${k(E)}`])},null,2),a.createElementVNode("span",It,a.toDisplayString(i(E)),1)])):a.createCommentVNode("",!0),E.description?(a.openBlock(),a.createElementBlock("div",Ot,a.toDisplayString(E.description),1)):a.createCommentVNode("",!0)]),E.trend?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["data-panel__trend",`trend--${E.trend}`])},[E.trend==="up"?(a.openBlock(),a.createElementBlock("span",Ht,"↑")):a.createCommentVNode("",!0),E.trend==="down"?(a.openBlock(),a.createElementBlock("span",Rt,"↓")):a.createCommentVNode("",!0),E.trend==="stable"?(a.openBlock(),a.createElementBlock("span",zt,"→")):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0)],2))),128))],4),v.$slots.footer?(a.openBlock(),a.createElementBlock("div",$t,[a.renderSlot(v.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)],2))}})),we=Z._export_sfc(Ut,[["__scopeId","data-v-14261ac2"]]);we.install=s=>{s.component("MyDataPanel",we)};const Wt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eDXF查看器%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M3.5,2.15%20L13.5,2.15%20C14.3284271,2.15%2015,2.82157288%2015,3.65%20L15,13.65%20C15,14.4784271%2014.3284271,15.15%2013.5,15.15%20L3.5,15.15%20C2.67157288,15.15%202,14.4784271%202,13.65%20L2,3.65%20C2,2.82157288%202.67157288,2.15%203.5,2.15%20Z%20M13.5,3.4%20L3.5,3.4%20C3.36192881,3.4%203.25,3.51192881%203.25,3.65%20L3.25,13.65%20C3.25,13.7880712%203.36192881,13.9%203.5,13.9%20L13.5,13.9%20C13.6380712,13.9%2013.75,13.7880712%2013.75,13.65%20L13.75,3.65%20C13.75,3.51192881%2013.6380712,3.4%2013.5,3.4%20Z%20M8.5,5.15%20C10.1568542,5.15%2011.5,6.49314575%2011.5,8.15%20C11.5,9.80685425%2010.1568542,11.15%208.5,11.15%20C6.84314575,11.15%205.5,9.80685425%205.5,8.15%20C5.5,6.49314575%206.84314575,5.15%208.5,5.15%20Z%20M8.5,6.4%20C7.53350169,6.4%206.75,7.18350169%206.75,8.15%20C6.75,9.11649831%207.53350169,9.9%208.5,9.9%20C9.46649831,9.9%2010.25,9.11649831%2010.25,8.15%20C10.25,7.18350169%209.46649831,6.4%208.5,6.4%20Z%20M8.5,7.025%20C8.84517797,7.025%209.125,7.30482203%209.125,7.65%20L9.125,8.65%20C9.125,8.99517797%208.84517797,9.275%208.5,9.275%20C8.15482203,9.275%207.875,8.99517797%207.875,8.65%20L7.875,7.65%20C7.875,7.30482203%208.15482203,7.025%208.5,7.025%20Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Xt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eDXF查看器-激活%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20fill='%234A90E2'%20fill-rule='nonzero'%3e%3cpath%20d='M3.5,2.15%20L13.5,2.15%20C14.3284271,2.15%2015,2.82157288%2015,3.65%20L15,13.65%20C15,14.4784271%2014.3284271,15.15%2013.5,15.15%20L3.5,15.15%20C2.67157288,15.15%202,14.4784271%202,13.65%20L2,3.65%20C2,2.82157288%202.67157288,2.15%203.5,2.15%20Z%20M13.5,3.4%20L3.5,3.4%20C3.36192881,3.4%203.25,3.51192881%203.25,3.65%20L3.25,13.65%20C3.25,13.7880712%203.36192881,13.9%203.5,13.9%20L13.5,13.9%20C13.6380712,13.9%2013.75,13.7880712%2013.75,13.65%20L13.75,3.65%20C13.75,3.51192881%2013.6380712,3.4%2013.5,3.4%20Z%20M8.5,5.15%20C10.1568542,5.15%2011.5,6.49314575%2011.5,8.15%20C11.5,9.80685425%2010.1568542,11.15%208.5,11.15%20C6.84314575,11.15%205.5,9.80685425%205.5,8.15%20C5.5,6.49314575%206.84314575,5.15%208.5,5.15%20Z%20M8.5,6.4%20C7.53350169,6.4%206.75,7.18350169%206.75,8.15%20C6.75,9.11649831%207.53350169,9.9%208.5,9.9%20C9.46649831,9.9%2010.25,9.11649831%2010.25,8.15%20C10.25,7.18350169%209.46649831,6.4%208.5,6.4%20Z%20M8.5,7.025%20C8.84517797,7.025%209.125,7.30482203%209.125,7.65%20L9.125,8.65%20C9.125,8.99517797%208.84517797,9.275%208.5,9.275%20C8.15482203,9.275%207.875,8.99517797%207.875,8.65%20L7.875,7.65%20C7.875,7.30482203%208.15482203,7.025%208.5,7.025%20Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Yt={class:"mix-body"},Zt={class:"upload-content"},jt={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},qt={class:"upload-text"},Kt={key:0,class:"upload-hint"},Jt={key:1,class:"viewer-container"},Qt={key:0,class:"file-info"},en={class:"file-name"},tn={DEFAULT_ICON:Wt,ACTIVE_ICON:Xt,NAME_CN:"DXF查看器",NAME_EN:"DXF Viewer",ORDER:3},nn={backgroundColor:"#ffffff",lineColor:"#000000",lineWidth:1,showToolbar:!0,showInfo:!0,showGrid:!1,fileUrl:{value:"",type:"string",label:"component.options.fileUrl",placeholder:"请上传素材"},fileName:{value:"",type:"string",label:"component.options.fileName",placeholder:"请上传素材"}},on=[],an=[],ln=[],sn=null,rn={DEFAULT:tn,OPTIONS:nn,DATA:on,PARAMS:an,SOURCE:ln,COMMON:sn},cn=a.defineComponent(se(le({},rn),{__name:"dxf",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){const n=Be.useCounterStore(),e=s;class t extends Se.BaseComponent{extractStyles(){const C=this.getOptionValue("backgroundColor","#ffffff");return{backgroundColor:C,lineColor:this.getOptionValue("lineColor","#000000"),lineWidth:this.getOptionValue("lineWidth",1),showToolbar:this.getOptionValue("showToolbar",!0),showInfo:this.getOptionValue("showInfo",!0),showGrid:this.getOptionValue("showGrid",!1),bgColor:C,titleColor:"#111",textColor:"#111",radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.Style.value.backgroundColor=this.Style.value.bgColor,w()}}const k=new t(e,"dxf");k.setupLifecycle();const i=k.getStyle(),g=a.ref(null),o=a.ref(null),v=a.ref(""),V=a.ref(""),E=a.ref(!1),w=()=>{var C,F,h;const{conf:m}=e;(F=(C=m==null?void 0:m.options)==null?void 0:C.fileUrl)!=null&&F.value&&(v.value=m.options.fileUrl.value,V.value=((h=m.options.fileName)==null?void 0:h.value)||"")},T=()=>{var m;(m=g.value)==null||m.click()},O=m=>ie(null,null,function*(){var d,_,R;const C=m.target,F=(d=C==null?void 0:C.files)==null?void 0:d[0];if(!F)return;if(!F.name.toLowerCase().endsWith(".dxf")){J.ElMessage.warning("请选择 DXF 文件");return}v.value&&v.value.startsWith("blob:")&&URL.revokeObjectURL(v.value);const h=URL.createObjectURL(F);v.value=h,V.value=F.name;try{E.value=!0;const z=yield Z.fileToDataUrl(F),S=Z.getFileExtension(F.name),L=yield De.api.post("upload",{dashboard_uid:n.pageData.id,file_data:z,file_type:S,user_id:((_=n.session.userInfo)==null?void 0:_.id)||""},!0);if(L.code===200&&((R=L.result)!=null&&R.relative_path)){const W=Fe.FILE_URL+L.result.relative_path;URL.revokeObjectURL(h),v.value=W,e.conf&&e.conf.options&&(e.conf.options.fileUrl||(e.conf.options.fileUrl={value:"",type:"string",label:""}),e.conf.options.fileName||(e.conf.options.fileName={value:"",type:"string",label:""}),e.conf.options.fileUrl.value=W,e.conf.options.fileName.value=L.result.file_name||F.name),J.ElMessage.success("DXF文件上传成功")}else throw new Error(L.msg||"上传失败")}catch(z){console.error("DXF文件上传失败:",z),J.ElMessage.error("DXF文件上传失败: "+((z==null?void 0:z.message)||"未知错误"))}finally{E.value=!1,g.value&&(g.value.value="")}}),H=()=>{v.value&&URL.revokeObjectURL(v.value),v.value="",V.value="",setTimeout(()=>{T()},100)},D=m=>{console.log("DXF 文件加载成功:",m)},I=m=>{console.error("DXF 文件加载失败:",m),J.ElMessage.error("DXF 文件加载失败: "+((m==null?void 0:m.message)||"未知错误"))},x=m=>{m.preventDefault(),m.stopPropagation()},U=m=>{var h;m.preventDefault(),m.stopPropagation();const F=(h=m.dataTransfer)==null?void 0:h.files;if(F&&F.length>0){const d=F[0];if(d.name.toLowerCase().endsWith(".dxf")){if(g.value){const _=new DataTransfer;_.items.add(d),g.value.files=_.files,O({target:g.value})}}else J.ElMessage.warning("请选择 DXF 文件")}};return a.onMounted(()=>{if(e.mode!=="preview"){const m=document.querySelector(".upload-area");m&&(m.addEventListener("dragover",x),m.addEventListener("drop",U))}}),a.onBeforeUnmount(()=>{v.value&&URL.revokeObjectURL(v.value);const m=document.querySelector(".upload-area");m&&(m.removeEventListener("dragover",x),m.removeEventListener("drop",U))}),(m,C)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({borderRadius:`${a.unref(i).radiusSize}px`})},[a.createElementVNode("div",Yt,[v.value?(a.openBlock(),a.createElementBlock("div",Jt,[e.mode!=="preview"?(a.openBlock(),a.createElementBlock("div",Qt,[a.createElementVNode("span",en,a.toDisplayString(V.value),1),a.createElementVNode("button",{class:"change-file-btn",onClick:H,title:"更换文件"},[...C[2]||(C[2]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[a.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])):a.createCommentVNode("",!0),a.createVNode(a.unref(_t),{ref_key:"viewerRef",ref:o,"dxf-url":v.value,width:"100%",height:"100%","background-color":a.unref(i).backgroundColor,"line-color":a.unref(i).lineColor,"line-width":a.unref(i).lineWidth,"show-toolbar":a.unref(i).showToolbar,"show-info":a.unref(i).showInfo,"show-grid":a.unref(i).showGrid,onLoad:D,onError:I},null,8,["dxf-url","background-color","line-color","line-width","show-toolbar","show-info","show-grid"])])):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["upload-area",{"preview-mode":e.mode==="preview"}]),onClick:C[0]||(C[0]=F=>e.mode!=="preview"&&T())},[a.createElementVNode("input",{ref_key:"fileInputRef",ref:g,type:"file",accept:".dxf",onChange:O,style:{display:"none"}},null,544),a.createElementVNode("div",Zt,[(a.openBlock(),a.createElementBlock("svg",jt,[...C[1]||(C[1]=[a.createElementVNode("path",{d:"M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z"},null,-1)])])),a.createElementVNode("p",qt,a.toDisplayString(e.mode==="preview"?m.$t("component.dxf.noFile"):m.$t("component.dxf.uploadText")),1),e.mode!=="preview"?(a.openBlock(),a.createElementBlock("p",Kt,a.toDisplayString(m.$t("component.dxf.uploadHint")),1)):a.createCommentVNode("",!0)])],2))]),a.renderSlot(m.$slots,"default",{},void 0,!0)],4))}})),un=Z._export_sfc(cn,[["__scopeId","data-v-b94225c8"]]);exports.default=un;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
var E = Object.defineProperty, v = Object.defineProperties;
|
|
2
|
+
var L = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var D = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var g = (o, e, i) => e in o ? E(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i, d = (o, e) => {
|
|
6
|
+
for (var i in e || (e = {}))
|
|
7
|
+
D.call(e, i) && g(o, i, e[i]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var i of C(e))
|
|
10
|
+
w.call(e, i) && g(o, i, e[i]);
|
|
11
|
+
return o;
|
|
12
|
+
}, p = (o, e) => v(o, L(e));
|
|
13
|
+
import { defineComponent as F, computed as $, openBlock as N, createElementBlock as R, normalizeStyle as b, unref as u, createElementVNode as f, toDisplayString as T, renderSlot as I } from "vue";
|
|
14
|
+
import { C as _, a as j, c as k } from "./element-resize-detector-DJcsrJ8s.js";
|
|
15
|
+
import { _ as M } from "./index-kShjySl9.js";
|
|
16
|
+
import { E as V } from "./EChartComponentBase-BQOhWkz2.js";
|
|
17
|
+
import { g as U } from "./titleStyle-BT5GlpAb.js";
|
|
18
|
+
import { A as B, D as G } from "./ele-dzc-icon-D6eVpaHp.js";
|
|
19
|
+
import { i as P } from "./installMarkLine-BgE0YACE.js";
|
|
20
|
+
import { i as H } from "./install-CBde4hAM.js";
|
|
21
|
+
import { i as Z } from "./install-Cx1i_m0k.js";
|
|
22
|
+
import { i as q } from "./install-B0x4IqQr.js";
|
|
23
|
+
import { i as J } from "./install-hfre7yvV.js";
|
|
24
|
+
import { u as K, i as Q, a as W } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
25
|
+
import { i as X } from "./install-BBrAry2m.js";
|
|
26
|
+
import { i as Y } from "./install-8XfFtnlL.js";
|
|
27
|
+
const tt = { class: "mix-body" }, et = ["id"], ot = {
|
|
28
|
+
DEFAULT_ICON: G,
|
|
29
|
+
ACTIVE_ICON: B,
|
|
30
|
+
NAME_CN: "区段数据",
|
|
31
|
+
NAME_EN: "Section Data",
|
|
32
|
+
ORDER: 4
|
|
33
|
+
}, it = {
|
|
34
|
+
titleColor: "#111",
|
|
35
|
+
textColor: "#111",
|
|
36
|
+
bgColor: "#fff",
|
|
37
|
+
upColor: "#FF9E44",
|
|
38
|
+
downColor: "#FF4683",
|
|
39
|
+
radiusSize: 8,
|
|
40
|
+
textSize: 12,
|
|
41
|
+
top: 20,
|
|
42
|
+
bottom: 40,
|
|
43
|
+
left: 20,
|
|
44
|
+
right: 50,
|
|
45
|
+
points: 100,
|
|
46
|
+
isSmooth: !1,
|
|
47
|
+
isHideTitle: !1
|
|
48
|
+
}, at = [{ name: "参数一", fv: "", object_id: "", upLimit: 80, downLimit: 20 }], st = ["name", "fv", "object_id", "upLimit", "downLimit", "source"], lt = ["mosaic", "statistics", "calculate"], rt = 1, nt = {
|
|
49
|
+
useAlias: !1,
|
|
50
|
+
null: { type: "0", value: "" },
|
|
51
|
+
multiObject: !1,
|
|
52
|
+
source: "mosaic",
|
|
53
|
+
rate: { checked: !1, value: 1 }
|
|
54
|
+
}, ct = { DEFAULT: ot, OPTIONS: it, DATA: at, PARAMS: st, SOURCE: lt, ITEMS: rt, COMMON: nt }, mt = /* @__PURE__ */ F(p(d({}, ct), {
|
|
55
|
+
__name: "dzc",
|
|
56
|
+
props: {
|
|
57
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
58
|
+
uid: { type: String, default: "" },
|
|
59
|
+
mode: { type: String, default: "edit" },
|
|
60
|
+
theme: { type: String, default: "light" }
|
|
61
|
+
},
|
|
62
|
+
setup(o) {
|
|
63
|
+
K([P, H, Z, q, J, Q, X, W, Y]);
|
|
64
|
+
const e = o;
|
|
65
|
+
class i extends V {
|
|
66
|
+
extractStyles() {
|
|
67
|
+
return p(d({}, super.extractStyles()), {
|
|
68
|
+
upColor: this.getOptionValue("upColor", "#FF9E44"),
|
|
69
|
+
downColor: this.getOptionValue("downColor", "#FF4683"),
|
|
70
|
+
isSmooth: this.getOptionValue("isSmooth", !1)
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
getChartOption() {
|
|
74
|
+
const t = this.Style.value, a = this.props.conf.data[0] || {};
|
|
75
|
+
return {
|
|
76
|
+
tooltip: { trigger: "axis", textStyle: { fontSize: t.textSize } },
|
|
77
|
+
legend: { show: !0, data: [a.name || ""], right: 20, top: 0, textStyle: { color: t.textColor, fontSize: t.textSize } },
|
|
78
|
+
grid: { top: t.top, bottom: t.bottom, left: t.left, right: t.right, containLabel: !0 },
|
|
79
|
+
dataZoom: [{ type: "slider", start: 80, end: 100, height: 20, bottom: 15, left: 60, right: 60, textStyle: { color: t.textColor } }, { type: "inside", start: 0, end: 20 }],
|
|
80
|
+
xAxis: [{ type: "category", boundaryGap: !1, data: this.getTimeAxis(), axisLabel: { formatter: (l) => l.includes(" ") ? l.replace(" ", `
|
|
81
|
+
`) : l, color: t.textColor, fontSize: t.textSize }, axisLine: { lineStyle: { color: t.textColor } } }],
|
|
82
|
+
yAxis: { type: "value", boundaryGap: [0, "20%"], splitLine: { lineStyle: { type: "dashed", color: "#e5e5e5" } }, axisLabel: { color: t.textColor, fontSize: t.textSize }, axisLine: { lineStyle: { color: t.textColor } } },
|
|
83
|
+
series: this.formatSeries()
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
formatSeries() {
|
|
87
|
+
const t = this.Style.value, a = this.props.conf.data[0] || {};
|
|
88
|
+
return [{
|
|
89
|
+
name: a.name || "",
|
|
90
|
+
type: "line",
|
|
91
|
+
smooth: t.isSmooth,
|
|
92
|
+
sampling: "average",
|
|
93
|
+
itemStyle: { color: _[0] },
|
|
94
|
+
lineStyle: { color: _[0] },
|
|
95
|
+
markLine: {
|
|
96
|
+
silent: !1,
|
|
97
|
+
lineStyle: { type: "solid" },
|
|
98
|
+
label: { formatter: "{b}", fontSize: t.textSize },
|
|
99
|
+
data: [
|
|
100
|
+
{ name: "上限", yAxis: a.upLimit || 80, lineStyle: { color: t.upColor }, label: { color: t.upColor } },
|
|
101
|
+
{ name: "下限", yAxis: a.downLimit || 20, lineStyle: { color: t.downColor }, label: { color: t.downColor } }
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
data: j({ num: t.points, max: 200, min: 0, mode: this.props.mode, hasDataSource: this.hasData() })
|
|
105
|
+
}];
|
|
106
|
+
}
|
|
107
|
+
setSocketData(t) {
|
|
108
|
+
if (!this.hasData() || !this.chartObj || !t) return;
|
|
109
|
+
const { data: a, common: l } = this.props.conf, z = l.source || "mosaic", s = this.chartObj.getOption();
|
|
110
|
+
a.forEach((r, n) => {
|
|
111
|
+
const c = this.extractDataValue(t, r.fv), x = ["statistics", "calculate"].includes(z) ? t.start_time : t.datetime;
|
|
112
|
+
x != null && (n === 0 && s.xAxis[0].data.push(x), s.series[n].data.push(c));
|
|
113
|
+
});
|
|
114
|
+
const y = k(s.xAxis[0].data, s.series.map((r) => r.data));
|
|
115
|
+
s.xAxis[0].data = y.times.slice(-this.Style.value.points), s.series.forEach((r, n) => {
|
|
116
|
+
var c;
|
|
117
|
+
r.data = ((c = y.data[n]) == null ? void 0 : c.slice(-this.Style.value.points)) || [];
|
|
118
|
+
}), this.updateChart(s);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
const m = new i(e, "dzc");
|
|
122
|
+
m.setupLifecycle();
|
|
123
|
+
const S = m.getStyle(), A = m.getEchartId(), O = $(() => U(e.conf.options));
|
|
124
|
+
return (h, t) => (N(), R("div", {
|
|
125
|
+
class: "mix-component",
|
|
126
|
+
style: b({ background: u(S).bgColor, borderRadius: `${u(S).radiusSize}px` })
|
|
127
|
+
}, [
|
|
128
|
+
f("div", {
|
|
129
|
+
class: "mix-title",
|
|
130
|
+
style: b(O.value)
|
|
131
|
+
}, T(o.conf.caption || o.conf.name), 5),
|
|
132
|
+
f("div", tt, [
|
|
133
|
+
f("div", {
|
|
134
|
+
class: "w-full h-full",
|
|
135
|
+
id: u(A)
|
|
136
|
+
}, null, 8, et)
|
|
137
|
+
]),
|
|
138
|
+
I(h.$slots, "default", {}, void 0, !0)
|
|
139
|
+
], 4));
|
|
140
|
+
}
|
|
141
|
+
})), Et = /* @__PURE__ */ M(mt, [["__scopeId", "data-v-1e186b00"]]);
|
|
142
|
+
export {
|
|
143
|
+
Et as default
|
|
144
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var A=Object.defineProperty,v=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var b=(i,e,l)=>e in i?A(i,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[e]=l,p=(i,e)=>{for(var l in e||(e={}))D.call(e,l)&&b(i,l,e[l]);if(g)for(var l of g(e))q.call(e,l)&&b(i,l,e[l]);return i},S=(i,e)=>v(i,L(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),u=require("./element-resize-detector-Bo5uDQAu.cjs"),N=require("./index-Mh5Dw2sd.cjs"),I=require("./EChartComponentBase-BaQpBzVC.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),O=require("./ele-dzc-icon-h5wOUHF0.cjs"),T=require("./installMarkLine-Bv53Iw9G.cjs"),w=require("./install-DV5cEgNV.cjs"),F=require("./install-z6wShIZI.cjs"),V=require("./install-CIT6k8Ga.cjs"),$=require("./install-CltTFs4e.cjs"),f=require("./installCanvasRenderer-CyhM1Qpl.cjs"),M=require("./install-C8buXQPI.cjs"),j=require("./install-CYwVETsi.cjs"),k={class:"mix-body"},U=["id"],B={DEFAULT_ICON:O.DEFAULT_ICON,ACTIVE_ICON:O.ACTIVE_ICON,NAME_CN:"区段数据",NAME_EN:"Section Data",ORDER:4},P={titleColor:"#111",textColor:"#111",bgColor:"#fff",upColor:"#FF9E44",downColor:"#FF4683",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:50,points:100,isSmooth:!1,isHideTitle:!1},G=[{name:"参数一",fv:"",object_id:"",upLimit:80,downLimit:20}],H=["name","fv","object_id","upLimit","downLimit","source"],Z=["mosaic","statistics","calculate"],J=1,K={useAlias:!1,null:{type:"0",value:""},multiObject:!1,source:"mosaic",rate:{checked:!1,value:1}},Q={DEFAULT:B,OPTIONS:P,DATA:G,PARAMS:H,SOURCE:Z,ITEMS:J,COMMON:K},W=o.defineComponent(S(p({},Q),{__name:"dzc",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){f.use([T.install,w.install,F.install,V.install,$.install,f.install,M.install,f.install$1,j.install]);const e=i;class l extends I.EChartComponentBase{extractStyles(){return S(p({},super.extractStyles()),{upColor:this.getOptionValue("upColor","#FF9E44"),downColor:this.getOptionValue("downColor","#FF4683"),isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){const t=this.Style.value,a=this.props.conf.data[0]||{};return{tooltip:{trigger:"axis",textStyle:{fontSize:t.textSize}},legend:{show:!0,data:[a.name||""],right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,textStyle:{color:t.textColor}},{type:"inside",start:0,end:20}],xAxis:[{type:"category",boundaryGap:!1,data:this.getTimeAxis(),axisLabel:{formatter:n=>n.includes(" ")?n.replace(" ",`
|
|
2
|
+
`):n,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}}],yAxis:{type:"value",boundaryGap:[0,"20%"],splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}},series:this.formatSeries()}}formatSeries(){const t=this.Style.value,a=this.props.conf.data[0]||{};return[{name:a.name||"",type:"line",smooth:t.isSmooth,sampling:"average",itemStyle:{color:u.COLORS[0]},lineStyle:{color:u.COLORS[0]},markLine:{silent:!1,lineStyle:{type:"solid"},label:{formatter:"{b}",fontSize:t.textSize},data:[{name:"上限",yAxis:a.upLimit||80,lineStyle:{color:t.upColor},label:{color:t.upColor}},{name:"下限",yAxis:a.downLimit||20,lineStyle:{color:t.downColor},label:{color:t.downColor}}]},data:u.getRandomArr({num:t.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()})}]}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:a,common:n}=this.props.conf,_=n.source||"mosaic",s=this.chartObj.getOption();a.forEach((r,c)=>{const d=this.extractDataValue(t,r.fv),C=["statistics","calculate"].includes(_)?t.start_time:t.datetime;C!=null&&(c===0&&s.xAxis[0].data.push(C),s.series[c].data.push(d))});const x=u.addRealtimeData(s.xAxis[0].data,s.series.map(r=>r.data));s.xAxis[0].data=x.times.slice(-this.Style.value.points),s.series.forEach((r,c)=>{var d;r.data=((d=x.data[c])==null?void 0:d.slice(-this.Style.value.points))||[]}),this.updateChart(s)}}const m=new l(e,"dzc");m.setupLifecycle();const h=m.getStyle(),E=m.getEchartId(),z=o.computed(()=>R.generateTitleStyle(e.conf.options));return(y,t)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(h).bgColor,borderRadius:`${o.unref(h).radiusSize}px`})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(z.value)},o.toDisplayString(i.conf.caption||i.conf.name),5),o.createElementVNode("div",k,[o.createElementVNode("div",{class:"w-full h-full",id:o.unref(E)},null,8,U)]),o.renderSlot(y.$slots,"default",{},void 0,!0)],4))}})),X=N._export_sfc(W,[["__scopeId","data-v-1e186b00"]]);exports.default=X;
|