dcim-topology2d 2.2.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/activity-diagram/src/final/final.d.ts +1 -1
 - package/activity-diagram/src/final/final.rect.d.ts +1 -1
 - package/activity-diagram/src/final/final.rect.js +1 -1
 - package/activity-diagram/src/fork/fork.anchor.d.ts +1 -1
 - package/activity-diagram/src/fork/fork.anchor.js +1 -1
 - package/activity-diagram/src/fork/fork.d.ts +1 -1
 - package/activity-diagram/src/fork/fork.rect.d.ts +1 -1
 - package/activity-diagram/src/fork/fork.rect.js +1 -1
 - package/activity-diagram/src/register.js +1 -1
 - package/activity-diagram/src/swimlaneH/swimlaneH.d.ts +1 -1
 - package/activity-diagram/src/swimlaneH/swimlaneH.rect.d.ts +1 -1
 - package/activity-diagram/src/swimlaneH/swimlaneH.rect.js +1 -1
 - package/activity-diagram/src/swimlaneV/swimlaneV.d.ts +1 -1
 - package/activity-diagram/src/swimlaneV/swimlaneV.rect.d.ts +1 -1
 - package/activity-diagram/src/swimlaneV/swimlaneV.rect.js +1 -1
 - package/chart-diagram/index.d.ts +1 -3
 - package/chart-diagram/index.js +1 -2
 - package/chart-diagram/src/echarts/index.d.ts +2 -1
 - package/chart-diagram/src/echarts/index.js +104 -112
 - package/chart-diagram/src/register.js +8 -9
 - package/class-diagram/src/class/class.d.ts +1 -1
 - package/class-diagram/src/class/class.rect.d.ts +1 -1
 - package/class-diagram/src/class/class.rect.js +1 -1
 - package/class-diagram/src/register.js +1 -1
 - package/core/index.d.ts +0 -2
 - package/core/index.js +0 -2
 - package/core/src/activeLayer.d.ts +10 -2
 - package/core/src/activeLayer.js +47 -42
 - package/core/src/animateLayer.d.ts +7 -3
 - package/core/src/animateLayer.js +12 -10
 - package/core/src/calling.d.ts +4 -1
 - package/core/src/calling.js +41 -43
 - package/core/src/canvas.d.ts +6 -1
 - package/core/src/canvas.js +21 -22
 - package/core/src/common.d.ts +7 -6
 - package/core/src/common.js +675 -343
 - package/core/src/core.d.ts +4 -5
 - package/core/src/core.js +385 -536
 - package/core/src/divLayer.d.ts +36 -2
 - package/core/src/divLayer.js +305 -33
 - package/core/src/healps/changeData.d.ts +2 -1
 - package/core/src/healps/changeData.js +100 -86
 - package/core/src/hoverLayer.d.ts +9 -2
 - package/core/src/hoverLayer.js +34 -31
 - package/core/src/middles/default.d.ts +3 -1
 - package/core/src/middles/default.js +51 -63
 - package/core/src/middles/index.js +2 -3
 - package/core/src/middles/nodes/arbitrarygraph.js +9 -11
 - package/core/src/middles/nodes/pentagon.rect.js +1 -1
 - package/core/src/middles/nodes/rectangle.rect.js +1 -1
 - package/core/src/models/data.d.ts +26 -0
 - package/core/src/models/data.js +77 -0
 - package/core/src/models/data.js.map +1 -0
 - package/core/src/models/index.d.ts +1 -0
 - package/core/src/models/index.js +1 -0
 - package/core/src/models/line.js +7 -7
 - package/core/src/models/node.d.ts +0 -10
 - package/core/src/models/node.js +101 -148
 - package/core/src/models/pen.js +67 -27
 - package/core/src/models/rect.js +2 -2
 - package/core/src/mqtt.d.ts +14 -0
 - package/core/src/mqtt.js +82 -0
 - package/core/src/mqtt.js.map +1 -0
 - package/core/src/offscreen.d.ts +4 -1
 - package/core/src/offscreen.js +24 -26
 - package/core/src/options.d.ts +1 -3
 - package/core/src/options.js +0 -2
 - package/core/src/poll.js +39 -0
 - package/core/src/preview.d.ts +13 -2
 - package/core/src/preview.js +43 -144
 - package/core/src/renderLayer.d.ts +9 -11
 - package/core/src/renderLayer.js +61 -60
 - package/core/src/socket.d.ts +10 -0
 - package/core/src/socket.js +51 -0
 - package/core/src/socket.js.map +1 -0
 - package/core/src/utils/canvas.js +1 -1
 - package/core/src/utils/construction.d.ts +3 -36
 - package/core/src/utils/construction.js +1 -29
 - package/core/src/utils/conversion.d.ts +0 -15
 - package/core/src/utils/conversion.js +0 -319
 - package/core/src/utils/dom.d.ts +8 -0
 - package/core/src/utils/dom.js +67 -0
 - package/core/src/utils/dom.js.map +1 -0
 - package/core/src/utils/index.d.ts +1 -2
 - package/core/src/utils/index.js +1 -2
 - package/core/src/utils/onmousevent.d.ts +0 -3
 - package/core/src/utils/onmousevent.js +10 -42
 - package/flow-diagram/src/comment/comment.anchor.d.ts +1 -1
 - package/flow-diagram/src/comment/comment.anchor.js +1 -1
 - package/flow-diagram/src/comment/comment.d.ts +1 -1
 - package/flow-diagram/src/data/data.anchor.d.ts +1 -1
 - package/flow-diagram/src/data/data.anchor.js +1 -1
 - package/flow-diagram/src/data/data.d.ts +1 -1
 - package/flow-diagram/src/data/data.rect.d.ts +1 -1
 - package/flow-diagram/src/data/data.rect.js +1 -1
 - package/flow-diagram/src/db/db.d.ts +1 -1
 - package/flow-diagram/src/db/db.rect.d.ts +1 -1
 - package/flow-diagram/src/db/db.rect.js +1 -1
 - package/flow-diagram/src/display/display.anchor.d.ts +1 -1
 - package/flow-diagram/src/display/display.anchor.js +1 -1
 - package/flow-diagram/src/display/display.d.ts +1 -1
 - package/flow-diagram/src/display/display.rect.d.ts +1 -1
 - package/flow-diagram/src/display/display.rect.js +1 -1
 - package/flow-diagram/src/document/document.anchor.d.ts +1 -1
 - package/flow-diagram/src/document/document.anchor.js +1 -1
 - package/flow-diagram/src/document/document.d.ts +1 -1
 - package/flow-diagram/src/document/document.rect.d.ts +1 -1
 - package/flow-diagram/src/document/document.rect.js +1 -1
 - package/flow-diagram/src/externStorage/externStorage.anchor.d.ts +1 -1
 - package/flow-diagram/src/externStorage/externStorage.anchor.js +1 -1
 - package/flow-diagram/src/externStorage/externStorage.d.ts +1 -1
 - package/flow-diagram/src/externStorage/externStorage.rect.d.ts +1 -1
 - package/flow-diagram/src/externStorage/externStorage.rect.js +1 -1
 - package/flow-diagram/src/internalStorage/internalStorage.d.ts +1 -1
 - package/flow-diagram/src/internalStorage/internalStorage.rect.d.ts +1 -1
 - package/flow-diagram/src/internalStorage/internalStorage.rect.js +1 -1
 - package/flow-diagram/src/manually/manually.anchor.d.ts +1 -1
 - package/flow-diagram/src/manually/manually.anchor.js +1 -1
 - package/flow-diagram/src/manually/manually.d.ts +1 -1
 - package/flow-diagram/src/manually/manually.rect.d.ts +1 -1
 - package/flow-diagram/src/manually/manually.rect.js +1 -1
 - package/flow-diagram/src/parallel/parallel.anchor.d.ts +1 -1
 - package/flow-diagram/src/parallel/parallel.anchor.js +1 -1
 - package/flow-diagram/src/parallel/parallel.d.ts +1 -1
 - package/flow-diagram/src/queue/queue.d.ts +1 -1
 - package/flow-diagram/src/queue/queue.rect.d.ts +1 -1
 - package/flow-diagram/src/queue/queue.rect.js +1 -1
 - package/flow-diagram/src/register.js +1 -1
 - package/flow-diagram/src/subprocess/subprocess.d.ts +1 -1
 - package/flow-diagram/src/subprocess/subprocess.rect.d.ts +1 -1
 - package/flow-diagram/src/subprocess/subprocess.rect.js +1 -1
 - package/layout/src/align.d.ts +1 -1
 - package/layout/src/align.js +1 -1
 - package/layout/src/layout.d.ts +1 -1
 - package/layout/src/layout.js +1 -1
 - package/myShape-diagram/{index.js → myShape.js} +1 -4
 - package/package.json +1 -1
 - package/sequence-diagram/src/focus/focus.anchor.d.ts +1 -1
 - package/sequence-diagram/src/focus/focus.anchor.js +1 -1
 - package/sequence-diagram/src/focus/focus.d.ts +1 -1
 - package/sequence-diagram/src/focus/focus.rect.d.ts +1 -1
 - package/sequence-diagram/src/focus/focus.rect.js +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.anchor.d.ts +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.anchor.js +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.d.ts +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.rect.d.ts +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.rect.js +1 -1
 - package/sequence-diagram/src/register.js +1 -1
 - package/chart-diagram/src/utils/changeOptions.d.ts +0 -8
 - package/chart-diagram/src/utils/changeOptions.js +0 -267
 - package/chart-diagram/src/utils/conversion.d.ts +0 -19
 - package/chart-diagram/src/utils/conversion.js +0 -560
 - package/chart-diagram/src/utils/drawGraphic.d.ts +0 -3
 - package/chart-diagram/src/utils/drawGraphic.js +0 -97
 - package/chart-diagram/src/utils/formatter.d.ts +0 -1
 - package/chart-diagram/src/utils/formatter.js +0 -206
 - package/chart-diagram/src/utils/index.d.ts +0 -5
 - package/chart-diagram/src/utils/index.js +0 -5
 - package/chart-diagram/src/utils/render.d.ts +0 -8
 - package/chart-diagram/src/utils/render.js +0 -219
 - package/chart-diagram/src/utils/surfaceParametricConversion.d.ts +0 -3
 - package/chart-diagram/src/utils/surfaceParametricConversion.js +0 -252
 - package/core/src/element/common.d.ts +0 -6
 - package/core/src/element/common.js +0 -63
 - package/core/src/element/datePicker.d.ts +0 -3
 - package/core/src/element/datePicker.js +0 -44
 - package/core/src/element/iframe.d.ts +0 -3
 - package/core/src/element/iframe.js +0 -12
 - package/core/src/element/index.d.ts +0 -5
 - package/core/src/element/index.js +0 -6
 - package/core/src/element/select.d.ts +0 -11
 - package/core/src/element/select.js +0 -273
 - package/core/src/element/tab.d.ts +0 -1
 - package/core/src/element/tab.js +0 -20
 - package/core/src/element/time.d.ts +0 -3
 - package/core/src/element/time.js +0 -44
 - package/core/src/middles/arrows/index.d.ts +0 -4
 - package/core/src/middles/arrows/index.js +0 -5
 - package/core/src/middles/lines/index.d.ts +0 -4
 - package/core/src/middles/lines/index.js +0 -5
 - package/core/src/middles/nodes/formDatePicker.d.ts +0 -2
 - package/core/src/middles/nodes/formDatePicker.js +0 -107
 - package/core/src/middles/nodes/formoverflow.js +0 -61
 - package/core/src/middles/nodes/formselect.d.ts +0 -2
 - package/core/src/middles/nodes/formselect.js +0 -111
 - package/core/src/middles/nodes/iframe.d.ts +0 -2
 - package/core/src/middles/nodes/iframe.js +0 -29
 - package/core/src/middles/nodes/index.d.ts +0 -51
 - package/core/src/middles/nodes/index.js +0 -53
 - package/core/src/middles/nodes/switchs.d.ts +0 -2
 - package/core/src/middles/nodes/switchs.js +0 -46
 - package/core/src/middles/nodes/time.d.ts +0 -2
 - package/core/src/middles/nodes/time.js +0 -98
 - package/core/src/store/common.d.ts +0 -9
 - package/core/src/store/common.js +0 -5
 - package/core/src/store/data.d.ts +0 -196
 - package/core/src/store/data.js +0 -193
 - package/core/src/store/index.d.ts +0 -2
 - package/core/src/store/index.js +0 -2
 - package/core/src/utils/assignment.d.ts +0 -7
 - package/core/src/utils/assignment.js +0 -216
 - package/core/src/utils/params.d.ts +0 -3
 - package/core/src/utils/params.js +0 -136
 - package/static/echartsDefaultData.js +0 -178
 - package/static/element.js +0 -14
 - package/static/form.js +0 -11
 - package/static/index.js +0 -3
 - package/store/actions.js +0 -1
 - package/store/clear.js +0 -10
 - package/store/default.js +0 -22
 - package/store/index.js +0 -3
 - package/style/common.css +0 -15
 - package/style/datePicker.css +0 -44
 - package/style/editor.css +0 -16
 - package/style/index.css +0 -5
 - package/style/select.css +0 -143
 - /package/myShape-diagram/{index.ts → myShape.ts} +0 -0
 
| 
         @@ -1,560 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import {echartsDataRoom, echartsColorData, rankingTopImageName} from '../../../static';
         
     | 
| 
       2 
     | 
    
         
            -
            import {
         
     | 
| 
       3 
     | 
    
         
            -
                setSeriesRenderGroup,
         
     | 
| 
       4 
     | 
    
         
            -
                drawGraphicShape,
         
     | 
| 
       5 
     | 
    
         
            -
                setChartLegendData,
         
     | 
| 
       6 
     | 
    
         
            -
                setChartXAxisData,
         
     | 
| 
       7 
     | 
    
         
            -
                setChartYAxisData,
         
     | 
| 
       8 
     | 
    
         
            -
                setLineSeriesStyleData,
         
     | 
| 
       9 
     | 
    
         
            -
                setRingPreSeriesOptions,
         
     | 
| 
       10 
     | 
    
         
            -
                setRingProSeriesOptions,
         
     | 
| 
       11 
     | 
    
         
            -
                set3DPieOptions,
         
     | 
| 
       12 
     | 
    
         
            -
                mapFormatterSet,
         
     | 
| 
       13 
     | 
    
         
            -
                set3DPieMouseHover
         
     | 
| 
       14 
     | 
    
         
            -
            } from '../utils';
         
     | 
| 
       15 
     | 
    
         
            -
            import {
         
     | 
| 
       16 
     | 
    
         
            -
                gaugeNormalAuto,
         
     | 
| 
       17 
     | 
    
         
            -
                lineBarDataAuto,
         
     | 
| 
       18 
     | 
    
         
            -
                pieRingAssetTotalAuto,
         
     | 
| 
       19 
     | 
    
         
            -
                pieRingProportionAuto,
         
     | 
| 
       20 
     | 
    
         
            -
                pieRingNormalAuto,
         
     | 
| 
       21 
     | 
    
         
            -
                topRankingListAuto,
         
     | 
| 
       22 
     | 
    
         
            -
                scatterDataAuto,
         
     | 
| 
       23 
     | 
    
         
            -
                barPileStaticDataAuto
         
     | 
| 
       24 
     | 
    
         
            -
            } from './render';
         
     | 
| 
       25 
     | 
    
         
            -
            import {commonStore, echartsStaticType} from "../../../core";
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
            export function getXYAxisLabelVal(index, intervalNum, value) {
         
     | 
| 
       28 
     | 
    
         
            -
                if (index === 0 || index % intervalNum === 0) {
         
     | 
| 
       29 
     | 
    
         
            -
                    return value;
         
     | 
| 
       30 
     | 
    
         
            -
                } else {
         
     | 
| 
       31 
     | 
    
         
            -
                    return '';
         
     | 
| 
       32 
     | 
    
         
            -
                }
         
     | 
| 
       33 
     | 
    
         
            -
            }
         
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
            /**
         
     | 
| 
       36 
     | 
    
         
            -
             * 初始化图表与其他组件关联的配置数据
         
     | 
| 
       37 
     | 
    
         
            -
             * @param node 元件节点
         
     | 
| 
       38 
     | 
    
         
            -
             */
         
     | 
| 
       39 
     | 
    
         
            -
            export function initBindCorrelationSetting(node) {
         
     | 
| 
       40 
     | 
    
         
            -
                if(!node.data.params || node.data.params.staticForType !== 'OTHER') return null;
         
     | 
| 
       41 
     | 
    
         
            -
                const tabStaticKey = node.tags && node.tags.find((tag) => {return tag.includes('switchTabType')});
         
     | 
| 
       42 
     | 
    
         
            -
                if(!tabStaticKey) return null; // 与tabs关联?
         
     | 
| 
       43 
     | 
    
         
            -
                const switchTabData = tabStaticKey && commonStore[node.TID].switchTabDataPool[`${tabStaticKey}Data`];
         
     | 
| 
       44 
     | 
    
         
            -
                if(switchTabData) {
         
     | 
| 
       45 
     | 
    
         
            -
                    const tabNode = Object.values(switchTabData)[0];
         
     | 
| 
       46 
     | 
    
         
            -
                    const tabEventNode = tabNode.events.find((ev) => {return ev.action === 8});
         
     | 
| 
       47 
     | 
    
         
            -
                    const tabStaticType = tabEventNode && tabEventNode.dcimStaticForType || '';
         
     | 
| 
       48 
     | 
    
         
            -
                    node.data.params.staticForType = tabStaticType;
         
     | 
| 
       49 
     | 
    
         
            -
                    return {
         
     | 
| 
       50 
     | 
    
         
            -
                        type: tabStaticType,
         
     | 
| 
       51 
     | 
    
         
            -
                        data: tabNode.tabData
         
     | 
| 
       52 
     | 
    
         
            -
                    };
         
     | 
| 
       53 
     | 
    
         
            -
                }
         
     | 
| 
       54 
     | 
    
         
            -
            }
         
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
            // 自动滑动展示数据
         
     | 
| 
       57 
     | 
    
         
            -
            export function setMapAutoMoveOptions(option, chartNode, node, callback) {
         
     | 
| 
       58 
     | 
    
         
            -
                option.dataZoom = echartsDataRoom;
         
     | 
| 
       59 
     | 
    
         
            -
                const dataZoomNode = option.dataZoom[0];
         
     | 
| 
       60 
     | 
    
         
            -
                const {start, end, time} = node.appearance.zoomParams;
         
     | 
| 
       61 
     | 
    
         
            -
                const zoomStart = Number(start);
         
     | 
| 
       62 
     | 
    
         
            -
                const zoomEnd = Number(end);
         
     | 
| 
       63 
     | 
    
         
            -
                const zoomTime = Number(time);
         
     | 
| 
       64 
     | 
    
         
            -
                dataZoomNode.start = zoomStart;
         
     | 
| 
       65 
     | 
    
         
            -
                dataZoomNode.end = zoomEnd;
         
     | 
| 
       66 
     | 
    
         
            -
                chartNode.timeTicket = setInterval(() => {
         
     | 
| 
       67 
     | 
    
         
            -
                    if (Number(dataZoomNode.end) > 100) {
         
     | 
| 
       68 
     | 
    
         
            -
                        dataZoomNode.end = zoomEnd;
         
     | 
| 
       69 
     | 
    
         
            -
                        dataZoomNode.start = zoomStart;
         
     | 
| 
       70 
     | 
    
         
            -
                    } else {
         
     | 
| 
       71 
     | 
    
         
            -
                        dataZoomNode.end = dataZoomNode.end + 1 * (100 / option.series[0].data.length);
         
     | 
| 
       72 
     | 
    
         
            -
                        dataZoomNode.start = dataZoomNode.start + 1 * (100 / option.series[0].data.length);
         
     | 
| 
       73 
     | 
    
         
            -
                    }
         
     | 
| 
       74 
     | 
    
         
            -
                    callback(option);
         
     | 
| 
       75 
     | 
    
         
            -
                }, zoomTime * 1000);
         
     | 
| 
       76 
     | 
    
         
            -
            }
         
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
            // 停止自动滑动展示数据
         
     | 
| 
       79 
     | 
    
         
            -
            export function setMapStopAutoMoveOptions(chartNode) {
         
     | 
| 
       80 
     | 
    
         
            -
             
     | 
| 
       81 
     | 
    
         
            -
                clearInterval(chartNode.timeTicket);
         
     | 
| 
       82 
     | 
    
         
            -
             
     | 
| 
       83 
     | 
    
         
            -
            }
         
     | 
| 
       84 
     | 
    
         
            -
             
     | 
| 
       85 
     | 
    
         
            -
            // 自动配置散点图的节点数据
         
     | 
| 
       86 
     | 
    
         
            -
            export function setMapScatterOptions(option, node) {
         
     | 
| 
       87 
     | 
    
         
            -
                if(node.appearance.series) {
         
     | 
| 
       88 
     | 
    
         
            -
                    for (let i = 0; i < option.series.length; i++) {
         
     | 
| 
       89 
     | 
    
         
            -
                        const series = option.series[i];
         
     | 
| 
       90 
     | 
    
         
            -
                        const setSeries = node.appearance.series[i];
         
     | 
| 
       91 
     | 
    
         
            -
                        if(setSeries) {
         
     | 
| 
       92 
     | 
    
         
            -
                            series.itemStyle.color = setSeries.itemColor;
         
     | 
| 
       93 
     | 
    
         
            -
                            series.itemStyle.borderColor = setSeries.itemBorderColor;
         
     | 
| 
       94 
     | 
    
         
            -
                        }
         
     | 
| 
       95 
     | 
    
         
            -
                    }
         
     | 
| 
       96 
     | 
    
         
            -
                }
         
     | 
| 
       97 
     | 
    
         
            -
                if(node.appearance.yAxis && node.appearance.yAxis.axisLabel && node.appearance.yAxis.axisLabel.length) {
         
     | 
| 
       98 
     | 
    
         
            -
                    const yAxisAxisLabelRich = option.yAxis[0].axisLabel.rich;
         
     | 
| 
       99 
     | 
    
         
            -
                    const yAxisAxisLabel = node.appearance.yAxis.axisLabel;
         
     | 
| 
       100 
     | 
    
         
            -
                    const yAxisData = [];
         
     | 
| 
       101 
     | 
    
         
            -
                    for (let i = 0; i < yAxisAxisLabel.length; i++) {
         
     | 
| 
       102 
     | 
    
         
            -
                        const axisLabel = yAxisAxisLabel[i];
         
     | 
| 
       103 
     | 
    
         
            -
                        yAxisAxisLabelRich[`f${i+1}`] = {
         
     | 
| 
       104 
     | 
    
         
            -
                            color: axisLabel.color
         
     | 
| 
       105 
     | 
    
         
            -
                        };
         
     | 
| 
       106 
     | 
    
         
            -
                        if(axisLabel.label) yAxisData.push(axisLabel.label);
         
     | 
| 
       107 
     | 
    
         
            -
                    }
         
     | 
| 
       108 
     | 
    
         
            -
                    option.yAxis[0].data = yAxisData;
         
     | 
| 
       109 
     | 
    
         
            -
                }
         
     | 
| 
       110 
     | 
    
         
            -
            }
         
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
       112 
     | 
    
         
            -
            // 自动配置折线和柱状图的节点数据
         
     | 
| 
       113 
     | 
    
         
            -
            export function setMapLineBarOptions(option, node) {
         
     | 
| 
       114 
     | 
    
         
            -
                option.color = node.appearance.color;
         
     | 
| 
       115 
     | 
    
         
            -
                option.xAxis[0].axisLabel.formatter = function (value, index) {
         
     | 
| 
       116 
     | 
    
         
            -
                    return getXYAxisLabelVal(index, node.appearance.intervalNumX, value);
         
     | 
| 
       117 
     | 
    
         
            -
                }
         
     | 
| 
       118 
     | 
    
         
            -
                option.yAxis[0].axisLabel.formatter = function (value, index) {
         
     | 
| 
       119 
     | 
    
         
            -
                    return getXYAxisLabelVal(index, node.appearance.intervalNumY, value);
         
     | 
| 
       120 
     | 
    
         
            -
                }
         
     | 
| 
       121 
     | 
    
         
            -
                if(option.series.length < 2) return;
         
     | 
| 
       122 
     | 
    
         
            -
                const total = node.appearance.total;
         
     | 
| 
       123 
     | 
    
         
            -
                if(total && total.length) {
         
     | 
| 
       124 
     | 
    
         
            -
                    const seriesData = option.series[0].data;
         
     | 
| 
       125 
     | 
    
         
            -
                    if(seriesData.length < total.length && total[total.length - 1].value) seriesData.push(20);
         
     | 
| 
       126 
     | 
    
         
            -
                    const data2 = [];
         
     | 
| 
       127 
     | 
    
         
            -
                    for (let i = 0; i < seriesData.length; i++) {
         
     | 
| 
       128 
     | 
    
         
            -
                        const dr = node.appearance.total[i] ? node.appearance.total[i].value - Number(seriesData[i]) : option.series[1].data[i];
         
     | 
| 
       129 
     | 
    
         
            -
                        data2.push(dr);
         
     | 
| 
       130 
     | 
    
         
            -
                    }
         
     | 
| 
       131 
     | 
    
         
            -
                    option.series[1].data = data2;
         
     | 
| 
       132 
     | 
    
         
            -
                }else {
         
     | 
| 
       133 
     | 
    
         
            -
                    option.series.map((item, index) => {
         
     | 
| 
       134 
     | 
    
         
            -
                        if(!(item.itemStyle && item.itemStyle.normal && item.itemStyle.normal.color)) {
         
     | 
| 
       135 
     | 
    
         
            -
                            item.itemStyle = {
         
     | 
| 
       136 
     | 
    
         
            -
                                normal: {
         
     | 
| 
       137 
     | 
    
         
            -
                                    color : echartsColorData[index]
         
     | 
| 
       138 
     | 
    
         
            -
                                }
         
     | 
| 
       139 
     | 
    
         
            -
                            }
         
     | 
| 
       140 
     | 
    
         
            -
                        }
         
     | 
| 
       141 
     | 
    
         
            -
                    });
         
     | 
| 
       142 
     | 
    
         
            -
                }
         
     | 
| 
       143 
     | 
    
         
            -
                // chartOption.yAxis[0].splitLine = node.appearance.splitLine;
         
     | 
| 
       144 
     | 
    
         
            -
            }
         
     | 
| 
       145 
     | 
    
         
            -
             
     | 
| 
       146 
     | 
    
         
            -
            // 自动配置仪表盘的节点数据
         
     | 
| 
       147 
     | 
    
         
            -
            export function setMapGaugeOptions(option, node) {
         
     | 
| 
       148 
     | 
    
         
            -
                //const chartOption = JSON.parse(JSON.stringify(option));
         
     | 
| 
       149 
     | 
    
         
            -
                const seriesNode = option.series[0];
         
     | 
| 
       150 
     | 
    
         
            -
                const appearance = node.appearance;
         
     | 
| 
       151 
     | 
    
         
            -
                if(!appearance.min) appearance.min = 0;
         
     | 
| 
       152 
     | 
    
         
            -
                if(!appearance.max) appearance.max = 100;
         
     | 
| 
       153 
     | 
    
         
            -
                if (typeof appearance.min === 'number') seriesNode.min = appearance.min;
         
     | 
| 
       154 
     | 
    
         
            -
                if (appearance.max) seriesNode.max = appearance.max;
         
     | 
| 
       155 
     | 
    
         
            -
                if (appearance.splitNumber) seriesNode.splitNumber = appearance.splitNumber;
         
     | 
| 
       156 
     | 
    
         
            -
                if (appearance.pointer) seriesNode.pointer = appearance.pointer;
         
     | 
| 
       157 
     | 
    
         
            -
                if (appearance.axisLabel) seriesNode.axisLabel = appearance.axisLabel;
         
     | 
| 
       158 
     | 
    
         
            -
                if (appearance.axisLine) seriesNode.axisLine.lineStyle = appearance.axisLine.lineStyle;
         
     | 
| 
       159 
     | 
    
         
            -
                if (appearance.detail) seriesNode.detail = appearance.detail;
         
     | 
| 
       160 
     | 
    
         
            -
                if (appearance.data) seriesNode.data = appearance.data;
         
     | 
| 
       161 
     | 
    
         
            -
                if (appearance.detail) seriesNode.detail = appearance.detail;
         
     | 
| 
       162 
     | 
    
         
            -
                if (appearance.data) seriesNode.data = appearance.data;
         
     | 
| 
       163 
     | 
    
         
            -
                if (option.isGaugeLinear) {
         
     | 
| 
       164 
     | 
    
         
            -
                    seriesNode.axisLine.lineStyle.color = [
         
     | 
| 
       165 
     | 
    
         
            -
                        [1, new echarts.graphic.LinearGradient(0, 0, 1, 0, option.linearColors)]
         
     | 
| 
       166 
     | 
    
         
            -
                    ]
         
     | 
| 
       167 
     | 
    
         
            -
                }
         
     | 
| 
       168 
     | 
    
         
            -
            }
         
     | 
| 
       169 
     | 
    
         
            -
             
     | 
| 
       170 
     | 
    
         
            -
            // 自动配置环形图和饼图的节点数据
         
     | 
| 
       171 
     | 
    
         
            -
            export function setMapRingOptions(option, node) {
         
     | 
| 
       172 
     | 
    
         
            -
                //const chartOption = JSON.parse(JSON.stringify(option));
         
     | 
| 
       173 
     | 
    
         
            -
                const appearance = node.appearance;
         
     | 
| 
       174 
     | 
    
         
            -
                if(appearance.type === 'ringPre'){
         
     | 
| 
       175 
     | 
    
         
            -
                    //环形‘设备告警统计图’节点展示配置
         
     | 
| 
       176 
     | 
    
         
            -
                    setRingPreSeriesOptions(option, appearance);
         
     | 
| 
       177 
     | 
    
         
            -
             
     | 
| 
       178 
     | 
    
         
            -
                }else if(appearance.type === 'ringPro'){
         
     | 
| 
       179 
     | 
    
         
            -
                    //环形‘内存、硬盘、CPU指标占比统计’节点展示配置
         
     | 
| 
       180 
     | 
    
         
            -
                    setRingProSeriesOptions(option, appearance);
         
     | 
| 
       181 
     | 
    
         
            -
             
     | 
| 
       182 
     | 
    
         
            -
                }else if(appearance.type === 'ring3d' || appearance.type === 'pie3d'){
         
     | 
| 
       183 
     | 
    
         
            -
                    // 3D饼图配置
         
     | 
| 
       184 
     | 
    
         
            -
                    option.backgroundColor = appearance.backgroundColor;
         
     | 
| 
       185 
     | 
    
         
            -
                    option.grid3D = {
         
     | 
| 
       186 
     | 
    
         
            -
                        show: false,
         
     | 
| 
       187 
     | 
    
         
            -
                        top: appearance.grid.top,
         
     | 
| 
       188 
     | 
    
         
            -
                        left: appearance.grid.left,
         
     | 
| 
       189 
     | 
    
         
            -
                        right: appearance.grid.right,
         
     | 
| 
       190 
     | 
    
         
            -
                        bottom: appearance.grid.bottom,
         
     | 
| 
       191 
     | 
    
         
            -
                        viewControl: {
         
     | 
| 
       192 
     | 
    
         
            -
                            alpha: appearance.grid.alpha, //角度
         
     | 
| 
       193 
     | 
    
         
            -
                            distance: appearance.grid.distance, //调整视角到主体的距离,类似调整zoom
         
     | 
| 
       194 
     | 
    
         
            -
                            rotateSensitivity: 0, //设置为0无法旋转
         
     | 
| 
       195 
     | 
    
         
            -
                            zoomSensitivity: 0, //设置为0无法缩放
         
     | 
| 
       196 
     | 
    
         
            -
                            panSensitivity: 0, //设置为0无法平移
         
     | 
| 
       197 
     | 
    
         
            -
                            autoRotate: false, //自动旋转
         
     | 
| 
       198 
     | 
    
         
            -
                        }
         
     | 
| 
       199 
     | 
    
         
            -
                    };
         
     | 
| 
       200 
     | 
    
         
            -
                    if(appearance.grid.beta) option.grid3D.viewControl.beta = appearance.grid.beta;
         
     | 
| 
       201 
     | 
    
         
            -
                    Object.assign(option.legend, appearance.legend);
         
     | 
| 
       202 
     | 
    
         
            -
                    if(appearance.labelLine && appearance.labelLine.show) set3DPieLabelLine(option, appearance.labelLine, node.TID, node.id);
         
     | 
| 
       203 
     | 
    
         
            -
                    if(appearance.legendTextStyle) {
         
     | 
| 
       204 
     | 
    
         
            -
                        const {fontSize, align, color, width, data} = appearance.legendTextStyle;
         
     | 
| 
       205 
     | 
    
         
            -
                        const rich = {
         
     | 
| 
       206 
     | 
    
         
            -
                            a: {
         
     | 
| 
       207 
     | 
    
         
            -
                                color,
         
     | 
| 
       208 
     | 
    
         
            -
                                width
         
     | 
| 
       209 
     | 
    
         
            -
                            }
         
     | 
| 
       210 
     | 
    
         
            -
                        }
         
     | 
| 
       211 
     | 
    
         
            -
                        for (let i = 0; i < data.length; i++) {
         
     | 
| 
       212 
     | 
    
         
            -
                            rich[`b${i}`] = data[i];
         
     | 
| 
       213 
     | 
    
         
            -
                        }
         
     | 
| 
       214 
     | 
    
         
            -
                        option.legend.textStyle = {
         
     | 
| 
       215 
     | 
    
         
            -
                            fontSize,
         
     | 
| 
       216 
     | 
    
         
            -
                            align,
         
     | 
| 
       217 
     | 
    
         
            -
                            rich
         
     | 
| 
       218 
     | 
    
         
            -
                        }
         
     | 
| 
       219 
     | 
    
         
            -
                    }
         
     | 
| 
       220 
     | 
    
         
            -
                }else {
         
     | 
| 
       221 
     | 
    
         
            -
                    // 基础图表的配置
         
     | 
| 
       222 
     | 
    
         
            -
                    const seriesNode = option.series[0];
         
     | 
| 
       223 
     | 
    
         
            -
                    if ((!appearance.label || typeof appearance.label.showValue !== 'boolean')) {
         
     | 
| 
       224 
     | 
    
         
            -
                        appearance.label = {
         
     | 
| 
       225 
     | 
    
         
            -
                            showValue: appearance.type === 'ring',
         
     | 
| 
       226 
     | 
    
         
            -
                            unit: appearance.type === 'ring' ? '%' : ''
         
     | 
| 
       227 
     | 
    
         
            -
                        }
         
     | 
| 
       228 
     | 
    
         
            -
                    }
         
     | 
| 
       229 
     | 
    
         
            -
                    seriesNode.label = {
         
     | 
| 
       230 
     | 
    
         
            -
                        normal: {
         
     | 
| 
       231 
     | 
    
         
            -
                            show: true,
         
     | 
| 
       232 
     | 
    
         
            -
                            position: 'outside',
         
     | 
| 
       233 
     | 
    
         
            -
                            color: appearance.label.color || '',
         
     | 
| 
       234 
     | 
    
         
            -
                            fontSize: appearance.label.fontSize || '12'
         
     | 
| 
       235 
     | 
    
         
            -
                        }
         
     | 
| 
       236 
     | 
    
         
            -
                    };
         
     | 
| 
       237 
     | 
    
         
            -
             
     | 
| 
       238 
     | 
    
         
            -
                    seriesNode.labelLine = appearance.labelLine && {...appearance.labelLine} || {};
         
     | 
| 
       239 
     | 
    
         
            -
             
     | 
| 
       240 
     | 
    
         
            -
                    if(seriesNode.labelLine.lineStyle && !seriesNode.labelLine.lineStyle.color) {
         
     | 
| 
       241 
     | 
    
         
            -
                        delete seriesNode.labelLine.lineStyle['color'];
         
     | 
| 
       242 
     | 
    
         
            -
                    }
         
     | 
| 
       243 
     | 
    
         
            -
             
     | 
| 
       244 
     | 
    
         
            -
                    const rich = {};
         
     | 
| 
       245 
     | 
    
         
            -
             
     | 
| 
       246 
     | 
    
         
            -
                    if(appearance.cir && appearance.cir.show) {
         
     | 
| 
       247 
     | 
    
         
            -
                        rich.cir = {...appearance.cir};
         
     | 
| 
       248 
     | 
    
         
            -
                        if(!rich.cir.borderColor) rich.cir.borderColor = 'auto';
         
     | 
| 
       249 
     | 
    
         
            -
                        if(!rich.cir.backgroundColor) rich.cir.backgroundColor = 'transparent';
         
     | 
| 
       250 
     | 
    
         
            -
                    }
         
     | 
| 
       251 
     | 
    
         
            -
             
     | 
| 
       252 
     | 
    
         
            -
                    if(appearance.labelDetail && appearance.labelDetail.length) {
         
     | 
| 
       253 
     | 
    
         
            -
                        // 环形明细展示配置,线条样式配置
         
     | 
| 
       254 
     | 
    
         
            -
                        rich.a = {
         
     | 
| 
       255 
     | 
    
         
            -
                            color: appearance.label.color || '',
         
     | 
| 
       256 
     | 
    
         
            -
                            fontSize: appearance.label.fontSize || '12'
         
     | 
| 
       257 
     | 
    
         
            -
                        };
         
     | 
| 
       258 
     | 
    
         
            -
                        for (let i = 0; i < appearance.labelDetail.length; i++) {
         
     | 
| 
       259 
     | 
    
         
            -
                            const detail = appearance.labelDetail[i];
         
     | 
| 
       260 
     | 
    
         
            -
                            rich[`b${i+1}`] = {
         
     | 
| 
       261 
     | 
    
         
            -
                                color: detail.color,
         
     | 
| 
       262 
     | 
    
         
            -
                                fontSize: detail.fontSize || '12'
         
     | 
| 
       263 
     | 
    
         
            -
                            };
         
     | 
| 
       264 
     | 
    
         
            -
                        }
         
     | 
| 
       265 
     | 
    
         
            -
                    }
         
     | 
| 
       266 
     | 
    
         
            -
                    seriesNode.label.normal.rich = rich;
         
     | 
| 
       267 
     | 
    
         
            -
                }
         
     | 
| 
       268 
     | 
    
         
            -
            }
         
     | 
| 
       269 
     | 
    
         
            -
             
     | 
| 
       270 
     | 
    
         
            -
            function getItemNode(color, fontSize, fontWeight, padding) {
         
     | 
| 
       271 
     | 
    
         
            -
                return {
         
     | 
| 
       272 
     | 
    
         
            -
                    color,
         
     | 
| 
       273 
     | 
    
         
            -
                    fontSize,
         
     | 
| 
       274 
     | 
    
         
            -
                    fontWeight,
         
     | 
| 
       275 
     | 
    
         
            -
                    padding
         
     | 
| 
       276 
     | 
    
         
            -
                }
         
     | 
| 
       277 
     | 
    
         
            -
            }
         
     | 
| 
       278 
     | 
    
         
            -
             
     | 
| 
       279 
     | 
    
         
            -
            // 设置3D饼图引线样式
         
     | 
| 
       280 
     | 
    
         
            -
            function set3DPieLabelLine(option, labelLine, TID, id){
         
     | 
| 
       281 
     | 
    
         
            -
                const rich = {};
         
     | 
| 
       282 
     | 
    
         
            -
                const { data, color, lengthWidth, startAngle, clockwise, center, radius } = labelLine;
         
     | 
| 
       283 
     | 
    
         
            -
                const lineData = [];
         
     | 
| 
       284 
     | 
    
         
            -
                for (let i = 0; i < data.length; i ++){
         
     | 
| 
       285 
     | 
    
         
            -
                    const {
         
     | 
| 
       286 
     | 
    
         
            -
                        length,
         
     | 
| 
       287 
     | 
    
         
            -
                        length2,
         
     | 
| 
       288 
     | 
    
         
            -
                        nameFontSize,
         
     | 
| 
       289 
     | 
    
         
            -
                        nameFontWeight,
         
     | 
| 
       290 
     | 
    
         
            -
                        nameColor,
         
     | 
| 
       291 
     | 
    
         
            -
                        namePadding,
         
     | 
| 
       292 
     | 
    
         
            -
                        valueFontSize,
         
     | 
| 
       293 
     | 
    
         
            -
                        valueFontWeight,
         
     | 
| 
       294 
     | 
    
         
            -
                        valueColor,
         
     | 
| 
       295 
     | 
    
         
            -
                        valuePadding,
         
     | 
| 
       296 
     | 
    
         
            -
                        unitFontSize,
         
     | 
| 
       297 
     | 
    
         
            -
                        unitFontWeight,
         
     | 
| 
       298 
     | 
    
         
            -
                        unitColor,
         
     | 
| 
       299 
     | 
    
         
            -
                        unitPadding
         
     | 
| 
       300 
     | 
    
         
            -
                    } = data[i];
         
     | 
| 
       301 
     | 
    
         
            -
                    rich[`name${i+1}`] = getItemNode(nameColor, nameFontSize, nameFontWeight, namePadding);
         
     | 
| 
       302 
     | 
    
         
            -
                    rich[`unit${i+1}`] = getItemNode(unitColor, unitFontSize, unitFontWeight, unitPadding);
         
     | 
| 
       303 
     | 
    
         
            -
                    rich[`value${i+1}`] = getItemNode(valueColor, valueFontSize, valueFontWeight, valuePadding);
         
     | 
| 
       304 
     | 
    
         
            -
                    lineData.push({
         
     | 
| 
       305 
     | 
    
         
            -
                        minTurnAngle: 90,
         
     | 
| 
       306 
     | 
    
         
            -
                        length: length,
         
     | 
| 
       307 
     | 
    
         
            -
                        length2: length2,
         
     | 
| 
       308 
     | 
    
         
            -
                        lineStyle: {
         
     | 
| 
       309 
     | 
    
         
            -
                            width: lengthWidth
         
     | 
| 
       310 
     | 
    
         
            -
                        }
         
     | 
| 
       311 
     | 
    
         
            -
                    })
         
     | 
| 
       312 
     | 
    
         
            -
                }
         
     | 
| 
       313 
     | 
    
         
            -
                commonStore[TID].echartsDataPool[id].labelLineData = {
         
     | 
| 
       314 
     | 
    
         
            -
                    name: 'pie2d',
         
     | 
| 
       315 
     | 
    
         
            -
                    type: 'pie',
         
     | 
| 
       316 
     | 
    
         
            -
                    hoverAnimation: false,
         
     | 
| 
       317 
     | 
    
         
            -
                    label: {
         
     | 
| 
       318 
     | 
    
         
            -
                        opacity: 1,
         
     | 
| 
       319 
     | 
    
         
            -
                        color,
         
     | 
| 
       320 
     | 
    
         
            -
                        rich
         
     | 
| 
       321 
     | 
    
         
            -
                    },
         
     | 
| 
       322 
     | 
    
         
            -
                    startAngle, //起始角度,支持范围[0, 360]。
         
     | 
| 
       323 
     | 
    
         
            -
                    clockwise, //饼图的扇区是否是顺时针排布。上述这两项配置主要是为了对齐3d的样式
         
     | 
| 
       324 
     | 
    
         
            -
                    radius, // 两个值设置成相同的,环形就隐藏了
         
     | 
| 
       325 
     | 
    
         
            -
                    center, //指示线的位置
         
     | 
| 
       326 
     | 
    
         
            -
                    data: lineData
         
     | 
| 
       327 
     | 
    
         
            -
                };
         
     | 
| 
       328 
     | 
    
         
            -
            }
         
     | 
| 
       329 
     | 
    
         
            -
             
     | 
| 
       330 
     | 
    
         
            -
            // 自动配置3D柱状图的节点数据
         
     | 
| 
       331 
     | 
    
         
            -
            export function setMap3dBarOptions(option, node) {
         
     | 
| 
       332 
     | 
    
         
            -
                // 取消注册自定义形状
         
     | 
| 
       333 
     | 
    
         
            -
                //const chartOption = JSON.parse(JSON.stringify(option));
         
     | 
| 
       334 
     | 
    
         
            -
                const seriesNode = option.series[0];
         
     | 
| 
       335 
     | 
    
         
            -
                const appearance = node.appearance;
         
     | 
| 
       336 
     | 
    
         
            -
                if (appearance.seriesCubeLeftLinear) appearance.seriesCubeLeftColor = 'rgb(0, 128, 215)';
         
     | 
| 
       337 
     | 
    
         
            -
                if (appearance.seriesCubeRightLinear) appearance.seriesCubeRightColor = 'rgb(3, 58, 125)';
         
     | 
| 
       338 
     | 
    
         
            -
                if (appearance.graphicShape) {
         
     | 
| 
       339 
     | 
    
         
            -
                    const {CubeLeft, CubeRight, CubeTop} = drawGraphicShape(appearance);
         
     | 
| 
       340 
     | 
    
         
            -
                    // 注册三个面图形
         
     | 
| 
       341 
     | 
    
         
            -
                    echarts.graphic.registerShape('CubeLeft', CubeLeft);
         
     | 
| 
       342 
     | 
    
         
            -
                    echarts.graphic.registerShape('CubeRight', CubeRight);
         
     | 
| 
       343 
     | 
    
         
            -
                    echarts.graphic.registerShape('CubeTop', CubeTop);
         
     | 
| 
       344 
     | 
    
         
            -
                }
         
     | 
| 
       345 
     | 
    
         
            -
                option.tooltip.formatter = function (params) {
         
     | 
| 
       346 
     | 
    
         
            -
                    const item = params[0];
         
     | 
| 
       347 
     | 
    
         
            -
                    return item.name + ' : ' + item.value;
         
     | 
| 
       348 
     | 
    
         
            -
                }
         
     | 
| 
       349 
     | 
    
         
            -
            }
         
     | 
| 
       350 
     | 
    
         
            -
             
     | 
| 
       351 
     | 
    
         
            -
            function renderMap3dBarSeriesItem(seriesNode, appearance) {
         
     | 
| 
       352 
     | 
    
         
            -
                seriesNode.renderItem = (params, api) => {
         
     | 
| 
       353 
     | 
    
         
            -
                    const seriesRenderData = setSeriesRenderGroup(appearance, api);
         
     | 
| 
       354 
     | 
    
         
            -
                    return {
         
     | 
| 
       355 
     | 
    
         
            -
                        type: 'group',
         
     | 
| 
       356 
     | 
    
         
            -
                        children: seriesRenderData,
         
     | 
| 
       357 
     | 
    
         
            -
                    };
         
     | 
| 
       358 
     | 
    
         
            -
                };
         
     | 
| 
       359 
     | 
    
         
            -
            }
         
     | 
| 
       360 
     | 
    
         
            -
             
     | 
| 
       361 
     | 
    
         
            -
            export function setMapTopOptions(option, node) {
         
     | 
| 
       362 
     | 
    
         
            -
                //const chartOption = JSON.parse(JSON.stringify(option));
         
     | 
| 
       363 
     | 
    
         
            -
                const appearance = node.appearance;
         
     | 
| 
       364 
     | 
    
         
            -
                Object.assign(option.grid, appearance.grid);
         
     | 
| 
       365 
     | 
    
         
            -
                if(!appearance.type.includes('TOPRanking')) return;
         
     | 
| 
       366 
     | 
    
         
            -
                const yNode = option.yAxis[0];
         
     | 
| 
       367 
     | 
    
         
            -
                if(yNode.axisLabel.rich['a1']) return;
         
     | 
| 
       368 
     | 
    
         
            -
                for (let i = 0, length = yNode.data.length; i < length; i++) {
         
     | 
| 
       369 
     | 
    
         
            -
                    const order = i + 1;
         
     | 
| 
       370 
     | 
    
         
            -
                    yNode.axisLabel.rich[`a${order}`] = {
         
     | 
| 
       371 
     | 
    
         
            -
                        width: 30,
         
     | 
| 
       372 
     | 
    
         
            -
                        height: 17,
         
     | 
| 
       373 
     | 
    
         
            -
                        lineHeight: 22,
         
     | 
| 
       374 
     | 
    
         
            -
                        verticalAlign: 'bottom',
         
     | 
| 
       375 
     | 
    
         
            -
                        backgroundColor: {
         
     | 
| 
       376 
     | 
    
         
            -
                            image: `../../../images/TOP/NO-${order}-${rankingTopImageName[i]}.png`
         
     | 
| 
       377 
     | 
    
         
            -
                        }
         
     | 
| 
       378 
     | 
    
         
            -
                    }
         
     | 
| 
       379 
     | 
    
         
            -
                }
         
     | 
| 
       380 
     | 
    
         
            -
            }
         
     | 
| 
       381 
     | 
    
         
            -
             
     | 
| 
       382 
     | 
    
         
            -
            /**
         
     | 
| 
       383 
     | 
    
         
            -
             * 公共配置
         
     | 
| 
       384 
     | 
    
         
            -
             * @param option 图表配置数据
         
     | 
| 
       385 
     | 
    
         
            -
             * @param node 元件数据
         
     | 
| 
       386 
     | 
    
         
            -
             */
         
     | 
| 
       387 
     | 
    
         
            -
            export function setMapGlobalOptions(option, node) {
         
     | 
| 
       388 
     | 
    
         
            -
                // const chartOption = JSON.parse(JSON.stringify(option));
         
     | 
| 
       389 
     | 
    
         
            -
                const appearance = node.appearance;
         
     | 
| 
       390 
     | 
    
         
            -
                // 图表网格数据
         
     | 
| 
       391 
     | 
    
         
            -
                if (appearance.grid && !appearance.grid.distance) {
         
     | 
| 
       392 
     | 
    
         
            -
             
     | 
| 
       393 
     | 
    
         
            -
                    option.grid ? Object.assign(option.grid, appearance.grid) : option.grid = appearance.grid;
         
     | 
| 
       394 
     | 
    
         
            -
             
     | 
| 
       395 
     | 
    
         
            -
                }
         
     | 
| 
       396 
     | 
    
         
            -
                // 图表X轴数据
         
     | 
| 
       397 
     | 
    
         
            -
                if (option.xAxis) setChartXAxisData(option.xAxis, appearance);
         
     | 
| 
       398 
     | 
    
         
            -
                // 图表Y轴数据
         
     | 
| 
       399 
     | 
    
         
            -
                if (option.yAxis) setChartYAxisData(option.yAxis, appearance);
         
     | 
| 
       400 
     | 
    
         
            -
                // 图表图例数据
         
     | 
| 
       401 
     | 
    
         
            -
                if (appearance.legend) setChartLegendData(option.legend, appearance);
         
     | 
| 
       402 
     | 
    
         
            -
                // 曲线样式数据
         
     | 
| 
       403 
     | 
    
         
            -
                if (appearance.type.includes('line')) setLineSeriesStyleData(option.series, appearance);
         
     | 
| 
       404 
     | 
    
         
            -
            }
         
     | 
| 
       405 
     | 
    
         
            -
             
     | 
| 
       406 
     | 
    
         
            -
            // 实时改变图表data值
         
     | 
| 
       407 
     | 
    
         
            -
            export function setMapDataOptions(option, node) {
         
     | 
| 
       408 
     | 
    
         
            -
                const currentStore = commonStore[node.TID];
         
     | 
| 
       409 
     | 
    
         
            -
                let optionNode = currentStore.echartsOptionsPool[node.id].option;
         
     | 
| 
       410 
     | 
    
         
            -
                const appearance = node.appearance;
         
     | 
| 
       411 
     | 
    
         
            -
                const params = node.params;
         
     | 
| 
       412 
     | 
    
         
            -
                // 3d 柱状图
         
     | 
| 
       413 
     | 
    
         
            -
                if (appearance.type === '3dBar') renderMap3dBarSeriesItem(optionNode.series[0], appearance);
         
     | 
| 
       414 
     | 
    
         
            -
                const displayMode = parseInt(option.displayMode); // 图表类型
         
     | 
| 
       415 
     | 
    
         
            -
                const staticForType = params && params.staticForType || ''; //统计类型:日,周,月,年,实时,其他
         
     | 
| 
       416 
     | 
    
         
            -
                const syncEchartsData = commonStore[node.TID].echartsRealDataPool[node.id]; // 统计图实时数据
         
     | 
| 
       417 
     | 
    
         
            -
                let staticTypeData = null; // 统计类型数据
         
     | 
| 
       418 
     | 
    
         
            -
                if(staticForType === 'OTHER'){
         
     | 
| 
       419 
     | 
    
         
            -
                    // 其他类型,类型中的数据通常统计的都是历史数据,日、周、月、年、实时中的某一类,通常搭配分组统计使用。
         
     | 
| 
       420 
     | 
    
         
            -
                    // 类型中绑定一个测点为一个类型,绑定多个测点为多个类型。比如:有电功率和功率因数为两个分类,图表分组中分类数据绑定时就要同时绑定有电功率和功率因数两个测点,否则无法实现切换
         
     | 
| 
       421 
     | 
    
         
            -
                    for (let i = 0 ; i < echartsStaticType.length; i++) {
         
     | 
| 
       422 
     | 
    
         
            -
                        const chartData = syncEchartsData && syncEchartsData[`${echartsStaticType[i]}_Data`];
         
     | 
| 
       423 
     | 
    
         
            -
                        if(chartData) staticTypeData = chartData;
         
     | 
| 
       424 
     | 
    
         
            -
                    }
         
     | 
| 
       425 
     | 
    
         
            -
                }else {
         
     | 
| 
       426 
     | 
    
         
            -
                    // 日,周,月,年,实时类型,不与分组统计一起使用
         
     | 
| 
       427 
     | 
    
         
            -
                    staticTypeData = staticForType ? syncEchartsData && syncEchartsData[`${staticForType}_Data`] : syncEchartsData;
         
     | 
| 
       428 
     | 
    
         
            -
                }
         
     | 
| 
       429 
     | 
    
         
            -
                let dataDictionary = {};
         
     | 
| 
       430 
     | 
    
         
            -
                // 实时数据加载
         
     | 
| 
       431 
     | 
    
         
            -
                if(staticTypeData) {
         
     | 
| 
       432 
     | 
    
         
            -
             
     | 
| 
       433 
     | 
    
         
            -
                    if (displayMode === 1 || displayMode === 2) { // 折线图,柱状图
         
     | 
| 
       434 
     | 
    
         
            -
             
     | 
| 
       435 
     | 
    
         
            -
                        if(node.tabData && node.tabData.data.state && optionNode.yAxis[0].max) Object.assign(optionNode.yAxis[0], node.tabData.data); //若Tabs切换配置了数据,则修改Y轴原有配置
         
     | 
| 
       436 
     | 
    
         
            -
             
     | 
| 
       437 
     | 
    
         
            -
                        if(appearance.type === 'barPileStatic') {
         
     | 
| 
       438 
     | 
    
         
            -
             
     | 
| 
       439 
     | 
    
         
            -
                            barPileStaticDataAuto(optionNode, staticTypeData, appearance);
         
     | 
| 
       440 
     | 
    
         
            -
             
     | 
| 
       441 
     | 
    
         
            -
                        }else {
         
     | 
| 
       442 
     | 
    
         
            -
             
     | 
| 
       443 
     | 
    
         
            -
                            lineBarDataAuto(optionNode, params, staticTypeData, appearance);
         
     | 
| 
       444 
     | 
    
         
            -
             
     | 
| 
       445 
     | 
    
         
            -
                        }
         
     | 
| 
       446 
     | 
    
         
            -
             
     | 
| 
       447 
     | 
    
         
            -
                    }
         
     | 
| 
       448 
     | 
    
         
            -
                    if(displayMode === 4) { // top排行榜-电量仪
         
     | 
| 
       449 
     | 
    
         
            -
             
     | 
| 
       450 
     | 
    
         
            -
                        topRankingListAuto(optionNode, staticTypeData, appearance);
         
     | 
| 
       451 
     | 
    
         
            -
             
     | 
| 
       452 
     | 
    
         
            -
                    }
         
     | 
| 
       453 
     | 
    
         
            -
                    if(displayMode === 7) { // 散点图
         
     | 
| 
       454 
     | 
    
         
            -
             
     | 
| 
       455 
     | 
    
         
            -
                        scatterDataAuto(optionNode, staticTypeData);
         
     | 
| 
       456 
     | 
    
         
            -
             
     | 
| 
       457 
     | 
    
         
            -
                    }
         
     | 
| 
       458 
     | 
    
         
            -
                    if (displayMode === 5 || displayMode === 3) { // 饼图/环形图
         
     | 
| 
       459 
     | 
    
         
            -
                        const pieData = staticTypeData && staticTypeData.data || staticTypeData || [];
         
     | 
| 
       460 
     | 
    
         
            -
                        if(appearance.type === 'ringPre') {
         
     | 
| 
       461 
     | 
    
         
            -
                            // 按照资产总台数统计设备告警数量
         
     | 
| 
       462 
     | 
    
         
            -
                            pieRingAssetTotalAuto(optionNode, pieData, appearance.total, appearance.alarmCount);
         
     | 
| 
       463 
     | 
    
         
            -
             
     | 
| 
       464 
     | 
    
         
            -
                        }else if(appearance.type === 'ringPro'){
         
     | 
| 
       465 
     | 
    
         
            -
                            // 按照百分比统计设备配置情况
         
     | 
| 
       466 
     | 
    
         
            -
                            pieRingProportionAuto(optionNode, pieData, appearance.proportion);
         
     | 
| 
       467 
     | 
    
         
            -
             
     | 
| 
       468 
     | 
    
         
            -
                        }else if(appearance.type === 'ring3d' || appearance.type === 'pie3d'){
         
     | 
| 
       469 
     | 
    
         
            -
                            for (let i = 0; i < pieData.length; i++){
         
     | 
| 
       470 
     | 
    
         
            -
                                pieData[i].itemOpacity = 0.9;
         
     | 
| 
       471 
     | 
    
         
            -
                                pieData[i].itemColor = appearance.chartData[i] && appearance.chartData[i].itemColor || echartsColorData[i];
         
     | 
| 
       472 
     | 
    
         
            -
                            }
         
     | 
| 
       473 
     | 
    
         
            -
                            // 3D饼图图例更新
         
     | 
| 
       474 
     | 
    
         
            -
                            const labelLineData = currentStore.echartsDataPool[node.id].labelLineData;
         
     | 
| 
       475 
     | 
    
         
            -
                            dataDictionary = set3DPieOptions(optionNode, appearance, labelLineData, pieData);
         
     | 
| 
       476 
     | 
    
         
            -
             
     | 
| 
       477 
     | 
    
         
            -
                        }else {
         
     | 
| 
       478 
     | 
    
         
            -
             
     | 
| 
       479 
     | 
    
         
            -
                            pieRingNormalAuto(optionNode, pieData);
         
     | 
| 
       480 
     | 
    
         
            -
             
     | 
| 
       481 
     | 
    
         
            -
                        }
         
     | 
| 
       482 
     | 
    
         
            -
                    }
         
     | 
| 
       483 
     | 
    
         
            -
                    if(displayMode === 6) { // 仪表盘
         
     | 
| 
       484 
     | 
    
         
            -
             
     | 
| 
       485 
     | 
    
         
            -
                        gaugeNormalAuto(optionNode, staticTypeData);
         
     | 
| 
       486 
     | 
    
         
            -
             
     | 
| 
       487 
     | 
    
         
            -
                    }
         
     | 
| 
       488 
     | 
    
         
            -
                }else {
         
     | 
| 
       489 
     | 
    
         
            -
                    if(option.title && option.title.text) {
         
     | 
| 
       490 
     | 
    
         
            -
                        optionNode.title.text = option.title.text;
         
     | 
| 
       491 
     | 
    
         
            -
                    }
         
     | 
| 
       492 
     | 
    
         
            -
                    if (option.legend) {
         
     | 
| 
       493 
     | 
    
         
            -
                        optionNode.legend = option.legend;
         
     | 
| 
       494 
     | 
    
         
            -
                    } else {
         
     | 
| 
       495 
     | 
    
         
            -
                        delete optionNode['legend'];
         
     | 
| 
       496 
     | 
    
         
            -
                    }
         
     | 
| 
       497 
     | 
    
         
            -
                    if (option.xAxis) {
         
     | 
| 
       498 
     | 
    
         
            -
                        for (let i = 0; i < option.xAxis.length; i++) {
         
     | 
| 
       499 
     | 
    
         
            -
                            const item = option.xAxis[i];
         
     | 
| 
       500 
     | 
    
         
            -
                            if (item.data) {
         
     | 
| 
       501 
     | 
    
         
            -
                                optionNode.xAxis[i].data = item.data;
         
     | 
| 
       502 
     | 
    
         
            -
                            }
         
     | 
| 
       503 
     | 
    
         
            -
                        }
         
     | 
| 
       504 
     | 
    
         
            -
                    }
         
     | 
| 
       505 
     | 
    
         
            -
                    if (option.yAxis) {
         
     | 
| 
       506 
     | 
    
         
            -
                        for (let i = 0; i < option.yAxis.length; i++) {
         
     | 
| 
       507 
     | 
    
         
            -
                            const item = option.yAxis[i];
         
     | 
| 
       508 
     | 
    
         
            -
                            if (item.data) {
         
     | 
| 
       509 
     | 
    
         
            -
                                optionNode.yAxis[i].data = item.data;
         
     | 
| 
       510 
     | 
    
         
            -
                            }
         
     | 
| 
       511 
     | 
    
         
            -
                        }
         
     | 
| 
       512 
     | 
    
         
            -
                    }
         
     | 
| 
       513 
     | 
    
         
            -
                    if(option.series[0] && option.series[0].pieData) {
         
     | 
| 
       514 
     | 
    
         
            -
                        // 3D饼图图例初始化
         
     | 
| 
       515 
     | 
    
         
            -
                        const labelLineData = currentStore.echartsDataPool[node.id].labelLineData;
         
     | 
| 
       516 
     | 
    
         
            -
                        dataDictionary = set3DPieOptions(option, appearance, labelLineData);
         
     | 
| 
       517 
     | 
    
         
            -
                        optionNode = option;
         
     | 
| 
       518 
     | 
    
         
            -
                    }else {
         
     | 
| 
       519 
     | 
    
         
            -
                        if (option.series) {
         
     | 
| 
       520 
     | 
    
         
            -
                            for (let i = 0; i < option.series.length; i++) {
         
     | 
| 
       521 
     | 
    
         
            -
                                const item = option.series[i];
         
     | 
| 
       522 
     | 
    
         
            -
                                if(item.name) optionNode.series[i].name = item.name;
         
     | 
| 
       523 
     | 
    
         
            -
                                optionNode.series[i].data = item.data;
         
     | 
| 
       524 
     | 
    
         
            -
                            }
         
     | 
| 
       525 
     | 
    
         
            -
                        }
         
     | 
| 
       526 
     | 
    
         
            -
                    }
         
     | 
| 
       527 
     | 
    
         
            -
                }
         
     | 
| 
       528 
     | 
    
         
            -
             
     | 
| 
       529 
     | 
    
         
            -
                mapFormatterSet(appearance, optionNode, staticTypeData, dataDictionary);
         
     | 
| 
       530 
     | 
    
         
            -
             
     | 
| 
       531 
     | 
    
         
            -
                const currentChartNode = commonStore[node.TID].echartsDataPool[node.id];
         
     | 
| 
       532 
     | 
    
         
            -
                const mapChart = currentChartNode.chart;
         
     | 
| 
       533 
     | 
    
         
            -
                clearInterval(currentChartNode.timeTicket);
         
     | 
| 
       534 
     | 
    
         
            -
                currentChartNode.timeTicket = null;
         
     | 
| 
       535 
     | 
    
         
            -
                // 自动滑动展示数据
         
     | 
| 
       536 
     | 
    
         
            -
                if (appearance.timeTicket) {
         
     | 
| 
       537 
     | 
    
         
            -
                    mapChart.off('mouseover');
         
     | 
| 
       538 
     | 
    
         
            -
                    mapChart.off('mouseout');
         
     | 
| 
       539 
     | 
    
         
            -
                    mapChart.on('mouseover', function () {
         
     | 
| 
       540 
     | 
    
         
            -
                        setMapStopAutoMoveOptions(currentChartNode);
         
     | 
| 
       541 
     | 
    
         
            -
                    });
         
     | 
| 
       542 
     | 
    
         
            -
                    mapChart.on('mouseout', function () {
         
     | 
| 
       543 
     | 
    
         
            -
                        setMapAutoMoveOptions(optionNode, currentChartNode, node, function (chartNode) {
         
     | 
| 
       544 
     | 
    
         
            -
                            return mapChart.setOption(chartNode);
         
     | 
| 
       545 
     | 
    
         
            -
                        })
         
     | 
| 
       546 
     | 
    
         
            -
                    });
         
     | 
| 
       547 
     | 
    
         
            -
                    setMapAutoMoveOptions(optionNode, currentChartNode, node, function (chartNode) {
         
     | 
| 
       548 
     | 
    
         
            -
                        return mapChart.setOption(chartNode);
         
     | 
| 
       549 
     | 
    
         
            -
                    })
         
     | 
| 
       550 
     | 
    
         
            -
                }
         
     | 
| 
       551 
     | 
    
         
            -
                // 鼠标hover状态,用于3D饼图
         
     | 
| 
       552 
     | 
    
         
            -
                if(appearance.mouseHoverState) {
         
     | 
| 
       553 
     | 
    
         
            -
                    mapChart.off('mouseover');
         
     | 
| 
       554 
     | 
    
         
            -
                    mapChart.off('globalout');
         
     | 
| 
       555 
     | 
    
         
            -
                    let type = appearance.type.includes('pie') ? 'pie' : 'ring';
         
     | 
| 
       556 
     | 
    
         
            -
                    set3DPieMouseHover(mapChart, type, option, appearance.seriesStyleData);
         
     | 
| 
       557 
     | 
    
         
            -
                }
         
     | 
| 
       558 
     | 
    
         
            -
                mapChart.setOption(optionNode);
         
     | 
| 
       559 
     | 
    
         
            -
                mapChart.resize();
         
     | 
| 
       560 
     | 
    
         
            -
            }
         
     | 
| 
         @@ -1,97 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            // 绘制柱子切面
         
     | 
| 
       2 
     | 
    
         
            -
            export function drawGraphicShape(appearance) {
         
     | 
| 
       3 
     | 
    
         
            -
              const offsetX = appearance.offsetX;
         
     | 
| 
       4 
     | 
    
         
            -
              const offsetY = appearance.offsetY;
         
     | 
| 
       5 
     | 
    
         
            -
              // 绘制左侧面
         
     | 
| 
       6 
     | 
    
         
            -
              const CubeLeft = echarts.graphic.extendShape({
         
     | 
| 
       7 
     | 
    
         
            -
                shape: {
         
     | 
| 
       8 
     | 
    
         
            -
                  x: 0,
         
     | 
| 
       9 
     | 
    
         
            -
                  y: 0,
         
     | 
| 
       10 
     | 
    
         
            -
                },
         
     | 
| 
       11 
     | 
    
         
            -
                buildPath: function (ctx, shape) {
         
     | 
| 
       12 
     | 
    
         
            -
                  // 会canvas的应该都能看得懂,shape是从custom传入的
         
     | 
| 
       13 
     | 
    
         
            -
                  const xAxisPoint = shape.xAxisPoint;
         
     | 
| 
       14 
     | 
    
         
            -
                  // console.log(shape);
         
     | 
| 
       15 
     | 
    
         
            -
                  const c0 = [shape.x, shape.y];
         
     | 
| 
       16 
     | 
    
         
            -
                  const c1 = [shape.x - offsetX, shape.y - offsetY];
         
     | 
| 
       17 
     | 
    
         
            -
                  const c2 = [xAxisPoint[0] - offsetX, xAxisPoint[1] - offsetY];
         
     | 
| 
       18 
     | 
    
         
            -
                  const c3 = [xAxisPoint[0], xAxisPoint[1]];
         
     | 
| 
       19 
     | 
    
         
            -
                  ctx.moveTo(c0[0], c0[1]).lineTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).closePath();
         
     | 
| 
       20 
     | 
    
         
            -
                },
         
     | 
| 
       21 
     | 
    
         
            -
              });
         
     | 
| 
       22 
     | 
    
         
            -
              // 绘制右侧面
         
     | 
| 
       23 
     | 
    
         
            -
              const CubeRight = echarts.graphic.extendShape({
         
     | 
| 
       24 
     | 
    
         
            -
                shape: {
         
     | 
| 
       25 
     | 
    
         
            -
                  x: 0,
         
     | 
| 
       26 
     | 
    
         
            -
                  y: 0,
         
     | 
| 
       27 
     | 
    
         
            -
                },
         
     | 
| 
       28 
     | 
    
         
            -
                buildPath: function (ctx, shape) {
         
     | 
| 
       29 
     | 
    
         
            -
                  const xAxisPoint = shape.xAxisPoint;
         
     | 
| 
       30 
     | 
    
         
            -
                  const c1 = [shape.x, shape.y];
         
     | 
| 
       31 
     | 
    
         
            -
                  const c2 = [xAxisPoint[0], xAxisPoint[1]];
         
     | 
| 
       32 
     | 
    
         
            -
                  const c3 = [xAxisPoint[0] + offsetX, xAxisPoint[1] - offsetY];
         
     | 
| 
       33 
     | 
    
         
            -
                  const c4 = [shape.x + offsetX, shape.y - offsetY];
         
     | 
| 
       34 
     | 
    
         
            -
                  ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath();
         
     | 
| 
       35 
     | 
    
         
            -
                },
         
     | 
| 
       36 
     | 
    
         
            -
              });
         
     | 
| 
       37 
     | 
    
         
            -
              // 绘制顶面
         
     | 
| 
       38 
     | 
    
         
            -
              const CubeTop = echarts.graphic.extendShape({
         
     | 
| 
       39 
     | 
    
         
            -
                shape: {
         
     | 
| 
       40 
     | 
    
         
            -
                  x: 0,
         
     | 
| 
       41 
     | 
    
         
            -
                  y: 0,
         
     | 
| 
       42 
     | 
    
         
            -
                },
         
     | 
| 
       43 
     | 
    
         
            -
                buildPath: function (ctx, shape) {
         
     | 
| 
       44 
     | 
    
         
            -
                  const c1 = [shape.x, shape.y];
         
     | 
| 
       45 
     | 
    
         
            -
                  const c2 = [shape.x + offsetX, shape.y - offsetY]; //右点
         
     | 
| 
       46 
     | 
    
         
            -
                  const c3 = [shape.x, shape.y - offsetX];
         
     | 
| 
       47 
     | 
    
         
            -
                  const c4 = [shape.x - offsetX, shape.y - offsetY];
         
     | 
| 
       48 
     | 
    
         
            -
                  ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath();
         
     | 
| 
       49 
     | 
    
         
            -
                },
         
     | 
| 
       50 
     | 
    
         
            -
              });
         
     | 
| 
       51 
     | 
    
         
            -
              return {
         
     | 
| 
       52 
     | 
    
         
            -
                CubeLeft,
         
     | 
| 
       53 
     | 
    
         
            -
                CubeRight,
         
     | 
| 
       54 
     | 
    
         
            -
                CubeTop
         
     | 
| 
       55 
     | 
    
         
            -
              }
         
     | 
| 
       56 
     | 
    
         
            -
            }
         
     | 
| 
       57 
     | 
    
         
            -
            // 线性渐变
         
     | 
| 
       58 
     | 
    
         
            -
            export function graphicLinearGradient(nr, nb, nl, nt, colors) {
         
     | 
| 
       59 
     | 
    
         
            -
              return new echarts.graphic.LinearGradient(nr, nb, nl, nt, colors);
         
     | 
| 
       60 
     | 
    
         
            -
            }
         
     | 
| 
       61 
     | 
    
         
            -
            export function setSeriesRenderGroup(appearance, api) {
         
     | 
| 
       62 
     | 
    
         
            -
              const seriesRenderData = [];
         
     | 
| 
       63 
     | 
    
         
            -
              const groupTypeData = ['CubeLeft', 'CubeRight', 'CubeTop'];
         
     | 
| 
       64 
     | 
    
         
            -
              const location = api.coord([api.value(0), api.value(1)]);
         
     | 
| 
       65 
     | 
    
         
            -
              for (let i = 0; i < groupTypeData.length; i++) {
         
     | 
| 
       66 
     | 
    
         
            -
                const groupItem = groupTypeData[i];
         
     | 
| 
       67 
     | 
    
         
            -
                const groupNode = {
         
     | 
| 
       68 
     | 
    
         
            -
                  type: groupItem,
         
     | 
| 
       69 
     | 
    
         
            -
                  shape: {
         
     | 
| 
       70 
     | 
    
         
            -
                    api,
         
     | 
| 
       71 
     | 
    
         
            -
                    xValue: api.value(0),
         
     | 
| 
       72 
     | 
    
         
            -
                    yValue: api.value(1),
         
     | 
| 
       73 
     | 
    
         
            -
                    x: location[0],
         
     | 
| 
       74 
     | 
    
         
            -
                    y: location[1],
         
     | 
| 
       75 
     | 
    
         
            -
                    xAxisPoint: api.coord([api.value(0), 0]),
         
     | 
| 
       76 
     | 
    
         
            -
                  }
         
     | 
| 
       77 
     | 
    
         
            -
                };
         
     | 
| 
       78 
     | 
    
         
            -
                if(i === groupTypeData.length - 1){
         
     | 
| 
       79 
     | 
    
         
            -
                  // 顶部切面颜色填充
         
     | 
| 
       80 
     | 
    
         
            -
                  groupNode.style = {
         
     | 
| 
       81 
     | 
    
         
            -
                    fill: appearance.seriesCubeTopColor
         
     | 
| 
       82 
     | 
    
         
            -
                  }
         
     | 
| 
       83 
     | 
    
         
            -
                }else {
         
     | 
| 
       84 
     | 
    
         
            -
                  // 左右切面颜色填充
         
     | 
| 
       85 
     | 
    
         
            -
                  let fillColor = graphicLinearGradient(0, 0, 0, 1, appearance[`series${groupItem}Gradient`]);
         
     | 
| 
       86 
     | 
    
         
            -
                  const cubeColorLinear = appearance[`series${groupItem}Linear`];
         
     | 
| 
       87 
     | 
    
         
            -
                  if(!cubeColorLinear) {
         
     | 
| 
       88 
     | 
    
         
            -
                    fillColor = appearance[`series${groupItem}Color`];
         
     | 
| 
       89 
     | 
    
         
            -
                  }
         
     | 
| 
       90 
     | 
    
         
            -
                  groupNode.style = {
         
     | 
| 
       91 
     | 
    
         
            -
                    fill: fillColor
         
     | 
| 
       92 
     | 
    
         
            -
                  }
         
     | 
| 
       93 
     | 
    
         
            -
                }
         
     | 
| 
       94 
     | 
    
         
            -
                seriesRenderData.push(groupNode);
         
     | 
| 
       95 
     | 
    
         
            -
              }
         
     | 
| 
       96 
     | 
    
         
            -
              return seriesRenderData;
         
     | 
| 
       97 
     | 
    
         
            -
            }
         
     | 
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export declare function mapFormatterSet(appearance: object, option: any, data: any, dataDictionary: any): void;
         
     |