{ "name": "@echarts/waterBall", "version": "0.0.6", "dependencies": { "bcore": "0.0.18", "jquery": "2.1.4", "lodash": "4.6.1", "react": "17.0.2", "react-dom": "17.0.2", "@babel/runtime": "7.18.3", "echarts": "5.4.0", "echarts-liquidfill": "3.1.0", "svg-points": "^6.0.1" }, "scripts": { "build": "cube build ./ --output=../../../datavComponent --remote=pandav --smart" }, "pandav": { "cn_name": "水球", "protocol": 2, "level": 0, "thumbnail": "/civ_pandaview_component/pandabi-component/assets/储水图-圆形.gif", "icon": "/civ_pandaview_component/pandabi-component/assets/储水图-圆形.gif", "type": [ "DataV-6:info_target" ], "view": { "width": "200", "height": "200", "minWidth": "200", "minHeight": "100", "z-index": 10 }, "apis": { "source": { "handler": "render", "description": "数据接口", "fields": { "value": { "description": "值", "type": "string" } } } }, "config": { "options": { "type": "menu", "children": { "chart": { "type": "menuChild", "name": "全局", "children": { "iconDirection": { "name": "数值类型", "type": "radio", "default": "percent", "optionCol": 12, "options": [ { "label": "百分比", "value": "percent" }, { "label": "实际值", "value": "realValue" } ] }, "maxValue": { "name": "容量", "type": "number", "show": [ [ "iconDirection", "$eq", "realValue" ] ], "default": 100 }, "shape": { "name": "水球样式", "type": "select", "default": "circle", "option": [ { "label": "圆形", "value": "circle" }, { "label": "方形", "value": "rect" }, { "label": "圆角矩形", "value": "roundRect" }, { "label": "三角形", "value": "triangle" }, { "label": "菱形", "value": "diamond" }, { "label": "针形", "value": "pin" }, { "label": "箭头形", "value": "arrow" }, { "label": "自定义", "value": "custom" } ] }, "url": { "name": "运动路径", "show": [ [ "shape", "$eq", "custom" ] ], "type": "image", "default": "" }, "background": { "type": "group", "fold": true, "name": "背景", "children": { "color": { "name": "背景色", "type": "fill", "components": [ "flat", "linearGradient" ], "default": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "rgba(0,24,55, 0)" }, { "offset": 100, "color": "rgba(255, 255, 255, 0.3)" } ], "angle": 0, "opacity": 1 } } }, "borderWidth": { "name": "边框宽度", "type": "number", "step": 1, "default": 0 }, "borderColor": { "name": "边框颜色", "type": "color", "default": "#FFFFFF" } } }, "outline": { "name": "外轮廓", "fold": false, "enableHide": true, "type": "group", "children": { "show": { "default": true }, "borderDistance": { "type": "number", "default": 7, "name": "距离" }, "itemStyle": { "name": "样式", "type": "group", "children": { "borderWidth": { "type": "number", "default": 4, "name": "宽度" }, "borderColor": { "name": "颜色", "type": "color", "default": "rgba(0, 117, 255, 0.5)" }, "shadowBlur": { "name": "模糊距离", "default": 8, "type": "number" }, "shadowColor": { "name": "阴影颜色", "type": "color", "default": "#0075FF" } } } } }, "wave": { "name": "波浪", "type": "group", "fold": false, "enableHide": true, "children": { "show": { "default": true }, "period": { "name": "速度", "type": "number", "step": 500, "default": 3000 }, "amplitude": { "name": "振幅", "default": 8, "type": "slider", "min": 0, "max": 20, "step": 0.1 }, "animationDuration": { "name": "初始动画时长", "type": "number", "step": 1, "default": 1000 }, "animationEasing": { "name": "缓动效果", "type": "text", "default": "cubicOut", "description": "初始动画的缓动效果。不同的缓动效果可以参考: https://www.echartsjs.com/gallery/editor.html?c=line-easing" } } } } }, "indicator": { "type": "menuChild", "name": "指标", "children": { "font": { "type": "font", "components": [ "fontFamily", "fontWeight", "fontSize", "color" ], "name": "文本样式", "default": { "fontFamily": "Mircosoft Yahei", "fontSize": 36, "color": "rgba(230, 247, 255, 1)", "fontWeight": "normal" } }, "translate": { "type": "suite", "name": "偏移", "children": { "x": { "type": "number", "suffix": "%", "default": 50, "col": 12, "name": "水平" }, "y": { "type": "number", "suffix": "%", "col": 12, "default": 50, "name": "垂直" } } }, "decimals": { "type": "number", "suffix": "位", "default": 0, "name": "保留小数" }, "suffix": { "name": "后缀", "fold": false, "enableHide": true, "type": "group", "children": { "show": { "default": true }, "text": { "name": "文本", "default": "%", "type": "text" }, "margin": { "type": "suite", "name": "边距", "children": { "top": { "name": "上", "default": 0, "type": "number", "col": 6 }, "bottom": { "name": "下", "default": 0, "type": "number", "col": 6 }, "left": { "name": "左", "default": 0, "type": "number", "col": 6 }, "right": { "name": "右", "default": 0, "type": "number", "col": 6 } } }, "font": { "type": "font", "name": "文本样式", "components": [ "fontFamily", "fontWeight", "fontSize", "color" ], "default": { "fontFamily": "Mircosoft Yahei", "fontSize": 36, "color": "rgba(230, 247, 255, 1)", "fontWeight": "normal" } } } } } }, "status": { "type": "menuChild", "name": "状态", "children": { "dataStyle": { "name": "水波纹数", "type": "array", "fold": true, "default": [ { "direction": "left", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "rgba(0,255,241,0.62)" }, { "offset": 100, "color": "rgba(0,163,237,0.3)" } ], "angle": 0, "opacity": 1 } } }, { "direction": "right", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "rgba(0,115,249,0.7)" }, { "offset": 100, "color": "rgba(0,71,241,0.3)" } ], "angle": 0, "opacity": 1 } } } ], "child": { "type": "object", "name": "波纹<%=i+1%>", "child": { "color": { "name": "颜色", "type": "fill", "components": [ "flat", "linearGradient" ], "default": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "rgba(0,24,55, 0)" }, { "offset": 100, "color": "rgba(255, 255, 255, 0.3)" } ], "angle": 0, "opacity": 1 } } }, "direction": { "name": "水流方向", "type": "select", "default": "left", "range": [ { "name": "left", "value": "left" }, { "name": "right", "value": "right" } ] } } } } } } } } }, "api_data": { "source": [ { "value": 0.5 } ] }, "events": {}, "publicHandler": {} } }