@shjjs/visual-ui 1.0.18 → 1.0.19
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/es/commons/core/useChart.mjs +59 -58
- package/es/commons/{core → plugins}/datasource/index.mjs +5 -5
- package/es/commons/plugins/datasource/utils/utils.d.ts +84 -0
- package/es/commons/plugins/datasource/utils/utils.mjs +156 -0
- package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -0
- package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/invokeAction.mjs +10 -0
- package/es/commons/plugins/event/actions/linkAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/linkAction.mjs +7 -0
- package/es/commons/plugins/event/actions/moveAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/moveAction.mjs +15 -0
- package/es/commons/plugins/event/actions/pageAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/pageAction.mjs +14 -0
- package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/rotateAction.mjs +19 -0
- package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/scaleAction.mjs +24 -0
- package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -0
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -0
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -0
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -0
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -0
- package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -0
- package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/updateVariableAction.mjs +23 -0
- package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/updateWidgetAction.mjs +13 -0
- package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -0
- package/es/commons/plugins/event/index.d.ts +202 -0
- package/es/commons/plugins/event/index.mjs +150 -0
- package/es/commons/plugins/event/utils/utils.d.ts +22 -0
- package/es/commons/plugins/event/utils/utils.mjs +52 -0
- package/es/commons/utils/getNextElement.d.ts +7 -0
- package/es/commons/utils/getNextElement.mjs +12 -0
- package/es/components/chart-bar-animation/index.vue.mjs +24 -23
- package/es/components/chart-bar-basic/index.vue.mjs +24 -23
- package/es/components/chart-bar-contrast/index.vue.mjs +32 -31
- package/es/components/chart-bar-contrast2/index.vue.mjs +23 -22
- package/es/components/chart-bar-contrast3/index.vue.mjs +25 -24
- package/es/components/chart-bar-gradient-column-chart/index.vue.mjs +24 -23
- package/es/components/chart-bar-horizontal/index.vue.mjs +25 -24
- package/es/components/chart-bar-horizontal-stack/index.vue.mjs +25 -24
- package/es/components/chart-bar-line-bar/index.vue.mjs +23 -22
- package/es/components/chart-bar-line-bar2/index.vue.mjs +23 -22
- package/es/components/chart-bar-loop/index.vue.mjs +25 -24
- package/es/components/chart-bar-mini/index.vue.mjs +25 -24
- package/es/components/chart-bar-polar/index.vue.mjs +23 -22
- package/es/components/chart-bar-polar-stack/index.vue.mjs +23 -22
- package/es/components/chart-bar-polar2/index.vue.mjs +23 -22
- package/es/components/chart-bar-radius-circle/index.vue.mjs +23 -22
- package/es/components/chart-bar-rank/index.vue.mjs +25 -24
- package/es/components/chart-bar-segmented-progress/index.vue.mjs +27 -26
- package/es/components/chart-bar-spire/index.vue.mjs +30 -29
- package/es/components/chart-bar-stack/index.vue.mjs +24 -23
- package/es/components/chart-bar-stack-line/index.vue.mjs +23 -22
- package/es/components/chart-bar-stack2/index.vue.mjs +23 -22
- package/es/components/chart-bar-stack3/index.vue.mjs +23 -22
- package/es/components/chart-bar-staggered/index.vue.mjs +23 -22
- package/es/components/chart-bar-three/index.vue.mjs +21 -20
- package/es/components/chart-bar-waterfall/index.vue.mjs +30 -29
- package/es/components/chart-bar-zebra/index.vue.mjs +23 -22
- package/es/components/chart-line-area-gradient/index.vue.mjs +24 -23
- package/es/components/chart-line-area-highlight/index.vue.mjs +23 -22
- package/es/components/chart-line-area-highlight2/index.vue.mjs +23 -22
- package/es/components/chart-line-basic/index.vue.mjs +25 -24
- package/es/components/chart-line-bump/index.vue.mjs +30 -29
- package/es/components/chart-line-dashed/index.vue.mjs +24 -23
- package/es/components/chart-line-ladder/index.vue.mjs +24 -23
- package/es/components/chart-line-logarithm/index.vue.mjs +29 -28
- package/es/components/chart-line-multix/index.vue.mjs +29 -28
- package/es/components/chart-line-polar-double/index.vue.mjs +25 -24
- package/es/components/chart-line-rain-flow/index.vue.mjs +29 -28
- package/es/components/chart-line-scale/index.vue.mjs +24 -23
- package/es/components/chart-line-smooth/index.vue.mjs +24 -23
- package/es/components/chart-line-smooth-area/index.vue.mjs +29 -28
- package/es/components/chart-line-stack/index.vue.mjs +24 -23
- package/es/components/chart-line-stack-area/index.vue.mjs +24 -23
- package/es/components/chart-line-temp/index.vue.mjs +29 -28
- package/es/components/chart-line-vertical/index.vue.mjs +24 -23
- package/es/components/chart-map-basic/index.vue.mjs +29 -28
- package/es/components/chart-map-bmap-basic/index.vue.mjs +25 -24
- package/es/components/chart-map-bmap-heatmap/index.vue.mjs +24 -23
- package/es/components/chart-map-bmap-rich/index.vue.mjs +24 -23
- package/es/components/chart-map-customize/index.vue.mjs +23 -22
- package/es/components/chart-map-lines/index.vue.mjs +24 -23
- package/es/components/chart-map-scatter/index.vue.mjs +24 -23
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +25 -24
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +22 -21
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +22 -21
- package/es/components/chart-other-circular-graph/index.vue.mjs +20 -19
- package/es/components/chart-other-force/index.vue.mjs +22 -21
- package/es/components/chart-other-force2/index.vue.mjs +22 -21
- package/es/components/chart-other-funnel/index.vue.mjs +20 -19
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +20 -19
- package/es/components/chart-other-funnel-split/index.vue.mjs +20 -19
- package/es/components/chart-other-funnel2/index.vue.mjs +20 -19
- package/es/components/chart-other-gauge/index.vue.mjs +20 -19
- package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -19
- package/es/components/chart-other-gauge-stage/index.vue.mjs +20 -19
- package/es/components/chart-other-graph-basic/index.vue.mjs +21 -20
- package/es/components/chart-other-graph-basic2/index.vue.mjs +21 -20
- package/es/components/chart-other-graph-calendar/index.vue.mjs +21 -20
- package/es/components/chart-other-grid-percentage/index.vue.mjs +25 -24
- package/es/components/chart-other-heatmap/index.vue.mjs +23 -22
- package/es/components/chart-other-label-gauge/index.vue.mjs +30 -29
- package/es/components/chart-other-liquidfill/index.vue.mjs +22 -21
- package/es/components/chart-other-parallel-basic/index.vue.mjs +21 -20
- package/es/components/chart-other-parallel-mul/index.vue.mjs +30 -29
- package/es/components/chart-other-radar/index.vue.mjs +32 -31
- package/es/components/chart-other-radar-stack/index.vue.mjs +23 -22
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-book/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +20 -19
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +22 -21
- package/es/components/chart-other-theme-river/index.vue.mjs +25 -24
- package/es/components/chart-other-tree/index.vue.mjs +20 -19
- package/es/components/chart-other-tree-line/index.vue.mjs +21 -20
- package/es/components/chart-other-treemap/index.vue.mjs +19 -18
- package/es/components/chart-other-treemap-basic/index.vue.mjs +20 -19
- package/es/components/chart-other-word-cloud/index.vue.mjs +18 -17
- package/es/components/chart-pie-3d/index.vue.mjs +25 -24
- package/es/components/chart-pie-basic/index.vue.mjs +23 -22
- package/es/components/chart-pie-basic2/index.vue.mjs +23 -22
- package/es/components/chart-pie-customized/index.vue.mjs +28 -27
- package/es/components/chart-pie-index/index.vue.mjs +22 -21
- package/es/components/chart-pie-interval/index.vue.mjs +22 -21
- package/es/components/chart-pie-legend-scroll/index.vue.mjs +28 -27
- package/es/components/chart-pie-radius/index.vue.mjs +22 -21
- package/es/components/chart-pie-rose/index.vue.mjs +27 -26
- package/es/components/chart-pie-round/index.vue.mjs +27 -26
- package/es/components/chart-pie-semicircle/index.vue.mjs +23 -22
- package/es/components/chart-pie-sunburst/index.vue.mjs +23 -22
- package/es/components/chart-scatter-basic/index.vue.mjs +24 -23
- package/es/components/chart-scatter-basic2/index.vue.mjs +24 -23
- package/es/components/chart-scatter-bubble/index.vue.mjs +25 -24
- package/es/components/chart-scatter-ripples/index.vue.mjs +21 -20
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +22 -21
- package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
- package/es/components/commons-loop-iterator/index.vue2.mjs +39 -38
- package/es/components/commons-product-model/index.vue.mjs +1 -1
- package/es/components/commons-product-model/index.vue2.mjs +40 -39
- package/es/components/commons-three-loader/index.vue.mjs +2 -2
- package/es/components/commons-three-loader/index.vue2.mjs +6 -5
- package/es/components/commons-three-loader3/index.vue.mjs +2 -2
- package/es/components/commons-three-loader3/index.vue2.mjs +60 -59
- package/es/components/commons-weather/index.vue.mjs +2 -2
- package/es/components/commons-weather/index.vue2.mjs +45 -44
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +16 -14
- package/es/components/interaction-input/index.vue.mjs +1 -1
- package/es/components/interaction-input/index.vue2.mjs +56 -55
- package/es/components/interaction-select/index.vue.mjs +1 -1
- package/es/components/interaction-select/index.vue2.mjs +83 -82
- package/es/components/interaction-slider/index.vue.mjs +2 -2
- package/es/components/interaction-slider/index.vue2.mjs +45 -44
- package/es/components/interaction-switch/index.vue.mjs +2 -2
- package/es/components/interaction-switch/index.vue2.mjs +31 -30
- package/es/components/interaction-tabs/index.vue.mjs +2 -2
- package/es/components/interaction-tabs/index.vue2.mjs +31 -30
- package/es/components/interaction-tabs2/index.vue.mjs +2 -2
- package/es/components/interaction-tabs2/index.vue2.mjs +31 -30
- package/es/components/map-earth-basic/index.vue.d.ts +4 -4
- package/es/components/map-earth-basic/index.vue.mjs +30 -29
- package/es/components/map-earth-cool-tech/index.vue.d.ts +0 -2
- package/es/components/map-earth-cool-tech/index.vue.mjs +30 -29
- package/es/components/map-earth-fly-line/index.vue.d.ts +4 -2
- package/es/components/map-earth-fly-line/index.vue.mjs +34 -33
- package/es/components/map-earth-hacker/index.vue.d.ts +4 -2
- package/es/components/map-earth-hacker/index.vue.mjs +29 -28
- package/es/components/map-earth-particle/index.vue.d.ts +4 -2
- package/es/components/map-earth-particle/index.vue.mjs +30 -29
- package/es/components/media-audio/index.vue.mjs +1 -1
- package/es/components/media-audio/index.vue2.mjs +49 -48
- package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
- package/es/components/media-audio-dynamic/index.vue2.mjs +58 -57
- package/es/components/media-flv/index.vue.mjs +40 -39
- package/es/components/media-iframe/index.vue.mjs +2 -2
- package/es/components/media-iframe/index.vue2.mjs +14 -13
- package/es/components/media-image-dynamic/index.vue.mjs +2 -2
- package/es/components/media-image-dynamic/index.vue2.mjs +23 -22
- package/es/components/media-m3u8/index.vue.mjs +39 -38
- package/es/components/media-m3u8-dynamic/index.vue.mjs +54 -53
- package/es/components/media-video/index.vue.mjs +1 -1
- package/es/components/media-video/index.vue2.mjs +38 -37
- package/es/components/media-video-dynamic/index.vue.mjs +1 -1
- package/es/components/media-video-dynamic/index.vue2.mjs +49 -48
- package/es/components/scene-amap2d/index.vue.mjs +1 -1
- package/es/components/scene-amap2d/index.vue2.mjs +107 -104
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +95 -92
- package/es/components/scene-default/index.d.ts +39 -0
- package/es/components/scene-default/index.mjs +7 -0
- package/es/components/scene-default/index.vue.d.ts +40 -0
- package/es/components/scene-default/index.vue.mjs +7 -0
- package/es/components/scene-default/index.vue2.mjs +35 -0
- package/es/components/scene-map3d/index.d.ts +1 -1
- package/es/components/scene-map3d/index.vue.d.ts +1 -1
- package/es/components/scene-map3d/index.vue.mjs +2 -2
- package/es/components/scene-map3d/index.vue2.mjs +129 -126
- package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
- package/es/components/scene-ue-iframe/index.vue2.mjs +19 -18
- package/es/components/scene-ue-shj/index.vue.mjs +1 -1
- package/es/components/scene-ue-shj/index.vue2.mjs +14 -13
- package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
- package/es/components/scene-unity-iframe/index.vue2.mjs +19 -16
- package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
- package/es/components/scene-unity-webgl/index.vue2.mjs +16 -13
- package/es/components/scene-vr/index.vue.mjs +1 -1
- package/es/components/scene-vr/index.vue2.mjs +162 -159
- package/es/components/text-count-down/index.vue.mjs +1 -1
- package/es/components/text-count-down/index.vue2.mjs +34 -33
- package/es/components/text-over-number/index.vue.mjs +2 -2
- package/es/components/text-over-number/index.vue2.mjs +49 -48
- package/es/components/text-real-time/index.vue.mjs +2 -2
- package/es/components/text-real-time/index.vue2.mjs +26 -25
- package/es/components/text-row-scroll/index.vue.mjs +1 -1
- package/es/components/text-row-scroll/index.vue2.mjs +83 -82
- package/es/components/text-table-basic/index.vue.mjs +3 -3
- package/es/components/text-table-basic/index.vue2.mjs +97 -96
- package/es/components/text-table-scroll/index.vue.mjs +1 -1
- package/es/components/text-table-scroll/index.vue2.mjs +96 -95
- package/es/components/text-text-dynamic/index.vue.mjs +1 -1
- package/es/components/text-text-dynamic/index.vue2.mjs +29 -28
- package/es/env.d.ts +0 -2
- package/es/index.d.ts +3 -1
- package/es/index.mjs +351 -345
- package/es/widgets.css +1 -1
- package/lib/commons/core/useChart.js +1 -1
- package/lib/commons/{core → plugins}/datasource/index.js +1 -1
- package/lib/commons/plugins/datasource/utils/utils.js +1 -0
- package/lib/commons/plugins/event/actions/fullScreenAction.js +1 -0
- package/lib/commons/plugins/event/actions/invokeAction.js +1 -0
- package/lib/commons/plugins/event/actions/linkAction.js +1 -0
- package/lib/commons/plugins/event/actions/moveAction.js +1 -0
- package/lib/commons/plugins/event/actions/pageAction.js +1 -0
- package/lib/commons/plugins/event/actions/rotateAction.js +1 -0
- package/lib/commons/plugins/event/actions/scaleAction.js +1 -0
- package/lib/commons/plugins/event/actions/sendApiAction.js +1 -0
- package/lib/commons/plugins/event/actions/ueCommonsWebscoketAction.js +1 -0
- package/lib/commons/plugins/event/actions/ueShjExecMethodAction.js +1 -0
- package/lib/commons/plugins/event/actions/unityIframeExecMethodAction.js +1 -0
- package/lib/commons/plugins/event/actions/unityWebglExecMethodAction.js +1 -0
- package/lib/commons/plugins/event/actions/updatePageAction.js +1 -0
- package/lib/commons/plugins/event/actions/updateVariableAction.js +1 -0
- package/lib/commons/plugins/event/actions/updateWidgetAction.js +1 -0
- package/lib/commons/plugins/event/actions/vrSceneMethodAction.js +1 -0
- package/lib/commons/plugins/event/index.js +9 -0
- package/lib/commons/plugins/event/utils/utils.js +1 -0
- package/lib/commons/utils/getNextElement.js +1 -0
- package/lib/components/chart-bar-animation/index.vue.js +1 -1
- package/lib/components/chart-bar-basic/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast2/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast3/index.vue.js +1 -1
- package/lib/components/chart-bar-gradient-column-chart/index.vue.js +1 -1
- package/lib/components/chart-bar-horizontal/index.vue.js +1 -1
- package/lib/components/chart-bar-horizontal-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-line-bar/index.vue.js +1 -1
- package/lib/components/chart-bar-line-bar2/index.vue.js +1 -1
- package/lib/components/chart-bar-loop/index.vue.js +1 -1
- package/lib/components/chart-bar-mini/index.vue.js +1 -1
- package/lib/components/chart-bar-polar/index.vue.js +1 -1
- package/lib/components/chart-bar-polar-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-polar2/index.vue.js +1 -1
- package/lib/components/chart-bar-radius-circle/index.vue.js +1 -1
- package/lib/components/chart-bar-rank/index.vue.js +1 -1
- package/lib/components/chart-bar-segmented-progress/index.vue.js +1 -1
- package/lib/components/chart-bar-spire/index.vue.js +1 -1
- package/lib/components/chart-bar-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-stack-line/index.vue.js +1 -1
- package/lib/components/chart-bar-stack2/index.vue.js +1 -1
- package/lib/components/chart-bar-stack3/index.vue.js +1 -1
- package/lib/components/chart-bar-staggered/index.vue.js +1 -1
- package/lib/components/chart-bar-three/index.vue.js +1 -1
- package/lib/components/chart-bar-waterfall/index.vue.js +1 -1
- package/lib/components/chart-bar-zebra/index.vue.js +1 -1
- package/lib/components/chart-line-area-gradient/index.vue.js +1 -1
- package/lib/components/chart-line-area-highlight/index.vue.js +1 -1
- package/lib/components/chart-line-area-highlight2/index.vue.js +1 -1
- package/lib/components/chart-line-basic/index.vue.js +1 -1
- package/lib/components/chart-line-bump/index.vue.js +1 -1
- package/lib/components/chart-line-dashed/index.vue.js +1 -1
- package/lib/components/chart-line-ladder/index.vue.js +1 -1
- package/lib/components/chart-line-logarithm/index.vue.js +1 -1
- package/lib/components/chart-line-multix/index.vue.js +1 -1
- package/lib/components/chart-line-polar-double/index.vue.js +1 -1
- package/lib/components/chart-line-rain-flow/index.vue.js +1 -1
- package/lib/components/chart-line-scale/index.vue.js +1 -1
- package/lib/components/chart-line-smooth/index.vue.js +1 -1
- package/lib/components/chart-line-smooth-area/index.vue.js +1 -1
- package/lib/components/chart-line-stack/index.vue.js +1 -1
- package/lib/components/chart-line-stack-area/index.vue.js +1 -1
- package/lib/components/chart-line-temp/index.vue.js +1 -1
- package/lib/components/chart-line-vertical/index.vue.js +1 -1
- package/lib/components/chart-map-basic/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-basic/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-heatmap/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-rich/index.vue.js +1 -1
- package/lib/components/chart-map-customize/index.vue.js +1 -1
- package/lib/components/chart-map-lines/index.vue.js +1 -1
- package/lib/components/chart-map-scatter/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-basic/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-demo/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-shanghai/index.vue.js +1 -1
- package/lib/components/chart-other-circular-graph/index.vue.js +1 -1
- package/lib/components/chart-other-force/index.vue.js +1 -1
- package/lib/components/chart-other-force2/index.vue.js +1 -1
- package/lib/components/chart-other-funnel/index.vue.js +1 -1
- package/lib/components/chart-other-funnel-contrast/index.vue.js +1 -1
- package/lib/components/chart-other-funnel-split/index.vue.js +1 -1
- package/lib/components/chart-other-funnel2/index.vue.js +1 -1
- package/lib/components/chart-other-gauge/index.vue.js +1 -1
- package/lib/components/chart-other-gauge-grade/index.vue.js +1 -1
- package/lib/components/chart-other-gauge-stage/index.vue.js +1 -1
- package/lib/components/chart-other-graph-basic/index.vue.js +1 -1
- package/lib/components/chart-other-graph-basic2/index.vue.js +1 -1
- package/lib/components/chart-other-graph-calendar/index.vue.js +1 -1
- package/lib/components/chart-other-grid-percentage/index.vue.js +1 -1
- package/lib/components/chart-other-heatmap/index.vue.js +1 -1
- package/lib/components/chart-other-label-gauge/index.vue.js +1 -1
- package/lib/components/chart-other-liquidfill/index.vue.js +1 -1
- package/lib/components/chart-other-parallel-basic/index.vue.js +1 -1
- package/lib/components/chart-other-parallel-mul/index.vue.js +1 -1
- package/lib/components/chart-other-radar/index.vue.js +1 -1
- package/lib/components/chart-other-radar-stack/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic2/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic3/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic4/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-book/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-flavors/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-radius/index.vue.js +1 -1
- package/lib/components/chart-other-theme-river/index.vue.js +1 -1
- package/lib/components/chart-other-tree/index.vue.js +1 -1
- package/lib/components/chart-other-tree-line/index.vue.js +1 -1
- package/lib/components/chart-other-treemap/index.vue.js +1 -1
- package/lib/components/chart-other-treemap-basic/index.vue.js +1 -1
- package/lib/components/chart-other-word-cloud/index.vue.js +1 -1
- package/lib/components/chart-pie-3d/index.vue.js +1 -1
- package/lib/components/chart-pie-basic/index.vue.js +1 -1
- package/lib/components/chart-pie-basic2/index.vue.js +1 -1
- package/lib/components/chart-pie-customized/index.vue.js +1 -1
- package/lib/components/chart-pie-index/index.vue.js +1 -1
- package/lib/components/chart-pie-interval/index.vue.js +1 -1
- package/lib/components/chart-pie-legend-scroll/index.vue.js +1 -1
- package/lib/components/chart-pie-radius/index.vue.js +1 -1
- package/lib/components/chart-pie-rose/index.vue.js +1 -1
- package/lib/components/chart-pie-round/index.vue.js +1 -1
- package/lib/components/chart-pie-semicircle/index.vue.js +1 -1
- package/lib/components/chart-pie-sunburst/index.vue.js +1 -1
- package/lib/components/chart-scatter-basic/index.vue.js +1 -1
- package/lib/components/chart-scatter-basic2/index.vue.js +1 -1
- package/lib/components/chart-scatter-bubble/index.vue.js +1 -1
- package/lib/components/chart-scatter-ripples/index.vue.js +1 -1
- package/lib/components/commons-echarts/compileAndRunEcharts.js +6 -6
- package/lib/components/commons-loop-iterator/index.vue.js +1 -1
- package/lib/components/commons-loop-iterator/index.vue2.js +1 -1
- package/lib/components/commons-product-model/index.vue.js +1 -1
- package/lib/components/commons-product-model/index.vue2.js +1 -1
- package/lib/components/commons-three-loader/index.vue.js +1 -1
- package/lib/components/commons-three-loader/index.vue2.js +1 -1
- package/lib/components/commons-three-loader3/index.vue.js +1 -1
- package/lib/components/commons-three-loader3/index.vue2.js +1 -1
- package/lib/components/commons-weather/index.vue.js +1 -1
- package/lib/components/commons-weather/index.vue2.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/interaction-input/index.vue.js +1 -1
- package/lib/components/interaction-input/index.vue2.js +1 -1
- package/lib/components/interaction-select/index.vue.js +1 -1
- package/lib/components/interaction-select/index.vue2.js +1 -1
- package/lib/components/interaction-slider/index.vue.js +1 -1
- package/lib/components/interaction-slider/index.vue2.js +1 -1
- package/lib/components/interaction-switch/index.vue.js +1 -1
- package/lib/components/interaction-switch/index.vue2.js +1 -1
- package/lib/components/interaction-tabs/index.vue.js +1 -1
- package/lib/components/interaction-tabs/index.vue2.js +1 -1
- package/lib/components/interaction-tabs2/index.vue.js +1 -1
- package/lib/components/interaction-tabs2/index.vue2.js +1 -1
- package/lib/components/map-earth-basic/index.vue.js +1 -1
- package/lib/components/map-earth-cool-tech/index.vue.js +1 -1
- package/lib/components/map-earth-fly-line/index.vue.js +1 -1
- package/lib/components/map-earth-hacker/index.vue.js +1 -1
- package/lib/components/map-earth-particle/index.vue.js +1 -1
- package/lib/components/media-audio/index.vue.js +1 -1
- package/lib/components/media-audio/index.vue2.js +1 -1
- package/lib/components/media-audio-dynamic/index.vue.js +1 -1
- package/lib/components/media-audio-dynamic/index.vue2.js +1 -1
- package/lib/components/media-flv/index.vue.js +1 -1
- package/lib/components/media-iframe/index.vue.js +1 -1
- package/lib/components/media-iframe/index.vue2.js +1 -1
- package/lib/components/media-image-dynamic/index.vue.js +1 -1
- package/lib/components/media-image-dynamic/index.vue2.js +1 -1
- package/lib/components/media-m3u8/index.vue.js +1 -1
- package/lib/components/media-m3u8-dynamic/index.vue.js +1 -1
- package/lib/components/media-video/index.vue.js +1 -1
- package/lib/components/media-video/index.vue2.js +1 -1
- package/lib/components/media-video-dynamic/index.vue.js +1 -1
- package/lib/components/media-video-dynamic/index.vue2.js +1 -1
- package/lib/components/scene-amap2d/index.vue.js +1 -1
- package/lib/components/scene-amap2d/index.vue2.js +1 -1
- package/lib/components/scene-amap3d/index.vue.js +1 -1
- package/lib/components/scene-amap3d/index.vue2.js +4 -4
- package/lib/components/scene-default/index.js +1 -0
- package/lib/components/scene-default/index.vue.js +1 -0
- package/lib/components/scene-default/index.vue2.js +1 -0
- package/lib/components/scene-map3d/index.vue.js +1 -1
- package/lib/components/scene-map3d/index.vue2.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue2.js +1 -1
- package/lib/components/scene-ue-shj/index.vue.js +1 -1
- package/lib/components/scene-ue-shj/index.vue2.js +1 -1
- package/lib/components/scene-unity-iframe/index.vue.js +1 -1
- package/lib/components/scene-unity-iframe/index.vue2.js +1 -1
- package/lib/components/scene-unity-webgl/index.vue.js +1 -1
- package/lib/components/scene-unity-webgl/index.vue2.js +1 -1
- package/lib/components/scene-vr/index.vue.js +1 -1
- package/lib/components/scene-vr/index.vue2.js +2 -2
- package/lib/components/text-count-down/index.vue.js +1 -1
- package/lib/components/text-count-down/index.vue2.js +1 -1
- package/lib/components/text-over-number/index.vue.js +1 -1
- package/lib/components/text-over-number/index.vue2.js +1 -1
- package/lib/components/text-real-time/index.vue.js +1 -1
- package/lib/components/text-real-time/index.vue2.js +1 -1
- package/lib/components/text-row-scroll/index.vue.js +1 -1
- package/lib/components/text-row-scroll/index.vue2.js +1 -1
- package/lib/components/text-table-basic/index.vue.js +1 -1
- package/lib/components/text-table-basic/index.vue2.js +1 -1
- package/lib/components/text-table-scroll/index.vue.js +1 -1
- package/lib/components/text-table-scroll/index.vue2.js +1 -1
- package/lib/components/text-text-dynamic/index.vue.js +1 -1
- package/lib/components/text-text-dynamic/index.vue2.js +1 -1
- package/lib/index.js +1 -1
- package/lib/widgets.css +1 -1
- package/package.json +1 -1
- package/es/commons/core/datasource/utils/utils.d.ts +0 -50
- package/es/commons/core/datasource/utils/utils.mjs +0 -123
- package/lib/commons/core/datasource/utils/utils.js +0 -1
- /package/es/commons/{core → plugins}/datasource/index.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.mjs +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/axios.d.ts +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/axios.mjs +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/request.d.ts +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/request.mjs +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/wsManager.d.ts +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/wsManager.mjs +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/api.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/static.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/url.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/variable.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/ws.js +0 -0
- /package/lib/commons/{core → plugins}/datasource/utils/axios.js +0 -0
- /package/lib/commons/{core → plugins}/datasource/utils/request.js +0 -0
- /package/lib/commons/{core → plugins}/datasource/utils/wsManager.js +0 -0
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import
|
|
4
|
-
import { useFps as
|
|
5
|
-
import { World as
|
|
6
|
-
import { initWatch as
|
|
1
|
+
import { defineComponent as P, ref as f, onMounted as Q, onBeforeUnmount as X, computed as Y, watch as b, createElementBlock as d, openBlock as p, normalizeClass as L, createCommentVNode as E, normalizeStyle as m, Fragment as R, renderList as T, createElementVNode as I, toDisplayString as w, unref as Z } from "vue";
|
|
2
|
+
import { cloneDeep as v, isEqual as k } from "lodash";
|
|
3
|
+
import $ from "gsap";
|
|
4
|
+
import { useFps as x } from "@vueuse/core";
|
|
5
|
+
import { World as ee } from "./map3d/map.mjs";
|
|
6
|
+
import { initWatch as te } from "./watch.mjs";
|
|
7
7
|
import "three";
|
|
8
8
|
import "d3-geo";
|
|
9
9
|
import "three/examples/jsm/controls/OrbitControls";
|
|
10
10
|
import "three/examples/jsm/loaders/GLTFLoader";
|
|
11
11
|
import "three/examples/jsm/loaders/DRACOLoader.js";
|
|
12
|
-
import { createHistory as
|
|
12
|
+
import { createHistory as ae } from "./map3d/mini3d/utils/CreateHistory.mjs";
|
|
13
13
|
import "three/examples/jsm/libs/lil-gui.module.min";
|
|
14
14
|
import "three/examples/jsm/utils/BufferGeometryUtils";
|
|
15
15
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
16
|
-
import { SHJDatasourceV2 as oe } from "../../commons/
|
|
17
|
-
import { autoInstallFont as
|
|
18
|
-
|
|
16
|
+
import { SHJDatasourceV2 as oe } from "../../commons/plugins/datasource/index.mjs";
|
|
17
|
+
import { autoInstallFont as H, jsonToCssStyle as O } from "../../commons/utils/json2css.mjs";
|
|
18
|
+
import { SHJParseEvent as i } from "../../commons/plugins/event/index.mjs";
|
|
19
|
+
const le = { class: "value" }, ne = ["onClick"], re = {
|
|
19
20
|
key: 3,
|
|
20
21
|
class: "fps"
|
|
21
|
-
}, ie =
|
|
22
|
+
}, ie = P({ name: "zv-scene-map3d" }), Be = /* @__PURE__ */ P({
|
|
22
23
|
...ie,
|
|
23
24
|
props: {
|
|
24
25
|
basicOption: {},
|
|
@@ -39,149 +40,151 @@ const ae = { class: "value" }, le = ["onClick"], ne = {
|
|
|
39
40
|
"on-return",
|
|
40
41
|
"on-data-change"
|
|
41
42
|
],
|
|
42
|
-
setup(
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
setup(V, { expose: N, emit: j }) {
|
|
44
|
+
const o = V, s = j;
|
|
45
|
+
i.parseEvents(o.useEvents, "on-page-loaded", null);
|
|
46
|
+
const l = f(), C = f(!1), B = f(!1), S = "zerov-map3d-scene", A = "zerov-map3d-scene-wrap", n = new ae(), g = f(!1), y = (e = !0) => {
|
|
47
|
+
l.value.cleanAllBar(), l.value.cleanAllScatter(), l.value.cleanAllFlyLine(), l.value.createAllRegionalLevel(), o.sources && o.sources.length > 0 && oe.parse({
|
|
48
|
+
tId: o.uuid,
|
|
49
|
+
sources: o.sources,
|
|
50
|
+
callback: (a) => {
|
|
48
51
|
try {
|
|
49
|
-
const t =
|
|
50
|
-
t && t.type === "bar" && l.value.createBar(t,
|
|
52
|
+
const t = o.basicOption.widgets && o.basicOption.widgets.find((u) => u._sourceId === a.id);
|
|
53
|
+
t && t.type === "bar" && l.value.createBar(t, a.data[0].data, !0, e), t && t.type === "scatter" && l.value.createScatter(t, a.data[0].data, !0, e), t && t.type === "flyline" && l.value.createFlyLine(t, a.data[0].data, !0, e), t && t.type === "regionalLevel" && l.value.createRegionalLevel(t, a.data[0].data, !0, e), e && (l.value.createBarTimeLine(), l.value.createScatterTimeLine(), l.value.createFlyLineTimeLine(), l.value.createRegionalLevelTimeLine()), s("on-data-change", a), i.parseEvents(o.useEvents, "on-data-change", a);
|
|
51
54
|
} catch {
|
|
52
|
-
|
|
55
|
+
s("on-data-change", null), i.parseEvents(o.useEvents, "on-data-change", null);
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
});
|
|
56
|
-
},
|
|
57
|
-
document.getElementById(
|
|
59
|
+
}, D = () => {
|
|
60
|
+
document.getElementById(S) && document.getElementById(A).removeChild(document.getElementById(S));
|
|
58
61
|
const e = document.createElement("canvas");
|
|
59
|
-
e.id =
|
|
60
|
-
},
|
|
62
|
+
e.id = S, e.className = "zerov-map-3d", e.style.width = "100%", e.style.height = "100%", document.getElementById(A).appendChild(e);
|
|
63
|
+
}, h = (e) => (C.value = !1, B.value = !1, l.value && (l.value.destroy(), l.value = null), D(), new ee(document.getElementById(S), { geoProjectionCenter: [108.55, 36.32] }, e, {
|
|
61
64
|
onAreaMouseover: (t) => {
|
|
62
|
-
|
|
65
|
+
s("on-area-mouseover", t), i.parseEvents(o.useEvents, "on-area-mouseover", t);
|
|
63
66
|
},
|
|
64
67
|
onAreaMouseout: (t) => {
|
|
65
|
-
|
|
68
|
+
s("on-area-mouseout", t), i.parseEvents(o.useEvents, "on-area-mouseout", t);
|
|
66
69
|
},
|
|
67
70
|
onLoadChild: (t) => {
|
|
68
|
-
if (
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
71
|
+
if (s("on-area-click", t), i.parseEvents(o.useEvents, "on-area-click", t), t.adcode !== n.present && o.basicOption.scene.isDrilling && o.basicOption.scene.defaultMapAdcode !== 1) {
|
|
72
|
+
s("on-drill-down", t), i.parseEvents(o.useEvents, "on-drill-down", t);
|
|
73
|
+
const u = v(o.basicOption);
|
|
74
|
+
u.scene.defaultMapAdcode = t.adcode, l.value = h(u), n.push(t.adcode), n.past.length <= 0 ? g.value = !1 : g.value = !0;
|
|
72
75
|
}
|
|
73
76
|
},
|
|
74
77
|
onMapSuccess: () => {
|
|
75
|
-
|
|
78
|
+
C.value = !0, s("on-loaded"), i.parseEvents(o.useEvents, "on-loaded", null);
|
|
76
79
|
},
|
|
77
80
|
onMapAnimationSuccess: () => {
|
|
78
|
-
y(),
|
|
81
|
+
y(), B.value = !0, s("on-animated"), i.parseEvents(o.useEvents, "on-animated", null);
|
|
79
82
|
},
|
|
80
83
|
onClickBar: (t) => {
|
|
81
|
-
|
|
84
|
+
s("on-bar-click", t), i.parseEvents(o.useEvents, "on-bar-click", t);
|
|
82
85
|
},
|
|
83
86
|
onClickScatter: (t) => {
|
|
84
|
-
|
|
87
|
+
s("on-scatter-click", t), i.parseEvents(o.useEvents, "on-scatter-click", t);
|
|
85
88
|
},
|
|
86
89
|
onClickFlyline: (t) => {
|
|
87
|
-
|
|
90
|
+
s("on-flyline-click", t), i.parseEvents(o.useEvents, "on-flyline-click", t);
|
|
88
91
|
}
|
|
89
92
|
}));
|
|
90
|
-
|
|
93
|
+
Q(() => {
|
|
91
94
|
setTimeout(() => {
|
|
92
|
-
l.value =
|
|
95
|
+
l.value = h(o.basicOption), n.push(o.basicOption.scene.defaultMapAdcode), te(o, l, h, y, J);
|
|
93
96
|
}, 0);
|
|
94
|
-
}),
|
|
97
|
+
}), X(() => {
|
|
95
98
|
l.value && l.value.destroy();
|
|
96
99
|
});
|
|
97
|
-
const
|
|
98
|
-
|
|
100
|
+
const F = () => {
|
|
101
|
+
s("on-return", {
|
|
99
102
|
parentAdcode: n.past[n.past.length - 1],
|
|
100
103
|
adcode: n.present
|
|
101
|
-
}),
|
|
104
|
+
}), i.parseEvents(o.useEvents, "on-return", {
|
|
102
105
|
parentAdcode: n.past[n.past.length - 1],
|
|
103
106
|
adcode: n.present
|
|
104
107
|
}), n.undo();
|
|
105
|
-
const e =
|
|
106
|
-
e.scene.defaultMapAdcode = n.present, l.value =
|
|
107
|
-
},
|
|
108
|
-
n.empty(), n.push(
|
|
109
|
-
},
|
|
110
|
-
|
|
108
|
+
const e = v(o.basicOption);
|
|
109
|
+
e.scene.defaultMapAdcode = n.present, l.value = h(e), n.past.length <= 0 ? g.value = !1 : g.value = !0;
|
|
110
|
+
}, J = () => {
|
|
111
|
+
n.empty(), n.push(o.basicOption.scene.defaultMapAdcode), l.value = h(o.basicOption), n.past.length <= 0 ? g.value = !1 : g.value = !0;
|
|
112
|
+
}, U = (e, a, t) => {
|
|
113
|
+
$.timeline().add($.to(l.value.camera.instance.position, {
|
|
111
114
|
duration: 2,
|
|
112
115
|
delay: 0,
|
|
113
116
|
x: e,
|
|
114
|
-
y:
|
|
117
|
+
y: a,
|
|
115
118
|
z: t,
|
|
116
119
|
ease: "circ.out"
|
|
117
120
|
}));
|
|
118
121
|
};
|
|
119
|
-
|
|
122
|
+
N({
|
|
120
123
|
refresh: () => y(),
|
|
121
124
|
refreshView: () => y(),
|
|
122
125
|
refreshData: () => y(),
|
|
123
126
|
// 返回上一级
|
|
124
|
-
goBack: () =>
|
|
127
|
+
goBack: () => F(),
|
|
125
128
|
// 更新相机位置
|
|
126
|
-
setCameraPosition: (e,
|
|
129
|
+
setCameraPosition: (e, a, t) => U(e, a, t)
|
|
127
130
|
});
|
|
128
|
-
const
|
|
129
|
-
if (
|
|
130
|
-
|
|
131
|
-
const
|
|
131
|
+
const _ = x(), W = f(), q = (e) => {
|
|
132
|
+
if (W.value && e) {
|
|
133
|
+
H(o.basicOption.backButtonCss.fontFamily);
|
|
134
|
+
const a = `url(${e.backgroundImage})`;
|
|
132
135
|
return {
|
|
133
|
-
...
|
|
134
|
-
left:
|
|
135
|
-
bottom:
|
|
136
|
-
"background-image":
|
|
136
|
+
...O(e),
|
|
137
|
+
left: o.basicOption.backButtonLeft + "%",
|
|
138
|
+
bottom: o.basicOption.backButtonBottom + "%",
|
|
139
|
+
"background-image": a
|
|
137
140
|
};
|
|
138
141
|
}
|
|
139
142
|
return {};
|
|
140
|
-
}, c =
|
|
143
|
+
}, c = f(v(o.basicOption.widgets)), r = Y(() => {
|
|
141
144
|
try {
|
|
142
|
-
const e = c.value.filter((
|
|
143
|
-
return e.length > 0 ? (
|
|
145
|
+
const e = c.value.filter((a) => a.type === "regionalLevel");
|
|
146
|
+
return e.length > 0 ? (H(e[0].labelStyle.fontFamily), e[0].isHide ? null : e[0]) : null;
|
|
144
147
|
} catch {
|
|
145
148
|
return null;
|
|
146
149
|
}
|
|
147
150
|
});
|
|
148
|
-
|
|
151
|
+
b(() => v(o.basicOption.widgets), (e, a) => {
|
|
149
152
|
try {
|
|
150
|
-
!
|
|
153
|
+
!k(e, a) && l.value && (c.value = v(o.basicOption.widgets));
|
|
151
154
|
} catch {
|
|
152
155
|
}
|
|
153
156
|
}, {
|
|
154
157
|
deep: !0
|
|
155
|
-
}),
|
|
158
|
+
}), b(() => v(c.value.filter((e) => e.type === "bar")), (e, a) => {
|
|
156
159
|
try {
|
|
157
|
-
!
|
|
160
|
+
!k(e, a) && l.value && e.length === a.length && e.forEach((t) => {
|
|
158
161
|
l.value.createBar(t, void 0, !1);
|
|
159
162
|
});
|
|
160
163
|
} catch {
|
|
161
164
|
}
|
|
162
165
|
}, {
|
|
163
166
|
deep: !0
|
|
164
|
-
}),
|
|
167
|
+
}), b(() => v(c.value.filter((e) => e.type === "scatter")), (e, a) => {
|
|
165
168
|
try {
|
|
166
|
-
!
|
|
169
|
+
!k(e, a) && l.value && e.length === a.length && e.forEach((t) => {
|
|
167
170
|
l.value.createScatter(t, void 0, !1);
|
|
168
171
|
});
|
|
169
172
|
} catch {
|
|
170
173
|
}
|
|
171
174
|
}, {
|
|
172
175
|
deep: !0
|
|
173
|
-
}),
|
|
176
|
+
}), b(() => v(c.value.filter((e) => e.type === "flyline")), (e, a) => {
|
|
174
177
|
try {
|
|
175
|
-
!
|
|
178
|
+
!k(e, a) && l.value && e.length === a.length && e.forEach((t) => {
|
|
176
179
|
l.value.createFlyLine(t, void 0, !1);
|
|
177
180
|
});
|
|
178
181
|
} catch {
|
|
179
182
|
}
|
|
180
183
|
}, {
|
|
181
184
|
deep: !0
|
|
182
|
-
}),
|
|
185
|
+
}), b(() => v(c.value.filter((e) => e.type === "regionalLevel")), (e, a) => {
|
|
183
186
|
try {
|
|
184
|
-
!
|
|
187
|
+
!k(e, a) && l.value && e.length === a.length && e.forEach((t) => {
|
|
185
188
|
l.value.createRegionalLevel(t, void 0, !1);
|
|
186
189
|
});
|
|
187
190
|
} catch {
|
|
@@ -189,73 +192,73 @@ const ae = { class: "value" }, le = ["onClick"], ne = {
|
|
|
189
192
|
}, {
|
|
190
193
|
deep: !0
|
|
191
194
|
});
|
|
192
|
-
const
|
|
195
|
+
const G = (e) => {
|
|
193
196
|
try {
|
|
194
197
|
e.isHide === void 0 ? e.isHide = !0 : e.isHide = !e.isHide;
|
|
195
198
|
} catch {
|
|
196
199
|
}
|
|
197
|
-
},
|
|
200
|
+
}, K = () => {
|
|
198
201
|
try {
|
|
199
|
-
const e = c.value.every((
|
|
200
|
-
c.value.forEach((
|
|
202
|
+
const e = c.value.every((a) => !a.isHide);
|
|
203
|
+
c.value.forEach((a) => a.isHide = e);
|
|
201
204
|
} catch {
|
|
202
205
|
}
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
const
|
|
206
|
+
}, M = (e) => {
|
|
207
|
+
H(o.basicOption.widgetControlStyle.fontFamily);
|
|
208
|
+
const a = `url(${e.backgroundImage})`, t = `url(${z(e.hover.backgroundImage)})`, u = `url(${z(e.active.backgroundImage)})`;
|
|
206
209
|
return {
|
|
207
|
-
...
|
|
208
|
-
...
|
|
209
|
-
...
|
|
210
|
-
"background-image":
|
|
210
|
+
...O(e),
|
|
211
|
+
...O(e.hover, "hover"),
|
|
212
|
+
...O(e.active, "active"),
|
|
213
|
+
"background-image": a,
|
|
211
214
|
"--hover-background-image": t,
|
|
212
|
-
"--active-background-image":
|
|
215
|
+
"--active-background-image": u
|
|
213
216
|
};
|
|
214
|
-
},
|
|
215
|
-
return (e,
|
|
217
|
+
}, z = (e) => !e.startsWith("http") && !e.startsWith("//") ? "../" + e : e;
|
|
218
|
+
return (e, a) => (p(), d("div", {
|
|
216
219
|
id: "zerov-map3d-scene-wrap",
|
|
217
|
-
class:
|
|
220
|
+
class: L(["map-3d-wrap", { show: C.value }])
|
|
218
221
|
}, [
|
|
219
|
-
|
|
222
|
+
B.value && g.value && e.basicOption.backButton ? (p(), d("div", {
|
|
220
223
|
key: 0,
|
|
221
224
|
ref_key: "buttonRef",
|
|
222
|
-
ref:
|
|
225
|
+
ref: W,
|
|
223
226
|
class: "return-btn",
|
|
224
|
-
style:
|
|
225
|
-
onClick:
|
|
226
|
-
}, " 返回上一级 ", 4)) :
|
|
227
|
-
|
|
227
|
+
style: m(q(e.basicOption.backButtonCss)),
|
|
228
|
+
onClick: F
|
|
229
|
+
}, " 返回上一级 ", 4)) : E("", !0),
|
|
230
|
+
r.value ? (p(), d("div", {
|
|
228
231
|
key: 1,
|
|
229
232
|
class: "regional-level",
|
|
230
|
-
style:
|
|
231
|
-
left:
|
|
232
|
-
top:
|
|
233
|
-
flexDirection:
|
|
234
|
-
gap:
|
|
235
|
-
fontSize:
|
|
236
|
-
fontFamily:
|
|
237
|
-
fontStyle:
|
|
238
|
-
color:
|
|
239
|
-
"--color-width":
|
|
240
|
-
"--color-height":
|
|
241
|
-
"--color-borderRadius":
|
|
233
|
+
style: m({
|
|
234
|
+
left: r.value.labelStyle.left + "%",
|
|
235
|
+
top: r.value.labelStyle.top + "%",
|
|
236
|
+
flexDirection: r.value.labelStyle.direction,
|
|
237
|
+
gap: r.value.labelStyle.gap + "px",
|
|
238
|
+
fontSize: r.value.labelStyle.fontSize + "px",
|
|
239
|
+
fontFamily: r.value.labelStyle.fontFamily,
|
|
240
|
+
fontStyle: r.value.labelStyle.fontStyle,
|
|
241
|
+
color: r.value.labelStyle.color,
|
|
242
|
+
"--color-width": r.value.labelStyle.colorStyle.width + "px",
|
|
243
|
+
"--color-height": r.value.labelStyle.colorStyle.height + "px",
|
|
244
|
+
"--color-borderRadius": r.value.labelStyle.colorStyle.borderRadius + "px"
|
|
242
245
|
})
|
|
243
246
|
}, [
|
|
244
|
-
(
|
|
245
|
-
key:
|
|
247
|
+
(p(!0), d(R, null, T(r.value.rules, (t, u) => (p(), d("div", {
|
|
248
|
+
key: u,
|
|
246
249
|
class: "item"
|
|
247
250
|
}, [
|
|
248
|
-
|
|
251
|
+
I("div", {
|
|
249
252
|
class: "color",
|
|
250
|
-
style:
|
|
253
|
+
style: m({ backgroundColor: t.color })
|
|
251
254
|
}, null, 4),
|
|
252
|
-
|
|
255
|
+
I("span", le, w(t.label), 1)
|
|
253
256
|
]))), 128))
|
|
254
|
-
], 4)) :
|
|
255
|
-
e.basicOption.widgets.length > 0 && e.basicOption.widgetControlStyle && e.basicOption.widgetControlStyle.show ? (
|
|
257
|
+
], 4)) : E("", !0),
|
|
258
|
+
e.basicOption.widgets.length > 0 && e.basicOption.widgetControlStyle && e.basicOption.widgetControlStyle.show ? (p(), d("div", {
|
|
256
259
|
key: 2,
|
|
257
260
|
class: "widget-control",
|
|
258
|
-
style:
|
|
261
|
+
style: m({
|
|
259
262
|
left: e.basicOption.widgetControlStyle.left + "%",
|
|
260
263
|
top: e.basicOption.widgetControlStyle.top + "%",
|
|
261
264
|
flexDirection: e.basicOption.widgetControlStyle.direction,
|
|
@@ -264,26 +267,26 @@ const ae = { class: "value" }, le = ["onClick"], ne = {
|
|
|
264
267
|
"--widget-height": e.basicOption.widgetControlStyle.height + "px"
|
|
265
268
|
})
|
|
266
269
|
}, [
|
|
267
|
-
|
|
268
|
-
class:
|
|
270
|
+
I("div", {
|
|
271
|
+
class: L(["control-button", {
|
|
269
272
|
active: c.value.every((t) => !t.isHide)
|
|
270
273
|
}]),
|
|
271
|
-
style:
|
|
272
|
-
onClick:
|
|
273
|
-
},
|
|
274
|
-
(
|
|
274
|
+
style: m(M(e.basicOption.widgetControlStyle)),
|
|
275
|
+
onClick: K
|
|
276
|
+
}, w(c.value.every((t) => !t.isHide) ? "隐藏" : "显示") + "/全部 ", 7),
|
|
277
|
+
(p(!0), d(R, null, T(c.value, (t) => (p(), d("div", {
|
|
275
278
|
key: t.id,
|
|
276
|
-
class:
|
|
279
|
+
class: L(["control-button", {
|
|
277
280
|
active: !t.isHide
|
|
278
281
|
}]),
|
|
279
|
-
style:
|
|
280
|
-
onClick: (
|
|
281
|
-
},
|
|
282
|
-
], 4)) :
|
|
283
|
-
e.basicOption.debugger ? (
|
|
282
|
+
style: m(M(e.basicOption.widgetControlStyle)),
|
|
283
|
+
onClick: (u) => G(t)
|
|
284
|
+
}, w(t.name || "-"), 15, ne))), 128))
|
|
285
|
+
], 4)) : E("", !0),
|
|
286
|
+
e.basicOption.debugger ? (p(), d("div", re, " fps:" + w(Z(_)), 1)) : E("", !0)
|
|
284
287
|
], 2));
|
|
285
288
|
}
|
|
286
289
|
});
|
|
287
290
|
export {
|
|
288
|
-
|
|
291
|
+
Be as default
|
|
289
292
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a11ee760"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { defineComponent as i, createElementBlock as w, openBlock as d, createElementVNode as f, onMounted as u, onBeforeUnmount as p } from "vue";
|
|
2
|
+
import { SHJParseEvent as a } from "../../commons/plugins/event/index.mjs";
|
|
3
|
+
const k = { class: "iframe-webscoket" }, b = ["src"], _ = i({ name: "zv-scene-ue-iframe" }), N = /* @__PURE__ */ i({
|
|
4
|
+
..._,
|
|
4
5
|
props: {
|
|
5
6
|
basicOption: {},
|
|
6
7
|
sources: {},
|
|
@@ -9,40 +10,40 @@ const k = { class: "iframe-webscoket" }, b = ["src"], p = a({ name: "zv-scene-ue
|
|
|
9
10
|
isPreview: { type: Boolean }
|
|
10
11
|
},
|
|
11
12
|
emits: ["ue-scoket-on-message"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
return ((o) => {
|
|
15
|
-
let t = 0,
|
|
13
|
+
setup(m, { emit: E }) {
|
|
14
|
+
const n = m, S = E;
|
|
15
|
+
return a.parseEvents(n.useEvents, "on-page-loaded", null), ((o) => {
|
|
16
|
+
let t = 0, c;
|
|
16
17
|
const r = () => {
|
|
17
|
-
window.SHJSceneUEIframeWebscoket && (window.SHJSceneUEIframeWebscoket.onclose = null, window.SHJSceneUEIframeWebscoket.close()), window.SHJSceneUEIframeWebscoket = new WebSocket(o.webSocketUrl), window.SHJSceneUEIframeWebscoket.onmessage = (
|
|
18
|
+
window.SHJSceneUEIframeWebscoket && (window.SHJSceneUEIframeWebscoket.onclose = null, window.SHJSceneUEIframeWebscoket.close()), window.SHJSceneUEIframeWebscoket = new WebSocket(o.webSocketUrl), window.SHJSceneUEIframeWebscoket.onmessage = (s) => {
|
|
18
19
|
try {
|
|
19
|
-
const e = JSON.parse(
|
|
20
|
+
const e = JSON.parse(s.data);
|
|
20
21
|
if (e.type === "ping") return;
|
|
21
22
|
if (!e.data) throw new Error("数据格式异常");
|
|
22
|
-
|
|
23
|
+
S("ue-scoket-on-message", e.data), a.parseEvents(n.useEvents, "ue-scoket-on-message", e.data);
|
|
23
24
|
} catch {
|
|
24
25
|
}
|
|
25
26
|
}, window.SHJSceneUEIframeWebscoket.onopen = () => {
|
|
26
|
-
t = 0, clearTimeout(
|
|
27
|
+
t = 0, clearTimeout(c);
|
|
27
28
|
}, window.SHJSceneUEIframeWebscoket.onerror = () => {
|
|
28
|
-
}, window.SHJSceneUEIframeWebscoket.onclose = (
|
|
29
|
+
}, window.SHJSceneUEIframeWebscoket.onclose = (s) => {
|
|
29
30
|
const e = 3e3 * Math.pow(2, t);
|
|
30
|
-
|
|
31
|
+
c = setTimeout(() => {
|
|
31
32
|
t < 1 / 0 && (t++, r());
|
|
32
33
|
}, e);
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
u(() => {
|
|
36
37
|
if (o.webSocketUrl)
|
|
37
38
|
try {
|
|
38
39
|
r();
|
|
39
40
|
} catch {
|
|
40
41
|
}
|
|
41
|
-
}),
|
|
42
|
+
}), p(() => {
|
|
42
43
|
window.SHJSceneUEIframeWebscoket && window.SHJSceneUEIframeWebscoket.close();
|
|
43
44
|
});
|
|
44
|
-
})(
|
|
45
|
-
|
|
45
|
+
})(n.basicOption), (o, l) => (d(), w("div", k, [
|
|
46
|
+
f("iframe", {
|
|
46
47
|
src: o.basicOption.iframeUrl,
|
|
47
48
|
sandbox: "allow-scripts allow-same-origin",
|
|
48
49
|
style: { width: "100%", height: "100%", border: "0" }
|
|
@@ -51,5 +52,5 @@ const k = { class: "iframe-webscoket" }, b = ["src"], p = a({ name: "zv-scene-ue
|
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
N as default
|
|
55
56
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d1d43031"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as r, createElementBlock as p, openBlock as d, onMounted as v } from "vue";
|
|
2
|
+
import { SHJParseEvent as o } from "../../commons/plugins/event/index.mjs";
|
|
3
|
+
const h = { class: "shj-for-ue" }, f = r({ name: "zv-scene-ue-shj" }), _ = /* @__PURE__ */ r({
|
|
3
4
|
...f,
|
|
4
5
|
props: {
|
|
5
6
|
basicOption: {},
|
|
@@ -8,25 +9,25 @@ const p = { class: "shj-for-ue" }, f = t({ name: "zv-scene-ue-shj" }), m = /* @_
|
|
|
8
9
|
uuid: {}
|
|
9
10
|
},
|
|
10
11
|
emits: ["ue-scene-on-message"],
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
return (() => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
e && e.receivingMethod && (window.ue.interface[e.receivingMethod] = (
|
|
12
|
+
setup(c, { emit: a }) {
|
|
13
|
+
const s = c, i = a;
|
|
14
|
+
return o.parseEvents(s.useEvents, "on-page-loaded", null), (() => {
|
|
15
|
+
v(() => {
|
|
16
|
+
s.useEvents.length > 0 && s.useEvents.forEach((e) => {
|
|
17
|
+
e && e.receivingMethod && (window.ue.interface[e.receivingMethod] = (n) => {
|
|
17
18
|
try {
|
|
18
|
-
if (!JSON.parse(
|
|
19
|
+
if (!JSON.parse(n).data)
|
|
19
20
|
throw new Error("");
|
|
20
|
-
const
|
|
21
|
-
i("ue-scene-on-message", JSON.parse(
|
|
21
|
+
const t = s.useEvents.filter((u) => u.receivingMethod === e.receivingMethod);
|
|
22
|
+
i("ue-scene-on-message", JSON.parse(n).data), o.parseEvents(t, "ue-scene-on-message", JSON.parse(n).data);
|
|
22
23
|
} catch {
|
|
23
24
|
}
|
|
24
25
|
});
|
|
25
26
|
});
|
|
26
27
|
});
|
|
27
|
-
})(), (e,
|
|
28
|
+
})(), (e, n) => (d(), p("div", h));
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
_ as default
|
|
32
33
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c4ee033f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { defineComponent as a, createElementBlock as m, openBlock as u, ref as l, onMounted as d, onBeforeUnmount as p } from "vue";
|
|
2
|
+
import { SHJParseEvent as s } from "../../commons/plugins/event/index.mjs";
|
|
3
|
+
const y = ["src"], w = a({ name: "zv-scene-unity-iframe" }), v = /* @__PURE__ */ a({
|
|
4
|
+
...w,
|
|
4
5
|
props: {
|
|
5
6
|
basicOption: {},
|
|
6
7
|
sources: {},
|
|
@@ -10,26 +11,28 @@ const w = ["src"], y = s({ name: "zv-scene-unity-iframe" }), I = /* @__PURE__ */
|
|
|
10
11
|
disableDrag: { type: Boolean }
|
|
11
12
|
},
|
|
12
13
|
emits: ["unity-scene-on-message"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
setup(o, { emit: i }) {
|
|
15
|
+
const n = o, r = i;
|
|
16
|
+
s.parseEvents(n.useEvents, "on-page-loaded", null);
|
|
17
|
+
const c = () => {
|
|
18
|
+
const e = l();
|
|
19
|
+
return d(() => {
|
|
20
|
+
window.SHJSceneUnityIframeInstance || (window.SHJSceneUnityIframeInstance = {}), window.SHJSceneUnityIframeInstance.url = n.basicOption.iframeUrl, window.SHJSceneUnityIframeInstance.ref = e.value;
|
|
21
|
+
}), p(() => {
|
|
19
22
|
window.SHJSceneUnityIframeInstance = null;
|
|
20
|
-
}), window.addEventListener("message", (
|
|
21
|
-
|
|
23
|
+
}), window.addEventListener("message", (t) => {
|
|
24
|
+
r("unity-scene-on-message", t.data), s.parseEvents(n.useEvents, "unity-scene-on-message", t.data);
|
|
22
25
|
}, !1), { unityIframeRef: e };
|
|
23
|
-
}, { unityIframeRef:
|
|
24
|
-
return (e,
|
|
26
|
+
}, { unityIframeRef: f } = c();
|
|
27
|
+
return (e, t) => (u(), m("iframe", {
|
|
25
28
|
ref_key: "unityIframeRef",
|
|
26
|
-
ref:
|
|
29
|
+
ref: f,
|
|
27
30
|
src: e.basicOption.iframeUrl,
|
|
28
31
|
sandbox: "allow-scripts allow-same-origin",
|
|
29
32
|
style: { width: "100%", height: "100%", border: "0" }
|
|
30
|
-
}, null, 8,
|
|
33
|
+
}, null, 8, y));
|
|
31
34
|
}
|
|
32
35
|
});
|
|
33
36
|
export {
|
|
34
|
-
|
|
37
|
+
v as default
|
|
35
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-761ae9f1"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|