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,252 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import {echartsColorData} from '../../../static';
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            /**
         
     | 
| 
       4 
     | 
    
         
            -
             *
         
     | 
| 
       5 
     | 
    
         
            -
             * @param startRatio 开始绘制位置
         
     | 
| 
       6 
     | 
    
         
            -
             * @param endRatio 结束绘制位置
         
     | 
| 
       7 
     | 
    
         
            -
             * @param isSelected 是否选中
         
     | 
| 
       8 
     | 
    
         
            -
             * @param isHovered 鼠标悬浮在图表之上?
         
     | 
| 
       9 
     | 
    
         
            -
             * @param k 内廷半径
         
     | 
| 
       10 
     | 
    
         
            -
             * @param h 高
         
     | 
| 
       11 
     | 
    
         
            -
             * @returns {{u: {min: number, max: number, step: number}, v: {min: number, max: number, step: number}, x: ((function(*, *): *)|*), y: ((function(*, *): *)|*), z: ((function(*, *): (number|number))|*)}}
         
     | 
| 
       12 
     | 
    
         
            -
             */
         
     | 
| 
       13 
     | 
    
         
            -
            export function getParametricEquation(startRatio, endRatio, isSelected, isHovered, k, h){
         
     | 
| 
       14 
     | 
    
         
            -
                // 计算
         
     | 
| 
       15 
     | 
    
         
            -
                let midRatio = (startRatio + endRatio) / 2;
         
     | 
| 
       16 
     | 
    
         
            -
                let startRadian = startRatio * Math.PI * 2;
         
     | 
| 
       17 
     | 
    
         
            -
                let endRadian = endRatio * Math.PI * 2;
         
     | 
| 
       18 
     | 
    
         
            -
                let midRadian = midRatio * Math.PI * 2;
         
     | 
| 
       19 
     | 
    
         
            -
                isSelected = false;
         
     | 
| 
       20 
     | 
    
         
            -
                // 如果只有一个扇形,则不实现选中效果。
         
     | 
| 
       21 
     | 
    
         
            -
                if (startRatio === 0 && endRatio === 1) {
         
     | 
| 
       22 
     | 
    
         
            -
                    isSelected = true;
         
     | 
| 
       23 
     | 
    
         
            -
                }
         
     | 
| 
       24 
     | 
    
         
            -
                // 通过扇形内径/外径的值,换算出辅助参数 k(默认值 1/3)
         
     | 
| 
       25 
     | 
    
         
            -
                k = typeof k !== 'undefined' ? k : 1 / 3;
         
     | 
| 
       26 
     | 
    
         
            -
                // 计算选中效果分别在 x 轴、y 轴方向上的位移(未选中,则位移均为 0)
         
     | 
| 
       27 
     | 
    
         
            -
                let offsetX = isSelected ? Math.cos(midRadian) * 0.1 : 0;
         
     | 
| 
       28 
     | 
    
         
            -
                let offsetY = isSelected ? Math.sin(midRadian) * 0.1 : 0;
         
     | 
| 
       29 
     | 
    
         
            -
                // 计算高亮效果的放大比例(未高亮,则比例为 1)
         
     | 
| 
       30 
     | 
    
         
            -
                let hoverRate = isHovered ? 1.05 : 1;
         
     | 
| 
       31 
     | 
    
         
            -
                // 返回曲面参数方程
         
     | 
| 
       32 
     | 
    
         
            -
                return {
         
     | 
| 
       33 
     | 
    
         
            -
                    u: {
         
     | 
| 
       34 
     | 
    
         
            -
                        min: -Math.PI,
         
     | 
| 
       35 
     | 
    
         
            -
                        max: Math.PI * 3,
         
     | 
| 
       36 
     | 
    
         
            -
                        step: Math.PI / 32,
         
     | 
| 
       37 
     | 
    
         
            -
                    },
         
     | 
| 
       38 
     | 
    
         
            -
                    v: {
         
     | 
| 
       39 
     | 
    
         
            -
                        min: 0,
         
     | 
| 
       40 
     | 
    
         
            -
                        max: Math.PI * 2,
         
     | 
| 
       41 
     | 
    
         
            -
                        step: Math.PI / 20,
         
     | 
| 
       42 
     | 
    
         
            -
                    },
         
     | 
| 
       43 
     | 
    
         
            -
                    x: function(u, v) {
         
     | 
| 
       44 
     | 
    
         
            -
                        if (u < startRadian) {
         
     | 
| 
       45 
     | 
    
         
            -
                            return offsetX + Math.cos(startRadian) * (1 + Math.cos(v) * k) * hoverRate;
         
     | 
| 
       46 
     | 
    
         
            -
                        }
         
     | 
| 
       47 
     | 
    
         
            -
                        if (u > endRadian) {
         
     | 
| 
       48 
     | 
    
         
            -
                            return offsetX + Math.cos(endRadian) * (1 + Math.cos(v) * k) * hoverRate;
         
     | 
| 
       49 
     | 
    
         
            -
                        }
         
     | 
| 
       50 
     | 
    
         
            -
                        return offsetX + Math.cos(u) * (1 + Math.cos(v) * k) * hoverRate;
         
     | 
| 
       51 
     | 
    
         
            -
                    },
         
     | 
| 
       52 
     | 
    
         
            -
                    y: function(u, v) {
         
     | 
| 
       53 
     | 
    
         
            -
                        if (u < startRadian) {
         
     | 
| 
       54 
     | 
    
         
            -
                            return offsetY + Math.sin(startRadian) * (1 + Math.cos(v) * k) * hoverRate;
         
     | 
| 
       55 
     | 
    
         
            -
                        }
         
     | 
| 
       56 
     | 
    
         
            -
                        if (u > endRadian) {
         
     | 
| 
       57 
     | 
    
         
            -
                            return offsetY + Math.sin(endRadian) * (1 + Math.cos(v) * k) * hoverRate;
         
     | 
| 
       58 
     | 
    
         
            -
                        }
         
     | 
| 
       59 
     | 
    
         
            -
                        return offsetY + Math.sin(u) * (1 + Math.cos(v) * k) * hoverRate;
         
     | 
| 
       60 
     | 
    
         
            -
                    },
         
     | 
| 
       61 
     | 
    
         
            -
                    z: function(u, v) {
         
     | 
| 
       62 
     | 
    
         
            -
                        if (u < -Math.PI * 0.5) {
         
     | 
| 
       63 
     | 
    
         
            -
                            return Math.sin(u);
         
     | 
| 
       64 
     | 
    
         
            -
                        }
         
     | 
| 
       65 
     | 
    
         
            -
                        if (u > Math.PI * 2.5) {
         
     | 
| 
       66 
     | 
    
         
            -
                            return Math.sin(u) * h * 0.1;
         
     | 
| 
       67 
     | 
    
         
            -
                        }
         
     | 
| 
       68 
     | 
    
         
            -
                        return Math.sin(v) > 0 ? 1 * h * 0.1 : -1;
         
     | 
| 
       69 
     | 
    
         
            -
                    }
         
     | 
| 
       70 
     | 
    
         
            -
                };
         
     | 
| 
       71 
     | 
    
         
            -
            }
         
     | 
| 
       72 
     | 
    
         
            -
            /**
         
     | 
| 
       73 
     | 
    
         
            -
             * 获取3D饼图数据
         
     | 
| 
       74 
     | 
    
         
            -
             * @param internalDiameterRatio 透明的空心占比
         
     | 
| 
       75 
     | 
    
         
            -
             * @param type 'pie':饼图;'ring':环形图
         
     | 
| 
       76 
     | 
    
         
            -
             * @param appearance 配置数据
         
     | 
| 
       77 
     | 
    
         
            -
             * @param labelLineData 引线静态数据
         
     | 
| 
       78 
     | 
    
         
            -
             * @param realData 实时数据
         
     | 
| 
       79 
     | 
    
         
            -
             * @returns {{series: *[], legendData: *[]}}
         
     | 
| 
       80 
     | 
    
         
            -
             */
         
     | 
| 
       81 
     | 
    
         
            -
            export function getPie3D(internalDiameterRatio, type, appearance, labelLineData, realData){
         
     | 
| 
       82 
     | 
    
         
            -
                const { seriesStyleData, chartData, labelLine, grid } = appearance;
         
     | 
| 
       83 
     | 
    
         
            -
                let k = typeof internalDiameterRatio !== "undefined" ?
         
     | 
| 
       84 
     | 
    
         
            -
                        (1 - internalDiameterRatio) / (1 + internalDiameterRatio) :
         
     | 
| 
       85 
     | 
    
         
            -
                        1 / 3; // 3d 环形图
         
     | 
| 
       86 
     | 
    
         
            -
                const pieData = realData && realData.length ? realData : chartData;
         
     | 
| 
       87 
     | 
    
         
            -
                if(type === 'pie'){
         
     | 
| 
       88 
     | 
    
         
            -
                    // 3d 饼图
         
     | 
| 
       89 
     | 
    
         
            -
                    k = 1;
         
     | 
| 
       90 
     | 
    
         
            -
                    pieData.sort((a, b) => {
         
     | 
| 
       91 
     | 
    
         
            -
                        return b.value - a.value;
         
     | 
| 
       92 
     | 
    
         
            -
                    });
         
     | 
| 
       93 
     | 
    
         
            -
                }
         
     | 
| 
       94 
     | 
    
         
            -
                
         
     | 
| 
       95 
     | 
    
         
            -
                let sumValue = pieData.reduce((total, obj) => total + obj.value, 0);
         
     | 
| 
       96 
     | 
    
         
            -
                let startValue = 0;
         
     | 
| 
       97 
     | 
    
         
            -
                let endValue = 0;
         
     | 
| 
       98 
     | 
    
         
            -
                let total = 0;
         
     | 
| 
       99 
     | 
    
         
            -
                let boxHeight = (grid.boxHeight * 25) / pieData[0].value;
         
     | 
| 
       100 
     | 
    
         
            -
                let legendData = [];
         
     | 
| 
       101 
     | 
    
         
            -
                let series = [];
         
     | 
| 
       102 
     | 
    
         
            -
                let node = {};
         
     | 
| 
       103 
     | 
    
         
            -
                const lineData = [];
         
     | 
| 
       104 
     | 
    
         
            -
                // 为每一个饼图数据,生成一个 series-surface 配置
         
     | 
| 
       105 
     | 
    
         
            -
                for (let i = 0; i < pieData.length; i++) {
         
     | 
| 
       106 
     | 
    
         
            -
                    const {name, value, itemColor, itemOpacity} = pieData[i];
         
     | 
| 
       107 
     | 
    
         
            -
                    const pieDataItem =  chartData[i];
         
     | 
| 
       108 
     | 
    
         
            -
                    const seriesItemColor = itemColor || pieDataItem && pieDataItem.itemColor || echartsColorData[i];
         
     | 
| 
       109 
     | 
    
         
            -
                    endValue = startValue + value;
         
     | 
| 
       110 
     | 
    
         
            -
                    let hv = seriesStyleData && seriesStyleData[i] || value;
         
     | 
| 
       111 
     | 
    
         
            -
                    let pk = 1 / 10;
         
     | 
| 
       112 
     | 
    
         
            -
                    if(type === 'pie') {
         
     | 
| 
       113 
     | 
    
         
            -
                        hv = value;
         
     | 
| 
       114 
     | 
    
         
            -
                        pk = k;
         
     | 
| 
       115 
     | 
    
         
            -
                        if(labelLine.data[i]) {
         
     | 
| 
       116 
     | 
    
         
            -
                            const lineItem = labelLine.data[i];
         
     | 
| 
       117 
     | 
    
         
            -
                            lineItem.valueColor = seriesItemColor;
         
     | 
| 
       118 
     | 
    
         
            -
                            lineItem.unitColor = seriesItemColor;
         
     | 
| 
       119 
     | 
    
         
            -
                        }
         
     | 
| 
       120 
     | 
    
         
            -
                    }else {
         
     | 
| 
       121 
     | 
    
         
            -
                        total += value;
         
     | 
| 
       122 
     | 
    
         
            -
                        node[name] = {
         
     | 
| 
       123 
     | 
    
         
            -
                            order: i,
         
     | 
| 
       124 
     | 
    
         
            -
                            value
         
     | 
| 
       125 
     | 
    
         
            -
                        };
         
     | 
| 
       126 
     | 
    
         
            -
                    }
         
     | 
| 
       127 
     | 
    
         
            -
                    const newStartRatio = startValue / sumValue;
         
     | 
| 
       128 
     | 
    
         
            -
                    const newEndRatio = endValue / sumValue;
         
     | 
| 
       129 
     | 
    
         
            -
                    // 向每个 series-surface 传入不同的参数方程 series-surface.parametricEquation,也就是实现每一个扇形
         
     | 
| 
       130 
     | 
    
         
            -
                    const parametricEquation = getParametricEquation(newStartRatio, newEndRatio, false, false, k, hv);
         
     | 
| 
       131 
     | 
    
         
            -
                    let seriesItem = {
         
     | 
| 
       132 
     | 
    
         
            -
                        name: typeof name === 'undefined' ? `series${i}` : name,
         
     | 
| 
       133 
     | 
    
         
            -
                        type: 'surface',
         
     | 
| 
       134 
     | 
    
         
            -
                        parametric: true,
         
     | 
| 
       135 
     | 
    
         
            -
                        wireframe: {
         
     | 
| 
       136 
     | 
    
         
            -
                            show: false,
         
     | 
| 
       137 
     | 
    
         
            -
                        },
         
     | 
| 
       138 
     | 
    
         
            -
                        pieData: {
         
     | 
| 
       139 
     | 
    
         
            -
                            name,
         
     | 
| 
       140 
     | 
    
         
            -
                            value,
         
     | 
| 
       141 
     | 
    
         
            -
                            startRatio: newStartRatio,
         
     | 
| 
       142 
     | 
    
         
            -
                            endRatio: newEndRatio
         
     | 
| 
       143 
     | 
    
         
            -
                        },
         
     | 
| 
       144 
     | 
    
         
            -
                        pieStatus: {
         
     | 
| 
       145 
     | 
    
         
            -
                            selected: false,
         
     | 
| 
       146 
     | 
    
         
            -
                            hovered: false,
         
     | 
| 
       147 
     | 
    
         
            -
                            k: pk,
         
     | 
| 
       148 
     | 
    
         
            -
                        },
         
     | 
| 
       149 
     | 
    
         
            -
                        parametricEquation,
         
     | 
| 
       150 
     | 
    
         
            -
                        itemStyle: {
         
     | 
| 
       151 
     | 
    
         
            -
                            color: seriesItemColor,
         
     | 
| 
       152 
     | 
    
         
            -
                            opacity: itemOpacity || pieDataItem && pieDataItem.itemOpacity || 1
         
     | 
| 
       153 
     | 
    
         
            -
                        }
         
     | 
| 
       154 
     | 
    
         
            -
                    };
         
     | 
| 
       155 
     | 
    
         
            -
                    startValue = endValue;
         
     | 
| 
       156 
     | 
    
         
            -
                    legendData.push(seriesItem.name);
         
     | 
| 
       157 
     | 
    
         
            -
                    series.push(seriesItem);
         
     | 
| 
       158 
     | 
    
         
            -
                    if(labelLineData) {
         
     | 
| 
       159 
     | 
    
         
            -
                        const lineStyleNode = labelLineData.data[i] || labelLineData.data[0];
         
     | 
| 
       160 
     | 
    
         
            -
                        lineStyleNode.lineStyle.color = seriesItemColor;
         
     | 
| 
       161 
     | 
    
         
            -
                        const labelLineItem = {
         
     | 
| 
       162 
     | 
    
         
            -
                            name,
         
     | 
| 
       163 
     | 
    
         
            -
                            value,
         
     | 
| 
       164 
     | 
    
         
            -
                            labelLine: {...lineStyleNode}
         
     | 
| 
       165 
     | 
    
         
            -
                        };
         
     | 
| 
       166 
     | 
    
         
            -
                        lineData.push(labelLineItem);
         
     | 
| 
       167 
     | 
    
         
            -
                    }
         
     | 
| 
       168 
     | 
    
         
            -
                }
         
     | 
| 
       169 
     | 
    
         
            -
                if(lineData.length) {
         
     | 
| 
       170 
     | 
    
         
            -
                    labelLineData.data = lineData;
         
     | 
| 
       171 
     | 
    
         
            -
                    series.push(labelLineData);
         
     | 
| 
       172 
     | 
    
         
            -
                }
         
     | 
| 
       173 
     | 
    
         
            -
                return {
         
     | 
| 
       174 
     | 
    
         
            -
                    legendData,
         
     | 
| 
       175 
     | 
    
         
            -
                    series,
         
     | 
| 
       176 
     | 
    
         
            -
                    node,
         
     | 
| 
       177 
     | 
    
         
            -
                    total,
         
     | 
| 
       178 
     | 
    
         
            -
                    boxHeight
         
     | 
| 
       179 
     | 
    
         
            -
                };
         
     | 
| 
       180 
     | 
    
         
            -
            }
         
     | 
| 
       181 
     | 
    
         
            -
            export function set3DPieMouseHover(myChart, type, option, valueData){
         
     | 
| 
       182 
     | 
    
         
            -
                let selectedIndex = '';
         
     | 
| 
       183 
     | 
    
         
            -
                let hoveredIndex = '';
         
     | 
| 
       184 
     | 
    
         
            -
                let isSelected;
         
     | 
| 
       185 
     | 
    
         
            -
                let isHovered;
         
     | 
| 
       186 
     | 
    
         
            -
                let startRatio;
         
     | 
| 
       187 
     | 
    
         
            -
                let endRatio;
         
     | 
| 
       188 
     | 
    
         
            -
                let k;
         
     | 
| 
       189 
     | 
    
         
            -
                // 监听 mouseover,近似实现高亮(放大)效果
         
     | 
| 
       190 
     | 
    
         
            -
                myChart.on('mouseover', function(params) {
         
     | 
| 
       191 
     | 
    
         
            -
                    // 如果触发 mouseover 的扇形当前已高亮,则不做操作
         
     | 
| 
       192 
     | 
    
         
            -
                    if (hoveredIndex === params.seriesIndex) return;
         
     | 
| 
       193 
     | 
    
         
            -
                    // 如果当前有高亮的扇形,取消其高亮状态(对 option 更新)
         
     | 
| 
       194 
     | 
    
         
            -
                    if (hoveredIndex !== '') {
         
     | 
| 
       195 
     | 
    
         
            -
                        const value = type === 'pie' ? option.series[hoveredIndex].pieData.value : valueData[hoveredIndex];
         
     | 
| 
       196 
     | 
    
         
            -
                        // 从 option.series 中读取重新渲染扇形所需的参数,将是否高亮设置为 false。
         
     | 
| 
       197 
     | 
    
         
            -
                        isSelected = option.series[hoveredIndex].pieStatus.selected;
         
     | 
| 
       198 
     | 
    
         
            -
                        isHovered = false;
         
     | 
| 
       199 
     | 
    
         
            -
                        startRatio = option.series[hoveredIndex].pieData.startRatio;
         
     | 
| 
       200 
     | 
    
         
            -
                        endRatio = option.series[hoveredIndex].pieData.endRatio;
         
     | 
| 
       201 
     | 
    
         
            -
                        k = option.series[hoveredIndex].pieStatus.k;
         
     | 
| 
       202 
     | 
    
         
            -
             
     | 
| 
       203 
     | 
    
         
            -
                        // 对当前点击的扇形,执行取消高亮操作(对 option 更新)
         
     | 
| 
       204 
     | 
    
         
            -
                        option.series[hoveredIndex].parametricEquation = getParametricEquation(startRatio, endRatio, isSelected, isHovered, k, value);
         
     | 
| 
       205 
     | 
    
         
            -
                        option.series[hoveredIndex].pieStatus.hovered = isHovered;
         
     | 
| 
       206 
     | 
    
         
            -
             
     | 
| 
       207 
     | 
    
         
            -
                        // 将此前记录的上次选中的扇形对应的系列号 seriesIndex 清空
         
     | 
| 
       208 
     | 
    
         
            -
                        hoveredIndex = '';
         
     | 
| 
       209 
     | 
    
         
            -
                    }
         
     | 
| 
       210 
     | 
    
         
            -
             
     | 
| 
       211 
     | 
    
         
            -
                    // 如果触发 mouseover 的扇形不是透明圆环,将其高亮(对 option 更新)
         
     | 
| 
       212 
     | 
    
         
            -
                    if (params.seriesName !== 'mouseoutSeries') {
         
     | 
| 
       213 
     | 
    
         
            -
                        // 从 option.series 中读取重新渲染扇形所需的参数,将是否高亮设置为 true。
         
     | 
| 
       214 
     | 
    
         
            -
                        const pieStatus = option.series[params.seriesIndex].pieStatus;
         
     | 
| 
       215 
     | 
    
         
            -
                        if(!pieStatus) return; // 先退出,后期若有hover引线时,图形联动的需求时再做逻辑处理
         
     | 
| 
       216 
     | 
    
         
            -
                        const value = type === 'pie' ? option.series[params.seriesIndex].pieData.value : valueData[params.seriesIndex];
         
     | 
| 
       217 
     | 
    
         
            -
                        isSelected = option.series[params.seriesIndex].pieStatus.selected;
         
     | 
| 
       218 
     | 
    
         
            -
                        isHovered = true;
         
     | 
| 
       219 
     | 
    
         
            -
                        startRatio = option.series[params.seriesIndex].pieData.startRatio;
         
     | 
| 
       220 
     | 
    
         
            -
                        endRatio = option.series[params.seriesIndex].pieData.endRatio;
         
     | 
| 
       221 
     | 
    
         
            -
                        k = option.series[params.seriesIndex].pieStatus.k;
         
     | 
| 
       222 
     | 
    
         
            -
                        // 对当前点击的扇形,执行高亮操作(对 option 更新)
         
     | 
| 
       223 
     | 
    
         
            -
                        option.series[params.seriesIndex].parametricEquation = getParametricEquation(startRatio, endRatio, isSelected, isHovered, k, value + 5);
         
     | 
| 
       224 
     | 
    
         
            -
                        option.series[params.seriesIndex].pieStatus.hovered = isHovered;
         
     | 
| 
       225 
     | 
    
         
            -
             
     | 
| 
       226 
     | 
    
         
            -
                        // 记录上次高亮的扇形对应的系列号 seriesIndex
         
     | 
| 
       227 
     | 
    
         
            -
                        hoveredIndex = params.seriesIndex;
         
     | 
| 
       228 
     | 
    
         
            -
                    }
         
     | 
| 
       229 
     | 
    
         
            -
                    // 使用更新后的 option,渲染图表
         
     | 
| 
       230 
     | 
    
         
            -
                    myChart.setOption(option);
         
     | 
| 
       231 
     | 
    
         
            -
                });
         
     | 
| 
       232 
     | 
    
         
            -
                // 修正取消高亮失败的 bug
         
     | 
| 
       233 
     | 
    
         
            -
                myChart.on('globalout', function(params) {
         
     | 
| 
       234 
     | 
    
         
            -
                    if (hoveredIndex !== '') {
         
     | 
| 
       235 
     | 
    
         
            -
                        const value = type === 'pie' ? option.series[hoveredIndex].pieData.value : valueData[hoveredIndex];
         
     | 
| 
       236 
     | 
    
         
            -
                        // 从 option.series 中读取重新渲染扇形所需的参数,将是否高亮设置为 true。
         
     | 
| 
       237 
     | 
    
         
            -
                        isSelected = option.series[hoveredIndex].pieStatus.selected;
         
     | 
| 
       238 
     | 
    
         
            -
                        isHovered = false;
         
     | 
| 
       239 
     | 
    
         
            -
                        k = option.series[hoveredIndex].pieStatus.k;
         
     | 
| 
       240 
     | 
    
         
            -
                        startRatio = option.series[hoveredIndex].pieData.startRatio;
         
     | 
| 
       241 
     | 
    
         
            -
                        endRatio = option.series[hoveredIndex].pieData.endRatio;
         
     | 
| 
       242 
     | 
    
         
            -
             
     | 
| 
       243 
     | 
    
         
            -
                        // 对当前点击的扇形,执行取消高亮操作(对 option 更新)
         
     | 
| 
       244 
     | 
    
         
            -
                        option.series[hoveredIndex].parametricEquation = getParametricEquation(startRatio, endRatio, isSelected, isHovered, k, value);
         
     | 
| 
       245 
     | 
    
         
            -
                        option.series[hoveredIndex].pieStatus.hovered = isHovered;
         
     | 
| 
       246 
     | 
    
         
            -
                        // 将此前记录的上次选中的扇形对应的系列号 seriesIndex 清空
         
     | 
| 
       247 
     | 
    
         
            -
                        hoveredIndex = '';
         
     | 
| 
       248 
     | 
    
         
            -
                    }
         
     | 
| 
       249 
     | 
    
         
            -
                    // 使用更新后的 option,渲染图表
         
     | 
| 
       250 
     | 
    
         
            -
                    myChart.setOption(option);
         
     | 
| 
       251 
     | 
    
         
            -
                });
         
     | 
| 
       252 
     | 
    
         
            -
            }
         
     | 
| 
         @@ -1,6 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from '../models';
         
     | 
| 
       2 
     | 
    
         
            -
            import { visualization2DStore } from '../store';
         
     | 
| 
       3 
     | 
    
         
            -
            export declare function setStyleForElementIdDiv(node: Node, elem: HTMLElement, data: visualization2DStore): void;
         
     | 
| 
       4 
     | 
    
         
            -
            export declare function createDiv(node: Node): HTMLDivElement;
         
     | 
| 
       5 
     | 
    
         
            -
            // @ts-ignore
         
     | 
| 
       6 
     | 
    
         
            -
            export declare function loadJS(url: string): Promise;
         
     | 
| 
         @@ -1,63 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import {Lock} from '../models';
         
     | 
| 
       2 
     | 
    
         
            -
            import {commonStore} from '../store';
         
     | 
| 
       3 
     | 
    
         
            -
            export function setStyleForElementIdDiv(node, elem, data) {
         
     | 
| 
       4 
     | 
    
         
            -
                if (!elem) return;
         
     | 
| 
       5 
     | 
    
         
            -
                node.attribute = 'dom';
         
     | 
| 
       6 
     | 
    
         
            -
                const currentStore = commonStore[node.TID];
         
     | 
| 
       7 
     | 
    
         
            -
                if(!currentStore.elementInteractivePoor.dom) currentStore.elementInteractivePoor.dom = {};
         
     | 
| 
       8 
     | 
    
         
            -
                currentStore.elementInteractivePoor.dom[node.id] = elem;
         
     | 
| 
       9 
     | 
    
         
            -
                let width = node.rect.width;
         
     | 
| 
       10 
     | 
    
         
            -
                let height = node.rect.height;
         
     | 
| 
       11 
     | 
    
         
            -
                if(node.name === 'echarts') {
         
     | 
| 
       12 
     | 
    
         
            -
                    width /= currentStore.data.pageZoom;
         
     | 
| 
       13 
     | 
    
         
            -
                    height /= currentStore.data.pageZoom;
         
     | 
| 
       14 
     | 
    
         
            -
                }
         
     | 
| 
       15 
     | 
    
         
            -
                elem.style.position = 'absolute';
         
     | 
| 
       16 
     | 
    
         
            -
                elem.style.outline = 'none';
         
     | 
| 
       17 
     | 
    
         
            -
                elem.style.left = node.rect.x + 'px';
         
     | 
| 
       18 
     | 
    
         
            -
                elem.style.top = node.rect.y + 'px';
         
     | 
| 
       19 
     | 
    
         
            -
                elem.style.width = width + 'px';
         
     | 
| 
       20 
     | 
    
         
            -
                elem.style.height = height + 'px';
         
     | 
| 
       21 
     | 
    
         
            -
                if (node.rotate || node.offsetRotate) {
         
     | 
| 
       22 
     | 
    
         
            -
                    elem.style.transform = "rotate(" + (node.rotate + node.offsetRotate) + "deg)";
         
     | 
| 
       23 
     | 
    
         
            -
                }
         
     | 
| 
       24 
     | 
    
         
            -
                if (data && data.locked > Lock.None || node.locked > Lock.None) {
         
     | 
| 
       25 
     | 
    
         
            -
                    elem.style.userSelect = 'initial';
         
     | 
| 
       26 
     | 
    
         
            -
                    elem.style.pointerEvents = 'initial';
         
     | 
| 
       27 
     | 
    
         
            -
                } else {
         
     | 
| 
       28 
     | 
    
         
            -
                    elem.style.userSelect = 'none';
         
     | 
| 
       29 
     | 
    
         
            -
                    elem.style.pointerEvents = 'none';
         
     | 
| 
       30 
     | 
    
         
            -
                }
         
     | 
| 
       31 
     | 
    
         
            -
            }
         
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
            // 创建div
         
     | 
| 
       34 
     | 
    
         
            -
            export function createDiv(node) {
         
     | 
| 
       35 
     | 
    
         
            -
                var div = document.createElement('div');
         
     | 
| 
       36 
     | 
    
         
            -
                div.setAttribute('class', 'topoEchart');
         
     | 
| 
       37 
     | 
    
         
            -
                div.style.position = 'absolute';
         
     | 
| 
       38 
     | 
    
         
            -
                div.style.outline = 'none';
         
     | 
| 
       39 
     | 
    
         
            -
                div.style.left = '-9999px';
         
     | 
| 
       40 
     | 
    
         
            -
                div.style.bottom = '-9999px';
         
     | 
| 
       41 
     | 
    
         
            -
                div.style.width = node.rect.width + 'px';
         
     | 
| 
       42 
     | 
    
         
            -
                div.style.height = node.rect.height + 'px';
         
     | 
| 
       43 
     | 
    
         
            -
                div.id = node.id;
         
     | 
| 
       44 
     | 
    
         
            -
                return div;
         
     | 
| 
       45 
     | 
    
         
            -
            }
         
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
            export function loadJS(url) {
         
     | 
| 
       48 
     | 
    
         
            -
                var loaderScript = document.createElement('script');
         
     | 
| 
       49 
     | 
    
         
            -
                loaderScript.type = 'text/javascript';
         
     | 
| 
       50 
     | 
    
         
            -
                loaderScript.src = url;
         
     | 
| 
       51 
     | 
    
         
            -
                document.body.appendChild(loaderScript);
         
     | 
| 
       52 
     | 
    
         
            -
                window.datePickerRegister = true;
         
     | 
| 
       53 
     | 
    
         
            -
                return new Promise((resolve, reject) => {
         
     | 
| 
       54 
     | 
    
         
            -
                    loaderScript.onload = function () {
         
     | 
| 
       55 
     | 
    
         
            -
                        resolve(true);
         
     | 
| 
       56 
     | 
    
         
            -
                    };
         
     | 
| 
       57 
     | 
    
         
            -
                    loaderScript.onerror = (e) => {
         
     | 
| 
       58 
     | 
    
         
            -
                        reject(e);
         
     | 
| 
       59 
     | 
    
         
            -
                    };
         
     | 
| 
       60 
     | 
    
         
            -
                });
         
     | 
| 
       61 
     | 
    
         
            -
            }
         
     | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
            //# sourceMappingURL=dom.js.map
         
     | 
| 
         @@ -1,44 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import {commonStore} from "../store";
         
     | 
| 
       2 
     | 
    
         
            -
            // 创建datePicker依赖DOM
         
     | 
| 
       3 
     | 
    
         
            -
            export function createDatePickerElement(node) {
         
     | 
| 
       4 
     | 
    
         
            -
                    const pickerBarEle = document.createElement('div');
         
     | 
| 
       5 
     | 
    
         
            -
                pickerBarEle.setAttribute('id', node.id);
         
     | 
| 
       6 
     | 
    
         
            -
                pickerBarEle.setAttribute('class', 'topology-datePicker');
         
     | 
| 
       7 
     | 
    
         
            -
                pickerBarEle.innerHTML = `<svg class="icon-date" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14.000000" height="14.000000" fill="none" customFrame="#000000">
         
     | 
| 
       8 
     | 
    
         
            -
            \t<path id="icon-日历" d="M13.4167 1.16667L10.5 1.16667L10.5 0L9.33333 0L9.33333 1.16667L4.66667 1.16667L4.66667 0L3.5 0L3.5 1.16667L0.583333 1.16667C0.2625 1.16667 0 1.42917 0 1.75L0 13.4167C0 13.7375 0.2625 14 0.583333 14L13.4167 14C13.7375 14 14 13.7375 14 13.4167L14 1.75C14 1.42917 13.7375 1.16667 13.4167 1.16667ZM12.8333 12.8333L1.16667 12.8333L1.16667 4.66667L12.8333 4.66667L12.8333 12.8333ZM4.66667 7L2.33333 7L2.33333 5.83333L4.66667 5.83333L4.66667 7ZM8.16667 7L5.83333 7L5.83333 5.83333L8.16667 5.83333L8.16667 7ZM11.6667 7L9.33333 7L9.33333 5.83333L11.6667 5.83333L11.6667 7ZM4.66667 9.33333L2.33333 9.33333L2.33333 8.16667L4.66667 8.16667L4.66667 9.33333ZM8.16667 9.33333L5.83333 9.33333L5.83333 8.16667L8.16667 8.16667L8.16667 9.33333ZM11.6667 9.33333L9.33333 9.33333L9.33333 8.16667L11.6667 8.16667L11.6667 9.33333ZM4.66667 11.6667L2.33333 11.6667L2.33333 10.5L4.66667 10.5L4.66667 11.6667ZM8.16667 11.6667L5.83333 11.6667L5.83333 10.5L8.16667 10.5L8.16667 11.6667Z" fill="rgb(64,244,255)" fill-rule="nonzero" />
         
     | 
| 
       9 
     | 
    
         
            -
            </svg>
         
     | 
| 
       10 
     | 
    
         
            -
                                          <svg class="icon-arrow" viewBox="0 0 10 6" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10.000000" height="6.000000" fill="none" customFrame="#000000">
         
     | 
| 
       11 
     | 
    
         
            -
            	<path id="箭头" d="M5 0C5.14734 0 5.28865 0.0632141 5.39284 0.175736L9.83728 4.97574C10.0542 5.21005 10.0542 5.58995 9.83728 5.82426C9.62032 6.05858 9.26857 6.05858 9.05161 5.82426L5 1.44853L0.948393 5.82426C0.731435 6.05858 0.379676 6.05858 0.162718 5.82426C-0.0542395 5.58995 -0.0542395 5.21005 0.162718 4.97574L4.60716 0.175736C4.71135 0.0632141 4.85266 0 5 0Z" fill="rgb(23,206,230)" fill-rule="evenodd" transform="matrix(1,0,0,-1,0,6)" />
         
     | 
| 
       12 
     | 
    
         
            -
            </svg>
         
     | 
| 
       13 
     | 
    
         
            -
                                          <input id='picker${node.id}' class="dataPickerInput" type="text" name='dataPicker${node.id}' value='${node.pickerOptions.value}' placeholder="请选择" readonly />`;
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
                return pickerBarEle;
         
     | 
| 
       16 
     | 
    
         
            -
            }
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            // datePicker样式配置
         
     | 
| 
       19 
     | 
    
         
            -
            export function setDataPickerElementStyle(node) {
         
     | 
| 
       20 
     | 
    
         
            -
                const {pickerDataPool, data} = commonStore[node.TID];
         
     | 
| 
       21 
     | 
    
         
            -
                const pickerDom = pickerDataPool[node.id].dom;
         
     | 
| 
       22 
     | 
    
         
            -
                const padding = `${node.paddingTop}px ${node.paddingRight}px ${node.paddingBottom}px ${node.paddingLeft}px`;
         
     | 
| 
       23 
     | 
    
         
            -
                const containerStyle = pickerDom.container.getAttribute('style');
         
     | 
| 
       24 
     | 
    
         
            -
                pickerDom.container.style.cssText =`${containerStyle}padding: ${padding}`;
         
     | 
| 
       25 
     | 
    
         
            -
                
         
     | 
| 
       26 
     | 
    
         
            -
                if (!pickerDom.iconDate) pickerDom.iconDate = pickerDom.container.querySelector('.icon-date');
         
     | 
| 
       27 
     | 
    
         
            -
                if (!pickerDom.iconArrow) pickerDom.iconArrow = pickerDom.container.querySelector('.icon-arrow');
         
     | 
| 
       28 
     | 
    
         
            -
                if (!pickerDom.input) pickerDom.input = pickerDom.container.querySelector('.dataPickerInput');
         
     | 
| 
       29 
     | 
    
         
            -
                
         
     | 
| 
       30 
     | 
    
         
            -
                const round = `${node.font.fontSize + data.scale * 2}px`;
         
     | 
| 
       31 
     | 
    
         
            -
                const parts = node.strokeStyle.match(/([\d.]+)/g);
         
     | 
| 
       32 
     | 
    
         
            -
                const fillColor = parts ? `rgba(${parts[0]},${parts[1]},${parts[2]},1)` : node.strokeStyle;
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
                pickerDom.iconDate.style.cssText = `width: ${round};height: ${round};left: ${node.font.fontSize}px`;
         
     | 
| 
       35 
     | 
    
         
            -
                pickerDom.iconDate.querySelector('path').style.fill = fillColor;
         
     | 
| 
       36 
     | 
    
         
            -
                
         
     | 
| 
       37 
     | 
    
         
            -
                const width = node.font.fontSize - data.scale * 2;
         
     | 
| 
       38 
     | 
    
         
            -
                const height = node.font.fontSize - data.scale * 6;
         
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
                pickerDom.iconArrow.style.cssText = `width: ${width}px;height: ${height}px;right: ${width}px`;
         
     | 
| 
       41 
     | 
    
         
            -
                pickerDom.iconArrow.querySelector('path').style.fill = fillColor;
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
                pickerDom.input.style.cssText = `font-size: ${node.font.fontSize}px;color: ${node.font.color}`;
         
     | 
| 
       44 
     | 
    
         
            -
            }
         
     | 
| 
         @@ -1,12 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            // 创建iframe
         
     | 
| 
       2 
     | 
    
         
            -
            export function createIframeElement(node) {
         
     | 
| 
       3 
     | 
    
         
            -
              const iframe = document.createElement('iframe');
         
     | 
| 
       4 
     | 
    
         
            -
              // iframe.scrolling = 'no';
         
     | 
| 
       5 
     | 
    
         
            -
              iframe.frameBorder = '0';
         
     | 
| 
       6 
     | 
    
         
            -
              iframe.src = node.iframe;
         
     | 
| 
       7 
     | 
    
         
            -
              iframe.width = node.rect.width;
         
     | 
| 
       8 
     | 
    
         
            -
              iframe.height = node.rect.height;
         
     | 
| 
       9 
     | 
    
         
            -
              iframe.setAttribute('id', node.id);
         
     | 
| 
       10 
     | 
    
         
            -
              iframe.setAttribute('class', 'topology2dConfIfram');
         
     | 
| 
       11 
     | 
    
         
            -
              return iframe;
         
     | 
| 
       12 
     | 
    
         
            -
            }
         
     | 
| 
         @@ -1,11 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from '../models';
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            export declare function createSelectElement(node: Node): HTMLDivElement;
         
     | 
| 
       4 
     | 
    
         
            -
            export declare function createSelectDropdown(node: Node): HTMLDivElement;
         
     | 
| 
       5 
     | 
    
         
            -
            export declare function createSelectOptions(data: [], node: Node): string;
         
     | 
| 
       6 
     | 
    
         
            -
            export declare function getSelectedData(e: Event, data: any, editData: any): void;
         
     | 
| 
       7 
     | 
    
         
            -
            export declare function setSelectInteractiveState(selected: any, node: Node): void;
         
     | 
| 
       8 
     | 
    
         
            -
            export declare function resetSelectInteractiveState(node: Node): void;
         
     | 
| 
       9 
     | 
    
         
            -
            export declare function setSelectDropdownInteractiveState(node: any, type: any): void;
         
     | 
| 
       10 
     | 
    
         
            -
            export declare function setSelectElementPosition(node: Node, type: string): void;
         
     | 
| 
       11 
     | 
    
         
            -
            export declare function setSelectElementTheme(node: Node): void;
         
     |