@visactor/vseed 0.1.17 → 0.1.19

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 (131) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +108 -0
  4. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
  5. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +0 -1
  6. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
  7. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +1 -3
  8. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  9. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +1 -3
  10. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  11. package/dist/esm/pipeline/spec/chart/pipes/axes/index.d.ts +0 -1
  12. package/dist/esm/pipeline/spec/chart/pipes/axes/index.js +1 -2
  13. package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js +2 -17
  14. package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js.map +1 -1
  15. package/dist/esm/pipeline/spec/chart/pipes/init/barParallel.js +3 -2
  16. package/dist/esm/pipeline/spec/chart/pipes/init/barParallel.js.map +1 -1
  17. package/dist/esm/pipeline/spec/chart/pipes/init/columnParallel.js +3 -2
  18. package/dist/esm/pipeline/spec/chart/pipes/init/columnParallel.js.map +1 -1
  19. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js +19 -1
  20. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipes/init/roseParallel.js +3 -2
  22. package/dist/esm/pipeline/spec/chart/pipes/init/roseParallel.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +4 -1
  24. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  25. package/dist/esm/pipeline/spec/chart/pipes/legend/colorLegend.js +1 -9
  26. package/dist/esm/pipeline/spec/chart/pipes/legend/colorLegend.js.map +1 -1
  27. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js +1 -9
  28. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js.map +1 -1
  29. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +93 -51
  30. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  31. package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js +1 -0
  32. package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js.map +1 -1
  33. package/dist/esm/pipeline/spec/table/pipes/init/table.js +1 -0
  34. package/dist/esm/pipeline/spec/table/pipes/init/table.js.map +1 -1
  35. package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js +7 -7
  36. package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js.map +1 -1
  37. package/dist/esm/pipeline/spec/table/pipes/theme/frameStyle.js +1 -1
  38. package/dist/esm/pipeline/spec/table/pipes/theme/frameStyle.js.map +1 -1
  39. package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js +7 -7
  40. package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js.map +1 -1
  41. package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js +7 -7
  42. package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js.map +1 -1
  43. package/dist/esm/theme/dark.js +8 -2
  44. package/dist/esm/theme/dark.js.map +1 -1
  45. package/dist/esm/theme/light.js +8 -2
  46. package/dist/esm/theme/light.js.map +1 -1
  47. package/dist/esm/types/advancedVSeed.d.ts +180 -0
  48. package/dist/esm/types/chartType/area/area.d.ts +2 -2
  49. package/dist/esm/types/chartType/area/zArea.d.ts +5 -5
  50. package/dist/esm/types/chartType/area/zArea.js +3 -1
  51. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  52. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +2 -2
  53. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +5 -5
  54. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +3 -1
  55. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  56. package/dist/esm/types/chartType/bar/bar.d.ts +2 -2
  57. package/dist/esm/types/chartType/bar/zBar.d.ts +5 -5
  58. package/dist/esm/types/chartType/bar/zBar.js +3 -1
  59. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  60. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +2 -2
  61. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +5 -5
  62. package/dist/esm/types/chartType/barParallel/zBarParallel.js +3 -1
  63. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  64. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +2 -2
  65. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +5 -5
  66. package/dist/esm/types/chartType/barPercent/zBarPercent.js +3 -1
  67. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  68. package/dist/esm/types/chartType/column/column.d.ts +2 -2
  69. package/dist/esm/types/chartType/column/zColumn.d.ts +5 -5
  70. package/dist/esm/types/chartType/column/zColumn.js +3 -1
  71. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  72. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +2 -2
  73. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +5 -5
  74. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +3 -1
  75. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  76. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +2 -2
  77. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +5 -5
  78. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +3 -1
  79. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  80. package/dist/esm/types/chartType/donut/donut.d.ts +1 -1
  81. package/dist/esm/types/chartType/donut/zDonut.d.ts +5 -0
  82. package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +1 -1
  83. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +5 -5
  84. package/dist/esm/types/chartType/dualAxis/zDualAxis.js +3 -1
  85. package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
  86. package/dist/esm/types/chartType/funnel/funnel.d.ts +2 -2
  87. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +5 -5
  88. package/dist/esm/types/chartType/funnel/zFunnel.js +3 -1
  89. package/dist/esm/types/chartType/funnel/zFunnel.js.map +1 -1
  90. package/dist/esm/types/chartType/heatmap/heatmap.d.ts +1 -1
  91. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +5 -5
  92. package/dist/esm/types/chartType/heatmap/zHeatmap.js +3 -1
  93. package/dist/esm/types/chartType/heatmap/zHeatmap.js.map +1 -1
  94. package/dist/esm/types/chartType/line/line.d.ts +1 -1
  95. package/dist/esm/types/chartType/line/zLine.d.ts +5 -5
  96. package/dist/esm/types/chartType/line/zLine.js +3 -1
  97. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  98. package/dist/esm/types/chartType/pie/pie.d.ts +1 -1
  99. package/dist/esm/types/chartType/pie/zPie.d.ts +5 -0
  100. package/dist/esm/types/chartType/radar/radar.d.ts +1 -1
  101. package/dist/esm/types/chartType/radar/zRadar.d.ts +5 -5
  102. package/dist/esm/types/chartType/radar/zRadar.js +3 -1
  103. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  104. package/dist/esm/types/chartType/rose/rose.d.ts +2 -2
  105. package/dist/esm/types/chartType/rose/zRose.d.ts +5 -5
  106. package/dist/esm/types/chartType/rose/zRose.js +3 -1
  107. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  108. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +1 -1
  109. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +5 -5
  110. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +3 -1
  111. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  112. package/dist/esm/types/chartType/scatter/scatter.d.ts +1 -1
  113. package/dist/esm/types/chartType/scatter/zScatter.d.ts +5 -5
  114. package/dist/esm/types/chartType/scatter/zScatter.js +3 -1
  115. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  116. package/dist/esm/types/chartType/table/table.d.ts +1 -1
  117. package/dist/esm/types/properties/config/config.d.ts +180 -0
  118. package/dist/esm/types/properties/config/label/label.d.ts +7 -0
  119. package/dist/esm/types/properties/config/label/zLabel.d.ts +5 -0
  120. package/dist/esm/types/properties/config/label/zLabel.js +6 -1
  121. package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
  122. package/dist/esm/types/properties/format/numFormat.d.ts +1 -5
  123. package/dist/esm/types/properties/format/numFormat.js.map +1 -1
  124. package/dist/esm/types/properties/theme/customTheme.d.ts +180 -0
  125. package/dist/esm/types/zVseed.d.ts +90 -80
  126. package/dist/umd/index.js +260 -185
  127. package/dist/umd/index.js.map +1 -1
  128. package/package.json +3 -3
  129. package/dist/esm/pipeline/spec/chart/pipes/axes/angle.d.ts +0 -2
  130. package/dist/esm/pipeline/spec/chart/pipes/axes/angle.js +0 -46
  131. package/dist/esm/pipeline/spec/chart/pipes/axes/angle.js.map +0 -1
package/dist/umd/index.js CHANGED
@@ -950,6 +950,7 @@
950
950
  highlightMode: 'row'
951
951
  },
952
952
  theme: {
953
+ cellInnerBorder: false,
953
954
  underlayBackgroundColor: backgroundColor
954
955
  }
955
956
  };
@@ -1198,13 +1199,13 @@
1198
1199
  inlineColumnBgColor: hoverInlineColor
1199
1200
  },
1200
1201
  frameStyle: {
1201
- borderColor: [
1202
- null,
1203
- null,
1204
- borderColor,
1205
- null
1206
- ],
1207
- borderLineWidth: 1
1202
+ borderColor: borderColor,
1203
+ borderLineWidth: [
1204
+ 0,
1205
+ 0,
1206
+ 1,
1207
+ 0
1208
+ ]
1208
1209
  },
1209
1210
  fontSize: fontSize,
1210
1211
  fontVariant: 'normal',
@@ -1227,7 +1228,7 @@
1227
1228
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
1228
1229
  result.theme.frameStyle = {
1229
1230
  borderColor,
1230
- borderLineWidth: 0,
1231
+ borderLineWidth: 1,
1231
1232
  cornerRadius: 4
1232
1233
  };
1233
1234
  return result;
@@ -1513,6 +1514,7 @@
1513
1514
  direction: 'row'
1514
1515
  },
1515
1516
  theme: {
1517
+ cellInnerBorder: false,
1516
1518
  underlayBackgroundColor: backgroundColor
1517
1519
  }
1518
1520
  };
@@ -1605,13 +1607,13 @@
1605
1607
  inlineColumnBgColor: hoverInlineColor
1606
1608
  },
1607
1609
  frameStyle: {
1608
- borderColor: [
1609
- null,
1610
- borderColor,
1611
- null,
1612
- null
1613
- ],
1614
- borderLineWidth: 1
1610
+ borderColor: borderColor,
1611
+ borderLineWidth: [
1612
+ 0,
1613
+ 1,
1614
+ 0,
1615
+ 0
1616
+ ]
1615
1617
  },
1616
1618
  fontSize: fontSize,
1617
1619
  fontVariant: 'normal',
@@ -1656,13 +1658,13 @@
1656
1658
  inlineColumnBgColor: hoverInlineColor || void 0
1657
1659
  },
1658
1660
  frameStyle: {
1659
- borderColor: [
1660
- null,
1661
- borderColor,
1662
- borderColor,
1663
- null
1664
- ],
1665
- borderLineWidth: 1
1661
+ borderColor: borderColor,
1662
+ borderLineWidth: [
1663
+ 0,
1664
+ 1,
1665
+ 1,
1666
+ 0
1667
+ ]
1666
1668
  },
1667
1669
  fontSize: fontSize,
1668
1670
  fontVariant: 'normal',
@@ -2994,15 +2996,7 @@
2994
2996
  padding: 0,
2995
2997
  field: unfoldInfo.encodingColor,
2996
2998
  maxWidth: '30%',
2997
- startText: {
2998
- visible: true,
2999
- style: {
3000
- fill: labelColor || labelFontColor,
3001
- fontSize: labelFontSize,
3002
- fontWeight: labelFontWeight
3003
- }
3004
- },
3005
- endText: {
2999
+ handlerText: {
3006
3000
  visible: true,
3007
3001
  style: {
3008
3002
  fill: labelColor || labelFontColor,
@@ -3351,7 +3345,7 @@
3351
3345
  return formatter(percentValue);
3352
3346
  };
3353
3347
  const buildLabel = (label, vseedMeasures = [], vseedDimensions = [], advancedVSeedMeasures, encoding, foldInfoList)=>{
3354
- const { enable, wrap, showValue, showValuePercent, labelOverlap, labelColorSmartInvert, labelColor, labelFontSize, labelFontWeight, labelBackgroundColor, labelPosition, autoFormat, numFormat = {} } = label;
3348
+ const { enable, wrap, showValue, showValuePercent, labelOverlap, labelColorSmartInvert, labelColor, labelFontSize, labelFontWeight, labelBackgroundColor, labelPosition, autoFormat, numFormat = {}, labelLayout } = label;
3355
3349
  const labelDims = T((vseedDimensions || []).filter((item)=>encoding.label?.includes(item.id)), (item)=>item.id);
3356
3350
  const labelMeas = T((vseedMeasures || []).filter((item)=>encoding.label?.includes(item.id)), (item)=>item.id);
3357
3351
  const percentFormat = chunk_5S4PYKVY_t(numFormat, {
@@ -3378,6 +3372,9 @@
3378
3372
  return result.join(' ');
3379
3373
  },
3380
3374
  position: labelPosition,
3375
+ layout: {
3376
+ align: labelLayout
3377
+ },
3381
3378
  style: {
3382
3379
  fill: labelColor,
3383
3380
  fontSize: labelFontSize,
@@ -3915,7 +3912,25 @@
3915
3912
  records: [],
3916
3913
  widthMode: 'adaptive',
3917
3914
  heightMode: 'adaptive',
3918
- indicatorsAsCol: false
3915
+ indicatorsAsCol: false,
3916
+ select: {
3917
+ highlightMode: 'cell',
3918
+ headerSelectMode: 'inline'
3919
+ },
3920
+ hover: {
3921
+ highlightMode: 'cross'
3922
+ },
3923
+ tooltip: {
3924
+ isShowOverflowTextTooltip: true
3925
+ },
3926
+ corner: {
3927
+ titleOnDimension: 'all'
3928
+ },
3929
+ animationAppear: {
3930
+ duration: 600,
3931
+ type: 'all',
3932
+ direction: 'row'
3933
+ }
3919
3934
  };
3920
3935
  };
3921
3936
  const pivotGridStyle = (spec)=>{
@@ -3923,106 +3938,148 @@
3923
3938
  ...spec
3924
3939
  };
3925
3940
  const transparent = 'rgba(0,0,0,0)';
3926
- const hoverBackgroundColor = 'rgba(178,186,207, 0.2)';
3941
+ const borderColor = '#e3e5eb';
3942
+ const bodyFontColor = '#141414';
3943
+ const headerFontColor = '#21252c';
3944
+ const headerBackgroundColor = 'rgba(0,0,0,0)';
3945
+ const hoverHeaderBackgroundColor = '#D9DDE4';
3946
+ const hoverHeaderInlineBackgroundColor = '#D9DDE455';
3927
3947
  return {
3928
3948
  ...result,
3929
3949
  theme: {
3930
3950
  underlayBackgroundColor: transparent,
3931
3951
  bodyStyle: {
3932
- borderColor: 'rgba(0,4,20,0.2)',
3952
+ borderColor,
3953
+ color: bodyFontColor,
3933
3954
  borderLineWidth: [
3955
+ 1,
3956
+ 1,
3934
3957
  0,
3935
- 0,
3936
- 2,
3937
- 0
3958
+ 1
3938
3959
  ],
3939
3960
  bgColor: transparent,
3940
- padding: [
3941
- 0,
3942
- 0,
3943
- 1,
3944
- 0
3945
- ],
3946
3961
  hover: {
3947
3962
  cellBgColor: 'transparent'
3948
3963
  }
3949
3964
  },
3950
3965
  headerStyle: {
3951
- borderColor: 'rgba(0,4,20,0.2)',
3966
+ borderColor,
3952
3967
  fontSize: 12,
3953
- color: '#333333',
3968
+ borderLineWidth: 1,
3969
+ color: headerFontColor,
3954
3970
  textAlign: 'center',
3955
- borderLineWidth: 0,
3956
- bgColor: transparent,
3971
+ bgColor: headerBackgroundColor,
3957
3972
  hover: {
3958
- cellBgColor: hoverBackgroundColor
3973
+ cellBgColor: hoverHeaderBackgroundColor,
3974
+ inlineRowBgColor: hoverHeaderInlineBackgroundColor || void 0,
3975
+ inlineColumnBgColor: hoverHeaderInlineBackgroundColor || void 0
3959
3976
  }
3960
3977
  },
3961
3978
  rowHeaderStyle: {
3962
- borderColor: 'rgba(0,4,20,0.2)',
3979
+ borderColor,
3963
3980
  fontSize: 12,
3964
- color: '#333333',
3965
- borderLineWidth: 0,
3966
- bgColor: transparent,
3981
+ color: headerFontColor,
3982
+ borderLineWidth: 1,
3983
+ bgColor: headerBackgroundColor,
3967
3984
  hover: {
3968
- cellBgColor: hoverBackgroundColor
3985
+ cellBgColor: hoverHeaderBackgroundColor,
3986
+ inlineRowBgColor: hoverHeaderInlineBackgroundColor || void 0,
3987
+ inlineColumnBgColor: hoverHeaderInlineBackgroundColor || void 0
3969
3988
  }
3970
3989
  },
3971
3990
  cornerHeaderStyle: {
3972
- borderColor: 'rgba(0,4,20,0.2)',
3991
+ borderColor,
3973
3992
  textAlign: 'center',
3974
3993
  fontSize: 12,
3975
- color: '#333333',
3994
+ color: headerFontColor,
3976
3995
  fontWeight: 'bold',
3977
- borderLineWidth: [
3978
- 0,
3979
- 0,
3980
- 0,
3981
- 0
3982
- ],
3983
- bgColor: transparent,
3996
+ borderLineWidth: 1,
3997
+ bgColor: headerBackgroundColor,
3998
+ frameStyle: {
3999
+ borderColor,
4000
+ borderLineWidth: [
4001
+ 1,
4002
+ 0,
4003
+ 0,
4004
+ 1
4005
+ ]
4006
+ },
3984
4007
  hover: {
3985
- cellBgColor: hoverBackgroundColor
4008
+ cellBgColor: hoverHeaderBackgroundColor,
4009
+ inlineRowBgColor: hoverHeaderInlineBackgroundColor || void 0,
4010
+ inlineColumnBgColor: hoverHeaderInlineBackgroundColor || void 0
3986
4011
  }
3987
4012
  },
3988
4013
  cornerRightTopCellStyle: {
3989
- borderColor: 'rgba(0,4,20,0.2)',
4014
+ borderColor,
3990
4015
  borderLineWidth: 0,
3991
- bgColor: transparent,
4016
+ frameStyle: {
4017
+ borderColor,
4018
+ borderLineWidth: [
4019
+ 1,
4020
+ 1,
4021
+ 0,
4022
+ 1
4023
+ ]
4024
+ },
4025
+ bgColor: headerBackgroundColor,
3992
4026
  hover: {
3993
- cellBgColor: hoverBackgroundColor
4027
+ cellBgColor: hoverHeaderBackgroundColor
3994
4028
  }
3995
4029
  },
3996
4030
  cornerLeftBottomCellStyle: {
3997
- borderColor: 'rgba(0,4,20,0.2)',
3998
- borderLineWidth: 0,
3999
- bgColor: transparent,
4031
+ borderColor,
4032
+ borderLineWidth: [
4033
+ 1,
4034
+ 0,
4035
+ 1,
4036
+ 1
4037
+ ],
4038
+ bgColor: headerBackgroundColor,
4039
+ frameStyle: {
4040
+ borderColor,
4041
+ borderLineWidth: [
4042
+ 1,
4043
+ 0,
4044
+ 1,
4045
+ 1
4046
+ ]
4047
+ },
4000
4048
  hover: {
4001
- cellBgColor: hoverBackgroundColor
4049
+ cellBgColor: hoverHeaderBackgroundColor
4002
4050
  }
4003
4051
  },
4004
4052
  cornerRightBottomCellStyle: {
4005
- borderColor: 'rgba(0,4,20,0.2)',
4053
+ borderColor,
4006
4054
  borderLineWidth: 0,
4007
- bgColor: transparent,
4055
+ bgColor: headerBackgroundColor,
4056
+ frameStyle: {
4057
+ borderColor,
4058
+ borderLineWidth: [
4059
+ 1,
4060
+ 1,
4061
+ 1,
4062
+ 1
4063
+ ]
4064
+ },
4008
4065
  hover: {
4009
- cellBgColor: hoverBackgroundColor
4066
+ cellBgColor: hoverHeaderBackgroundColor
4010
4067
  }
4011
4068
  },
4012
4069
  rightFrozenStyle: {
4013
- borderColor: 'rgba(0,4,20,0.2)',
4014
- borderLineWidth: 0,
4015
- bgColor: transparent,
4070
+ borderColor,
4071
+ borderLineWidth: 1,
4072
+ bgColor: headerBackgroundColor,
4016
4073
  hover: {
4017
- cellBgColor: hoverBackgroundColor
4074
+ cellBgColor: hoverHeaderBackgroundColor
4018
4075
  }
4019
4076
  },
4020
4077
  bottomFrozenStyle: {
4021
- borderColor: 'rgba(0,4,20,0.2)',
4022
- borderLineWidth: 0,
4023
- bgColor: transparent,
4078
+ borderColor,
4079
+ borderLineWidth: 1,
4080
+ bgColor: headerBackgroundColor,
4024
4081
  hover: {
4025
- cellBgColor: hoverBackgroundColor
4082
+ cellBgColor: hoverHeaderBackgroundColor
4026
4083
  }
4027
4084
  },
4028
4085
  selectionStyle: {
@@ -4030,8 +4087,8 @@
4030
4087
  cellBorderColor: ''
4031
4088
  },
4032
4089
  frameStyle: {
4033
- borderLineWidth: 0,
4034
- bgColor: transparent
4090
+ borderColor,
4091
+ cornerRadius: 4
4035
4092
  }
4036
4093
  }
4037
4094
  };
@@ -4333,15 +4390,7 @@
4333
4390
  min: min,
4334
4391
  max: max,
4335
4392
  maxWidth: '30%',
4336
- startText: {
4337
- visible: true,
4338
- style: {
4339
- fill: labelColor || labelFontColor,
4340
- fontSize: labelFontSize,
4341
- fontWeight: labelFontWeight
4342
- }
4343
- },
4344
- endText: {
4393
+ handlerText: {
4345
4394
  visible: true,
4346
4395
  style: {
4347
4396
  fill: labelColor || labelFontColor,
@@ -4888,14 +4937,54 @@
4888
4937
  markStyle_markStyle,
4889
4938
  annotation_annotation
4890
4939
  ];
4940
+ function chunk_HGKLN5KY_k(...n) {
4941
+ return chunk_WIMGWYZL_u(chunk_HGKLN5KY_u, n);
4942
+ }
4943
+ function chunk_HGKLN5KY_u(n, e) {
4944
+ if (n === e || Object.is(n, e)) return !0;
4945
+ if ("object" != typeof n || "object" != typeof e || null === n || null === e || Object.getPrototypeOf(n) !== Object.getPrototypeOf(e)) return !1;
4946
+ if (Array.isArray(n)) return chunk_HGKLN5KY_l(n, e);
4947
+ if (n instanceof Map) return chunk_HGKLN5KY_a(n, e);
4948
+ if (n instanceof Set) return chunk_HGKLN5KY_c(n, e);
4949
+ if (n instanceof Date) return n.getTime() === e.getTime();
4950
+ if (n instanceof RegExp) return n.toString() === e.toString();
4951
+ if (Object.keys(n).length !== Object.keys(e).length) return !1;
4952
+ for (let [r, t] of Object.entries(n))if (!(r in e) || !chunk_HGKLN5KY_u(t, e[r])) return !1;
4953
+ return !0;
4954
+ }
4955
+ function chunk_HGKLN5KY_l(n, e) {
4956
+ if (n.length !== e.length) return !1;
4957
+ for (let [r, t] of n.entries())if (!chunk_HGKLN5KY_u(t, e[r])) return !1;
4958
+ return !0;
4959
+ }
4960
+ function chunk_HGKLN5KY_a(n, e) {
4961
+ if (n.size !== e.size) return !1;
4962
+ for (let [r, t] of n.entries())if (!e.has(r) || !chunk_HGKLN5KY_u(t, e.get(r))) return !1;
4963
+ return !0;
4964
+ }
4965
+ function chunk_HGKLN5KY_c(n, e) {
4966
+ if (n.size !== e.size) return !1;
4967
+ let r = [
4968
+ ...e
4969
+ ];
4970
+ for (let t of n){
4971
+ let o = !1;
4972
+ for (let [s, f] of r.entries())if (chunk_HGKLN5KY_u(t, f)) {
4973
+ o = !0, r.splice(s, 1);
4974
+ break;
4975
+ }
4976
+ if (!o) return !1;
4977
+ }
4978
+ return !0;
4979
+ }
4891
4980
  const initColumnParallel = (spec, context)=>{
4892
4981
  const result = {
4893
4982
  ...spec
4894
4983
  };
4895
4984
  const { advancedVSeed } = context;
4896
- const { datasetReshapeInfo, dimensions } = advancedVSeed;
4985
+ const { datasetReshapeInfo, encoding } = advancedVSeed;
4897
4986
  const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
4898
- const sameDimensionsMode = dimensions.length > 1 && dimensions.every((dim)=>dim.id === dimensions[0].id);
4987
+ const sameDimensionsMode = chunk_HGKLN5KY_k(encoding.x, encoding.color);
4899
4988
  result.type = 'bar';
4900
4989
  result.direction = 'vertical';
4901
4990
  result.xField = sameDimensionsMode ? [
@@ -5547,9 +5636,9 @@
5547
5636
  ...spec
5548
5637
  };
5549
5638
  const { advancedVSeed } = context;
5550
- const { datasetReshapeInfo, dimensions } = advancedVSeed;
5639
+ const { datasetReshapeInfo, encoding } = advancedVSeed;
5551
5640
  const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
5552
- const sameDimensionsMode = dimensions.length > 1 && dimensions.every((dim)=>dim.id === dimensions[0].id);
5641
+ const sameDimensionsMode = chunk_HGKLN5KY_k(encoding.y, encoding.color);
5553
5642
  result.type = 'bar';
5554
5643
  result.direction = 'horizontal';
5555
5644
  result.yField = sameDimensionsMode ? [
@@ -8010,49 +8099,6 @@
8010
8099
  result.animation = true;
8011
8100
  return result;
8012
8101
  };
8013
- const angleAxis = (spec, context)=>{
8014
- const result = {
8015
- ...spec
8016
- };
8017
- const { advancedVSeed } = context;
8018
- const { dimensions, measures } = advancedVSeed;
8019
- if (!dimensions || !measures) return result;
8020
- const is0D = 0 === dimensions.length;
8021
- const is1M1D = 1 === dimensions.length && 1 === measures.length;
8022
- const showAxis = !(is0D || is1M1D);
8023
- if (!result.axes) result.axes = [];
8024
- result.axes.push({
8025
- type: 'band',
8026
- orient: 'angle',
8027
- visible: showAxis,
8028
- zero: true,
8029
- nice: !!showAxis,
8030
- paddingInner: showAxis ? [
8031
- 0.15,
8032
- 0.1
8033
- ] : [
8034
- 0,
8035
- 0
8036
- ],
8037
- paddingOuter: showAxis ? [
8038
- 0.075,
8039
- 0.1
8040
- ] : [
8041
- 0,
8042
- 0
8043
- ],
8044
- grid: {
8045
- visible: showAxis
8046
- },
8047
- domainLine: {
8048
- visible: showAxis
8049
- },
8050
- tick: {
8051
- visible: showAxis
8052
- }
8053
- });
8054
- return result;
8055
- };
8056
8102
  const radiusAxis = (spec, context)=>{
8057
8103
  const result = {
8058
8104
  ...spec
@@ -8060,28 +8106,13 @@
8060
8106
  const { advancedVSeed } = context;
8061
8107
  const { dimensions, measures } = advancedVSeed;
8062
8108
  if (!dimensions || !measures) return result;
8063
- const is0D = 0 === dimensions.length;
8064
- const is1M1D = 1 === dimensions.length && 1 === measures.length;
8065
- const showAxis = !(is0D || is1M1D);
8066
8109
  if (!result.axes) result.axes = [];
8067
8110
  result.axes.push({
8068
8111
  type: 'linear',
8069
8112
  orient: 'radius',
8070
- visible: showAxis,
8113
+ visible: false,
8071
8114
  zero: true,
8072
- nice: !!showAxis,
8073
- grid: {
8074
- visible: showAxis
8075
- },
8076
- tick: {
8077
- visible: showAxis
8078
- },
8079
- label: {
8080
- visible: showAxis
8081
- },
8082
- domainLine: {
8083
- visible: showAxis
8084
- }
8115
+ nice: false
8085
8116
  });
8086
8117
  return result;
8087
8118
  };
@@ -8132,7 +8163,6 @@
8132
8163
  background_backgroundColor,
8133
8164
  datasetXY,
8134
8165
  progressive,
8135
- angleAxis,
8136
8166
  radiusAxis,
8137
8167
  verticalCrosshairRect,
8138
8168
  colorRoseStyleFill(roseStyle),
@@ -8154,7 +8184,6 @@
8154
8184
  datasetXY,
8155
8185
  progressive,
8156
8186
  radiusAxis,
8157
- angleAxis,
8158
8187
  verticalCrosshairRect,
8159
8188
  colorRoseStyleFill(roseStyle),
8160
8189
  label_label,
@@ -8203,9 +8232,9 @@
8203
8232
  ...spec
8204
8233
  };
8205
8234
  const { advancedVSeed } = context;
8206
- const { datasetReshapeInfo, dataset, dimensions } = advancedVSeed;
8235
+ const { datasetReshapeInfo, dataset, encoding } = advancedVSeed;
8207
8236
  const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
8208
- const sameDimensionsMode = dimensions.length > 1 && dimensions.every((dim)=>dim.id === dimensions[0].id);
8237
+ const sameDimensionsMode = chunk_HGKLN5KY_k(encoding.angle, encoding.color);
8209
8238
  result.type = 'rose';
8210
8239
  result.angleField = sameDimensionsMode ? [
8211
8240
  unfoldInfo.encodingAngle
@@ -8248,7 +8277,6 @@
8248
8277
  datasetXY,
8249
8278
  progressive,
8250
8279
  radiusAxis,
8251
- angleAxis,
8252
8280
  colorRoseStyleFill(roseStyle),
8253
8281
  colorAdapter(discreteLegend, colorLegend),
8254
8282
  label_label,
@@ -8272,7 +8300,6 @@
8272
8300
  datasetXY,
8273
8301
  progressive,
8274
8302
  radiusAxis,
8275
- angleAxis,
8276
8303
  verticalCrosshairRect,
8277
8304
  colorRoseStyleFill(roseStyle),
8278
8305
  label_label,
@@ -8993,7 +9020,6 @@
8993
9020
  datasetXY,
8994
9021
  colorAdapter(color_color, linearColor),
8995
9022
  label_label,
8996
- discreteLegend,
8997
9023
  tooltipHeatmap,
8998
9024
  colorCellStyleFill(cellStyle),
8999
9025
  annotationPoint_annotationPoint,
@@ -9322,11 +9348,17 @@
9322
9348
  ...baseConfig,
9323
9349
  label: {
9324
9350
  ...baseConfig.label,
9325
- showValuePercent: true
9351
+ showValuePercent: true,
9352
+ labelLayout: 'labelLine'
9326
9353
  }
9327
9354
  },
9328
9355
  donut: {
9329
- ...baseConfig
9356
+ ...baseConfig,
9357
+ label: {
9358
+ ...baseConfig.label,
9359
+ showValuePercent: true,
9360
+ labelLayout: 'labelLine'
9361
+ }
9330
9362
  },
9331
9363
  radar: {
9332
9364
  ...baseConfig
@@ -9651,11 +9683,17 @@
9651
9683
  ...baseConfig,
9652
9684
  label: {
9653
9685
  ...baseConfig.label,
9654
- showValuePercent: true
9686
+ showValuePercent: true,
9687
+ labelLayout: 'labelLine'
9655
9688
  }
9656
9689
  },
9657
9690
  donut: {
9658
- ...baseConfig
9691
+ ...baseConfig,
9692
+ label: {
9693
+ ...baseConfig.label,
9694
+ showValuePercent: true,
9695
+ labelLayout: 'labelLine'
9696
+ }
9659
9697
  },
9660
9698
  radar: {
9661
9699
  ...baseConfig
@@ -13399,7 +13437,12 @@
13399
13437
  labelColor: schemas_string().nullish(),
13400
13438
  labelColorSmartInvert: schemas_boolean().nullish(),
13401
13439
  labelPosition: schemas_string().nullish(),
13402
- labelOverlap: schemas_boolean().nullish()
13440
+ labelOverlap: schemas_boolean().nullish(),
13441
+ labelLayout: schemas_enum([
13442
+ 'arc',
13443
+ 'labelLine',
13444
+ 'edge'
13445
+ ]).nullish()
13403
13446
  });
13404
13447
  const zLegend = schemas_object({
13405
13448
  enable: schemas_boolean().default(true).nullish(),
@@ -13994,7 +14037,9 @@
13994
14037
  measures: zMeasureTree.nullish(),
13995
14038
  backgroundColor: zBackgroundColor.nullish(),
13996
14039
  color: zColor.nullish(),
13997
- label: zLabel.nullish(),
14040
+ label: zLabel.omit({
14041
+ labelLayout: true
14042
+ }).nullish(),
13998
14043
  legend: zLegend.nullish(),
13999
14044
  tooltip: zTooltip.nullish(),
14000
14045
  xAxis: zXBandAxis.nullish(),
@@ -14019,7 +14064,9 @@
14019
14064
  measures: zMeasureTree.nullish(),
14020
14065
  backgroundColor: zBackgroundColor.nullish(),
14021
14066
  color: zColor.nullish(),
14022
- label: zLabel.nullish(),
14067
+ label: zLabel.omit({
14068
+ labelLayout: true
14069
+ }).nullish(),
14023
14070
  legend: zLegend.nullish(),
14024
14071
  tooltip: zTooltip.nullish(),
14025
14072
  xAxis: zXBandAxis.nullish(),
@@ -14042,7 +14089,9 @@
14042
14089
  measures: zMeasureTree.nullish(),
14043
14090
  backgroundColor: zBackgroundColor.nullish(),
14044
14091
  color: zColor.nullish(),
14045
- label: zLabel.nullish(),
14092
+ label: zLabel.omit({
14093
+ labelLayout: true
14094
+ }).nullish(),
14046
14095
  legend: zLegend.nullish(),
14047
14096
  tooltip: zTooltip.nullish(),
14048
14097
  xAxis: zXBandAxis.nullish(),
@@ -14065,7 +14114,9 @@
14065
14114
  measures: zMeasureTree.nullish(),
14066
14115
  backgroundColor: zBackgroundColor.nullish(),
14067
14116
  color: zColor.nullish(),
14068
- label: zLabel.nullish(),
14117
+ label: zLabel.omit({
14118
+ labelLayout: true
14119
+ }).nullish(),
14069
14120
  legend: zLegend.nullish(),
14070
14121
  tooltip: zTooltip.nullish(),
14071
14122
  xAxis: zXBandAxis.nullish(),
@@ -14088,7 +14139,9 @@
14088
14139
  measures: zMeasureTree.nullish(),
14089
14140
  backgroundColor: zBackgroundColor.nullish(),
14090
14141
  color: zColor.nullish(),
14091
- label: zLabel.nullish(),
14142
+ label: zLabel.omit({
14143
+ labelLayout: true
14144
+ }).nullish(),
14092
14145
  legend: zLegend.nullish(),
14093
14146
  tooltip: zTooltip.nullish(),
14094
14147
  xAxis: zXLinearAxis.nullish(),
@@ -14111,7 +14164,9 @@
14111
14164
  measures: zMeasureTree.nullish(),
14112
14165
  backgroundColor: zBackgroundColor.nullish(),
14113
14166
  color: zColor.nullish(),
14114
- label: zLabel.nullish(),
14167
+ label: zLabel.omit({
14168
+ labelLayout: true
14169
+ }).nullish(),
14115
14170
  legend: zLegend.nullish(),
14116
14171
  tooltip: zTooltip.nullish(),
14117
14172
  xAxis: zXLinearAxis.nullish(),
@@ -14134,7 +14189,9 @@
14134
14189
  measures: zMeasureTree.nullish(),
14135
14190
  backgroundColor: zBackgroundColor.nullish(),
14136
14191
  color: zColor.nullish(),
14137
- label: zLabel.nullish(),
14192
+ label: zLabel.omit({
14193
+ labelLayout: true
14194
+ }).nullish(),
14138
14195
  legend: zLegend.nullish(),
14139
14196
  tooltip: zTooltip.nullish(),
14140
14197
  xAxis: zXLinearAxis.nullish(),
@@ -14157,7 +14214,9 @@
14157
14214
  measures: zMeasureTree.nullish(),
14158
14215
  backgroundColor: zBackgroundColor.nullish(),
14159
14216
  color: zColor.nullish(),
14160
- label: zLabel.nullish(),
14217
+ label: zLabel.omit({
14218
+ labelLayout: true
14219
+ }).nullish(),
14161
14220
  legend: zLegend.nullish(),
14162
14221
  tooltip: zTooltip.nullish(),
14163
14222
  xAxis: zXBandAxis.nullish(),
@@ -14181,7 +14240,9 @@
14181
14240
  measures: zMeasureTree.nullish(),
14182
14241
  backgroundColor: zBackgroundColor.nullish(),
14183
14242
  color: zColor.nullish(),
14184
- label: zLabel.nullish(),
14243
+ label: zLabel.omit({
14244
+ labelLayout: true
14245
+ }).nullish(),
14185
14246
  legend: zLegend.nullish(),
14186
14247
  tooltip: zTooltip.nullish(),
14187
14248
  xAxis: zXBandAxis.nullish(),
@@ -14208,7 +14269,9 @@
14208
14269
  size: schemas_number().or(schemas_array(schemas_number())).nullish(),
14209
14270
  sizeRange: schemas_number().or(schemas_array(schemas_number())).nullish(),
14210
14271
  color: zColor.nullish(),
14211
- label: zLabel.nullish(),
14272
+ label: zLabel.omit({
14273
+ labelLayout: true
14274
+ }).nullish(),
14212
14275
  legend: zLegend.nullish(),
14213
14276
  tooltip: zTooltip.nullish(),
14214
14277
  xAxis: zXLinearAxis.nullish(),
@@ -14235,7 +14298,9 @@
14235
14298
  xAxis: zXBandAxis.nullish(),
14236
14299
  backgroundColor: zBackgroundColor.nullish(),
14237
14300
  color: zColor.nullish(),
14238
- label: zLabel.nullish(),
14301
+ label: zLabel.omit({
14302
+ labelLayout: true
14303
+ }).nullish(),
14239
14304
  legend: zLegend.nullish(),
14240
14305
  tooltip: zTooltip.nullish(),
14241
14306
  crosshairRect: zCrosshairRect.nullish(),
@@ -14260,7 +14325,9 @@
14260
14325
  measures: zMeasureTree.nullish(),
14261
14326
  backgroundColor: zBackgroundColor.nullish(),
14262
14327
  color: zColor.nullish(),
14263
- label: zLabel.nullish(),
14328
+ label: zLabel.omit({
14329
+ labelLayout: true
14330
+ }).nullish(),
14264
14331
  legend: zLegend.nullish(),
14265
14332
  tooltip: zTooltip.nullish(),
14266
14333
  theme: zTheme.nullish(),
@@ -14274,7 +14341,9 @@
14274
14341
  measures: zMeasureTree.nullish(),
14275
14342
  backgroundColor: zBackgroundColor.nullish(),
14276
14343
  color: zColor.nullish(),
14277
- label: zLabel.nullish(),
14344
+ label: zLabel.omit({
14345
+ labelLayout: true
14346
+ }).nullish(),
14278
14347
  legend: zLegend.nullish(),
14279
14348
  tooltip: zTooltip.nullish(),
14280
14349
  theme: zTheme.nullish(),
@@ -14316,7 +14385,9 @@
14316
14385
  measures: zMeasureTree.nullish(),
14317
14386
  backgroundColor: zBackgroundColor.nullish(),
14318
14387
  color: zColor.nullish(),
14319
- label: zLabel.nullish(),
14388
+ label: zLabel.omit({
14389
+ labelLayout: true
14390
+ }).nullish(),
14320
14391
  legend: zLegend.nullish(),
14321
14392
  tooltip: zTooltip.nullish(),
14322
14393
  theme: zTheme.nullish(),
@@ -14330,7 +14401,9 @@
14330
14401
  measures: zMeasureTree.nullish(),
14331
14402
  backgroundColor: zBackgroundColor.nullish(),
14332
14403
  color: zColor.nullish(),
14333
- label: zLabel.nullish(),
14404
+ label: zLabel.omit({
14405
+ labelLayout: true
14406
+ }).nullish(),
14334
14407
  legend: zColorLegend.nullish(),
14335
14408
  tooltip: zTooltip.nullish(),
14336
14409
  theme: zTheme.nullish(),
@@ -14343,7 +14416,9 @@
14343
14416
  measures: zMeasureTree.nullish(),
14344
14417
  backgroundColor: zBackgroundColor.nullish(),
14345
14418
  color: zColor.nullish(),
14346
- label: zLabel.nullish(),
14419
+ label: zLabel.omit({
14420
+ labelLayout: true
14421
+ }).nullish(),
14347
14422
  legend: zColorLegend.nullish(),
14348
14423
  tooltip: zTooltip.nullish(),
14349
14424
  theme: zTheme.nullish(),