{ "name": "svg-path", "version": "0.0.2", "scripts": { "build-dev": "cube build ./ --output=../../datavComponent --remote=pandav --smart" }, "dependencies": { "bcore": "0.0.18", "jquery": "2.1.4", "lodash": "4.6.1", "react": "16.13.1", "react-dom": "16.13.1", "@babel/runtime": "7.18.3", "react-unity-webgl": "9.4.3" }, "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:control_path" ], "view": { "width": "300", "height": "200", "minWidth": "200", "minHeight": "100", "z-index": 10 }, "publicHandler": { "show": { "description": "显示" }, "hide": { "description": "隐藏" } }, "apis": { "source": { "handler": "render", "description": "svg数据", "fields": { } } }, "api_data": { "source": [ ] }, "config": { "isSelf": { "name": "轨迹自定义", "type": "boolean", "default": false }, "isShow": { "name": "是否显示路径", "type": "boolean", "default": false }, "path": { "name": "运动轨迹", "show": [ [ "isSelf", "$eq", true ] ], "type": "text", "default": "M65,1.12977573 L84.6526658,40.9504261 L128.597363,47.3359643 L96.7986813,78.3320179 L104.305332,122.099148 L65,101.435112 L25.6946684,122.099148 L33.2013187,78.3320179 L1.40263746,47.3359643 L45.3473342,40.9504261 L65,1.12977573 Z" }, "svgUrl": { "name": "运动轨迹(svg格式)", "show": [ [ "isSelf", "$eq", false ] ], "type": "image", "default": "" }, "pathConfig": { "name": "路径配置", "type": "group", "enableHide": true, "showInPanel": { "conditions": [ [ "isShow", "$eq", true ] ] }, "children": { "strokeWidth": { "name": "轨迹宽度", "type": "stepper", "step": 0.5, "min": 0, "default": 1.5 }, "strokeColor": { "name": "轨迹颜色", "type": "color", "default": "rgba(174, 174, 174, 0.2)" } } }, "animatePathConfig": { "name": "动画轨迹配置", "type": "group", "children": { "strokeWidth": { "name": "轨迹宽度", "type": "stepper", "step": 0.5, "min": 0, "default": 1.5 }, "strokeLength": { "name": "轨迹长度", "type": "stepper", "step": 1, "min": 0, "default": 100 }, "strokeColor": { "name": "轨迹颜色", "type": "array", "fold": false, "default": [], "child": { "type": "object", "name": "颜色<%=i+1%>", "child": { "offset": { "name": "百分值", "type": "slider", "default": 100, "step": 1, "min": 0, "max": 100, "suffix": "%", "showRange": true }, "stopColor": { "name": "颜色", "type": "color", "default": "#00EEFF" } } } } } }, "animation": { "name": "是否启动动画", "type": "boolean", "default": true }, "isReverse": { "name": "是否反向", "type": "boolean", "default": false }, "timing": { "name": "过渡方式", "type": "select", "default": "linear", "option": [ { "value": "linear", "label": "匀速" }, { "value": "ease", "label": "中间匀速,后面慢速" }, { "value": "ease-in", "label": "进入时慢速,后面匀速" }, { "value": "ease-out", "label": "出去时慢速 前面匀速" }, { "value": "ease-in-out", "label": "进入和出去时慢速 中间匀速" } ] }, "delay": { "name": "动画时长", "type": "number", "default": "3" } } } }