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,29 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import {rectangle} from './rectangle';
         
     | 
| 
       2 
     | 
    
         
            -
            import {s8} from "../../utils";
         
     | 
| 
       3 
     | 
    
         
            -
            import {createIframeElement} from "../../element";
         
     | 
| 
       4 
     | 
    
         
            -
            import {commonStore} from "../../store";
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            export function iframePrimeval(ctx, node) {
         
     | 
| 
       7 
     | 
    
         
            -
                //console.log('iframePrimeval############', node)
         
     | 
| 
       8 
     | 
    
         
            -
                // 绘制一个底图,类似于占位符。
         
     | 
| 
       9 
     | 
    
         
            -
                rectangle(ctx, node);
         
     | 
| 
       10 
     | 
    
         
            -
                if (!commonStore[node.TID].iframeDataPool[node.id]) {
         
     | 
| 
       11 
     | 
    
         
            -
                    node.elementId = s8();
         
     | 
| 
       12 
     | 
    
         
            -
                    commonStore[node.TID].iframeDataPool[node.id] = {
         
     | 
| 
       13 
     | 
    
         
            -
                        node: {
         
     | 
| 
       14 
     | 
    
         
            -
                            id: node.id,
         
     | 
| 
       15 
     | 
    
         
            -
                            src: node.iframe
         
     | 
| 
       16 
     | 
    
         
            -
                        }
         
     | 
| 
       17 
     | 
    
         
            -
                    };
         
     | 
| 
       18 
     | 
    
         
            -
                    const iframe = createIframeElement(node);
         
     | 
| 
       19 
     | 
    
         
            -
                    commonStore[node.TID].iframeDataPool[node.id].iframe = iframe;
         
     | 
| 
       20 
     | 
    
         
            -
                    const parentEle = window.location.pathname.includes('workspace') ? document.getElementById('topology-canvas') : document.body;
         
     | 
| 
       21 
     | 
    
         
            -
                    parentEle.appendChild(iframe);
         
     | 
| 
       22 
     | 
    
         
            -
                    // 添加当前节点到div层
         
     | 
| 
       23 
     | 
    
         
            -
                    node.addToDiv();
         
     | 
| 
       24 
     | 
    
         
            -
                }else {
         
     | 
| 
       25 
     | 
    
         
            -
                    const iframeNode = commonStore[node.TID].iframeDataPool[node.id];
         
     | 
| 
       26 
     | 
    
         
            -
                    if(iframeNode.node.src === node.iframe) return;
         
     | 
| 
       27 
     | 
    
         
            -
                    iframeNode.iframe.src = node.iframe;
         
     | 
| 
       28 
     | 
    
         
            -
                }
         
     | 
| 
       29 
     | 
    
         
            -
            }
         
     | 
| 
         @@ -1,51 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export * from './arbitrarygraph';
         
     | 
| 
       2 
     | 
    
         
            -
            export * from './arbitrarygraph.anchor';
         
     | 
| 
       3 
     | 
    
         
            -
            export * from './arrow';
         
     | 
| 
       4 
     | 
    
         
            -
            export * from './arrow.rect';
         
     | 
| 
       5 
     | 
    
         
            -
            export * from './arrow.anchor';
         
     | 
| 
       6 
     | 
    
         
            -
            export * from './circle';
         
     | 
| 
       7 
     | 
    
         
            -
            export * from './circle.rect';
         
     | 
| 
       8 
     | 
    
         
            -
            export * from './circle.anchor';
         
     | 
| 
       9 
     | 
    
         
            -
            export * from './cloud';
         
     | 
| 
       10 
     | 
    
         
            -
            export * from './cloud.rect';
         
     | 
| 
       11 
     | 
    
         
            -
            export * from './cloud.anchor';
         
     | 
| 
       12 
     | 
    
         
            -
            export * from './cube';
         
     | 
| 
       13 
     | 
    
         
            -
            export * from './cube.rect';
         
     | 
| 
       14 
     | 
    
         
            -
            export * from './cube.anchor';
         
     | 
| 
       15 
     | 
    
         
            -
            export * from './cube.model';
         
     | 
| 
       16 
     | 
    
         
            -
            export * from './diamond';
         
     | 
| 
       17 
     | 
    
         
            -
            export * from './diamond.rect';
         
     | 
| 
       18 
     | 
    
         
            -
            export * from './file';
         
     | 
| 
       19 
     | 
    
         
            -
            export * from './formtable';
         
     | 
| 
       20 
     | 
    
         
            -
            export * from './formselect';
         
     | 
| 
       21 
     | 
    
         
            -
            export * from './hexagon';
         
     | 
| 
       22 
     | 
    
         
            -
            export * from './hexagon.anchor';
         
     | 
| 
       23 
     | 
    
         
            -
            export * from './hexagon.rect';
         
     | 
| 
       24 
     | 
    
         
            -
            export * from './image.rect';
         
     | 
| 
       25 
     | 
    
         
            -
            export * from './image.anchor';
         
     | 
| 
       26 
     | 
    
         
            -
            export * from './iframe';
         
     | 
| 
       27 
     | 
    
         
            -
            export * from './line';
         
     | 
| 
       28 
     | 
    
         
            -
            export * from './line.anchor';
         
     | 
| 
       29 
     | 
    
         
            -
            export * from './line.rect';
         
     | 
| 
       30 
     | 
    
         
            -
            export * from './message';
         
     | 
| 
       31 
     | 
    
         
            -
            export * from './message.anchor';
         
     | 
| 
       32 
     | 
    
         
            -
            export * from './message.rect';
         
     | 
| 
       33 
     | 
    
         
            -
            export * from './pentagon';
         
     | 
| 
       34 
     | 
    
         
            -
            export * from './pentagon.anchor';
         
     | 
| 
       35 
     | 
    
         
            -
            export * from './pentagon.rect';
         
     | 
| 
       36 
     | 
    
         
            -
            export * from './pentagram';
         
     | 
| 
       37 
     | 
    
         
            -
            export * from './pentagram.anchor';
         
     | 
| 
       38 
     | 
    
         
            -
            export * from './pentagram.rect';
         
     | 
| 
       39 
     | 
    
         
            -
            export * from './people';
         
     | 
| 
       40 
     | 
    
         
            -
            export * from './people.rect';
         
     | 
| 
       41 
     | 
    
         
            -
            export * from './rectangle';
         
     | 
| 
       42 
     | 
    
         
            -
            export * from './rectangle.rect';
         
     | 
| 
       43 
     | 
    
         
            -
            export * from './tablePagination';
         
     | 
| 
       44 
     | 
    
         
            -
            export * from './text';
         
     | 
| 
       45 
     | 
    
         
            -
            export * from './triangle';
         
     | 
| 
       46 
     | 
    
         
            -
            export * from './triangle.anchor';
         
     | 
| 
       47 
     | 
    
         
            -
            export * from './triangle.rect';
         
     | 
| 
       48 
     | 
    
         
            -
            export * from './formoverflow';
         
     | 
| 
       49 
     | 
    
         
            -
            export * from './time';
         
     | 
| 
       50 
     | 
    
         
            -
            export * from './formDatePicker';
         
     | 
| 
       51 
     | 
    
         
            -
            export * from './switchs';
         
     | 
| 
         @@ -1,53 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export * from './arbitrarygraph';
         
     | 
| 
       2 
     | 
    
         
            -
            export * from './arbitrarygraph.anchor';
         
     | 
| 
       3 
     | 
    
         
            -
            export * from './arrow';
         
     | 
| 
       4 
     | 
    
         
            -
            export * from './arrow.rect';
         
     | 
| 
       5 
     | 
    
         
            -
            export * from './arrow.anchor';
         
     | 
| 
       6 
     | 
    
         
            -
            export * from './circle';
         
     | 
| 
       7 
     | 
    
         
            -
            export * from './circle.rect';
         
     | 
| 
       8 
     | 
    
         
            -
            export * from './circle.anchor';
         
     | 
| 
       9 
     | 
    
         
            -
            export * from './cloud';
         
     | 
| 
       10 
     | 
    
         
            -
            export * from './cloud.rect';
         
     | 
| 
       11 
     | 
    
         
            -
            export * from './cloud.anchor';
         
     | 
| 
       12 
     | 
    
         
            -
            export * from './cube';
         
     | 
| 
       13 
     | 
    
         
            -
            export * from './cube.rect';
         
     | 
| 
       14 
     | 
    
         
            -
            export * from './cube.anchor';
         
     | 
| 
       15 
     | 
    
         
            -
            export * from './cube.model';
         
     | 
| 
       16 
     | 
    
         
            -
            export * from './diamond';
         
     | 
| 
       17 
     | 
    
         
            -
            export * from './diamond.rect';
         
     | 
| 
       18 
     | 
    
         
            -
            export * from './file';
         
     | 
| 
       19 
     | 
    
         
            -
            export * from './formtable';
         
     | 
| 
       20 
     | 
    
         
            -
            export * from './formselect';
         
     | 
| 
       21 
     | 
    
         
            -
            export * from './hexagon';
         
     | 
| 
       22 
     | 
    
         
            -
            export * from './hexagon.anchor';
         
     | 
| 
       23 
     | 
    
         
            -
            export * from './hexagon.rect';
         
     | 
| 
       24 
     | 
    
         
            -
            export * from './image.rect';
         
     | 
| 
       25 
     | 
    
         
            -
            export * from './image.anchor';
         
     | 
| 
       26 
     | 
    
         
            -
            export * from './iframe';
         
     | 
| 
       27 
     | 
    
         
            -
            export * from './line';
         
     | 
| 
       28 
     | 
    
         
            -
            export * from './line.anchor';
         
     | 
| 
       29 
     | 
    
         
            -
            export * from './line.rect';
         
     | 
| 
       30 
     | 
    
         
            -
            export * from './message';
         
     | 
| 
       31 
     | 
    
         
            -
            export * from './message.anchor';
         
     | 
| 
       32 
     | 
    
         
            -
            export * from './message.rect';
         
     | 
| 
       33 
     | 
    
         
            -
            export * from './pentagon';
         
     | 
| 
       34 
     | 
    
         
            -
            export * from './pentagon.anchor';
         
     | 
| 
       35 
     | 
    
         
            -
            export * from './pentagon.rect';
         
     | 
| 
       36 
     | 
    
         
            -
            export * from './pentagram';
         
     | 
| 
       37 
     | 
    
         
            -
            export * from './pentagram.anchor';
         
     | 
| 
       38 
     | 
    
         
            -
            export * from './pentagram.rect';
         
     | 
| 
       39 
     | 
    
         
            -
            export * from './people';
         
     | 
| 
       40 
     | 
    
         
            -
            export * from './people.rect';
         
     | 
| 
       41 
     | 
    
         
            -
            export * from './rectangle';
         
     | 
| 
       42 
     | 
    
         
            -
            export * from './rectangle.rect';
         
     | 
| 
       43 
     | 
    
         
            -
            export * from './tablePagination';
         
     | 
| 
       44 
     | 
    
         
            -
            export * from './text';
         
     | 
| 
       45 
     | 
    
         
            -
            export * from './triangle';
         
     | 
| 
       46 
     | 
    
         
            -
            export * from './triangle.anchor';
         
     | 
| 
       47 
     | 
    
         
            -
            export * from './triangle.rect';
         
     | 
| 
       48 
     | 
    
         
            -
            export * from './formoverflow';
         
     | 
| 
       49 
     | 
    
         
            -
            export * from './time';
         
     | 
| 
       50 
     | 
    
         
            -
            export * from './formDatePicker';
         
     | 
| 
       51 
     | 
    
         
            -
            export * from './switchs';
         
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
            //# sourceMappingURL=index.js.map
         
     | 
| 
         @@ -1,46 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export function switchs(ctx, node) {
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
                let x = node.rect.x;
         
     | 
| 
       4 
     | 
    
         
            -
                let y = node.rect.y;
         
     | 
| 
       5 
     | 
    
         
            -
                let width = node.rect.width;
         
     | 
| 
       6 
     | 
    
         
            -
                let height = node.rect.height;
         
     | 
| 
       7 
     | 
    
         
            -
                // 绘制圆角
         
     | 
| 
       8 
     | 
    
         
            -
                var wr = node.borderRadius;
         
     | 
| 
       9 
     | 
    
         
            -
                var hr = node.borderRadius;
         
     | 
| 
       10 
     | 
    
         
            -
                if (node.borderRadius < 1) {
         
     | 
| 
       11 
     | 
    
         
            -
                    wr = node.rect.width * node.borderRadius;
         
     | 
| 
       12 
     | 
    
         
            -
                    hr = node.rect.height * node.borderRadius;
         
     | 
| 
       13 
     | 
    
         
            -
                }
         
     | 
| 
       14 
     | 
    
         
            -
                var r = wr < hr ? wr : hr;
         
     | 
| 
       15 
     | 
    
         
            -
                if (node.rect.width < 2 * r) {
         
     | 
| 
       16 
     | 
    
         
            -
                    r = node.rect.width / 2;
         
     | 
| 
       17 
     | 
    
         
            -
                }
         
     | 
| 
       18 
     | 
    
         
            -
                if (node.rect.height < 2 * r) {
         
     | 
| 
       19 
     | 
    
         
            -
                    r = node.rect.height / 2;
         
     | 
| 
       20 
     | 
    
         
            -
                }
         
     | 
| 
       21 
     | 
    
         
            -
                //绘制椭圆
         
     | 
| 
       22 
     | 
    
         
            -
                ctx.fillStyle = node.fillStyle;
         
     | 
| 
       23 
     | 
    
         
            -
                ctx.beginPath();
         
     | 
| 
       24 
     | 
    
         
            -
                ctx.moveTo(x + r, y);
         
     | 
| 
       25 
     | 
    
         
            -
                ctx.lineTo(x + width - r, y);
         
     | 
| 
       26 
     | 
    
         
            -
                ctx.quadraticCurveTo(x + width, y, x + width, y + r);
         
     | 
| 
       27 
     | 
    
         
            -
                ctx.lineTo(x + width, y + height - r);
         
     | 
| 
       28 
     | 
    
         
            -
                ctx.quadraticCurveTo(x + width, y + height, x + width - r, y + height);
         
     | 
| 
       29 
     | 
    
         
            -
                ctx.lineTo(x + r, y + height);
         
     | 
| 
       30 
     | 
    
         
            -
                ctx.quadraticCurveTo(x, y + height, x, y + height - r);
         
     | 
| 
       31 
     | 
    
         
            -
                ctx.lineTo(x, y + r);
         
     | 
| 
       32 
     | 
    
         
            -
                ctx.quadraticCurveTo(x, y, x + r, y);
         
     | 
| 
       33 
     | 
    
         
            -
                ctx.lineTo(x + width - r, y);
         
     | 
| 
       34 
     | 
    
         
            -
                ctx.closePath();
         
     | 
| 
       35 
     | 
    
         
            -
                node.fillStyle && ctx.fill();
         
     | 
| 
       36 
     | 
    
         
            -
                ctx.stroke();
         
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
                //绘制左侧 小圆 默认在右侧 isOpen:true
         
     | 
| 
       39 
     | 
    
         
            -
                ctx.beginPath();
         
     | 
| 
       40 
     | 
    
         
            -
                let cx = node.isOpen ? x + width - height * 0.5 : x + height * 0.5;
         
     | 
| 
       41 
     | 
    
         
            -
                ctx.ellipse(cx, y + height * 0.5, height / 2 * 0.8, height / 2 * 0.8, 0, 0, Math.PI * 2);
         
     | 
| 
       42 
     | 
    
         
            -
                ctx.fillStyle = '#ffffff';
         
     | 
| 
       43 
     | 
    
         
            -
                ctx.closePath();
         
     | 
| 
       44 
     | 
    
         
            -
                ctx.fill();
         
     | 
| 
       45 
     | 
    
         
            -
                ctx.stroke();
         
     | 
| 
       46 
     | 
    
         
            -
            }
         
     | 
| 
         @@ -1,98 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export function time(ctx, node) {
         
     | 
| 
       2 
     | 
    
         
            -
                var wr = node.borderRadius;
         
     | 
| 
       3 
     | 
    
         
            -
                var hr = node.borderRadius;
         
     | 
| 
       4 
     | 
    
         
            -
                if (node.borderRadius < 1) {
         
     | 
| 
       5 
     | 
    
         
            -
                    wr = node.rect.width * node.borderRadius;
         
     | 
| 
       6 
     | 
    
         
            -
                    hr = node.rect.height * node.borderRadius;
         
     | 
| 
       7 
     | 
    
         
            -
                }
         
     | 
| 
       8 
     | 
    
         
            -
                var r = wr < hr ? wr : hr;
         
     | 
| 
       9 
     | 
    
         
            -
                if (node.rect.width < 2 * r) {
         
     | 
| 
       10 
     | 
    
         
            -
                    r = node.rect.width / 2;
         
     | 
| 
       11 
     | 
    
         
            -
                }
         
     | 
| 
       12 
     | 
    
         
            -
                if (node.rect.height < 2 * r) {
         
     | 
| 
       13 
     | 
    
         
            -
                    r = node.rect.height / 2;
         
     | 
| 
       14 
     | 
    
         
            -
                }
         
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
                // 背景
         
     | 
| 
       17 
     | 
    
         
            -
                let x = node.rect.x;
         
     | 
| 
       18 
     | 
    
         
            -
                let y = node.rect.y;
         
     | 
| 
       19 
     | 
    
         
            -
                let width = node.rect.width * 0.29;
         
     | 
| 
       20 
     | 
    
         
            -
                let height = node.rect.height;
         
     | 
| 
       21 
     | 
    
         
            -
                let gap = node.rect.width * 0.065;
         
     | 
| 
       22 
     | 
    
         
            -
                let {h, m, s} = node.time;
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
                //绘制时
         
     | 
| 
       25 
     | 
    
         
            -
                drawText(ctx, r, x, y, width, height, h, node, gap)
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
                //绘制分
         
     | 
| 
       28 
     | 
    
         
            -
                drawText(ctx, r, x+width+gap, y, width, height, m, node, gap)
         
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
                //绘制秒
         
     | 
| 
       31 
     | 
    
         
            -
                drawText(ctx, r, x+(width*2 + gap*2), y, width, height, s, node)
         
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
                //恢复填充色
         
     | 
| 
       34 
     | 
    
         
            -
                ctx.fillStyle = "#ffffff";
         
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
            }
         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
            function drawText(ctx, r, x, y, width, height, hText, node, gap) {
         
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
                //文字
         
     | 
| 
       42 
     | 
    
         
            -
                let textfillStyle = node.font.color || "#ffffff";
         
     | 
| 
       43 
     | 
    
         
            -
                let textBackground = node.font.background || '#ffffff1a';
         
     | 
| 
       44 
     | 
    
         
            -
                ctx.font = '' + node.font.fontSize +"px " + node.font.fontFamily;
         
     | 
| 
       45 
     | 
    
         
            -
                ctx.textBaseline = 'middle';
         
     | 
| 
       46 
     | 
    
         
            -
                ctx.textAlign = 'center';
         
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
                const centerX = width / 2;
         
     | 
| 
       49 
     | 
    
         
            -
                const centerY = height / 2;
         
     | 
| 
       50 
     | 
    
         
            -
                //绘制上半部分
         
     | 
| 
       51 
     | 
    
         
            -
                ctx.save();
         
     | 
| 
       52 
     | 
    
         
            -
                ctx.beginPath();
         
     | 
| 
       53 
     | 
    
         
            -
                ctx.fillStyle = textBackground;
         
     | 
| 
       54 
     | 
    
         
            -
                ctx.beginPath();
         
     | 
| 
       55 
     | 
    
         
            -
                ctx.moveTo(x + r, y);
         
     | 
| 
       56 
     | 
    
         
            -
                ctx.lineTo(x + width -r, y);
         
     | 
| 
       57 
     | 
    
         
            -
                ctx.quadraticCurveTo(x + width, y, x+width, y+r);
         
     | 
| 
       58 
     | 
    
         
            -
                ctx.lineTo(x+width, y + height/2 - 1);
         
     | 
| 
       59 
     | 
    
         
            -
                ctx.lineTo(x, y + height/2 - 1);
         
     | 
| 
       60 
     | 
    
         
            -
                ctx.lineTo(x, y+r);
         
     | 
| 
       61 
     | 
    
         
            -
                ctx.quadraticCurveTo(x, y, x+r, y);
         
     | 
| 
       62 
     | 
    
         
            -
                ctx.fill();
         
     | 
| 
       63 
     | 
    
         
            -
                ctx.clip();
         
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
                ctx.fillStyle = textfillStyle;
         
     | 
| 
       66 
     | 
    
         
            -
                ctx.fillText(hText, x+centerX, y+centerY);
         
     | 
| 
       67 
     | 
    
         
            -
                ctx.restore();
         
     | 
| 
       68 
     | 
    
         
            -
                //绘制下半部分
         
     | 
| 
       69 
     | 
    
         
            -
                ctx.save();
         
     | 
| 
       70 
     | 
    
         
            -
                ctx.beginPath();
         
     | 
| 
       71 
     | 
    
         
            -
                ctx.fillStyle = textBackground;
         
     | 
| 
       72 
     | 
    
         
            -
                ctx.moveTo(x, y+height/2+1);
         
     | 
| 
       73 
     | 
    
         
            -
                ctx.lineTo(x+width, y+height/2+1);
         
     | 
| 
       74 
     | 
    
         
            -
                ctx.lineTo(x+width, y+height-r);
         
     | 
| 
       75 
     | 
    
         
            -
                ctx.quadraticCurveTo(x+width, y+height, x+width-r, y+height);
         
     | 
| 
       76 
     | 
    
         
            -
                ctx.lineTo(x+r, y+height);
         
     | 
| 
       77 
     | 
    
         
            -
                ctx.quadraticCurveTo(x, y+height, x, y+height-r);
         
     | 
| 
       78 
     | 
    
         
            -
                ctx.lineTo(x, y+height/2+2);
         
     | 
| 
       79 
     | 
    
         
            -
                ctx.fill();
         
     | 
| 
       80 
     | 
    
         
            -
                ctx.clip();
         
     | 
| 
       81 
     | 
    
         
            -
                
         
     | 
| 
       82 
     | 
    
         
            -
                ctx.fillStyle = textfillStyle;
         
     | 
| 
       83 
     | 
    
         
            -
                ctx.fillText(hText, x+centerX, y+centerY);
         
     | 
| 
       84 
     | 
    
         
            -
                ctx.restore();
         
     | 
| 
       85 
     | 
    
         
            -
             
     | 
| 
       86 
     | 
    
         
            -
                //绘制冒号
         
     | 
| 
       87 
     | 
    
         
            -
                if(!gap) return
         
     | 
| 
       88 
     | 
    
         
            -
             
     | 
| 
       89 
     | 
    
         
            -
                ctx.fillStyle = textfillStyle;
         
     | 
| 
       90 
     | 
    
         
            -
                ctx.textBaseline = 'middle';
         
     | 
| 
       91 
     | 
    
         
            -
                ctx.textAlign = 'center';
         
     | 
| 
       92 
     | 
    
         
            -
                let metricss = ctx.measureText(":");
         
     | 
| 
       93 
     | 
    
         
            -
                const fontHeights = metricss.actualBoundingBoxAscent + metricss.actualBoundingBoxDescent;
         
     | 
| 
       94 
     | 
    
         
            -
                const centerYY = y + (height / 2) + (metricss.actualBoundingBoxAscent - fontHeights / 2);
         
     | 
| 
       95 
     | 
    
         
            -
                ctx.fillText(":", x+width+(gap/2), centerYY);
         
     | 
| 
       96 
     | 
    
         
            -
                ctx.restore();
         
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
       98 
     | 
    
         
            -
            }
         
     | 
| 
         @@ -1,9 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Pen } from '../models';
         
     | 
| 
       2 
     | 
    
         
            -
            // @ts-ignore
         
     | 
| 
       3 
     | 
    
         
            -
            export const commonStore: {
         
     | 
| 
       4 
     | 
    
         
            -
                canvasDraws: {
         
     | 
| 
       5 
     | 
    
         
            -
                    [key: string]: (ctx: CanvasRenderingContext2D, pen: Pen) => void;
         
     | 
| 
       6 
     | 
    
         
            -
                };
         
     | 
| 
       7 
     | 
    
         
            -
                anchors: { [key: string]: (pen: Pen) => void }; 
         
     | 
| 
       8 
     | 
    
         
            -
                htmlElements: { [key: string]: HTMLDivElement }; // html元素
         
     | 
| 
       9 
     | 
    
         
            -
            };
         
     | 
    
        package/core/src/store/common.js
    DELETED
    
    
    
        package/core/src/store/data.d.ts
    DELETED
    
    | 
         @@ -1,196 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            // @ts-ignore
         
     | 
| 
       2 
     | 
    
         
            -
            import { default as mitt, Emitter } from 'mitt';
         
     | 
| 
       3 
     | 
    
         
            -
            import { Pen, Lock } from '../models';
         
     | 
| 
       4 
     | 
    
         
            -
            import {Options, DefalutOptions} from '../options';
         
     | 
| 
       5 
     | 
    
         
            -
            import {s8} from '../utils';
         
     | 
| 
       6 
     | 
    
         
            -
            import { commonStore } from './common'
         
     | 
| 
       7 
     | 
    
         
            -
            // 2D可视化的data数据
         
     | 
| 
       8 
     | 
    
         
            -
            export interface visualization2DData {
         
     | 
| 
       9 
     | 
    
         
            -
                pens: Pen[];
         
     | 
| 
       10 
     | 
    
         
            -
                lineName: string;
         
     | 
| 
       11 
     | 
    
         
            -
                fromArrowType: string;
         
     | 
| 
       12 
     | 
    
         
            -
                toArrowType: string;
         
     | 
| 
       13 
     | 
    
         
            -
                scale: number;
         
     | 
| 
       14 
     | 
    
         
            -
                pageZoom: number,
         
     | 
| 
       15 
     | 
    
         
            -
                locked: Lock;
         
     | 
| 
       16 
     | 
    
         
            -
                bkImage: string;
         
     | 
| 
       17 
     | 
    
         
            -
                bkColor: string;
         
     | 
| 
       18 
     | 
    
         
            -
                grid?: boolean;
         
     | 
| 
       19 
     | 
    
         
            -
                websocket?: string;
         
     | 
| 
       20 
     | 
    
         
            -
                mqttUrl?: string;
         
     | 
| 
       21 
     | 
    
         
            -
                mqttOptions?: {
         
     | 
| 
       22 
     | 
    
         
            -
                    clientId?: string;
         
     | 
| 
       23 
     | 
    
         
            -
                    username?: string;
         
     | 
| 
       24 
     | 
    
         
            -
                    password?: string;
         
     | 
| 
       25 
     | 
    
         
            -
                };
         
     | 
| 
       26 
     | 
    
         
            -
                mqttTopics?: string;
         
     | 
| 
       27 
     | 
    
         
            -
                manualCps?: boolean;
         
     | 
| 
       28 
     | 
    
         
            -
                dataConstruct?: any;
         
     | 
| 
       29 
     | 
    
         
            -
                bindDataTooltipVisible?: boolean;
         
     | 
| 
       30 
     | 
    
         
            -
                data?: any;
         
     | 
| 
       31 
     | 
    
         
            -
                bkImageRect?: any;
         
     | 
| 
       32 
     | 
    
         
            -
            }
         
     | 
| 
       33 
     | 
    
         
            -
            export interface paramsData {
         
     | 
| 
       34 
     | 
    
         
            -
                doorIds?: [],
         
     | 
| 
       35 
     | 
    
         
            -
                tagIds?: [],
         
     | 
| 
       36 
     | 
    
         
            -
                kpiAddrs?: [],
         
     | 
| 
       37 
     | 
    
         
            -
                tagEcharts?: [],
         
     | 
| 
       38 
     | 
    
         
            -
                assetIds?: [],
         
     | 
| 
       39 
     | 
    
         
            -
                areaIds?: [],
         
     | 
| 
       40 
     | 
    
         
            -
                varVaule?: [],
         
     | 
| 
       41 
     | 
    
         
            -
                branchValue?: [],
         
     | 
| 
       42 
     | 
    
         
            -
                echartData?: [],
         
     | 
| 
       43 
     | 
    
         
            -
                dataConfig?: {},
         
     | 
| 
       44 
     | 
    
         
            -
                echartAssemblyData?: [],
         
     | 
| 
       45 
     | 
    
         
            -
                routingkey?: string,
         
     | 
| 
       46 
     | 
    
         
            -
                pathRewrite?: string
         
     | 
| 
       47 
     | 
    
         
            -
            }
         
     | 
| 
       48 
     | 
    
         
            -
            // 2D可视化使用到的数据仓库
         
     | 
| 
       49 
     | 
    
         
            -
            export interface visualization2DStore {
         
     | 
| 
       50 
     | 
    
         
            -
                id: string;
         
     | 
| 
       51 
     | 
    
         
            -
                data: visualization2DData;
         
     | 
| 
       52 
     | 
    
         
            -
                mqttData?: null; // mqtt实时数据
         
     | 
| 
       53 
     | 
    
         
            -
                initConfNode: {}; // 初始化元件节点数据
         
     | 
| 
       54 
     | 
    
         
            -
                mqttParams: paramsData; // mqtt参数
         
     | 
| 
       55 
     | 
    
         
            -
                pens: { [key: string]: Pen };
         
     | 
| 
       56 
     | 
    
         
            -
                options: Options;
         
     | 
| 
       57 
     | 
    
         
            -
                cacheDatas?: {
         
     | 
| 
       58 
     | 
    
         
            -
                    data: visualization2DData;
         
     | 
| 
       59 
     | 
    
         
            -
                }[];
         
     | 
| 
       60 
     | 
    
         
            -
                elementInteractivePoor: {}; // element 交互过渡数据
         
     | 
| 
       61 
     | 
    
         
            -
                pickerDataPool: {}; // datePicker 交互数据池
         
     | 
| 
       62 
     | 
    
         
            -
                echartsDataPool: {}; // echarts Dom节点数据
         
     | 
| 
       63 
     | 
    
         
            -
                echartsOptionsPool: {}; // echarts options节点数据
         
     | 
| 
       64 
     | 
    
         
            -
                echartsRealDataPool: {}; // echarts 实时数据
         
     | 
| 
       65 
     | 
    
         
            -
                switchTabDataPool: {}; // tabs
         
     | 
| 
       66 
     | 
    
         
            -
                tableDataPool: {}; // form table
         
     | 
| 
       67 
     | 
    
         
            -
                selectDataPool: {}; // form select
         
     | 
| 
       68 
     | 
    
         
            -
                selectRealDataPool: {}; // form select
         
     | 
| 
       69 
     | 
    
         
            -
                selectTabDataPool: {}; // form select
         
     | 
| 
       70 
     | 
    
         
            -
                iframeDataPool: {}; // iframe
         
     | 
| 
       71 
     | 
    
         
            -
                formoverDataPool: {}; // 滚动组件 Dom节点数据
         
     | 
| 
       72 
     | 
    
         
            -
                formoverCanvasDataPool: {}; // 滚动组件 画布节点数据
         
     | 
| 
       73 
     | 
    
         
            -
                emitter: Emitter;
         
     | 
| 
       74 
     | 
    
         
            -
                dpiRatio?: number;
         
     | 
| 
       75 
     | 
    
         
            -
                lastScale?: number; //记录上次模版的scale
         
     | 
| 
       76 
     | 
    
         
            -
                monitorAlarm?:boolean; // 全局报警标记,代表正在访问的这个topology文件中是否有告警发生
         
     | 
| 
       77 
     | 
    
         
            -
                parentElem: HTMLElement
         
     | 
| 
       78 
     | 
    
         
            -
            }
         
     | 
| 
       79 
     | 
    
         
            -
            // @ts-ignore
         
     | 
| 
       80 
     | 
    
         
            -
            export const createStore = () => {
         
     | 
| 
       81 
     | 
    
         
            -
                return {
         
     | 
| 
       82 
     | 
    
         
            -
                    id: '',
         
     | 
| 
       83 
     | 
    
         
            -
                    data: {
         
     | 
| 
       84 
     | 
    
         
            -
                        pens: [],
         
     | 
| 
       85 
     | 
    
         
            -
                        lineName: 'curve',
         
     | 
| 
       86 
     | 
    
         
            -
                        fromArrowType: '',
         
     | 
| 
       87 
     | 
    
         
            -
                        toArrowType: 'triangleSolid',
         
     | 
| 
       88 
     | 
    
         
            -
                        scale: 1,
         
     | 
| 
       89 
     | 
    
         
            -
                        pageZoom: 1,
         
     | 
| 
       90 
     | 
    
         
            -
                        locked: Lock.None,
         
     | 
| 
       91 
     | 
    
         
            -
                        bkImageRect: null,
         
     | 
| 
       92 
     | 
    
         
            -
                        mqttOptions: {
         
     | 
| 
       93 
     | 
    
         
            -
                            clientId: s8()
         
     | 
| 
       94 
     | 
    
         
            -
                        },
         
     | 
| 
       95 
     | 
    
         
            -
                        dataConstruct: {},
         
     | 
| 
       96 
     | 
    
         
            -
                        bindDataTooltipVisible: true
         
     | 
| 
       97 
     | 
    
         
            -
                    },
         
     | 
| 
       98 
     | 
    
         
            -
                    mqttData: null,
         
     | 
| 
       99 
     | 
    
         
            -
                    initConfNode: {},
         
     | 
| 
       100 
     | 
    
         
            -
                    mqttParams: {
         
     | 
| 
       101 
     | 
    
         
            -
                        doorIds: [],
         
     | 
| 
       102 
     | 
    
         
            -
                        tagIds: [],
         
     | 
| 
       103 
     | 
    
         
            -
                        kpiAddrs: [],
         
     | 
| 
       104 
     | 
    
         
            -
                        tagEcharts: [],
         
     | 
| 
       105 
     | 
    
         
            -
                        assetIds: [],
         
     | 
| 
       106 
     | 
    
         
            -
                        areaIds: [],
         
     | 
| 
       107 
     | 
    
         
            -
                        varVaule: [],
         
     | 
| 
       108 
     | 
    
         
            -
                        branchValue: [],
         
     | 
| 
       109 
     | 
    
         
            -
                        echartData: [],
         
     | 
| 
       110 
     | 
    
         
            -
                        dataConfig: {},
         
     | 
| 
       111 
     | 
    
         
            -
                        echartAssemblyData: [],
         
     | 
| 
       112 
     | 
    
         
            -
                        routingkey: '',
         
     | 
| 
       113 
     | 
    
         
            -
                        pathRewrite: ''
         
     | 
| 
       114 
     | 
    
         
            -
                    },
         
     | 
| 
       115 
     | 
    
         
            -
                    pens: {},
         
     | 
| 
       116 
     | 
    
         
            -
                    options: { ...DefalutOptions },
         
     | 
| 
       117 
     | 
    
         
            -
                    elementInteractivePoor: {}, // element 交互过渡数据
         
     | 
| 
       118 
     | 
    
         
            -
                    pickerDataPool: {}, // datePicker 交互数据池
         
     | 
| 
       119 
     | 
    
         
            -
                    echartsDataPool: {}, // echarts Dom节点数据
         
     | 
| 
       120 
     | 
    
         
            -
                    echartsOptionsPool: {}, // echarts options节点数据
         
     | 
| 
       121 
     | 
    
         
            -
                    echartsRealDataPool: {}, // echarts 实时数据
         
     | 
| 
       122 
     | 
    
         
            -
                    switchTabDataPool: {}, // tabs
         
     | 
| 
       123 
     | 
    
         
            -
                    tableDataPool: {}, // form table
         
     | 
| 
       124 
     | 
    
         
            -
                    selectDataPool: {}, // form select
         
     | 
| 
       125 
     | 
    
         
            -
                    selectRealDataPool: {}, // form select
         
     | 
| 
       126 
     | 
    
         
            -
                    selectTabDataPool: {}, // form select
         
     | 
| 
       127 
     | 
    
         
            -
                    iframeDataPool: {}, // iframe
         
     | 
| 
       128 
     | 
    
         
            -
                    formoverDataPool: {}, // 滚动组件 Dom节点数据
         
     | 
| 
       129 
     | 
    
         
            -
                    formoverCanvasDataPool: {}, // 滚动组件 画布节点数据
         
     | 
| 
       130 
     | 
    
         
            -
                    emitter: mitt(),
         
     | 
| 
       131 
     | 
    
         
            -
                    cacheDatas: [],
         
     | 
| 
       132 
     | 
    
         
            -
                    dpiRatio: 1,
         
     | 
| 
       133 
     | 
    
         
            -
                    lastScale: 1,
         
     | 
| 
       134 
     | 
    
         
            -
                    monitorAlarm: false,
         
     | 
| 
       135 
     | 
    
         
            -
                    parentElem: null
         
     | 
| 
       136 
     | 
    
         
            -
                } as visualization2DStore;
         
     | 
| 
       137 
     | 
    
         
            -
            };
         
     | 
| 
       138 
     | 
    
         
            -
            // @ts-ignore
         
     | 
| 
       139 
     | 
    
         
            -
            export const useStore = (id = 'default'): visualization2DStore => {
         
     | 
| 
       140 
     | 
    
         
            -
                if (!commonStore[id]) {
         
     | 
| 
       141 
     | 
    
         
            -
                    // @ts-ignore
         
     | 
| 
       142 
     | 
    
         
            -
                    commonStore[id] = createStore();
         
     | 
| 
       143 
     | 
    
         
            -
                    commonStore[id].id = id;
         
     | 
| 
       144 
     | 
    
         
            -
                }
         
     | 
| 
       145 
     | 
    
         
            -
                return commonStore[id];
         
     | 
| 
       146 
     | 
    
         
            -
            };
         
     | 
| 
       147 
     | 
    
         
            -
            export declare function clearElementDataPool(data: {}): void;
         
     | 
| 
       148 
     | 
    
         
            -
            // @ts-ignore
         
     | 
| 
       149 
     | 
    
         
            -
            export const clearStore = (store: visualization2DStore, del: string) => {
         
     | 
| 
       150 
     | 
    
         
            -
                store.data = {
         
     | 
| 
       151 
     | 
    
         
            -
                    bkColor: '',
         
     | 
| 
       152 
     | 
    
         
            -
                    bkImage: '',
         
     | 
| 
       153 
     | 
    
         
            -
                    data: undefined,
         
     | 
| 
       154 
     | 
    
         
            -
                    grid: false,
         
     | 
| 
       155 
     | 
    
         
            -
                    manualCps: false,
         
     | 
| 
       156 
     | 
    
         
            -
                    mqttTopics: '',
         
     | 
| 
       157 
     | 
    
         
            -
                    mqttUrl: '',
         
     | 
| 
       158 
     | 
    
         
            -
                    websocket: '',
         
     | 
| 
       159 
     | 
    
         
            -
                    pens: [],
         
     | 
| 
       160 
     | 
    
         
            -
                    lineName: 'curve',
         
     | 
| 
       161 
     | 
    
         
            -
                    fromArrowType: '',
         
     | 
| 
       162 
     | 
    
         
            -
                    toArrowType: 'triangleSolid',
         
     | 
| 
       163 
     | 
    
         
            -
                    scale: 1,
         
     | 
| 
       164 
     | 
    
         
            -
                    pageZoom: 1,
         
     | 
| 
       165 
     | 
    
         
            -
                    locked: Lock.None,
         
     | 
| 
       166 
     | 
    
         
            -
                    bkImageRect: null,
         
     | 
| 
       167 
     | 
    
         
            -
                    mqttOptions: {
         
     | 
| 
       168 
     | 
    
         
            -
                        clientId: s8()
         
     | 
| 
       169 
     | 
    
         
            -
                    },
         
     | 
| 
       170 
     | 
    
         
            -
                    dataConstruct: {},
         
     | 
| 
       171 
     | 
    
         
            -
                    bindDataTooltipVisible: true
         
     | 
| 
       172 
     | 
    
         
            -
                };
         
     | 
| 
       173 
     | 
    
         
            -
                store.mqttData = null;
         
     | 
| 
       174 
     | 
    
         
            -
                store.initConfNode = {};
         
     | 
| 
       175 
     | 
    
         
            -
                store.mqttParams = {
         
     | 
| 
       176 
     | 
    
         
            -
                    doorIds: [],
         
     | 
| 
       177 
     | 
    
         
            -
                    tagIds: [],
         
     | 
| 
       178 
     | 
    
         
            -
                    kpiAddrs: [],
         
     | 
| 
       179 
     | 
    
         
            -
                    tagEcharts: [],
         
     | 
| 
       180 
     | 
    
         
            -
                    assetIds: [],
         
     | 
| 
       181 
     | 
    
         
            -
                    areaIds: [],
         
     | 
| 
       182 
     | 
    
         
            -
                    varVaule: [],
         
     | 
| 
       183 
     | 
    
         
            -
                    branchValue: [],
         
     | 
| 
       184 
     | 
    
         
            -
                    echartData: [],
         
     | 
| 
       185 
     | 
    
         
            -
                    echartAssemblyData: [],
         
     | 
| 
       186 
     | 
    
         
            -
                    routingkey: '',
         
     | 
| 
       187 
     | 
    
         
            -
                    pathRewrite: ''
         
     | 
| 
       188 
     | 
    
         
            -
                };
         
     | 
| 
       189 
     | 
    
         
            -
                store.lastScale = store.data.scale;
         
     | 
| 
       190 
     | 
    
         
            -
                store.pens = {};
         
     | 
| 
       191 
     | 
    
         
            -
                store.options = {};
         
     | 
| 
       192 
     | 
    
         
            -
                store.cacheDatas = [];
         
     | 
| 
       193 
     | 
    
         
            -
                store.dpiRatio = 1;
         
     | 
| 
       194 
     | 
    
         
            -
                store.lastScale = 1;
         
     | 
| 
       195 
     | 
    
         
            -
                store.monitorAlarm = false;
         
     | 
| 
       196 
     | 
    
         
            -
            };
         
     | 
    
        package/core/src/store/data.js
    DELETED
    
    | 
         @@ -1,193 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            var __assign = (this && this.__assign) || function () {
         
     | 
| 
       2 
     | 
    
         
            -
                __assign = Object.assign || function(t) {
         
     | 
| 
       3 
     | 
    
         
            -
                    for (var s, i = 1, n = arguments.length; i < n; i++) {
         
     | 
| 
       4 
     | 
    
         
            -
                        s = arguments[i];
         
     | 
| 
       5 
     | 
    
         
            -
                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
         
     | 
| 
       6 
     | 
    
         
            -
                            t[p] = s[p];
         
     | 
| 
       7 
     | 
    
         
            -
                    }
         
     | 
| 
       8 
     | 
    
         
            -
                    return t;
         
     | 
| 
       9 
     | 
    
         
            -
                };
         
     | 
| 
       10 
     | 
    
         
            -
                return __assign.apply(this, arguments);
         
     | 
| 
       11 
     | 
    
         
            -
            };
         
     | 
| 
       12 
     | 
    
         
            -
            import { default as mitt } from 'mitt';
         
     | 
| 
       13 
     | 
    
         
            -
            import { Lock } from '../models';
         
     | 
| 
       14 
     | 
    
         
            -
            import {DefalutOptions} from '../options';
         
     | 
| 
       15 
     | 
    
         
            -
            import {s8} from '../utils';
         
     | 
| 
       16 
     | 
    
         
            -
            import {commonStore} from './common';
         
     | 
| 
       17 
     | 
    
         
            -
            import {removeAllElement} from '../../../store';
         
     | 
| 
       18 
     | 
    
         
            -
            export var createStore = function () {
         
     | 
| 
       19 
     | 
    
         
            -
                return {
         
     | 
| 
       20 
     | 
    
         
            -
                    id: '',
         
     | 
| 
       21 
     | 
    
         
            -
                    data: {
         
     | 
| 
       22 
     | 
    
         
            -
                        pens: [],
         
     | 
| 
       23 
     | 
    
         
            -
                        lineName: 'curve',
         
     | 
| 
       24 
     | 
    
         
            -
                        fromArrowType: '',
         
     | 
| 
       25 
     | 
    
         
            -
                        toArrowType: 'triangleSolid',
         
     | 
| 
       26 
     | 
    
         
            -
                        scale: 1,
         
     | 
| 
       27 
     | 
    
         
            -
                        locked: Lock.None,
         
     | 
| 
       28 
     | 
    
         
            -
                        dataResize: 1, // 数据是否加载,1是,0否
         
     | 
| 
       29 
     | 
    
         
            -
                        bkImageRect: null,
         
     | 
| 
       30 
     | 
    
         
            -
                        pageZoom: 1,
         
     | 
| 
       31 
     | 
    
         
            -
                        mqttOptions: {
         
     | 
| 
       32 
     | 
    
         
            -
                            clientId: s8()
         
     | 
| 
       33 
     | 
    
         
            -
                        },
         
     | 
| 
       34 
     | 
    
         
            -
                        dataConstruct: {},
         
     | 
| 
       35 
     | 
    
         
            -
                        bindDataTooltipVisible: true
         
     | 
| 
       36 
     | 
    
         
            -
                    },
         
     | 
| 
       37 
     | 
    
         
            -
                    mqttData: null,
         
     | 
| 
       38 
     | 
    
         
            -
                    initConfNode: {},
         
     | 
| 
       39 
     | 
    
         
            -
                    mqttParams: {
         
     | 
| 
       40 
     | 
    
         
            -
                        doorIds: [],
         
     | 
| 
       41 
     | 
    
         
            -
                        tagIds: [],
         
     | 
| 
       42 
     | 
    
         
            -
                        kpiAddrs: [],
         
     | 
| 
       43 
     | 
    
         
            -
                        tagEcharts: [],
         
     | 
| 
       44 
     | 
    
         
            -
                        assetIds: [],
         
     | 
| 
       45 
     | 
    
         
            -
                        areaIds: [],
         
     | 
| 
       46 
     | 
    
         
            -
                        varVaule: [],
         
     | 
| 
       47 
     | 
    
         
            -
                        branchValue: [],
         
     | 
| 
       48 
     | 
    
         
            -
                        echartData: [],
         
     | 
| 
       49 
     | 
    
         
            -
                        dataConfig: {},
         
     | 
| 
       50 
     | 
    
         
            -
                        echartAssemblyData: [],
         
     | 
| 
       51 
     | 
    
         
            -
                        routingkey: '',
         
     | 
| 
       52 
     | 
    
         
            -
                        pathRewrite: ''
         
     | 
| 
       53 
     | 
    
         
            -
                    },
         
     | 
| 
       54 
     | 
    
         
            -
                    pens: {},
         
     | 
| 
       55 
     | 
    
         
            -
                    options: { ...DefalutOptions },
         
     | 
| 
       56 
     | 
    
         
            -
                    elementInteractivePoor: {}, // element 交互过渡数据
         
     | 
| 
       57 
     | 
    
         
            -
                    pickerDataPool: {}, // datePicker 交互数据池
         
     | 
| 
       58 
     | 
    
         
            -
                    echartsDataPool: {}, // echarts Dom节点数据
         
     | 
| 
       59 
     | 
    
         
            -
                    echartsOptionsPool: {}, // echarts options节点数据
         
     | 
| 
       60 
     | 
    
         
            -
                    echartsRealDataPool: {}, // echarts 实时数据 datePicker
         
     | 
| 
       61 
     | 
    
         
            -
                    switchTabDataPool: {}, // tabs
         
     | 
| 
       62 
     | 
    
         
            -
                    tableDataPool: {}, // form table
         
     | 
| 
       63 
     | 
    
         
            -
                    selectDataPool: {}, // form select
         
     | 
| 
       64 
     | 
    
         
            -
                    selectRealDataPool: {}, // form select
         
     | 
| 
       65 
     | 
    
         
            -
                    selectTabDataPool: {}, // form select
         
     | 
| 
       66 
     | 
    
         
            -
                    iframeDataPool: {}, // iframe
         
     | 
| 
       67 
     | 
    
         
            -
                    formoverDataPool: {}, // 滚动组件 Dom节点数据
         
     | 
| 
       68 
     | 
    
         
            -
                    formoverCanvasDataPool: {}, // 滚动组件 画布节点数据
         
     | 
| 
       69 
     | 
    
         
            -
                    emitter: mitt(),
         
     | 
| 
       70 
     | 
    
         
            -
                    cacheDatas: [],
         
     | 
| 
       71 
     | 
    
         
            -
                    dpiRatio: 1,
         
     | 
| 
       72 
     | 
    
         
            -
                    lastScale: 1,
         
     | 
| 
       73 
     | 
    
         
            -
                    monitorAlarm: false,// 全局报警标记,代表正在访问的这个topology文件中是否有告警发生
         
     | 
| 
       74 
     | 
    
         
            -
                    parentElem: null,
         
     | 
| 
       75 
     | 
    
         
            -
                    timeDataPool: {}, // time
         
     | 
| 
       76 
     | 
    
         
            -
                };
         
     | 
| 
       77 
     | 
    
         
            -
            };
         
     | 
| 
       78 
     | 
    
         
            -
            export var useStore = function (id) {
         
     | 
| 
       79 
     | 
    
         
            -
                if (id === void 0) { id = 'default'; }
         
     | 
| 
       80 
     | 
    
         
            -
                if (!commonStore[id]) {
         
     | 
| 
       81 
     | 
    
         
            -
                    commonStore[id] = createStore();
         
     | 
| 
       82 
     | 
    
         
            -
                    commonStore[id].id = id;
         
     | 
| 
       83 
     | 
    
         
            -
                }
         
     | 
| 
       84 
     | 
    
         
            -
                return commonStore[id];
         
     | 
| 
       85 
     | 
    
         
            -
            };
         
     | 
| 
       86 
     | 
    
         
            -
            export function clearElementDataPool(data) {
         
     | 
| 
       87 
     | 
    
         
            -
                const { echartsDataPool, selectDataPool, iframeDataPool, formoverDataPool, formoverCanvasDataPool} = data;
         
     | 
| 
       88 
     | 
    
         
            -
                for (let [key, node] of Object.entries(echartsDataPool)) {
         
     | 
| 
       89 
     | 
    
         
            -
                    if(node) {
         
     | 
| 
       90 
     | 
    
         
            -
                        clearInterval(node.timeTicket);
         
     | 
| 
       91 
     | 
    
         
            -
                        if(node.chart) {
         
     | 
| 
       92 
     | 
    
         
            -
                            node.chart.off('mouseover');
         
     | 
| 
       93 
     | 
    
         
            -
                            node.chart.off('mouseout');
         
     | 
| 
       94 
     | 
    
         
            -
                            node.chart.off('globalout');
         
     | 
| 
       95 
     | 
    
         
            -
                            node.chart.dispose();
         
     | 
| 
       96 
     | 
    
         
            -
                        }
         
     | 
| 
       97 
     | 
    
         
            -
                        if(node.div && node.div.parentNode) node.div.parentNode.removeChild(node.div);
         
     | 
| 
       98 
     | 
    
         
            -
                    }
         
     | 
| 
       99 
     | 
    
         
            -
                    delete data.echartsDataPool[key];
         
     | 
| 
       100 
     | 
    
         
            -
                }
         
     | 
| 
       101 
     | 
    
         
            -
                if(Object.keys(selectDataPool).length) {
         
     | 
| 
       102 
     | 
    
         
            -
                    let dropdownEle = null,
         
     | 
| 
       103 
     | 
    
         
            -
                            dropdownListEle = null;
         
     | 
| 
       104 
     | 
    
         
            -
                    for (let [key, node] of Object.entries(selectDataPool)) {
         
     | 
| 
       105 
     | 
    
         
            -
                        if(!dropdownEle) {
         
     | 
| 
       106 
     | 
    
         
            -
                            dropdownEle = node.dom.selectDropdown;
         
     | 
| 
       107 
     | 
    
         
            -
                            dropdownListEle = node.dom.selectDropdownUl;
         
     | 
| 
       108 
     | 
    
         
            -
                        }
         
     | 
| 
       109 
     | 
    
         
            -
                        if(node.dom.selectEle && node.dom.selectEle.parentNode) node.dom.selectEle.parentNode.removeChild(node.dom.selectEle);
         
     | 
| 
       110 
     | 
    
         
            -
                        delete data.selectDataPool[key];
         
     | 
| 
       111 
     | 
    
         
            -
                    }
         
     | 
| 
       112 
     | 
    
         
            -
                    if(dropdownEle) dropdownEle.style.display = 'none';
         
     | 
| 
       113 
     | 
    
         
            -
                    if(dropdownListEle) dropdownListEle.innerHTML = '';
         
     | 
| 
       114 
     | 
    
         
            -
                }
         
     | 
| 
       115 
     | 
    
         
            -
                for (let [key, node] of Object.entries(iframeDataPool)) {
         
     | 
| 
       116 
     | 
    
         
            -
                    node.iframe.parentNode.removeChild(node.iframe);
         
     | 
| 
       117 
     | 
    
         
            -
                    delete data.iframeDataPool[key];
         
     | 
| 
       118 
     | 
    
         
            -
                }
         
     | 
| 
       119 
     | 
    
         
            -
                for (let key of Object.keys(formoverDataPool)) {
         
     | 
| 
       120 
     | 
    
         
            -
                    delete formoverDataPool[key];
         
     | 
| 
       121 
     | 
    
         
            -
                }
         
     | 
| 
       122 
     | 
    
         
            -
                for (let key of Object.keys(formoverCanvasDataPool)) {
         
     | 
| 
       123 
     | 
    
         
            -
                    const elementNode = document.getElementById(key);
         
     | 
| 
       124 
     | 
    
         
            -
                    if(elementNode) {
         
     | 
| 
       125 
     | 
    
         
            -
                        elementNode.parentNode.removeChild(elementNode);   
         
     | 
| 
       126 
     | 
    
         
            -
                    }
         
     | 
| 
       127 
     | 
    
         
            -
                    delete formoverCanvasDataPool[key];
         
     | 
| 
       128 
     | 
    
         
            -
                }
         
     | 
| 
       129 
     | 
    
         
            -
            }
         
     | 
| 
       130 
     | 
    
         
            -
            export var clearStore = function (store, del) {
         
     | 
| 
       131 
     | 
    
         
            -
                store.lastScale = store.data.scale;
         
     | 
| 
       132 
     | 
    
         
            -
                store.data = {
         
     | 
| 
       133 
     | 
    
         
            -
                    pens: [],
         
     | 
| 
       134 
     | 
    
         
            -
                    lineName: 'curve',
         
     | 
| 
       135 
     | 
    
         
            -
                    fromArrowType: '',
         
     | 
| 
       136 
     | 
    
         
            -
                    toArrowType: 'triangleSolid',
         
     | 
| 
       137 
     | 
    
         
            -
                    scale: 1,
         
     | 
| 
       138 
     | 
    
         
            -
                    pageZoom: 1,
         
     | 
| 
       139 
     | 
    
         
            -
                    locked: Lock.None,
         
     | 
| 
       140 
     | 
    
         
            -
                    dataResize: 1, // 数据是否加载,1是,0否
         
     | 
| 
       141 
     | 
    
         
            -
                    bkImageRect: null,
         
     | 
| 
       142 
     | 
    
         
            -
                    mqttOptions: {
         
     | 
| 
       143 
     | 
    
         
            -
                        clientId: s8()
         
     | 
| 
       144 
     | 
    
         
            -
                    },
         
     | 
| 
       145 
     | 
    
         
            -
                    dataConstruct: {},
         
     | 
| 
       146 
     | 
    
         
            -
                    bindDataTooltipVisible: true
         
     | 
| 
       147 
     | 
    
         
            -
                };
         
     | 
| 
       148 
     | 
    
         
            -
                store.initConfNode = {};
         
     | 
| 
       149 
     | 
    
         
            -
                store.mqttParams = {
         
     | 
| 
       150 
     | 
    
         
            -
                    doorIds: [],
         
     | 
| 
       151 
     | 
    
         
            -
                    tagIds: [],
         
     | 
| 
       152 
     | 
    
         
            -
                    kpiAddrs: [],
         
     | 
| 
       153 
     | 
    
         
            -
                    tagEcharts: [],
         
     | 
| 
       154 
     | 
    
         
            -
                    assetIds: [],
         
     | 
| 
       155 
     | 
    
         
            -
                    areaIds: [],
         
     | 
| 
       156 
     | 
    
         
            -
                    varVaule: [],
         
     | 
| 
       157 
     | 
    
         
            -
                    branchValue: [],
         
     | 
| 
       158 
     | 
    
         
            -
                    echartData: [],
         
     | 
| 
       159 
     | 
    
         
            -
                    dataConfig: store.mqttParams.dataConfig.data ? {
         
     | 
| 
       160 
     | 
    
         
            -
                        data: {},
         
     | 
| 
       161 
     | 
    
         
            -
                        picker: store.mqttParams.dataConfig.picker
         
     | 
| 
       162 
     | 
    
         
            -
                    } : {},
         
     | 
| 
       163 
     | 
    
         
            -
                    echartAssemblyData: [],
         
     | 
| 
       164 
     | 
    
         
            -
                    routingkey: '',
         
     | 
| 
       165 
     | 
    
         
            -
                    pathRewrite: ''
         
     | 
| 
       166 
     | 
    
         
            -
                };
         
     | 
| 
       167 
     | 
    
         
            -
                store.pens = {}; // 先保留,后期优化提取变量用
         
     | 
| 
       168 
     | 
    
         
            -
                store.cacheDatas = [];
         
     | 
| 
       169 
     | 
    
         
            -
                store.dpiRatio = 1;
         
     | 
| 
       170 
     | 
    
         
            -
                store.lastScale = 1;
         
     | 
| 
       171 
     | 
    
         
            -
                store.monitorAlarm = false;
         
     | 
| 
       172 
     | 
    
         
            -
                store.elementInteractivePoor = {};
         
     | 
| 
       173 
     | 
    
         
            -
                store.pickerDataPool = {};
         
     | 
| 
       174 
     | 
    
         
            -
                store.echartsOptionsPool = {};
         
     | 
| 
       175 
     | 
    
         
            -
                store.echartsRealDataPool = {};
         
     | 
| 
       176 
     | 
    
         
            -
                store.switchTabDataPool = {};
         
     | 
| 
       177 
     | 
    
         
            -
                store.tableDataPool = {};
         
     | 
| 
       178 
     | 
    
         
            -
                store.selectRealDataPool = {};
         
     | 
| 
       179 
     | 
    
         
            -
                store.selectTabDataPool = {};
         
     | 
| 
       180 
     | 
    
         
            -
                clearElementDataPool({
         
     | 
| 
       181 
     | 
    
         
            -
                    echartsDataPool: store.echartsDataPool,
         
     | 
| 
       182 
     | 
    
         
            -
                    selectDataPool: store.selectDataPool,
         
     | 
| 
       183 
     | 
    
         
            -
                    iframeDataPool: store.iframeDataPool,
         
     | 
| 
       184 
     | 
    
         
            -
                    formoverDataPool: store.formoverDataPool,
         
     | 
| 
       185 
     | 
    
         
            -
                    formoverCanvasDataPool: store.formoverCanvasDataPool,
         
     | 
| 
       186 
     | 
    
         
            -
                    timeDataPool: store.timeDataPool
         
     | 
| 
       187 
     | 
    
         
            -
                });
         
     | 
| 
       188 
     | 
    
         
            -
                if(del) {
         
     | 
| 
       189 
     | 
    
         
            -
                    store.mqttParams.dataConfig = {};
         
     | 
| 
       190 
     | 
    
         
            -
                    delete commonStore[store.id];
         
     | 
| 
       191 
     | 
    
         
            -
                    removeAllElement();
         
     | 
| 
       192 
     | 
    
         
            -
                }
         
     | 
| 
       193 
     | 
    
         
            -
            };
         
     |