@easy-editor/materials-dashboard-radar-chart 0.0.2 → 0.0.3

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/dist/meta.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @easy-editor/materials-dashboard-tech-radar-chart v0.0.1 (meta, esm) */
1
+ /* @easy-editor/materials-dashboard-radar-chart v0.0.2 (meta, esm) */
2
2
  const MaterialGroup = {
3
3
  CHART: 'chart'};
4
4
 
@@ -310,7 +310,7 @@ const snippets = [{
310
310
  }
311
311
  }];
312
312
 
313
- var version = "0.0.1";
313
+ var version = "0.0.2";
314
314
  var pkg = {
315
315
  version: version};
316
316
 
package/dist/meta.js CHANGED
@@ -1,8 +1,8 @@
1
- /* @easy-editor/materials-dashboard-tech-radar-chart v0.0.1 (meta) */
1
+ /* @easy-editor/materials-dashboard-radar-chart v0.0.2 (meta) */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
5
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.EasyEditorMaterialsTechRadarChartMeta = {}));
5
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.EasyEditorMaterialsRadarChartMeta = {}));
6
6
  })(this, (function (exports) { 'use strict';
7
7
 
8
8
  const MaterialGroup = {
@@ -316,7 +316,7 @@
316
316
  }
317
317
  }];
318
318
 
319
- var version = "0.0.1";
319
+ var version = "0.0.2";
320
320
  var pkg = {
321
321
  version: version};
322
322
 
package/dist/meta.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).EasyEditorMaterialsTechRadarChartMeta={})}(this,function(e){"use strict";const t="EasyEditorMaterialsTechRadarChart";const a={componentName:t,title:"雷达图",group:"chart",devMode:"proCode",npm:{package:"@easy-editor/materials-dashboard-tech-radar-chart",version:"0.0.1",globalName:t,componentName:t},snippets:[{title:"雷达图",screenshot:"",schema:{componentName:t,props:{data:[{dimension:"Attack",player1:85,player2:70},{dimension:"Defense",player1:70,player2:90},{dimension:"Speed",player1:95,player2:60},{dimension:"Magic",player1:60,player2:85},{dimension:"HP",player1:75,player2:80}],dimensionKey:"dimension",series:[{name:"Player 1",dataKey:"player1",color:"#00d4ff"},{name:"Player 2",dataKey:"player2",color:"#00ff88"}],showGrid:!0,fillOpacity:.3,glowEffect:!0,showLegend:!0},$dashboard:{rect:{width:400,height:300}}}},{title:"单系列雷达图",screenshot:"",schema:{componentName:t,props:{data:[{dimension:"Attack",value:85},{dimension:"Defense",value:70},{dimension:"Speed",value:95},{dimension:"Magic",value:60},{dimension:"HP",value:75}],dimensionKey:"dimension",series:[{name:"Stats",dataKey:"value",color:"#00d4ff"}],showGrid:!0,fillOpacity:.4,glowEffect:!0,showLegend:!1},$dashboard:{rect:{width:400,height:300}}}}],configure:{props:[{type:"group",title:"属性",setter:"TabSetter",items:[{type:"group",key:"config",title:"配置",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"id",title:"ID",setter:"NodeIdSetter",extraProps:{label:!1}},{name:"title",title:"标题",setter:"StringSetter",extraProps:{getValue:e=>e.getExtraPropValue("title"),setValue(e,t){e.setExtraPropValue("title",t)}}},{type:"group",title:"基础属性",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"rect",title:"位置尺寸",setter:"RectSetter",extraProps:{getValue:e=>e.getExtraPropValue("$dashboard.rect"),setValue(e,t){e.setExtraPropValue("$dashboard.rect",t)}}}]},{type:"group",title:"数据",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"data",title:"数据",setter:"JsonSetter"},{name:"dimensionKey",title:"维度字段",setter:"StringSetter",extraProps:{defaultValue:"dimension"}},{name:"series",title:"系列",setter:"JsonSetter"}]},{type:"group",title:"数值格式",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"valuePrefix",title:"前缀",setter:"StringSetter"},{name:"valueSuffix",title:"后缀",setter:"StringSetter"},{name:"valueDecimals",title:"小数位数",setter:{componentName:"NumberSetter",props:{suffix:"位"}},extraProps:{defaultValue:0}}]},{type:"group",title:"样式",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"showGrid",title:"显示网格",setter:"SwitchSetter",extraProps:{defaultValue:!0}},{name:"fillOpacity",title:"填充透明度",setter:{componentName:"SliderSetter",props:{min:0,max:1,step:.1}},extraProps:{defaultValue:.3}},{name:"showLegend",title:"显示图例",setter:"SwitchSetter",extraProps:{defaultValue:!0}},{name:"legendPosition",title:"图例位置",setter:{componentName:"SelectSetter",props:{options:[{label:"顶部",value:"top"},{label:"底部",value:"bottom"},{label:"左侧",value:"left"},{label:"右侧",value:"right"}]}},extraProps:{defaultValue:"bottom"}},{name:"glowEffect",title:"发光效果",setter:"SwitchSetter",extraProps:{defaultValue:!0}}]}]},{type:"group",key:"data",title:"数据",items:[{name:"dataBinding",title:"数据绑定",setter:"DataBindingSetter"}]},{type:"group",key:"advanced",title:"高级",items:[{name:"condition",title:"显隐控制",setter:"SwitchSetter",extraProps:{defaultValue:!0,supportVariable:!0}}]}]}],component:{},supports:{},advanced:{}}};e.default=a,Object.defineProperty(e,"__esModule",{value:!0})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).EasyEditorMaterialsRadarChartMeta={})}(this,function(e){"use strict";const t="EasyEditorMaterialsTechRadarChart";const a={componentName:t,title:"雷达图",group:"chart",devMode:"proCode",npm:{package:"@easy-editor/materials-dashboard-tech-radar-chart",version:"0.0.2",globalName:t,componentName:t},snippets:[{title:"雷达图",screenshot:"",schema:{componentName:t,props:{data:[{dimension:"Attack",player1:85,player2:70},{dimension:"Defense",player1:70,player2:90},{dimension:"Speed",player1:95,player2:60},{dimension:"Magic",player1:60,player2:85},{dimension:"HP",player1:75,player2:80}],dimensionKey:"dimension",series:[{name:"Player 1",dataKey:"player1",color:"#00d4ff"},{name:"Player 2",dataKey:"player2",color:"#00ff88"}],showGrid:!0,fillOpacity:.3,glowEffect:!0,showLegend:!0},$dashboard:{rect:{width:400,height:300}}}},{title:"单系列雷达图",screenshot:"",schema:{componentName:t,props:{data:[{dimension:"Attack",value:85},{dimension:"Defense",value:70},{dimension:"Speed",value:95},{dimension:"Magic",value:60},{dimension:"HP",value:75}],dimensionKey:"dimension",series:[{name:"Stats",dataKey:"value",color:"#00d4ff"}],showGrid:!0,fillOpacity:.4,glowEffect:!0,showLegend:!1},$dashboard:{rect:{width:400,height:300}}}}],configure:{props:[{type:"group",title:"属性",setter:"TabSetter",items:[{type:"group",key:"config",title:"配置",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"id",title:"ID",setter:"NodeIdSetter",extraProps:{label:!1}},{name:"title",title:"标题",setter:"StringSetter",extraProps:{getValue:e=>e.getExtraPropValue("title"),setValue(e,t){e.setExtraPropValue("title",t)}}},{type:"group",title:"基础属性",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"rect",title:"位置尺寸",setter:"RectSetter",extraProps:{getValue:e=>e.getExtraPropValue("$dashboard.rect"),setValue(e,t){e.setExtraPropValue("$dashboard.rect",t)}}}]},{type:"group",title:"数据",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"data",title:"数据",setter:"JsonSetter"},{name:"dimensionKey",title:"维度字段",setter:"StringSetter",extraProps:{defaultValue:"dimension"}},{name:"series",title:"系列",setter:"JsonSetter"}]},{type:"group",title:"数值格式",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"valuePrefix",title:"前缀",setter:"StringSetter"},{name:"valueSuffix",title:"后缀",setter:"StringSetter"},{name:"valueDecimals",title:"小数位数",setter:{componentName:"NumberSetter",props:{suffix:"位"}},extraProps:{defaultValue:0}}]},{type:"group",title:"样式",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"showGrid",title:"显示网格",setter:"SwitchSetter",extraProps:{defaultValue:!0}},{name:"fillOpacity",title:"填充透明度",setter:{componentName:"SliderSetter",props:{min:0,max:1,step:.1}},extraProps:{defaultValue:.3}},{name:"showLegend",title:"显示图例",setter:"SwitchSetter",extraProps:{defaultValue:!0}},{name:"legendPosition",title:"图例位置",setter:{componentName:"SelectSetter",props:{options:[{label:"顶部",value:"top"},{label:"底部",value:"bottom"},{label:"左侧",value:"left"},{label:"右侧",value:"right"}]}},extraProps:{defaultValue:"bottom"}},{name:"glowEffect",title:"发光效果",setter:"SwitchSetter",extraProps:{defaultValue:!0}}]}]},{type:"group",key:"data",title:"数据",items:[{name:"dataBinding",title:"数据绑定",setter:"DataBindingSetter"}]},{type:"group",key:"advanced",title:"高级",items:[{name:"condition",title:"显隐控制",setter:"SwitchSetter",extraProps:{defaultValue:!0,supportVariable:!0}}]}]}],component:{},supports:{},advanced:{}}};e.default=a,Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=meta.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.min.js","sources":["../../../../shared/src/index.ts","../src/constants.ts","../src/meta.ts","../src/snippets.ts","../src/configure.ts"],"sourcesContent":["/**\n * Shared types, components and utilities for EasyEditor materials\n * @package @easy-editor/materials-shared\n */\n\n// 物料分组常量\nexport const MaterialGroup = {\n /** 内置 */\n INNER: 'inner',\n /** 基础 */\n BASIC: 'basic',\n /** 图表 */\n CHART: 'chart',\n /** 数据展示 */\n DISPLAY: 'display',\n /** 媒体 */\n MEDIA: 'media',\n /** 交互 */\n INTERACTION: 'interaction',\n /** 地图 */\n MAP: 'map',\n} as const\n\nexport type MaterialGroup = (typeof MaterialGroup)[keyof typeof MaterialGroup]\n\n// 工具函数\nexport { cn } from './lib/utils'\n\nexport * from './types'\n","/**\n * 物料常量配置\n * 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值\n */\n\n/**\n * UMD 全局变量基础名称\n */\nexport const COMPONENT_NAME = 'EasyEditorMaterialsTechRadarChart'\n\n/**\n * 包名\n */\nexport const PACKAGE_NAME = '@easy-editor/materials-dashboard-tech-radar-chart'\n\n/**\n * 默认颜色\n */\nexport const DEFAULT_COLORS = ['#00d4ff', '#00ff88', '#ff6b6b', '#ffd93d', '#6bcbff', '#c56bff']\n\n/**\n * 默认维度\n */\nexport const DEFAULT_DIMENSIONS = ['Attack', 'Defense', 'Speed', 'Magic', 'HP']\n\n/**\n * 雷达图数据点类型\n */\nexport interface RadarDataPoint {\n dimension: string\n [key: string]: number | string | undefined\n}\n\n/**\n * 默认数据\n */\nexport const DEFAULT_DATA: RadarDataPoint[] = [\n { dimension: 'Attack', player1: 85, player2: 70 },\n { dimension: 'Defense', player1: 70, player2: 90 },\n { dimension: 'Speed', player1: 95, player2: 60 },\n { dimension: 'Magic', player1: 60, player2: 85 },\n { dimension: 'HP', player1: 75, player2: 80 },\n]\n\n/**\n * 默认系列配置\n */\nexport const DEFAULT_SERIES = [\n { name: 'Player 1', dataKey: 'player1', color: '#00d4ff' },\n { name: 'Player 2', dataKey: 'player2', color: '#00ff88' },\n]\n","import type { ComponentMetadata } from '@easy-editor/core'\nimport { MaterialGroup } from '@easy-editor/materials-shared'\nimport { COMPONENT_NAME, PACKAGE_NAME } from './constants'\nimport configure from './configure'\nimport snippets from './snippets'\nimport pkg from '../package.json'\n\nconst meta: ComponentMetadata = {\n componentName: COMPONENT_NAME,\n title: '雷达图',\n group: MaterialGroup.CHART,\n devMode: 'proCode',\n npm: {\n package: PACKAGE_NAME,\n version: pkg.version,\n globalName: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n },\n snippets,\n configure,\n}\n\nexport default meta\n","import type { Snippet } from '@easy-editor/core'\nimport { COMPONENT_NAME, DEFAULT_DATA, DEFAULT_SERIES } from './constants'\n\nconst snippets: Snippet[] = [\n {\n title: '雷达图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: DEFAULT_DATA,\n dimensionKey: 'dimension',\n series: DEFAULT_SERIES,\n showGrid: true,\n fillOpacity: 0.3,\n glowEffect: true,\n showLegend: true,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 300,\n },\n },\n },\n },\n {\n title: '单系列雷达图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: [\n { dimension: 'Attack', value: 85 },\n { dimension: 'Defense', value: 70 },\n { dimension: 'Speed', value: 95 },\n { dimension: 'Magic', value: 60 },\n { dimension: 'HP', value: 75 },\n ],\n dimensionKey: 'dimension',\n series: [{ name: 'Stats', dataKey: 'value', color: '#00d4ff' }],\n showGrid: true,\n fillOpacity: 0.4,\n glowEffect: true,\n showLegend: false,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 300,\n },\n },\n },\n },\n]\n\nexport default snippets\n","/**\n * Radar Chart Configure\n * 雷达图组件配置\n */\n\nimport type { Configure } from '@easy-editor/core'\n\nconst configure: Configure = {\n props: [\n {\n type: 'group',\n title: '属性',\n setter: 'TabSetter',\n items: [\n {\n type: 'group',\n key: 'config',\n title: '配置',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n // 基础配置\n {\n name: 'id',\n title: 'ID',\n setter: 'NodeIdSetter',\n extraProps: {\n // @ts-expect-error label is not a valid extra prop\n label: false,\n },\n },\n {\n name: 'title',\n title: '标题',\n setter: 'StringSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('title')\n },\n setValue(target, value) {\n target.setExtraPropValue('title', value)\n },\n },\n },\n {\n type: 'group',\n title: '基础属性',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'rect',\n title: '位置尺寸',\n setter: 'RectSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('$dashboard.rect')\n },\n setValue(target, value) {\n target.setExtraPropValue('$dashboard.rect', value)\n },\n },\n },\n ],\n },\n // 组件配置\n {\n type: 'group',\n title: '数据',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'data',\n title: '数据',\n setter: 'JsonSetter',\n },\n {\n name: 'dimensionKey',\n title: '维度字段',\n setter: 'StringSetter',\n extraProps: {\n defaultValue: 'dimension',\n },\n },\n {\n name: 'series',\n title: '系列',\n setter: 'JsonSetter',\n },\n ],\n },\n {\n type: 'group',\n title: '数值格式',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'valuePrefix',\n title: '前缀',\n setter: 'StringSetter',\n },\n {\n name: 'valueSuffix',\n title: '后缀',\n setter: 'StringSetter',\n },\n {\n name: 'valueDecimals',\n title: '小数位数',\n setter: {\n componentName: 'NumberSetter',\n props: {\n suffix: '位',\n },\n },\n extraProps: {\n defaultValue: 0,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '样式',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'showGrid',\n title: '显示网格',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'fillOpacity',\n title: '填充透明度',\n setter: {\n componentName: 'SliderSetter',\n props: {\n min: 0,\n max: 1,\n step: 0.1,\n },\n },\n extraProps: {\n defaultValue: 0.3,\n },\n },\n {\n name: 'showLegend',\n title: '显示图例',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'legendPosition',\n title: '图例位置',\n setter: {\n componentName: 'SelectSetter',\n props: {\n options: [\n { label: '顶部', value: 'top' },\n { label: '底部', value: 'bottom' },\n { label: '左侧', value: 'left' },\n { label: '右侧', value: 'right' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'bottom',\n },\n },\n {\n name: 'glowEffect',\n title: '发光效果',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n ],\n },\n ],\n },\n {\n type: 'group',\n key: 'data',\n title: '数据',\n items: [\n {\n name: 'dataBinding',\n title: '数据绑定',\n setter: 'DataBindingSetter',\n },\n ],\n },\n {\n type: 'group',\n key: 'advanced',\n title: '高级',\n items: [\n {\n name: 'condition',\n title: '显隐控制',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n supportVariable: true,\n },\n },\n ],\n },\n ],\n },\n ],\n component: {},\n supports: {},\n advanced: {},\n}\n\nexport default configure\n"],"names":["COMPONENT_NAME","meta","componentName","title","group","devMode","npm","package","version","globalName","snippets","screenshot","schema","props","data","dimension","player1","player2","dimensionKey","series","name","dataKey","color","showGrid","fillOpacity","glowEffect","showLegend","$dashboard","rect","width","height","value","configure","type","setter","items","key","icon","extraProps","label","getValue","target","getExtraPropValue","setValue","setExtraPropValue","defaultValue","suffix","min","max","step","options","supportVariable","component","supports","advanced"],"mappings":"4QAMO,MCEMA,EAAiB,oCCD9B,MAAMC,EAA0B,CAC9BC,cAAeF,EACfG,MAAO,MACPC,MFEO,QEDPC,QAAS,UACTC,IAAK,CACHC,QDAwB,oDCCxBC,gBACAC,WAAYT,EACZE,cAAeF,GAEjBU,SCf0B,CAC1B,CACEP,MAAO,MACPQ,WAAY,GACZC,OAAQ,CACNV,cAAeF,EACfa,MAAO,CACLC,KF0BsC,CAC5C,CAAEC,UAAW,SAAUC,QAAS,GAAIC,QAAS,IAC7C,CAAEF,UAAW,UAAWC,QAAS,GAAIC,QAAS,IAC9C,CAAEF,UAAW,QAASC,QAAS,GAAIC,QAAS,IAC5C,CAAEF,UAAW,QAASC,QAAS,GAAIC,QAAS,IAC5C,CAAEF,UAAW,KAAMC,QAAS,GAAIC,QAAS,KE9BnCC,aAAc,YACdC,OFmCsB,CAC5B,CAAEC,KAAM,WAAYC,QAAS,UAAWC,MAAO,WAC/C,CAAEF,KAAM,WAAYC,QAAS,UAAWC,MAAO,YEpCzCC,UAAU,EACVC,YAAa,GACbC,YAAY,EACZC,YAAY,GAEdC,WAAY,CACVC,KAAM,CACJ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f,KAAM,cACNjB,MAAO,OACP+B,OAAQ,uBAId,CACED,KAAM,QACNG,IAAK,WACLjC,MAAO,KACPgC,MAAO,CACL,CACEf,KAAM,YACNjB,MAAO,OACP+B,OAAQ,eACRI,WAAY,CACVO,cAAc,EACdM,iBAAiB,SAQ/BC,UAAW,CAAA,EACXC,SAAU,CAAA,EACVC,SAAU,CAAA"}
1
+ {"version":3,"file":"meta.min.js","sources":["../../../../shared/src/index.ts","../src/constants.ts","../src/meta.ts","../src/snippets.ts","../src/configure.ts"],"sourcesContent":["/**\n * Shared types, components and utilities for EasyEditor materials\n * @package @easy-editor/materials-shared\n */\n\n// 物料分组常量\nexport const MaterialGroup = {\n /** 内置 */\n INNER: 'inner',\n /** 基础 */\n BASIC: 'basic',\n /** 图表 */\n CHART: 'chart',\n /** 数据展示 */\n DISPLAY: 'display',\n /** 媒体 */\n MEDIA: 'media',\n /** 交互 */\n INTERACTION: 'interaction',\n /** 地图 */\n MAP: 'map',\n} as const\n\nexport type MaterialGroup = (typeof MaterialGroup)[keyof typeof MaterialGroup]\n\n// 工具函数\nexport { cn } from './lib/utils'\n\nexport * from './types'\n","/**\n * 物料常量配置\n * 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值\n */\n\n/**\n * UMD 全局变量基础名称\n */\nexport const COMPONENT_NAME = 'EasyEditorMaterialsTechRadarChart'\n\n/**\n * 包名\n */\nexport const PACKAGE_NAME = '@easy-editor/materials-dashboard-tech-radar-chart'\n\n/**\n * 默认颜色\n */\nexport const DEFAULT_COLORS = ['#00d4ff', '#00ff88', '#ff6b6b', '#ffd93d', '#6bcbff', '#c56bff']\n\n/**\n * 默认维度\n */\nexport const DEFAULT_DIMENSIONS = ['Attack', 'Defense', 'Speed', 'Magic', 'HP']\n\n/**\n * 雷达图数据点类型\n */\nexport interface RadarDataPoint {\n dimension: string\n [key: string]: number | string | undefined\n}\n\n/**\n * 默认数据\n */\nexport const DEFAULT_DATA: RadarDataPoint[] = [\n { dimension: 'Attack', player1: 85, player2: 70 },\n { dimension: 'Defense', player1: 70, player2: 90 },\n { dimension: 'Speed', player1: 95, player2: 60 },\n { dimension: 'Magic', player1: 60, player2: 85 },\n { dimension: 'HP', player1: 75, player2: 80 },\n]\n\n/**\n * 默认系列配置\n */\nexport const DEFAULT_SERIES = [\n { name: 'Player 1', dataKey: 'player1', color: '#00d4ff' },\n { name: 'Player 2', dataKey: 'player2', color: '#00ff88' },\n]\n","import type { ComponentMetadata } from '@easy-editor/core'\nimport { MaterialGroup } from '@easy-editor/materials-shared'\nimport { COMPONENT_NAME, PACKAGE_NAME } from './constants'\nimport configure from './configure'\nimport snippets from './snippets'\nimport pkg from '../package.json'\n\nconst meta: ComponentMetadata = {\n componentName: COMPONENT_NAME,\n title: '雷达图',\n group: MaterialGroup.CHART,\n devMode: 'proCode',\n npm: {\n package: PACKAGE_NAME,\n version: pkg.version,\n globalName: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n },\n snippets,\n configure,\n}\n\nexport default meta\n","import type { Snippet } from '@easy-editor/core'\nimport { COMPONENT_NAME, DEFAULT_DATA, DEFAULT_SERIES } from './constants'\n\nconst snippets: Snippet[] = [\n {\n title: '雷达图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: DEFAULT_DATA,\n dimensionKey: 'dimension',\n series: DEFAULT_SERIES,\n showGrid: true,\n fillOpacity: 0.3,\n glowEffect: true,\n showLegend: true,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 300,\n },\n },\n },\n },\n {\n title: '单系列雷达图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: [\n { dimension: 'Attack', value: 85 },\n { dimension: 'Defense', value: 70 },\n { dimension: 'Speed', value: 95 },\n { dimension: 'Magic', value: 60 },\n { dimension: 'HP', value: 75 },\n ],\n dimensionKey: 'dimension',\n series: [{ name: 'Stats', dataKey: 'value', color: '#00d4ff' }],\n showGrid: true,\n fillOpacity: 0.4,\n glowEffect: true,\n showLegend: false,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 300,\n },\n },\n },\n },\n]\n\nexport default snippets\n","/**\n * Radar Chart Configure\n * 雷达图组件配置\n */\n\nimport type { Configure } from '@easy-editor/core'\n\nconst configure: Configure = {\n props: [\n {\n type: 'group',\n title: '属性',\n setter: 'TabSetter',\n items: [\n {\n type: 'group',\n key: 'config',\n title: '配置',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n // 基础配置\n {\n name: 'id',\n title: 'ID',\n setter: 'NodeIdSetter',\n extraProps: {\n // @ts-expect-error label is not a valid extra prop\n label: false,\n },\n },\n {\n name: 'title',\n title: '标题',\n setter: 'StringSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('title')\n },\n setValue(target, value) {\n target.setExtraPropValue('title', value)\n },\n },\n },\n {\n type: 'group',\n title: '基础属性',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'rect',\n title: '位置尺寸',\n setter: 'RectSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('$dashboard.rect')\n },\n setValue(target, value) {\n target.setExtraPropValue('$dashboard.rect', value)\n },\n },\n },\n ],\n },\n // 组件配置\n {\n type: 'group',\n title: '数据',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'data',\n title: '数据',\n setter: 'JsonSetter',\n },\n {\n name: 'dimensionKey',\n title: '维度字段',\n setter: 'StringSetter',\n extraProps: {\n defaultValue: 'dimension',\n },\n },\n {\n name: 'series',\n title: '系列',\n setter: 'JsonSetter',\n },\n ],\n },\n {\n type: 'group',\n title: '数值格式',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'valuePrefix',\n title: '前缀',\n setter: 'StringSetter',\n },\n {\n name: 'valueSuffix',\n title: '后缀',\n setter: 'StringSetter',\n },\n {\n name: 'valueDecimals',\n title: '小数位数',\n setter: {\n componentName: 'NumberSetter',\n props: {\n suffix: '位',\n },\n },\n extraProps: {\n defaultValue: 0,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '样式',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'showGrid',\n title: '显示网格',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'fillOpacity',\n title: '填充透明度',\n setter: {\n componentName: 'SliderSetter',\n props: {\n min: 0,\n max: 1,\n step: 0.1,\n },\n },\n extraProps: {\n defaultValue: 0.3,\n },\n },\n {\n name: 'showLegend',\n title: '显示图例',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'legendPosition',\n title: '图例位置',\n setter: {\n componentName: 'SelectSetter',\n props: {\n options: [\n { label: '顶部', value: 'top' },\n { label: '底部', value: 'bottom' },\n { label: '左侧', value: 'left' },\n { label: '右侧', value: 'right' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'bottom',\n },\n },\n {\n name: 'glowEffect',\n title: '发光效果',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n ],\n },\n ],\n },\n {\n type: 'group',\n key: 'data',\n title: '数据',\n items: [\n {\n name: 'dataBinding',\n title: '数据绑定',\n setter: 'DataBindingSetter',\n },\n ],\n },\n {\n type: 'group',\n key: 'advanced',\n title: '高级',\n items: [\n {\n name: 'condition',\n title: '显隐控制',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n supportVariable: true,\n },\n },\n ],\n },\n ],\n },\n ],\n component: {},\n supports: {},\n advanced: {},\n}\n\nexport default configure\n"],"names":["COMPONENT_NAME","meta","componentName","title","group","devMode","npm","package","version","globalName","snippets","screenshot","schema","props","data","dimension","player1","player2","dimensionKey","series","name","dataKey","color","showGrid","fillOpacity","glowEffect","showLegend","$dashboard","rect","width","height","value","configure","type","setter","items","key","icon","extraProps","label","getValue","target","getExtraPropValue","setValue","setExtraPropValue","defaultValue","suffix","min","max","step","options","supportVariable","component","supports","advanced"],"mappings":"wQAMO,MCEMA,EAAiB,oCCD9B,MAAMC,EAA0B,CAC9BC,cAAeF,EACfG,MAAO,MACPC,MFEO,QEDPC,QAAS,UACTC,IAAK,CACHC,QDAwB,oDCCxBC,gBACAC,WAAYT,EACZE,cAAeF,GAEjBU,SCf0B,CAC1B,CACEP,MAAO,MACPQ,WAAY,GACZC,OAAQ,CACNV,cAAeF,EACfa,MAAO,CACLC,KF0BsC,CAC5C,CAAEC,UAAW,SAAUC,QAAS,GAAIC,QAAS,IAC7C,CAAEF,UAAW,UAAWC,QAAS,GAAIC,QAAS,IAC9C,CAAEF,UAAW,QAASC,QAAS,GAAIC,QAAS,IAC5C,CAAEF,UAAW,QAASC,QAAS,GAAIC,QAAS,IAC5C,CAAEF,UAAW,KAAMC,QAAS,GAAIC,QAAS,KE9BnCC,aAAc,YACdC,OFmCsB,CAC5B,CAAEC,KAAM,WAAYC,QAAS,UAAWC,MAAO,WAC/C,CAAEF,KAAM,WAAYC,QAAS,UAAWC,MAAO,YEpCzCC,UAAU,EACVC,YAAa,GACbC,YAAY,EACZC,YAAY,GAEdC,WAAY,CACVC,KAAM,CACJC,MAAO,IACPC,OAAQ,QAKhB,CACE3B,MAAO,SACPQ,WAAY,GACZC,OAAQ,CACNV,cAAeF,EACfa,MAAO,CACLC,KAAM,CACJ,CAAEC,UAAW,SAAUgB,MAAO,IAC9B,CAAEhB,UAAW,UAAWgB,MAAO,IAC/B,CAAEhB,UAAW,QAASgB,MAAO,IAC7B,CAAEhB,UAAW,QAASgB,MAAO,IAC7B,CAAEhB,UAAW,KAAMgB,MAAO,KAE5Bb,aAAc,YACdC,OAAQ,CAAC,CAAEC,KAAM,QAASC,QAAS,QAASC,MAAO,YACnDC,UAAU,EACVC,YAAa,GACbC,YAAY,EACZC,YAAY,GAEdC,WAAY,CACVC,KAAM,CACJC,MAAO,IACPC,OAAQ,SD9BhBE,UEZ2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AKtB,CACEZ,KAAM,QACN9B,MAAO,KACP+B,OAAQ,CACNhC,cAAe,iBACfW,MAAO,CACLwB,MAAM,IAGVF,MAAO,CACL,CACEf,KAAM,WACNjB,MAAO,OACP+B,OAAQ,eACRI,WAAY,CACVO,cAAc,IAGlB,CACEzB,KAAM,cACNjB,MAAO,QACP+B,OAAQ,CACNhC,cAAe,eACfW,MAAO,CACLkC,IAAK,EACLC,IAAK,EACLC,KAAM,KAGVX,WAAY,CACVO,aAAc,KAGlB,CACEzB,KAAM,aACNjB,MAAO,OACP+B,OAAQ,eACRI,WAAY,CACVO,cAAc,IAGlB,CACEzB,KAAM,iBACNjB,MAAO,OACP+B,OAAQ,CACNhC,cAAe,eACfW,MAAO,CACLqC,QAAS,CACP,CAAEX,MAAO,KAAMR,MAAO,OACtB,CAAEQ,MAAO,KAAMR,MAAO,UACtB,CAAEQ,MAAO,KAAMR,MAAO,QACtB,CAAEQ,MAAO,KAAMR,MAAO,YAI5BO,WAAY,CACVO,aAAc,WAGlB,CACEzB,KAAM,aACNjB,MAAO,OACP+B,OAAQ,eACRI,WAAY,CACVO,cAAc,QAO1B,CACEZ,KAAM,QACNG,IAAK,OACLjC,MAAO,KACPgC,MAAO,CACL,CACEf,KAAM,cACNjB,MAAO,OACP+B,OAAQ,uBAId,CACED,KAAM,QACNG,IAAK,WACLjC,MAAO,KACPgC,MAAO,CACL,CACEf,KAAM,YACNjB,MAAO,OACP+B,OAAQ,eACRI,WAAY,CACVO,cAAc,EACdM,iBAAiB,SAQ/BC,UAAW,CAAA,EACXC,SAAU,CAAA,EACVC,SAAU,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-editor/materials-dashboard-radar-chart",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Radar Chart component for EasyEditor dashboard",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/rollup.config.js CHANGED
@@ -7,7 +7,7 @@ import cleanup from 'rollup-plugin-cleanup'
7
7
  import postcss from 'rollup-plugin-postcss'
8
8
  import pkg from './package.json' with { type: 'json' }
9
9
 
10
- const GLOBAL_NAME = 'EasyEditorMaterialsTechRadarChart'
10
+ const GLOBAL_NAME = 'EasyEditorMaterialsRadarChart'
11
11
 
12
12
  // 外部依赖(不打包进组件)
13
13
  const external = ['react', 'react-dom', 'react/jsx-runtime', '@easy-editor/core']
@@ -63,7 +63,7 @@ export default [
63
63
  file: 'dist/meta.esm.js',
64
64
  format: 'esm',
65
65
  sourcemap: true,
66
- banner: `/* @easy-editor/materials-dashboard-tech-radar-chart v${pkg.version} (meta, esm) */`,
66
+ banner: `/* @easy-editor/materials-dashboard-radar-chart v${pkg.version} (meta, esm) */`,
67
67
  exports: 'named',
68
68
  },
69
69
  ],
@@ -79,7 +79,7 @@ export default [
79
79
  name: `${GLOBAL_NAME}Meta`,
80
80
  globals,
81
81
  sourcemap: true,
82
- banner: `/* @easy-editor/materials-dashboard-tech-radar-chart v${pkg.version} (meta) */`,
82
+ banner: `/* @easy-editor/materials-dashboard-radar-chart v${pkg.version} (meta) */`,
83
83
  exports: 'named',
84
84
  },
85
85
  ],
@@ -95,7 +95,7 @@ export default [
95
95
  name: `${GLOBAL_NAME}Meta`,
96
96
  globals,
97
97
  sourcemap: true,
98
- banner: `/* @easy-editor/materials-dashboard-tech-radar-chart v${pkg.version} (meta, minified) */`,
98
+ banner: `/* @easy-editor/materials-dashboard-radar-chart v${pkg.version} (meta, minified) */`,
99
99
  exports: 'named',
100
100
  },
101
101
  ],
@@ -111,7 +111,7 @@ export default [
111
111
  file: 'dist/component.esm.js',
112
112
  format: 'esm',
113
113
  sourcemap: true,
114
- banner: `/* @easy-editor/materials-dashboard-tech-radar-chart v${pkg.version} (component, esm) */`,
114
+ banner: `/* @easy-editor/materials-dashboard-radar-chart v${pkg.version} (component, esm) */`,
115
115
  exports: 'named',
116
116
  },
117
117
  ],
@@ -127,7 +127,7 @@ export default [
127
127
  name: `${GLOBAL_NAME}Component`,
128
128
  globals,
129
129
  sourcemap: true,
130
- banner: `/* @easy-editor/materials-dashboard-tech-radar-chart v${pkg.version} (component) */`,
130
+ banner: `/* @easy-editor/materials-dashboard-radar-chart v${pkg.version} (component) */`,
131
131
  exports: 'named',
132
132
  },
133
133
  ],
@@ -143,7 +143,7 @@ export default [
143
143
  name: `${GLOBAL_NAME}Component`,
144
144
  globals,
145
145
  sourcemap: true,
146
- banner: `/* @easy-editor/materials-dashboard-tech-radar-chart v${pkg.version} (component, minified) */`,
146
+ banner: `/* @easy-editor/materials-dashboard-radar-chart v${pkg.version} (component, minified) */`,
147
147
  exports: 'named',
148
148
  },
149
149
  ],
@@ -161,7 +161,7 @@ export default [
161
161
  name: GLOBAL_NAME,
162
162
  globals,
163
163
  sourcemap: true,
164
- banner: `/* @easy-editor/materials-dashboard-tech-radar-chart v${pkg.version} */`,
164
+ banner: `/* @easy-editor/materials-dashboard-radar-chart v${pkg.version} */`,
165
165
  exports: 'named',
166
166
  },
167
167
  ],
@@ -202,7 +202,7 @@ export default [
202
202
  name: GLOBAL_NAME,
203
203
  globals,
204
204
  sourcemap: true,
205
- banner: `/* @easy-editor/materials-dashboard-tech-radar-chart v${pkg.version} (minified) */`,
205
+ banner: `/* @easy-editor/materials-dashboard-radar-chart v${pkg.version} (minified) */`,
206
206
  exports: 'named',
207
207
  },
208
208
  ],