import { ChartConfigValueType,ChartConfigProp, RequestMethod } from "../../chart.d"; import { ColorDefault, DataSourceTypeDefault, FontAlignHorizonDefault, FontAlignVerticalDefault, FontWeightDefault, LeidaToumingdu, LeidaXingzhuang, RequestMethodDefault } from "../../chart.ops"; export const LeidaConfig : ChartConfigProp = { config : { title : "配置", config : { "图层名称":{ title : "图层名称", value : "雷达", valueType : ChartConfigValueType.INPUT, key : "雷达", subItem : undefined }, "形状":{ title : "形状", value : LeidaXingzhuang, valueType : ChartConfigValueType.RADIO, key : "形状", subItem : undefined, }, "字体大小":{ title : "字体大小", value : 20, valueType: ChartConfigValueType.NUMBER_INPUT, key : "字体大小", subItem: undefined, }, "字体颜色": { title : "字体颜色", value : "rgba(30, 144, 255, 1)", valueType : ChartConfigValueType.COLOR_SELECTOR, key : "字体颜色", subItem : undefined, }, "区域透明度":{ title : "区域透明度", value : LeidaToumingdu, valueType : ChartConfigValueType.SLIDE, key : "区域透明度", subItem : undefined , }, // "样式配置":{ // title : "样式配置", // value : undefined, // valueType : undefined, // key : "样式配置", // subItem : { // "自定义配色":{ // title : "自定义配色", // value : ColorDefault, // valueType : ChartConfigValueType.COLOR_CONFIG, // key : "自定义配色", // subItem : undefined , // } // } , // }, "标题设置":{ title :"标题设置", value : undefined , valueType : undefined , key:"标题设置", subItem : { "显示":{ title :"显示", value : false, valueType : ChartConfigValueType.SWITCH, key : "显示", subItem : undefined }, "标题":{ title :"标题", value : "", valueType : ChartConfigValueType.INPUT, key : "标题", subItem : undefined }, "字体颜色":{ title :"字体颜色", value : "rgba(30, 144, 255, 1)", valueType : ChartConfigValueType.COLOR_SELECTOR, key : "字体颜色", subItem : undefined }, "字体粗细":{ title :"字体粗细", value : FontWeightDefault, valueType : ChartConfigValueType.RADIO, key : "字体粗细", subItem : undefined }, "字体大小":{ title :"字体大小", value : 20, valueType : ChartConfigValueType.NUMBER_INPUT, key : "字体大小", subItem : undefined }, "字体位置":{ title :"字体位置", value : FontAlignHorizonDefault, valueType : ChartConfigValueType.RADIO, key : "字体位置", subItem : undefined }, // -- 副标题相关 "副标题":{ title :"副标题", value : "", valueType : ChartConfigValueType.INPUT, key : "副标题", subItem : undefined }, "副标题字体颜色":{ title :"副标题字体颜色", value : "rgba(30, 144, 255, 1)", valueType : ChartConfigValueType.COLOR_SELECTOR, key : "副标题字体颜色", subItem : undefined }, "副标题字体粗细":{ title :"副标题字体粗细", value : FontWeightDefault, valueType : ChartConfigValueType.RADIO, key : "副标题字体粗细", subItem : undefined }, "副标题字体大小":{ title :"副标题字体大小", value : 20, valueType : ChartConfigValueType.NUMBER_INPUT, key : "副标题字体大小", subItem : undefined } } }, "数值显示": { title: "数值显示", value: undefined, valueType: undefined, key: "数值显示", subItem: { "显示": { title: "显示", value: false, valueType: ChartConfigValueType.SWITCH, key: "显示", subItem: undefined, }, "字体大小": { title: "字体大小", value: 20, valueType: ChartConfigValueType.NUMBER_INPUT, key: "字体大小", subItem: undefined, }, "数据格式": { title: "数据格式", value: "{c}", valueType: ChartConfigValueType.INPUT, key: "数据格式", subItem: undefined, }, "字体粗细": { title: "字体粗细", value: FontWeightDefault, valueType: ChartConfigValueType.RADIO, key: "字体粗细", subItem: undefined, } } }, "提示语设置":{ title : "提示语设置", value : undefined, valueType : undefined, key : "提示语设置", subItem : { "字体大小":{ title : "字体大小", value : 20, valueType : ChartConfigValueType.NUMBER_INPUT, key : "字体大小", subItem : undefined, }, "字体颜色":{ title : "字体颜色", value : "red", valueType : ChartConfigValueType.COLOR_SELECTOR, key : "字体颜色", subItem : undefined } } }, "图例操作":{ title :"图例操作", value : undefined, valueType : undefined, key : "图例操作", subItem : { "图例":{ title :"图例", value : true, valueType : ChartConfigValueType.SWITCH, key : "图例", subItem : undefined }, "字体颜色":{ title :"字体颜色", value : "white", valueType : ChartConfigValueType.COLOR_SELECTOR, key : "字体颜色", subItem : undefined }, "图例宽度":{ title :"图例宽度", value : 36, valueType : ChartConfigValueType.NUMBER_INPUT, key : "图例宽度", subItem : undefined }, "横向位置":{ title :"横向位置", value : FontAlignHorizonDefault, valueType : ChartConfigValueType.RADIO, key : "横向位置", subItem : undefined }, "纵向位置":{ title :"纵向位置", value : FontAlignVerticalDefault, valueType : ChartConfigValueType.RADIO, key : "纵向位置", subItem : undefined }, "字体大小":{ title :"字体大小", value : 18, valueType : ChartConfigValueType.NUMBER_INPUT, key : "字体大小", subItem : undefined } } }, "配色":{ title : "配色", value : undefined, valueType : undefined, key : "配色", subItem : { "自定义配色":{ title : "自定义配色", value : ColorDefault, valueType : ChartConfigValueType.COLOR_CONFIG, key : "自定义配色", subItem : undefined , } } , } } }, data : { title : "数据", config : { "数据类型":{ title :"数据类型", value : DataSourceTypeDefault, valueType : ChartConfigValueType.RADIO, key : "数据类型", subItem : undefined }, "接口地址":{ title :"接口地址", //value : "http://localhost:8090/api/dataHandle/leida", value : "https://ssl.zhuanyegou.com/uat-devops/api/dataHandle/leida", valueType : ChartConfigValueType.INPUT, key : "接口地址", subItem : undefined }, "接口方式":{ title :"接口方式", value : { ...RequestMethodDefault, value:RequestMethod.post }, valueType : ChartConfigValueType.RADIO, key : "接口方式", subItem : undefined }, "参数编辑":{ title :"参数编辑", // value : `{"url":"http://localhost:8090/api/dataHandle/demo/leida"}`, value : `{"url":"https://ssl.zhuanyegou.com/uat-devops/api/dataHandle/demo/leida"}`, valueType : ChartConfigValueType.INPUT, key : "参数编辑", subItem : undefined }, "刷新时间":{ title :"刷新时间", value : 5000, valueType : ChartConfigValueType.NUMBER_INPUT, key : "刷新时间", subItem : undefined } } }, param : { title : "参数", config : { "X位置":{ title :"X位置", value : 0, valueType : ChartConfigValueType.NUMBER_INPUT, key : "X位置", subItem : undefined }, "Y位置":{ title :"Y位置", value : 0, valueType : ChartConfigValueType.NUMBER_INPUT, key : "Y位置", subItem : undefined }, "宽度":{ title :"宽度", value : 600, valueType : ChartConfigValueType.NUMBER_INPUT, key : "宽度", subItem : undefined }, "高度":{ title :"高度", value : 300, valueType : ChartConfigValueType.NUMBER_INPUT, key : "高度", subItem : undefined } } } }