{ "name": "@echarts/waterBall", "version": "0.0.3", "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" } ] }, "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" } } }, "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": 100, "step": 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": 12, "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, "col": 12, "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": 12, "color": "rgba(230, 247, 255, 1)", "fontWeight": "normal" } } } } } }, "status": { "type": "menuChild", "name": "状态", "children": { "dataStyle": { "name": "水波纹数", "type": "array", "fold": true, "default": [ { "direction": "left", "color": { "angle": 0, "from": "rgba(0,255,241,0.62)", "style": "double", "to": "rgba(0,163,237,0.3)", "value": "rgba(0,163,237,0.3)" } }, { "direction": "right", "color": { "angle": 0, "from": "rgba(0,115,249,0.7)", "style": "double", "to": "rgba(0,71,241,0.3)", "value": "#10E245" } } ], "child": { "type": "object", "name": "波纹<%=i+1%>", "child": { "color": { "name": "颜色", "type": "multicolor", "default": { "style": "single", "value": "#FFFFFF" } }, "direction": { "name": "水流方向", "type": "select", "default": "left", "range": [ { "name": "left", "value": "left" }, { "name": "right", "value": "right" } ] } } } } } } } } }, "api_data": { "source": [ { "value": 0.2, "max": 1 } ] }, "events": { "click": { "name": "当点击数据项时", "description": "当点击数据项时", "type": "object", "fields": { "type": { "description": "数据项类型", "type": "string" }, "id": { "description": "ID", "type": "string" }, "name": { "description": "名称(类型为nodes时有效)", "type": "string" }, "value": { "description": "值(类型为nodes时有效)", "type": "string" }, "category": { "description": "类目(类型为nodes时有效)", "type": "string" }, "source": { "description": "源节点ID(类型为links时有效)", "type": "string" }, "target": { "description": "目标节点ID(类型为links时有效)", "type": "string" } } }, "legend-select-changed": { "name": "当图例点击时", "description": "当图例点击时", "fields": { "selected": { "type": "array", "name": "当前已选中系列", "description": "当前已选中系列, eg: [serie1, serie2, ...]" } } } }, "publicHandler": { "showTip": { "name": "显示提示框", "type": "object", "fields": { "dataIndex": { "name": "数据索引", "description": "数据索引", "optional": true, "type": "number" }, "name": { "name": "数据名", "description": "数据名", "optional": true, "type": "string" }, "x": { "name": "横坐标位置", "description": "横坐标位置", "type": "number" }, "y": { "name": "竖坐标位置", "description": "竖坐标位置", "type": "number" } } }, "hideTip": { "name": "隐藏提示框" }, "legendAction": { "name": "图例控制", "type": "object", "fields": { "type": { "name": "图例动作类型", "description": "图例动作类型包括: legendSelect, legendUnSelect, legendToggleSelect", "default": "legendToggleSelect", "type": "string" }, "name": { "name": "图例名称", "type": "string" } } } } } }