@visactor/vchart-aurora-theme 1.12.3-alpha.7 → 1.13.0

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.
Files changed (91) hide show
  1. package/build/index.js +112 -5
  2. package/build/index.min.js +1 -1
  3. package/cjs/common/component/axis.d.ts +1 -1
  4. package/cjs/common/component/axis.js +11 -66
  5. package/cjs/common/component/axis.js.map +1 -1
  6. package/cjs/common/component/crosshair.d.ts +1 -0
  7. package/cjs/common/component/crosshair.js +11 -1
  8. package/cjs/common/component/crosshair.js.map +1 -1
  9. package/cjs/common/component/tooltip.d.ts +2 -2
  10. package/cjs/common/component/tooltip.js +6 -0
  11. package/cjs/common/component/tooltip.js.map +1 -1
  12. package/cjs/common/series/bar.js +1 -0
  13. package/cjs/common/series/bar.js.map +1 -1
  14. package/cjs/common/series/funnel.js +0 -6
  15. package/cjs/common/series/funnel.js.map +1 -1
  16. package/cjs/common/series/pie.js +7 -3
  17. package/cjs/common/series/pie.js.map +1 -1
  18. package/cjs/common/series/radar.js +22 -13
  19. package/cjs/common/series/radar.js.map +1 -1
  20. package/cjs/common/series/treemap.js +1 -2
  21. package/cjs/index.js +11 -4
  22. package/cjs/index.js.map +1 -1
  23. package/esm/common/component/axis.d.ts +1 -1
  24. package/esm/common/component/axis.js +11 -66
  25. package/esm/common/component/axis.js.map +1 -1
  26. package/esm/common/component/crosshair.d.ts +1 -0
  27. package/esm/common/component/crosshair.js +11 -0
  28. package/esm/common/component/crosshair.js.map +1 -1
  29. package/esm/common/component/tooltip.d.ts +2 -2
  30. package/esm/common/component/tooltip.js +6 -0
  31. package/esm/common/component/tooltip.js.map +1 -1
  32. package/esm/common/series/bar.js +1 -0
  33. package/esm/common/series/bar.js.map +1 -1
  34. package/esm/common/series/funnel.js +0 -6
  35. package/esm/common/series/funnel.js.map +1 -1
  36. package/esm/common/series/pie.js +7 -3
  37. package/esm/common/series/pie.js.map +1 -1
  38. package/esm/common/series/radar.js +22 -13
  39. package/esm/common/series/radar.js.map +1 -1
  40. package/esm/common/series/treemap.js +1 -2
  41. package/esm/index.js +17 -4
  42. package/esm/index.js.map +1 -1
  43. package/package.json +6 -6
  44. package/cjs/common/component/data-zoom.d.ts +0 -3
  45. package/cjs/common/component/data-zoom.js +0 -67
  46. package/cjs/common/component/data-zoom.js.map +0 -1
  47. package/cjs/common/component/indicator.d.ts +0 -2
  48. package/cjs/common/component/indicator.js +0 -23
  49. package/cjs/common/component/indicator.js.map +0 -1
  50. package/cjs/common/component/mark-area.d.ts +0 -2
  51. package/cjs/common/component/mark-area.js +0 -31
  52. package/cjs/common/component/mark-area.js.map +0 -1
  53. package/cjs/common/component/mark-line.d.ts +0 -2
  54. package/cjs/common/component/mark-line.js +0 -41
  55. package/cjs/common/component/mark-line.js.map +0 -1
  56. package/cjs/common/component/mark-point.d.ts +0 -2
  57. package/cjs/common/component/mark-point.js +0 -52
  58. package/cjs/common/component/mark-point.js.map +0 -1
  59. package/cjs/common/component/polar-axis.d.ts +0 -5
  60. package/cjs/common/component/polar-axis.js +0 -30
  61. package/cjs/common/component/polar-axis.js.map +0 -1
  62. package/cjs/common/component/scroll-bar.d.ts +0 -2
  63. package/cjs/common/component/scroll-bar.js +0 -23
  64. package/cjs/common/component/scroll-bar.js.map +0 -1
  65. package/cjs/common/mark.d.ts +0 -2
  66. package/cjs/common/mark.js +0 -17
  67. package/cjs/common/mark.js.map +0 -1
  68. package/esm/common/component/data-zoom.d.ts +0 -3
  69. package/esm/common/component/data-zoom.js +0 -65
  70. package/esm/common/component/data-zoom.js.map +0 -1
  71. package/esm/common/component/indicator.d.ts +0 -2
  72. package/esm/common/component/indicator.js +0 -19
  73. package/esm/common/component/indicator.js.map +0 -1
  74. package/esm/common/component/mark-area.d.ts +0 -2
  75. package/esm/common/component/mark-area.js +0 -27
  76. package/esm/common/component/mark-area.js.map +0 -1
  77. package/esm/common/component/mark-line.d.ts +0 -2
  78. package/esm/common/component/mark-line.js +0 -37
  79. package/esm/common/component/mark-line.js.map +0 -1
  80. package/esm/common/component/mark-point.d.ts +0 -2
  81. package/esm/common/component/mark-point.js +0 -48
  82. package/esm/common/component/mark-point.js.map +0 -1
  83. package/esm/common/component/polar-axis.d.ts +0 -5
  84. package/esm/common/component/polar-axis.js +0 -24
  85. package/esm/common/component/polar-axis.js.map +0 -1
  86. package/esm/common/component/scroll-bar.d.ts +0 -2
  87. package/esm/common/component/scroll-bar.js +0 -19
  88. package/esm/common/component/scroll-bar.js.map +0 -1
  89. package/esm/common/mark.d.ts +0 -2
  90. package/esm/common/mark.js +0 -13
  91. package/esm/common/mark.js.map +0 -1
package/build/index.js CHANGED
@@ -111,6 +111,12 @@
111
111
  shape: {
112
112
  shapeType: 'circle',
113
113
  size: 8
114
+ },
115
+ mark: {
116
+ visible: false
117
+ },
118
+ dimension: {
119
+ visible: true
114
120
  }
115
121
  };
116
122
 
@@ -147,6 +153,16 @@
147
153
  }
148
154
  }
149
155
  };
156
+ const radarCrosshair = {
157
+ categoryField: {
158
+ line: {
159
+ style: {
160
+ lineDash: [0],
161
+ lineWidth: 1
162
+ }
163
+ }
164
+ }
165
+ };
150
166
 
151
167
  const area = {
152
168
  area: {
@@ -199,6 +215,7 @@
199
215
  const bar = {
200
216
  barMaxWidth: 16,
201
217
  barGapInGroup: 2,
218
+ barMinHeight: 2,
202
219
  bar: {
203
220
  style: {
204
221
  visible: datum => datum.value > 0
@@ -249,6 +266,21 @@
249
266
  }
250
267
  };
251
268
 
269
+ const scatter = {
270
+ point: {
271
+ style: {
272
+ symbolType: 'circle',
273
+ fillOpacity: 0.35,
274
+ lineWidth: 1,
275
+ size: 8,
276
+ stroke: null
277
+ }
278
+ },
279
+ label: {
280
+ position: 'top'
281
+ }
282
+ };
283
+
252
284
  const pie = {
253
285
  outerRadius: 0.8,
254
286
  innerRadius: 0,
@@ -286,8 +318,8 @@
286
318
  text: `${data === null || data === void 0 ? void 0 : data.value}\n`,
287
319
  fill: '#111',
288
320
  fontSize: 16,
289
- fontWeight: '500',
290
- fontFamily: 'douyinNumber',
321
+ fontWeight: 500,
322
+ fontFamily: 'Douyin Number ABC',
291
323
  stroke: false,
292
324
  textAlign: cos < 0 ? 'right' : 'left'
293
325
  },
@@ -295,7 +327,7 @@
295
327
  text: data === null || data === void 0 ? void 0 : data.type,
296
328
  fill: '#606165',
297
329
  fontSize: 12,
298
- fontWeight: '400',
330
+ fontWeight: 400,
299
331
  stroke: false,
300
332
  textAlign: cos < 0 ? 'right' : 'left'
301
333
  }
@@ -313,16 +345,84 @@
313
345
  style: {
314
346
  type: 'rich',
315
347
  boundsPadding: [6, 0, 6, 0]
348
+ },
349
+ legend: {
350
+ visible: true,
351
+ orient: 'bottom'
316
352
  }
317
353
  }
318
354
  };
319
355
 
356
+ const axis = {
357
+ axisRadius: {
358
+ domainLine: {
359
+ visible: false
360
+ },
361
+ grid: {
362
+ smooth: false,
363
+ style: {
364
+ lineDash: [4, 4]
365
+ }
366
+ }
367
+ },
368
+ axisAngle: {
369
+ domainLine: {
370
+ visible: true
371
+ },
372
+ tick: {
373
+ visible: false
374
+ },
375
+ grid: {
376
+ style: {
377
+ lineDash: [0]
378
+ }
379
+ }
380
+ }
381
+ };
382
+
383
+ const radar = {
384
+ point: {
385
+ style: {
386
+ visible: false,
387
+ size: 12,
388
+ lineWidth: 2,
389
+ shadowColor: 'rgba(0, 0, 0, 0.1)',
390
+ shadowBlur: 3,
391
+ stroke: '#fff'
392
+ },
393
+ state: {
394
+ dimension_hover: {
395
+ visible: true
396
+ }
397
+ }
398
+ },
399
+ area: {
400
+ visible: true,
401
+ style: {
402
+ fillOpacity: 0.1,
403
+ lineDash: [2, 2]
404
+ }
405
+ },
406
+ line: {
407
+ style: {
408
+ lineWidth: 2
409
+ },
410
+ state: {
411
+ dimension_hover: {
412
+ lineDash: [0],
413
+ lineWidth: 2
414
+ }
415
+ }
416
+ },
417
+ outerRadius: 0.8
418
+ };
419
+
320
420
  const chartAuroraTheme = {
321
421
  name: 'aurora',
322
422
  type: 'light',
323
423
  description: 'light theme for Aurora.',
324
424
  colorScheme,
325
- component: Object.assign(Object.assign({}, legend), { tooltip }),
425
+ component: Object.assign(Object.assign(Object.assign({}, legend), { tooltip }), axis),
326
426
  chart: {
327
427
  line: {
328
428
  component: Object.assign({ crosshair: lineCrosshair }, lineLegend)
@@ -339,9 +439,16 @@
339
439
  dataScheme: barColorList
340
440
  }
341
441
  }
442
+ },
443
+ radar: {
444
+ component: {
445
+ crosshair: radarCrosshair
446
+ }
342
447
  }
343
448
  },
344
- series: Object.assign(Object.assign(Object.assign({ pie }, barTheme), area), { line })
449
+ series: Object.assign(Object.assign(Object.assign({ pie }, barTheme), area), { line,
450
+ radar,
451
+ scatter })
345
452
  };
346
453
  const allThemeMap = new Map([[chartAuroraTheme.name, chartAuroraTheme]]);
347
454
 
@@ -1 +1 @@
1
- !function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((e="undefined"!=typeof globalThis?globalThis:e||self)["vchart-aurora-theme"]={})}(this,(function(e){"use strict";const i=["#3377FF","#1FE7F9","#53F3B3","#FFCD50","#ADB8D6","#867AFF","#FAA64D","#FF8082","#B46FF4"],t={discreteLegend:{visible:!0,orient:"top",position:"middle",maxRow:1,title:{visible:!1},item:{visible:!0,background:{visible:!1},shape:{style:{size:[8,2],symbolType:"rect"}}},allowAllCanceled:!1}},o={bandField:{line:{type:"line",width:1,style:{lineWidth:1,stroke:"#DCDEE1",lineDash:[2,2]}}}},F={bar:{barMaxWidth:16,barGapInGroup:2,bar:{style:{visible:e=>e.value>0}}},bar_horizontal:{stackCornerRadius:[0,2,2,0],label:{position:"right",offset:4}},bar_vertical:{stackCornerRadius:[2,2,0,0],label:{position:"top",offset:4}}},l={outerRadius:.8,innerRadius:0,pie:{style:{padAngle:0,stroke:"#fff",lineWidth:2,lineJoin:"round",cornerRadius:2,visible:e=>e.value>0},state:{hover:{outerRadius:.85,lineWidth:2},selected:{outerRadius:.85,lineWidth:2}}},minAngle:3,label:{visible:!0,position:"outside",formatMethod:(e,i)=>{const t=i.__VCHART_ARC_MIDDLE_ANGLE,o=Math.cos(t);return{type:"rich",text:[{text:`${null==i?void 0:i.value}\n`,fill:"#111",fontSize:16,fontWeight:"500",fontFamily:"douyinNumber",stroke:!1,textAlign:o<0?"right":"left"},{text:null==i?void 0:i.type,fill:"#606165",fontSize:12,fontWeight:"400",stroke:!1,textAlign:o<0?"right":"left"}]}},line:{style:{lineWidth:2}},layout:{align:"labelLine"},style:{type:"rich",boundsPadding:[6,0,6,0]}}},s={name:"aurora",type:"light",description:"light theme for Aurora.",colorScheme:{default:{dataScheme:i,palette:{bandColor:i[0],backgroundColor:"transparent",primaryFontColor:"#17171A",secondaryFontColor:"#5E5F66",tertiaryFontColor:"#888888",axisDomainColor:"#DCDEE1",axisLabelFontColor:"#888888",axisGridColor:"#EFF0F2",popupBackgroundColor:"#ffffff"}}},component:Object.assign(Object.assign({},{discreteLegend:{visible:!0,orient:"top",position:"middle",maxRow:1,title:{visible:!1},item:{visible:!0,background:{visible:!1},shape:{style:{symbolType:"circle"}}},allowAllCanceled:!1}}),{tooltip:{panel:{border:{radius:8}},shape:{shapeType:"circle",size:8}}}),chart:{line:{component:Object.assign({crosshair:o},t)},area:{component:Object.assign({crosshair:o},t)},bar:{component:{crosshair:{xField:{line:{type:"rect",style:{fill:{gradient:"linear",x0:0,y0:0,x1:0,y1:1,stops:[{offset:0,color:"rgba(51, 119, 255, 0.1)"},{offset:1,color:"rgba(118, 164, 255, 0.1)"}]}}}}}},colorScheme:{default:{dataScheme:["#3377FF","#1FE7F9","#FFCD50","#53F3B3","#ADB8D6","#867AFF","#FAA64D","#FF8082","#B46FF4"]}}}},series:Object.assign(Object.assign(Object.assign({pie:l},F),{area:{seriesMark:"line",point:{style:{visible:!1,size:12,lineWidth:2,shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:3,stroke:"#fff"},state:{dimension_hover:{visible:!0}}},line:{style:{curveType:"monotone",lineWidth:2}},area:{style:{fill:{gradient:"linear",x0:0,y0:0,x1:0,y1:1,stops:[{offset:0,opacity:.7},{offset:1,opacity:0}]}}}}}),{line:{line:{style:{lineWidth:2,curveType:"monotone"}},point:{style:{visible:!1,size:12,lineWidth:2,shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:3,stroke:"#fff"},state:{dimension_hover:{visible:!0}}}}})},n=new Map([[s.name,s]]);e.allThemeMap=n,e.chartAuroraTheme=s,e.colorList=i,e.nestColorList=[["#3377FF","#5587FD","#76A4FF","#A0C0FF","#BFD4FF","#E5EEFF"],["#1FE7F9","#71F1FF","#A2F5FF","#BCF8FF","#D2FAFF","#E5FDFF"],["#53F3B3","#6BFFC4","#9FFFD9","#C1FFE6","#DCFFF1","#EBFFF7"],["#FFCD50","#FFD971","#FFE395","#FFEBB2","#FEF2D1","#FFF8E8"],["#ADB8D6","#BEC8E4","#CBD3ED","#D9E0F5","#E7ECFB","#F2F5FF"],["#867AFF","#9A8DFF","#ACA1FF","#C4BCFF","#DBD6FF","#EDEBFF"],["#FAA64D","#FFB96F","#FECB94","#FFD8AD","#FFE5C9","#FFF4E9"],["#FF8082","#FF99A0","#FFBBBF","#FFD4D7","#FFE8EA","#FFF7F8"],["#B46FF4","#BF80FF","#D1A4FD","#E0C1FF","#EDDAFF","#F5ECFF"]]}));
1
+ !function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((e="undefined"!=typeof globalThis?globalThis:e||self)["vchart-aurora-theme"]={})}(this,(function(e){"use strict";const i=["#3377FF","#1FE7F9","#53F3B3","#FFCD50","#ADB8D6","#867AFF","#FAA64D","#FF8082","#B46FF4"],t={discreteLegend:{visible:!0,orient:"top",position:"middle",maxRow:1,title:{visible:!1},item:{visible:!0,background:{visible:!1},shape:{style:{size:[8,2],symbolType:"rect"}}},allowAllCanceled:!1}},o={bandField:{line:{type:"line",width:1,style:{lineWidth:1,stroke:"#DCDEE1",lineDash:[2,2]}}}},l={bar:{barMaxWidth:16,barGapInGroup:2,barMinHeight:2,bar:{style:{visible:e=>e.value>0}}},bar_horizontal:{stackCornerRadius:[0,2,2,0],label:{position:"right",offset:4}},bar_vertical:{stackCornerRadius:[2,2,0,0],label:{position:"top",offset:4}}},s={outerRadius:.8,innerRadius:0,pie:{style:{padAngle:0,stroke:"#fff",lineWidth:2,lineJoin:"round",cornerRadius:2,visible:e=>e.value>0},state:{hover:{outerRadius:.85,lineWidth:2},selected:{outerRadius:.85,lineWidth:2}}},minAngle:3,label:{visible:!0,position:"outside",formatMethod:(e,i)=>{const t=i.__VCHART_ARC_MIDDLE_ANGLE,o=Math.cos(t);return{type:"rich",text:[{text:`${null==i?void 0:i.value}\n`,fill:"#111",fontSize:16,fontWeight:500,fontFamily:"Douyin Number ABC",stroke:!1,textAlign:o<0?"right":"left"},{text:null==i?void 0:i.type,fill:"#606165",fontSize:12,fontWeight:400,stroke:!1,textAlign:o<0?"right":"left"}]}},line:{style:{lineWidth:2}},layout:{align:"labelLine"},style:{type:"rich",boundsPadding:[6,0,6,0]},legend:{visible:!0,orient:"bottom"}}},n={name:"aurora",type:"light",description:"light theme for Aurora.",colorScheme:{default:{dataScheme:i,palette:{bandColor:i[0],backgroundColor:"transparent",primaryFontColor:"#17171A",secondaryFontColor:"#5E5F66",tertiaryFontColor:"#888888",axisDomainColor:"#DCDEE1",axisLabelFontColor:"#888888",axisGridColor:"#EFF0F2",popupBackgroundColor:"#ffffff"}}},component:Object.assign(Object.assign(Object.assign({},{discreteLegend:{visible:!0,orient:"top",position:"middle",maxRow:1,title:{visible:!1},item:{visible:!0,background:{visible:!1},shape:{style:{symbolType:"circle"}}},allowAllCanceled:!1}}),{tooltip:{panel:{border:{radius:8}},shape:{shapeType:"circle",size:8},mark:{visible:!1},dimension:{visible:!0}}}),{axisRadius:{domainLine:{visible:!1},grid:{smooth:!1,style:{lineDash:[4,4]}}},axisAngle:{domainLine:{visible:!0},tick:{visible:!1},grid:{style:{lineDash:[0]}}}}),chart:{line:{component:Object.assign({crosshair:o},t)},area:{component:Object.assign({crosshair:o},t)},bar:{component:{crosshair:{xField:{line:{type:"rect",style:{fill:{gradient:"linear",x0:0,y0:0,x1:0,y1:1,stops:[{offset:0,color:"rgba(51, 119, 255, 0.1)"},{offset:1,color:"rgba(118, 164, 255, 0.1)"}]}}}}}},colorScheme:{default:{dataScheme:["#3377FF","#1FE7F9","#FFCD50","#53F3B3","#ADB8D6","#867AFF","#FAA64D","#FF8082","#B46FF4"]}}},radar:{component:{crosshair:{categoryField:{line:{style:{lineDash:[0],lineWidth:1}}}}}}},series:Object.assign(Object.assign(Object.assign({pie:s},l),{area:{seriesMark:"line",point:{style:{visible:!1,size:12,lineWidth:2,shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:3,stroke:"#fff"},state:{dimension_hover:{visible:!0}}},line:{style:{curveType:"monotone",lineWidth:2}},area:{style:{fill:{gradient:"linear",x0:0,y0:0,x1:0,y1:1,stops:[{offset:0,opacity:.7},{offset:1,opacity:0}]}}}}}),{line:{line:{style:{lineWidth:2,curveType:"monotone"}},point:{style:{visible:!1,size:12,lineWidth:2,shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:3,stroke:"#fff"},state:{dimension_hover:{visible:!0}}}},radar:{point:{style:{visible:!1,size:12,lineWidth:2,shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:3,stroke:"#fff"},state:{dimension_hover:{visible:!0}}},area:{visible:!0,style:{fillOpacity:.1,lineDash:[2,2]}},line:{style:{lineWidth:2},state:{dimension_hover:{lineDash:[0],lineWidth:2}}},outerRadius:.8},scatter:{point:{style:{symbolType:"circle",fillOpacity:.35,lineWidth:1,size:8,stroke:null}},label:{position:"top"}}})},F=new Map([[n.name,n]]);e.allThemeMap=F,e.chartAuroraTheme=n,e.colorList=i,e.nestColorList=[["#3377FF","#5587FD","#76A4FF","#A0C0FF","#BFD4FF","#E5EEFF"],["#1FE7F9","#71F1FF","#A2F5FF","#BCF8FF","#D2FAFF","#E5FDFF"],["#53F3B3","#6BFFC4","#9FFFD9","#C1FFE6","#DCFFF1","#EBFFF7"],["#FFCD50","#FFD971","#FFE395","#FFEBB2","#FEF2D1","#FFF8E8"],["#ADB8D6","#BEC8E4","#CBD3ED","#D9E0F5","#E7ECFB","#F2F5FF"],["#867AFF","#9A8DFF","#ACA1FF","#C4BCFF","#DBD6FF","#EDEBFF"],["#FAA64D","#FFB96F","#FECB94","#FFD8AD","#FFE5C9","#FFF4E9"],["#FF8082","#FF99A0","#FFBBBF","#FFD4D7","#FFE8EA","#FFF7F8"],["#B46FF4","#BF80FF","#D1A4FD","#E0C1FF","#EDDAFF","#F5ECFF"]]}));
@@ -1,2 +1,2 @@
1
1
  import type { IComponentTheme } from '@visactor/vchart';
2
- export declare const axis: Pick<IComponentTheme, 'axis' | 'axisAngle' | 'axisBand' | 'axisLinear' | 'axisRadius' | 'axisX' | 'axisY'>;
2
+ export declare const axis: IComponentTheme;
@@ -3,82 +3,27 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.axis = void 0, exports.axis = {
6
- axis: {
6
+ axisRadius: {
7
7
  domainLine: {
8
- visible: !0,
9
- style: {
10
- lineWidth: 1,
11
- stroke: {
12
- type: "palette",
13
- key: "axisDomainColor"
14
- }
15
- }
8
+ visible: !1
16
9
  },
17
10
  grid: {
18
- visible: !0,
11
+ smooth: !1,
19
12
  style: {
20
- lineWidth: 1,
21
- stroke: {
22
- type: "palette",
23
- key: "axisGridColor"
24
- },
25
- lineDash: [ 4, 4 ]
26
- }
27
- },
28
- subGrid: {
29
- visible: !1,
30
- style: {
31
- lineWidth: 1,
32
- stroke: {
33
- type: "palette",
34
- key: "axisGridColor"
35
- },
36
13
  lineDash: [ 4, 4 ]
37
14
  }
15
+ }
16
+ },
17
+ axisAngle: {
18
+ domainLine: {
19
+ visible: !0
38
20
  },
39
21
  tick: {
40
- visible: !0,
41
- style: {
42
- lineWidth: 1,
43
- stroke: {
44
- type: "palette",
45
- key: "blackColors25"
46
- }
47
- }
48
- },
49
- subTick: {
50
- visible: !1,
51
- tickSize: 2,
52
- style: {
53
- lineWidth: 1,
54
- stroke: {
55
- type: "palette",
56
- key: "blackColors15"
57
- }
58
- }
22
+ visible: !1
59
23
  },
60
- label: {
61
- visible: !0,
62
- space: 8,
63
- style: {
64
- fontSize: 12,
65
- fill: {
66
- type: "palette",
67
- key: "blackColors45"
68
- },
69
- fontWeight: 400,
70
- fillOpacity: 1
71
- }
72
- },
73
- title: {
74
- visible: !1,
24
+ grid: {
75
25
  style: {
76
- fill: {
77
- type: "palette",
78
- key: "blackColors65"
79
- },
80
- fontSize: 12,
81
- lineHeight: 12
26
+ lineDash: [ 0 ]
82
27
  }
83
28
  }
84
29
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/component/axis.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAGb;IACF,IAAI,EAAE;QACJ,UAAU,EAAE;YACV,OAAO,EAAE,IAAI;YACb,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;aACpD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,IAAI;YACb,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;gBACjD,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;aACjB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;gBACjD,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;aACjB;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,IAAI;YACb,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;aAClD;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,CAAC;YACX,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;aAClD;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,CAAC;YACR,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;gBAC/C,UAAU,EAAE,GAAG;gBACf,WAAW,EAAE,CAAC;aACf;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;gBAC/C,QAAQ,EAAE,EAAE;gBACZ,UAAU,EAAE,EAAE;aACf;SACF;KACF;CACF,CAAC","file":"axis.js","sourcesContent":["import type { IComponentTheme } from '@visactor/vchart';\n\nexport const axis: Pick<\n IComponentTheme,\n 'axis' | 'axisAngle' | 'axisBand' | 'axisLinear' | 'axisRadius' | 'axisX' | 'axisY'\n> = {\n axis: {\n domainLine: {\n visible: true,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisDomainColor' }\n }\n },\n grid: {\n visible: true,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisGridColor' },\n lineDash: [4, 4]\n }\n },\n subGrid: {\n visible: false,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisGridColor' },\n lineDash: [4, 4]\n }\n },\n tick: {\n visible: true,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'blackColors25' }\n }\n },\n subTick: {\n visible: false,\n tickSize: 2,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'blackColors15' }\n }\n },\n label: {\n visible: true,\n space: 8,\n style: {\n fontSize: 12,\n fill: { type: 'palette', key: 'blackColors45' },\n fontWeight: 400,\n fillOpacity: 1\n }\n },\n title: {\n visible: false,\n style: {\n fill: { type: 'palette', key: 'blackColors65' },\n fontSize: 12,\n lineHeight: 12\n }\n }\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/common/component/axis.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAoB;IACnC,UAAU,EAAE;QACV,UAAU,EAAE;YACV,OAAO,EAAE,KAAK;SACf;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,KAAK;YACb,KAAK,EAAE;gBACL,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;aACjB;SACF;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,IAAI;SACd;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,KAAK;SACf;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,QAAQ,EAAE,CAAC,CAAC,CAAC;aACd;SACF;KACF;CACF,CAAC","file":"axis.js","sourcesContent":["import type { IComponentTheme } from '@visactor/vchart';\n\nexport const axis: IComponentTheme = {\n axisRadius: {\n domainLine: {\n visible: false\n },\n grid: {\n smooth: false,\n style: {\n lineDash: [4, 4]\n }\n }\n },\n axisAngle: {\n domainLine: {\n visible: true\n },\n tick: {\n visible: false\n },\n grid: {\n style: {\n lineDash: [0]\n }\n }\n }\n};\n"]}
@@ -1,3 +1,4 @@
1
1
  import type { ICrosshairTheme } from '@visactor/vchart';
2
2
  export declare const barCrosshair: ICrosshairTheme;
3
3
  export declare const lineCrosshair: ICrosshairTheme;
4
+ export declare const radarCrosshair: ICrosshairTheme;
@@ -2,7 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
- }), exports.lineCrosshair = exports.barCrosshair = void 0, exports.barCrosshair = {
5
+ }), exports.radarCrosshair = exports.lineCrosshair = exports.barCrosshair = void 0,
6
+ exports.barCrosshair = {
6
7
  xField: {
7
8
  line: {
8
9
  type: "rect",
@@ -36,5 +37,14 @@ Object.defineProperty(exports, "__esModule", {
36
37
  }
37
38
  }
38
39
  }
40
+ }, exports.radarCrosshair = {
41
+ categoryField: {
42
+ line: {
43
+ style: {
44
+ lineDash: [ 0 ],
45
+ lineWidth: 1
46
+ }
47
+ }
48
+ }
39
49
  };
40
50
  //# sourceMappingURL=crosshair.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/component/crosshair.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAoB;IAC3C,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,QAAQ,EAAE,QAAQ;oBAClB,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,KAAK,EAAE;wBACL,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,yBAAyB,EAAE;wBAC/C,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,0BAA0B,EAAE;qBACjD;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,aAAa,GAAoB;IAC5C,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,CAAC;YACR,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,SAAS;gBACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;aACjB;SACF;KACF;CACF,CAAC","file":"crosshair.js","sourcesContent":["import type { ICrosshairTheme } from '@visactor/vchart';\n\nexport const barCrosshair: ICrosshairTheme = {\n xField: {\n line: {\n type: 'rect', // 设置为矩形类型\n style: {\n fill: {\n gradient: 'linear', // 线性渐变\n x0: 0,\n y0: 0,\n x1: 0,\n y1: 1,\n stops: [\n { offset: 0, color: 'rgba(51, 119, 255, 0.1)' },\n { offset: 1, color: 'rgba(118, 164, 255, 0.1)' }\n ]\n }\n }\n }\n }\n};\n\nexport const lineCrosshair: ICrosshairTheme = {\n bandField: {\n line: {\n type: 'line',\n width: 1,\n style: {\n lineWidth: 1,\n stroke: '#DCDEE1',\n lineDash: [2, 2]\n }\n }\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/common/component/crosshair.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAoB;IAC3C,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,QAAQ,EAAE,QAAQ;oBAClB,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,KAAK,EAAE;wBACL,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,yBAAyB,EAAE;wBAC/C,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,0BAA0B,EAAE;qBACjD;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,aAAa,GAAoB;IAC5C,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,CAAC;YACR,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,SAAS;gBACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;aACjB;SACF;KACF;CACF,CAAC;AAEW,QAAA,cAAc,GAAoB;IAC7C,aAAa,EAAE;QACb,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,QAAQ,EAAE,CAAC,CAAC,CAAC;gBACb,SAAS,EAAE,CAAC;aACb;SACF;KACF;CACF,CAAC","file":"crosshair.js","sourcesContent":["import type { ICrosshairTheme } from '@visactor/vchart';\n\nexport const barCrosshair: ICrosshairTheme = {\n xField: {\n line: {\n type: 'rect', // 设置为矩形类型\n style: {\n fill: {\n gradient: 'linear', // 线性渐变\n x0: 0,\n y0: 0,\n x1: 0,\n y1: 1,\n stops: [\n { offset: 0, color: 'rgba(51, 119, 255, 0.1)' },\n { offset: 1, color: 'rgba(118, 164, 255, 0.1)' }\n ]\n }\n }\n }\n }\n};\n\nexport const lineCrosshair: ICrosshairTheme = {\n bandField: {\n line: {\n type: 'line',\n width: 1,\n style: {\n lineWidth: 1,\n stroke: '#DCDEE1',\n lineDash: [2, 2]\n }\n }\n }\n};\n\nexport const radarCrosshair: ICrosshairTheme = {\n categoryField: {\n line: {\n style: {\n lineDash: [0],\n lineWidth: 1\n }\n }\n }\n};\n"]}
@@ -1,2 +1,2 @@
1
- import type { ITooltipTheme } from '@visactor/vchart';
2
- export declare const tooltip: ITooltipTheme;
1
+ import type { IComponentTheme } from '@visactor/vchart';
2
+ export declare const tooltip: IComponentTheme['tooltip'];
@@ -11,6 +11,12 @@ Object.defineProperty(exports, "__esModule", {
11
11
  shape: {
12
12
  shapeType: "circle",
13
13
  size: 8
14
+ },
15
+ mark: {
16
+ visible: !1
17
+ },
18
+ dimension: {
19
+ visible: !0
14
20
  }
15
21
  };
16
22
  //# sourceMappingURL=tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/component/tooltip.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAkB;IACpC,KAAK,EAAE;QACL,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;SACV;KACF;IACD,KAAK,EAAE;QACL,SAAS,EAAE,QAAQ;QACnB,IAAI,EAAE,CAAC;KACR;CACF,CAAC","file":"tooltip.js","sourcesContent":["import type { ITooltipTheme } from '@visactor/vchart';\n\nexport const tooltip: ITooltipTheme = {\n panel: {\n border: {\n radius: 8\n }\n },\n shape: {\n shapeType: 'circle',\n size: 8\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/common/component/tooltip.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAA+B;IACjD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;SACV;KACF;IACD,KAAK,EAAE;QACL,SAAS,EAAE,QAAQ;QACnB,IAAI,EAAE,CAAC;KACR;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,KAAK;KACf;IACD,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;KACd;CACF,CAAC","file":"tooltip.js","sourcesContent":["import type { IComponentTheme } from '@visactor/vchart';\n\nexport const tooltip: IComponentTheme['tooltip'] = {\n panel: {\n border: {\n radius: 8\n }\n },\n shape: {\n shapeType: 'circle',\n size: 8\n },\n mark: {\n visible: false // 关闭图元 (mark) 提示\n },\n dimension: {\n visible: true // 保留维度 (dimension) 提示\n }\n};\n"]}
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  const bar = {
8
8
  barMaxWidth: 16,
9
9
  barGapInGroup: 2,
10
+ barMinHeight: 2,
10
11
  bar: {
11
12
  style: {
12
13
  visible: datum => datum.value > 0
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/series/bar.ts"],"names":[],"mappings":";;;AAEA,MAAM,GAAG,GAAwB;IAC/B,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,CAAC;IAEhB,GAAG,EAAE;QACH,KAAK,EAAE;YAEL,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;SAClC;KACF;CACF,CAAC;AAEF,MAAM,cAAc,GAAwB;IAE1C,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/B,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO;QACjB,MAAM,EAAE,CAAC;KACV;CACF,CAAC;AAEF,MAAM,YAAY,GAAwB;IAExC,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/B,KAAK,EAAE;QACL,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,CAAC;KACV;CACF,CAAC;AAEW,QAAA,QAAQ,GAGjB;IACF,GAAG;IACH,cAAc;IACd,YAAY;CACb,CAAC","file":"bar.js","sourcesContent":["import type { ISeriesTheme, SeriesTypeEnum, SeriesTypeForThemeEnum } from '@visactor/vchart';\n\nconst bar: ISeriesTheme['bar'] = {\n barMaxWidth: 16,\n barGapInGroup: 2,\n // barMinHeight: 2,\n bar: {\n style: {\n // @ts-ignore\n visible: datum => datum.value > 0 // 数据为0时隐藏柱子\n }\n }\n};\n\nconst bar_horizontal: ISeriesTheme['bar'] = {\n // @ts-ignore\n stackCornerRadius: [0, 2, 2, 0], // FIXME: typeError\n label: {\n position: 'right',\n offset: 4\n }\n};\n\nconst bar_vertical: ISeriesTheme['bar'] = {\n // @ts-ignore\n stackCornerRadius: [2, 2, 0, 0], // FIXME: typeError,\n label: {\n position: 'top',\n offset: 4\n }\n};\n\nexport const barTheme: Pick<\n ISeriesTheme,\n SeriesTypeEnum.bar | SeriesTypeForThemeEnum.bar_horizontal | SeriesTypeForThemeEnum.bar_vertical\n> = {\n bar,\n bar_horizontal,\n bar_vertical\n};\n"]}
1
+ {"version":3,"sources":["../src/common/series/bar.ts"],"names":[],"mappings":";;;AAEA,MAAM,GAAG,GAAwB;IAC/B,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,CAAC;IAChB,YAAY,EAAE,CAAC;IACf,GAAG,EAAE;QACH,KAAK,EAAE;YAEL,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;SAClC;KACF;CACF,CAAC;AAEF,MAAM,cAAc,GAAwB;IAE1C,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/B,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO;QACjB,MAAM,EAAE,CAAC;KACV;CACF,CAAC;AAEF,MAAM,YAAY,GAAwB;IAExC,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/B,KAAK,EAAE;QACL,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,CAAC;KACV;CACF,CAAC;AAEW,QAAA,QAAQ,GAGjB;IACF,GAAG;IACH,cAAc;IACd,YAAY;CACb,CAAC","file":"bar.js","sourcesContent":["import type { ISeriesTheme, SeriesTypeEnum, SeriesTypeForThemeEnum } from '@visactor/vchart';\n\nconst bar: ISeriesTheme['bar'] = {\n barMaxWidth: 16,\n barGapInGroup: 2,\n barMinHeight: 2,\n bar: {\n style: {\n // @ts-ignore\n visible: datum => datum.value > 0 // 数据为0时隐藏柱子\n }\n }\n};\n\nconst bar_horizontal: ISeriesTheme['bar'] = {\n // @ts-ignore\n stackCornerRadius: [0, 2, 2, 0], // FIXME: typeError\n label: {\n position: 'right',\n offset: 4\n }\n};\n\nconst bar_vertical: ISeriesTheme['bar'] = {\n // @ts-ignore\n stackCornerRadius: [2, 2, 0, 0], // FIXME: typeError,\n label: {\n position: 'top',\n offset: 4\n }\n};\n\nexport const barTheme: Pick<\n ISeriesTheme,\n SeriesTypeEnum.bar | SeriesTypeForThemeEnum.bar_horizontal | SeriesTypeForThemeEnum.bar_vertical\n> = {\n bar,\n bar_horizontal,\n bar_vertical\n};\n"]}
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  funnel: {
7
7
  state: {
8
8
  selected: {
9
- fill: "#1966FF",
10
- stroke: "#3958E0",
11
9
  strokeOpacity: .2,
12
10
  lineWidth: 4
13
11
  }
@@ -25,10 +23,6 @@ Object.defineProperty(exports, "__esModule", {
25
23
  },
26
24
  label: {
27
25
  style: {
28
- fill: {
29
- type: "palette",
30
- key: "whiteColors100"
31
- },
32
26
  fontSize: 12
33
27
  }
34
28
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/series/funnel.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAA2B;IAC5C,MAAM,EAAE;QACN,KAAK,EAAE;YACL,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,SAAS;gBACjB,aAAa,EAAE,GAAG;gBAClB,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE;YACL,QAAQ,EAAE,EAAE;SACb;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;YAChD,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC","file":"funnel.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const funnel: ISeriesTheme['funnel'] = {\n funnel: {\n state: {\n selected: {\n fill: '#1966FF',\n stroke: '#3958E0',\n strokeOpacity: 0.2,\n lineWidth: 4\n }\n }\n },\n outerLabel: {\n style: {\n fontSize: 12\n },\n line: {\n style: {\n lineWidth: 2\n }\n }\n },\n label: {\n style: {\n fill: { type: 'palette', key: 'whiteColors100' },\n fontSize: 12\n }\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/common/series/funnel.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAA2B;IAC5C,MAAM,EAAE;QACN,KAAK,EAAE;YACL,QAAQ,EAAE;gBACR,aAAa,EAAE,GAAG;gBAClB,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE;YACL,QAAQ,EAAE,EAAE;SACb;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC","file":"funnel.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const funnel: ISeriesTheme['funnel'] = {\n funnel: {\n state: {\n selected: {\n strokeOpacity: 0.2,\n lineWidth: 4\n }\n }\n },\n outerLabel: {\n style: {\n fontSize: 12\n },\n line: {\n style: {\n lineWidth: 2\n }\n }\n },\n label: {\n style: {\n fontSize: 12\n }\n }\n};\n"]}
@@ -37,15 +37,15 @@ Object.defineProperty(exports, "__esModule", {
37
37
  text: `${null == data ? void 0 : data.value}\n`,
38
38
  fill: "#111",
39
39
  fontSize: 16,
40
- fontWeight: "500",
41
- fontFamily: "douyinNumber",
40
+ fontWeight: 500,
41
+ fontFamily: "Douyin Number ABC",
42
42
  stroke: !1,
43
43
  textAlign: cos < 0 ? "right" : "left"
44
44
  }, {
45
45
  text: null == data ? void 0 : data.type,
46
46
  fill: "#606165",
47
47
  fontSize: 12,
48
- fontWeight: "400",
48
+ fontWeight: 400,
49
49
  stroke: !1,
50
50
  textAlign: cos < 0 ? "right" : "left"
51
51
  } ]
@@ -62,6 +62,10 @@ Object.defineProperty(exports, "__esModule", {
62
62
  style: {
63
63
  type: "rich",
64
64
  boundsPadding: [ 6, 0, 6, 0 ]
65
+ },
66
+ legend: {
67
+ visible: !0,
68
+ orient: "bottom"
65
69
  }
66
70
  }
67
71
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/series/pie.ts"],"names":[],"mappings":";;;AAEa,QAAA,GAAG,GAAwB;IACtC,WAAW,EAAE,GAAG;IAChB,WAAW,EAAE,CAAC;IACd,GAAG,EAAE;QACH,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC;YACX,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,OAAO;YACjB,YAAY,EAAE,CAAC;YAEf,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;SAClC;QACD,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,CAAC;aACb;YACD,QAAQ,EAAE;gBACR,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QACnB,YAAY,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,yBAAyB,CAAC;YAChD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAC/B,OAAO;gBACL,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE;oBACJ;wBACE,IAAI,EAAE,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,IAAI;wBACxB,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,KAAK;wBACjB,UAAU,EAAE,cAAc;wBAC1B,MAAM,EAAE,KAAK;wBACb,SAAS,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;qBACtC;oBACD;wBACE,IAAI,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI;wBAChB,IAAI,EAAE,SAAS;wBACf,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,KAAK;wBACjB,MAAM,EAAE,KAAK;wBACb,SAAS,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;qBACtC;iBACF;aACF,CAAC;QACJ,CAAC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;aACb;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE,WAAW;SACnB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;SAC5B;KAKF;CACF,CAAC","file":"pie.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const pie: ISeriesTheme['pie'] = {\n outerRadius: 0.8,\n innerRadius: 0,\n pie: {\n style: {\n padAngle: 0,\n stroke: '#fff',\n lineWidth: 2,\n lineJoin: 'round',\n cornerRadius: 2,\n // @ts-ignore\n visible: datum => datum.value > 0 // 数据为0时隐藏柱子\n },\n state: {\n hover: {\n outerRadius: 0.85,\n lineWidth: 2\n },\n selected: {\n outerRadius: 0.85,\n lineWidth: 2\n }\n }\n },\n minAngle: 3,\n label: {\n visible: true,\n position: 'outside',\n formatMethod: (label, data) => {\n const midAngle = data.__VCHART_ARC_MIDDLE_ANGLE;\n const cos = Math.cos(midAngle);\n return {\n type: 'rich',\n text: [\n {\n text: `${data?.value}\\n`,\n fill: '#111',\n fontSize: 16,\n fontWeight: '500',\n fontFamily: 'douyinNumber',\n stroke: false,\n textAlign: cos < 0 ? 'right' : 'left'\n },\n {\n text: data?.type,\n fill: '#606165',\n fontSize: 12,\n fontWeight: '400',\n stroke: false,\n textAlign: cos < 0 ? 'right' : 'left'\n }\n ]\n };\n },\n line: {\n style: {\n lineWidth: 2\n }\n },\n layout: {\n align: 'labelLine'\n },\n style: {\n type: 'rich',\n boundsPadding: [6, 0, 6, 0]\n }\n // legend: {\n // visible: true,\n // orient: 'bottom'\n // }\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/common/series/pie.ts"],"names":[],"mappings":";;;AAEa,QAAA,GAAG,GAAwB;IACtC,WAAW,EAAE,GAAG;IAChB,WAAW,EAAE,CAAC;IACd,GAAG,EAAE;QACH,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC;YACX,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,OAAO;YACjB,YAAY,EAAE,CAAC;YAEf,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;SAClC;QACD,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,CAAC;aACb;YACD,QAAQ,EAAE;gBACR,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QAEnB,YAAY,EAAE,CAAC,KAAU,EAAE,IAAS,EAAE,EAAE;YACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,yBAAyB,CAAC;YAChD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAC/B,OAAO;gBACL,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE;oBACJ;wBACE,IAAI,EAAE,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,IAAI;wBACxB,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,GAAG;wBACf,UAAU,EAAE,mBAAmB;wBAC/B,MAAM,EAAE,KAAK;wBACb,SAAS,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;qBACtC;oBACD;wBACE,IAAI,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI;wBAChB,IAAI,EAAE,SAAS;wBACf,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,GAAG;wBACf,MAAM,EAAE,KAAK;wBACb,SAAS,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;qBACtC;iBACF;aACF,CAAC;QACJ,CAAC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;aACb;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE,WAAW;SACnB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;SAC5B;QACD,MAAM,EAAE;YACN,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,QAAQ;SACjB;KACF;CACF,CAAC","file":"pie.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const pie: ISeriesTheme['pie'] = {\n outerRadius: 0.8,\n innerRadius: 0,\n pie: {\n style: {\n padAngle: 0,\n stroke: '#fff',\n lineWidth: 2,\n lineJoin: 'round',\n cornerRadius: 2,\n // @ts-ignore\n visible: datum => datum.value > 0 // 数据为0时隐藏柱子\n },\n state: {\n hover: {\n outerRadius: 0.85,\n lineWidth: 2\n },\n selected: {\n outerRadius: 0.85,\n lineWidth: 2\n }\n }\n },\n minAngle: 3,\n label: {\n visible: true,\n position: 'outside',\n // @ts-ignore\n formatMethod: (label: any, data: any) => {\n const midAngle = data.__VCHART_ARC_MIDDLE_ANGLE;\n const cos = Math.cos(midAngle);\n return {\n type: 'rich',\n text: [\n {\n text: `${data?.value}\\n`,\n fill: '#111',\n fontSize: 16,\n fontWeight: 500,\n fontFamily: 'Douyin Number ABC',\n stroke: false,\n textAlign: cos < 0 ? 'right' : 'left'\n },\n {\n text: data?.type,\n fill: '#606165',\n fontSize: 12,\n fontWeight: 400,\n stroke: false,\n textAlign: cos < 0 ? 'right' : 'left'\n }\n ]\n };\n },\n line: {\n style: {\n lineWidth: 2\n }\n },\n layout: {\n align: 'labelLine'\n },\n style: {\n type: 'rich',\n boundsPadding: [6, 0, 6, 0]\n },\n legend: {\n visible: true,\n orient: 'bottom'\n }\n }\n};\n"]}
@@ -3,11 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.radar = void 0, exports.radar = {
6
- line: {
7
- style: {
8
- lineWidth: 1
9
- }
10
- },
11
6
  point: {
12
7
  style: {
13
8
  visible: !1,
@@ -15,18 +10,32 @@ Object.defineProperty(exports, "__esModule", {
15
10
  lineWidth: 2,
16
11
  shadowColor: "rgba(0, 0, 0, 0.1)",
17
12
  shadowBlur: 3,
18
- stroke: {
19
- type: "palette",
20
- key: "whiteColors100"
13
+ stroke: "#fff"
14
+ },
15
+ state: {
16
+ dimension_hover: {
17
+ visible: !0
21
18
  }
22
19
  }
23
20
  },
24
21
  area: {
25
- visible: !0
22
+ visible: !0,
23
+ style: {
24
+ fillOpacity: .1,
25
+ lineDash: [ 2, 2 ]
26
+ }
27
+ },
28
+ line: {
29
+ style: {
30
+ lineWidth: 2
31
+ },
32
+ state: {
33
+ dimension_hover: {
34
+ lineDash: [ 0 ],
35
+ lineWidth: 2
36
+ }
37
+ }
26
38
  },
27
- label: {
28
- position: "top",
29
- offset: 4
30
- }
39
+ outerRadius: .8
31
40
  };
32
41
  //# sourceMappingURL=radar.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/series/radar.ts"],"names":[],"mappings":";;;AAEa,QAAA,KAAK,GAA0B;IAC1C,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;SACb;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,oBAAoB;YACjC,UAAU,EAAE,CAAC;YACb,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;SACnD;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;KACd;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,CAAC;KACV;CACF,CAAC","file":"radar.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const radar: ISeriesTheme['radar'] = {\n line: {\n style: {\n lineWidth: 1\n }\n },\n point: {\n style: {\n visible: false,\n size: 12,\n lineWidth: 2,\n shadowColor: 'rgba(0, 0, 0, 0.1)',\n shadowBlur: 3,\n stroke: { type: 'palette', key: 'whiteColors100' }\n }\n },\n area: {\n visible: true\n },\n label: {\n position: 'top',\n offset: 4\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/common/series/radar.ts"],"names":[],"mappings":";;;AAEa,QAAA,KAAK,GAA0B;IAC1C,KAAK,EAAE;QACL,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,oBAAoB;YACjC,UAAU,EAAE,CAAC;YACb,MAAM,EAAE,MAAM;SACf;QACD,KAAK,EAAE;YACL,eAAe,EAAE;gBACf,OAAO,EAAE,IAAI;aACd;SACF;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,WAAW,EAAE,GAAG;YAChB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;SACb;QACD,KAAK,EAAE;YACL,eAAe,EAAE;gBAEf,QAAQ,EAAE,CAAC,CAAC,CAAC;gBACb,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,WAAW,EAAE,GAAG;CACjB,CAAC","file":"radar.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const radar: ISeriesTheme['radar'] = {\n point: {\n style: {\n visible: false,\n size: 12,\n lineWidth: 2,\n shadowColor: 'rgba(0, 0, 0, 0.1)',\n shadowBlur: 3,\n stroke: '#fff'\n },\n state: {\n dimension_hover: {\n visible: true\n }\n }\n },\n area: {\n visible: true, // display area\n style: {\n fillOpacity: 0.1,\n lineDash: [2, 2]\n }\n },\n line: {\n style: {\n lineWidth: 2\n },\n state: {\n dimension_hover: {\n // 维度hover时线条变为实线\n lineDash: [0], // 取消虚线\n lineWidth: 2\n }\n }\n },\n outerRadius: 0.8\n};\n"]}
@@ -27,5 +27,4 @@ Object.defineProperty(exports, "__esModule", {
27
27
  }
28
28
  }
29
29
  }
30
- };
31
- //# sourceMappingURL=treemap.js.map
30
+ };
package/cjs/index.js CHANGED
@@ -18,16 +18,16 @@ Object.defineProperty(exports, "colorList", {
18
18
  }
19
19
  });
20
20
 
21
- const legend_1 = require("./common/component/legend"), tooltip_1 = require("./common/component/tooltip"), crosshair_1 = require("./common/component/crosshair"), area_1 = require("./common/series/area"), bar_1 = require("./common/series/bar"), line_1 = require("./common/series/line"), pie_1 = require("./common/series/pie");
21
+ const legend_1 = require("./common/component/legend"), tooltip_1 = require("./common/component/tooltip"), crosshair_1 = require("./common/component/crosshair"), area_1 = require("./common/series/area"), bar_1 = require("./common/series/bar"), line_1 = require("./common/series/line"), scatter_1 = require("./common/series/scatter"), pie_1 = require("./common/series/pie"), axis_1 = require("./common/component/axis"), radar_1 = require("./common/series/radar");
22
22
 
23
23
  exports.chartAuroraTheme = {
24
24
  name: "aurora",
25
25
  type: "light",
26
26
  description: "light theme for Aurora.",
27
27
  colorScheme: color_scheme_1.colorScheme,
28
- component: Object.assign(Object.assign({}, legend_1.legend), {
28
+ component: Object.assign(Object.assign(Object.assign({}, legend_1.legend), {
29
29
  tooltip: tooltip_1.tooltip
30
- }),
30
+ }), axis_1.axis),
31
31
  chart: {
32
32
  line: {
33
33
  component: Object.assign({
@@ -48,11 +48,18 @@ exports.chartAuroraTheme = {
48
48
  dataScheme: color_scheme_1.barColorList
49
49
  }
50
50
  }
51
+ },
52
+ radar: {
53
+ component: {
54
+ crosshair: crosshair_1.radarCrosshair
55
+ }
51
56
  }
52
57
  },
53
58
  series: Object.assign(Object.assign(Object.assign({
54
59
  pie: pie_1.pie
55
60
  }, bar_1.barTheme), area_1.area), {
56
- line: line_1.line
61
+ line: line_1.line,
62
+ radar: radar_1.radar,
63
+ scatter: scatter_1.scatter
57
64
  })
58
65
  }, exports.allThemeMap = new Map([ [ exports.chartAuroraTheme.name, exports.chartAuroraTheme ] ]);
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,wDAA4F;AA0DnF,0FA1Da,wBAAS,OA0Db;AAAE,8FA1D2B,4BAAa,OA0D3B;AAxDjC,sDAA+D;AAE/D,wDAAqD;AACrD,4DAA2E;AAC3E,+CAA4C;AAC5C,6CAAsD;AACtD,+CAA4C;AAE5C,6CAA0C;AAO7B,QAAA,gBAAgB,GAAW;IACtC,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAX,0BAAW;IACX,SAAS,kCACJ,eAAM,KACT,OAAO,EAAP,iBAAO,GACR;IACD,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,SAAS,kBACP,SAAS,EAAE,yBAAa,IACrB,mBAAU,CACd;SACF;QACD,IAAI,EAAE;YACJ,SAAS,kBACP,SAAS,EAAE,yBAAa,IACrB,mBAAU,CACd;SACF;QACD,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,SAAS,EAAE,wBAAY;aACxB;YACD,WAAW,EAAE;gBACX,OAAO,EAAE;oBACP,UAAU,EAAE,2BAAY;iBACzB;aACF;SACF;KACF;IACD,MAAM,8CACJ,GAAG,EAAH,SAAG,IACA,cAAG,GACH,WAAI,KACP,IAAI,EAAJ,WAAI,GACL;CACF,CAAC;AAIW,QAAA,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,wBAAgB,CAAC,IAAI,EAAE,wBAAgB,CAAC,CAAC,CAAwB,CAAC","file":"index.js","sourcesContent":["import type { ITheme } from '@visactor/vchart';\nimport { colorScheme, colorList, barColorList, nestColorList } from './common/color-scheme';\n\nimport { legend, lineLegend } from './common/component/legend';\nimport { token } from './common/token';\nimport { tooltip } from './common/component/tooltip';\nimport { barCrosshair, lineCrosshair } from './common/component/crosshair';\nimport { area } from './common/series/area';\nimport { barTheme as bar } from './common/series/bar';\nimport { line } from './common/series/line';\nimport { scatter } from './common/series/scatter';\nimport { pie } from './common/series/pie';\nimport { funnel } from './common/series/funnel';\nimport { treemap } from './common/series/treemap';\nimport { gauge } from './common/series/gauge';\nimport { heatmap } from './common/series/heatmap';\nimport { radar } from './common/series/radar';\n\nexport const chartAuroraTheme: ITheme = {\n name: 'aurora',\n type: 'light',\n description: 'light theme for Aurora.',\n colorScheme,\n component: {\n ...legend,\n tooltip\n },\n chart: {\n line: {\n component: {\n crosshair: lineCrosshair,\n ...lineLegend\n }\n },\n area: {\n component: {\n crosshair: lineCrosshair,\n ...lineLegend\n }\n },\n bar: {\n component: {\n crosshair: barCrosshair\n },\n colorScheme: {\n default: {\n dataScheme: barColorList\n }\n }\n }\n },\n series: {\n pie,\n ...bar,\n ...area,\n line\n }\n};\n\nexport { colorList, nestColorList };\n\nexport const allThemeMap = new Map([[chartAuroraTheme.name, chartAuroraTheme]]) as Map<string, ITheme>;\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,wDAA4F;AAmEnF,0FAnEa,wBAAS,OAmEb;AAAE,8FAnE2B,4BAAa,OAmE3B;AAjEjC,sDAA+D;AAE/D,wDAAqD;AACrD,4DAA2F;AAC3F,+CAA4C;AAC5C,6CAAsD;AACtD,+CAA4C;AAC5C,qDAAkD;AAClD,6CAA0C;AAE1C,kDAA+C;AAI/C,iDAA8C;AAEjC,QAAA,gBAAgB,GAAW;IACtC,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAX,0BAAW;IACX,SAAS,gDACJ,eAAM,KACT,OAAO,EAAP,iBAAO,KACJ,WAAI,CACR;IACD,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,SAAS,kBACP,SAAS,EAAE,yBAAa,IACrB,mBAAU,CACd;SACF;QACD,IAAI,EAAE;YACJ,SAAS,kBACP,SAAS,EAAE,yBAAa,IACrB,mBAAU,CACd;SACF;QACD,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,SAAS,EAAE,wBAAY;aACxB;YACD,WAAW,EAAE;gBACX,OAAO,EAAE;oBACP,UAAU,EAAE,2BAAY;iBACzB;aACF;SACF;QACD,KAAK,EAAE;YACL,SAAS,EAAE;gBACT,SAAS,EAAE,0BAAc;aAC1B;SACF;KACF;IACD,MAAM,8CACJ,GAAG,EAAH,SAAG,IACA,cAAG,GACH,WAAI,KACP,IAAI,EAAJ,WAAI;QACJ,KAAK,EAAL,aAAK;QACL,OAAO,EAAP,iBAAO,GACR;CACF,CAAC;AAIW,QAAA,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,wBAAgB,CAAC,IAAI,EAAE,wBAAgB,CAAC,CAAC,CAAwB,CAAC","file":"index.js","sourcesContent":["import type { ITheme } from '@visactor/vchart';\nimport { colorScheme, colorList, barColorList, nestColorList } from './common/color-scheme';\n\nimport { legend, lineLegend } from './common/component/legend';\nimport { token } from './common/token';\nimport { tooltip } from './common/component/tooltip';\nimport { barCrosshair, lineCrosshair, radarCrosshair } from './common/component/crosshair';\nimport { area } from './common/series/area';\nimport { barTheme as bar } from './common/series/bar';\nimport { line } from './common/series/line';\nimport { scatter } from './common/series/scatter';\nimport { pie } from './common/series/pie';\nimport { funnel } from './common/series/funnel';\nimport { axis } from './common/component/axis';\nimport { treemap } from './common/series/treemap';\nimport { gauge } from './common/series/gauge';\nimport { heatmap } from './common/series/heatmap';\nimport { radar } from './common/series/radar';\n\nexport const chartAuroraTheme: ITheme = {\n name: 'aurora',\n type: 'light',\n description: 'light theme for Aurora.',\n colorScheme,\n component: {\n ...legend,\n tooltip,\n ...axis\n },\n chart: {\n line: {\n component: {\n crosshair: lineCrosshair,\n ...lineLegend\n }\n },\n area: {\n component: {\n crosshair: lineCrosshair,\n ...lineLegend\n }\n },\n bar: {\n component: {\n crosshair: barCrosshair\n },\n colorScheme: {\n default: {\n dataScheme: barColorList\n }\n }\n },\n radar: {\n component: {\n crosshair: radarCrosshair\n }\n }\n },\n series: {\n pie,\n ...bar,\n ...area,\n line,\n radar,\n scatter\n }\n};\n\nexport { colorList, nestColorList };\n\nexport const allThemeMap = new Map([[chartAuroraTheme.name, chartAuroraTheme]]) as Map<string, ITheme>;\n"]}
@@ -1,2 +1,2 @@
1
1
  import type { IComponentTheme } from '@visactor/vchart';
2
- export declare const axis: Pick<IComponentTheme, 'axis' | 'axisAngle' | 'axisBand' | 'axisLinear' | 'axisRadius' | 'axisX' | 'axisY'>;
2
+ export declare const axis: IComponentTheme;