@visactor/vseed 0.3.3 → 0.3.4

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 (53) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -2
  4. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  5. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -2
  6. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  7. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -2
  8. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  9. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -2
  10. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  11. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js +13 -13
  12. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js.map +1 -1
  13. package/dist/esm/pipeline/spec/chart/pipes/brush/brush.js +2 -0
  14. package/dist/esm/pipeline/spec/chart/pipes/brush/brush.js.map +1 -1
  15. package/dist/esm/pipeline/spec/chart/pipes/markStyle/areaStyle.js.map +1 -1
  16. package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js +2 -1
  17. package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js.map +1 -1
  18. package/dist/esm/pipeline/spec/chart/pipes/markStyle/cellStyle.js.map +1 -1
  19. package/dist/esm/pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.js.map +1 -1
  20. package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.js +2 -1
  21. package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.js.map +1 -1
  22. package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js +4 -1
  23. package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js.map +1 -1
  24. package/dist/esm/pipeline/spec/table/pipes/init/table.js +4 -1
  25. package/dist/esm/pipeline/spec/table/pipes/init/table.js.map +1 -1
  26. package/dist/esm/types/chartType/area/zArea.d.ts +20 -0
  27. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +20 -0
  28. package/dist/esm/types/chartType/bar/zBar.d.ts +20 -0
  29. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +20 -0
  30. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +20 -0
  31. package/dist/esm/types/chartType/boxPlot/zBoxPlot.d.ts +20 -0
  32. package/dist/esm/types/chartType/column/zColumn.d.ts +20 -0
  33. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +20 -0
  34. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +20 -0
  35. package/dist/esm/types/chartType/donut/zDonut.d.ts +20 -0
  36. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +20 -0
  37. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +20 -0
  38. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +20 -0
  39. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +20 -0
  40. package/dist/esm/types/chartType/line/zLine.d.ts +20 -0
  41. package/dist/esm/types/chartType/pie/zPie.d.ts +20 -0
  42. package/dist/esm/types/chartType/radar/zRadar.d.ts +20 -0
  43. package/dist/esm/types/chartType/rose/zRose.d.ts +20 -0
  44. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +20 -0
  45. package/dist/esm/types/chartType/scatter/zScatter.d.ts +20 -0
  46. package/dist/esm/types/properties/brush/brush.d.ts +56 -0
  47. package/dist/esm/types/properties/brush/zBrush.d.ts +20 -0
  48. package/dist/esm/types/properties/brush/zBrush.js +20 -11
  49. package/dist/esm/types/properties/brush/zBrush.js.map +1 -1
  50. package/dist/esm/types/zVseed.d.ts +400 -0
  51. package/dist/umd/index.js +55 -32
  52. package/dist/umd/index.js.map +1 -1
  53. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { addRegionPadding, annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPieStyleFill, datasetPivot, datasetXY, discreteLegend, initDonut, initPivot, labelPie, linearColor, pieStyle, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, tooltip } from "../pipes/index.js";
1
+ import { addRegionPadding, annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPieStyleFill, datasetPivot, datasetXY, dimensionLinkage, discreteLegend, initDonut, initPivot, labelPie, linearColor, pieStyle, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, tooltip } from "../pipes/index.js";
2
2
  const donut = [
3
3
  initDonut,
4
4
  colorAdapter(color, linearColor),
@@ -40,7 +40,8 @@ const pivotDonut = [
40
40
  pivotRowDimensions,
41
41
  pivotColumnDimensions,
42
42
  pivotTitle,
43
- colorAdapter(pivotDiscreteLegend, pivotColorLegend)
43
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend),
44
+ dimensionLinkage
44
45
  ];
45
46
  const donutSpecPipeline = [
46
47
  pivotAdapter(donut, pivotDonut)
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/donut.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/donut.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n backgroundColor,\n color,\n datasetXY,\n datasetPivot,\n initDonut,\n initPivot,\n discreteLegend,\n pivotAdapter,\n pivotColumnDimensions,\n pivotGridStyle,\n pivotIndicators,\n pivotIndicatorsAsRow,\n pivotDiscreteLegend,\n pivotRowDimensions,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n pivotColorLegend,\n pieStyle,\n colorPieStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n brush,\n} from '../pipes'\n\nconst donut: VChartSpecPipeline = [\n initDonut,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n brush,\n labelPie,\n colorPieStyleFill(pieStyle),\n colorAdapter(discreteLegend, colorLegend),\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n]\n\nconst pivotDonut: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n initDonut,\n addRegionPadding,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n brush,\n labelPie,\n colorPieStyleFill(pieStyle),\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const donutSpecPipeline = [pivotAdapter(donut, pivotDonut)]\n"],"names":["donut","initDonut","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","brush","labelPie","colorPieStyleFill","pieStyle","discreteLegend","colorLegend","tooltip","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","pivotDonut","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","donutSpecPipeline","pivotAdapter"],"mappings":";AAmCA,MAAMA,QAA4B;IAChCC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC,kBAAkBC;IAClBT,aAAaU,gBAAgBC;IAC7BC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,aAAqC;IACzCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdxB;QACAyB;QACAxB,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC,kBAAkBC;QAClBG;QACAC;QACAC;QACAC;QACAC;KACD;IACDS;IACAC;IACAC;IACA3B,aAAa4B,qBAAqBC;CACnC;AAEM,MAAMC,oBAAoB;IAACC,aAAajC,OAAOmB;CAAY"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/donut.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/donut.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n backgroundColor,\n color,\n datasetXY,\n datasetPivot,\n initDonut,\n initPivot,\n discreteLegend,\n pivotAdapter,\n pivotColumnDimensions,\n pivotGridStyle,\n pivotIndicators,\n pivotIndicatorsAsRow,\n pivotDiscreteLegend,\n pivotRowDimensions,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n pivotColorLegend,\n pieStyle,\n colorPieStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n brush,\n dimensionLinkage,\n} from '../pipes'\n\nconst donut: VChartSpecPipeline = [\n initDonut,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n brush,\n labelPie,\n colorPieStyleFill(pieStyle),\n colorAdapter(discreteLegend, colorLegend),\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n]\n\nconst pivotDonut: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n initDonut,\n addRegionPadding,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n brush,\n labelPie,\n colorPieStyleFill(pieStyle),\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const donutSpecPipeline = [pivotAdapter(donut, pivotDonut)]\n"],"names":["donut","initDonut","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","brush","labelPie","colorPieStyleFill","pieStyle","discreteLegend","colorLegend","tooltip","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","pivotDonut","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","donutSpecPipeline","pivotAdapter"],"mappings":";AAoCA,MAAMA,QAA4B;IAChCC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC,kBAAkBC;IAClBT,aAAaU,gBAAgBC;IAC7BC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,aAAqC;IACzCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdxB;QACAyB;QACAxB,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC,kBAAkBC;QAClBG;QACAC;QACAC;QACAC;QACAC;KACD;IACDS;IACAC;IACAC;IACA3B,aAAa4B,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,oBAAoB;IAACC,aAAalC,OAAOmB;CAAY"}
@@ -1,4 +1,4 @@
1
- import { addRegionPadding, annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPieStyleFill, datasetPivot, datasetXY, discreteLegend, initPie, initPivot, labelPie, linearColor, pieStyle, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, tooltip } from "../pipes/index.js";
1
+ import { addRegionPadding, annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPieStyleFill, datasetPivot, datasetXY, dimensionLinkage, discreteLegend, initPie, initPivot, labelPie, linearColor, pieStyle, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, tooltip } from "../pipes/index.js";
2
2
  const pie = [
3
3
  initPie,
4
4
  colorAdapter(color, linearColor),
@@ -40,7 +40,8 @@ const pivotPie = [
40
40
  pivotRowDimensions,
41
41
  pivotColumnDimensions,
42
42
  pivotTitle,
43
- colorAdapter(pivotDiscreteLegend, pivotColorLegend)
43
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend),
44
+ dimensionLinkage
44
45
  ];
45
46
  const pieSpecPipeline = [
46
47
  pivotAdapter(pie, pivotPie)
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/pie.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/pie.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n backgroundColor,\n color,\n datasetXY,\n datasetPivot,\n initPie,\n initPivot,\n discreteLegend,\n pivotAdapter,\n pivotColumnDimensions,\n pivotGridStyle,\n pivotIndicators,\n pivotIndicatorsAsRow,\n pivotDiscreteLegend,\n pivotRowDimensions,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n progressive,\n pieStyle,\n colorPieStyleFill,\n linearColor,\n colorAdapter,\n colorLegend,\n pivotColorLegend,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n brush,\n} from '../pipes'\n\nconst pie: VChartSpecPipeline = [\n initPie,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n brush,\n colorPieStyleFill(pieStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n]\n\nconst pivotPie: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n initPie,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n brush,\n colorPieStyleFill(pieStyle),\n labelPie,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n addRegionPadding,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const pieSpecPipeline = [pivotAdapter(pie, pivotPie)]\n"],"names":["pie","initPie","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","brush","colorPieStyleFill","pieStyle","discreteLegend","colorLegend","labelPie","tooltip","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","pivotPie","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","pieSpecPipeline","pivotAdapter"],"mappings":";AAmCA,MAAMA,MAA0B;IAC9BC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC,kBAAkBC;IAClBR,aAAaS,gBAAgBC;IAC7BC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,WAAmC;IACvCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdxB;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC,kBAAkBC;QAClBG;QACAC;QACAC;QACAC;QACAC;QACAC;QACAQ;KACD;IACDC;IACAC;IACAC;IACA3B,aAAa4B,qBAAqBC;CACnC;AAEM,MAAMC,kBAAkB;IAACC,aAAajC,KAAKmB;CAAU"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/pie.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/pie.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n backgroundColor,\n color,\n datasetXY,\n datasetPivot,\n initPie,\n initPivot,\n discreteLegend,\n pivotAdapter,\n pivotColumnDimensions,\n pivotGridStyle,\n pivotIndicators,\n pivotIndicatorsAsRow,\n pivotDiscreteLegend,\n pivotRowDimensions,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n progressive,\n pieStyle,\n colorPieStyleFill,\n linearColor,\n colorAdapter,\n colorLegend,\n pivotColorLegend,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n brush,\n dimensionLinkage,\n} from '../pipes'\n\nconst pie: VChartSpecPipeline = [\n initPie,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n brush,\n colorPieStyleFill(pieStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n]\n\nconst pivotPie: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n initPie,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n brush,\n colorPieStyleFill(pieStyle),\n labelPie,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n addRegionPadding,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const pieSpecPipeline = [pivotAdapter(pie, pivotPie)]\n"],"names":["pie","initPie","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","brush","colorPieStyleFill","pieStyle","discreteLegend","colorLegend","labelPie","tooltip","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","pivotPie","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","pieSpecPipeline","pivotAdapter"],"mappings":";AAoCA,MAAMA,MAA0B;IAC9BC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC,kBAAkBC;IAClBR,aAAaS,gBAAgBC;IAC7BC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,WAAmC;IACvCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdxB;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC,kBAAkBC;QAClBG;QACAC;QACAC;QACAC;QACAC;QACAC;QACAQ;KACD;IACDC;IACAC;IACAC;IACA3B,aAAa4B,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,kBAAkB;IAACC,aAAalC,KAAKmB;CAAU"}
@@ -1,4 +1,4 @@
1
- import { addRegionPadding, backgroundColor, color, colorAdapter, colorLegend, colorRoseStyleFill, datasetPivot, datasetXY, discreteLegend, initPivot, initRose, labelPie, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, radiusAxis, roseStyle, stackCornerRadius, stackInverse, tooltip, verticalCrosshairRect } from "../pipes/index.js";
1
+ import { addRegionPadding, backgroundColor, color, colorAdapter, colorLegend, colorRoseStyleFill, datasetPivot, datasetXY, dimensionLinkage, discreteLegend, initPivot, initRose, labelPie, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, radiusAxis, roseStyle, stackCornerRadius, stackInverse, tooltip, verticalCrosshairRect } from "../pipes/index.js";
2
2
  const rose = [
3
3
  initRose,
4
4
  stackCornerRadius,
@@ -38,7 +38,8 @@ const pivotRose = [
38
38
  pivotRowDimensions,
39
39
  pivotColumnDimensions,
40
40
  pivotTitle,
41
- colorAdapter(pivotDiscreteLegend, pivotColorLegend)
41
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend),
42
+ dimensionLinkage
42
43
  ];
43
44
  const roseSpecPipeline = [
44
45
  pivotAdapter(rose, pivotRose)
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/rose.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/rose.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n tooltip,\n discreteLegend,\n color,\n pivotAdapter,\n initPivot,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n stackInverse,\n verticalCrosshairRect,\n stackCornerRadius,\n initRose,\n radiusAxis,\n progressive,\n linearColor,\n colorAdapter,\n pivotColorLegend,\n colorLegend,\n roseStyle,\n colorRoseStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n} from '../pipes'\n\nconst rose: VChartSpecPipeline = [\n initRose,\n stackCornerRadius,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip,\n]\n\nconst pivotRose: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n initRose,\n addRegionPadding,\n stackCornerRadius,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n labelPie,\n tooltip,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const roseSpecPipeline = [pivotAdapter(rose, pivotRose)]\n"],"names":["rose","initRose","stackCornerRadius","stackInverse","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radiusAxis","verticalCrosshairRect","colorRoseStyleFill","roseStyle","discreteLegend","colorLegend","labelPie","tooltip","pivotRose","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","roseSpecPipeline","pivotAdapter"],"mappings":";AAkCA,MAAMA,OAA2B;IAC/BC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC,mBAAmBC;IACnBT,aAAaU,gBAAgBC;IAC7BC;IACAC;CACD;AAED,MAAMC,YAAoC;IACxCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdvB;QACAwB;QACAvB;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC,mBAAmBC;QACnBG;QACAC;KACD;IACDS;IACAC;IACAC;IACAxB,aAAayB,qBAAqBC;CACnC;AAEM,MAAMC,mBAAmB;IAACC,aAAahC,MAAMkB;CAAW"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/rose.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/rose.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n tooltip,\n discreteLegend,\n color,\n pivotAdapter,\n initPivot,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n stackInverse,\n verticalCrosshairRect,\n stackCornerRadius,\n initRose,\n radiusAxis,\n progressive,\n linearColor,\n colorAdapter,\n pivotColorLegend,\n colorLegend,\n roseStyle,\n colorRoseStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n dimensionLinkage,\n} from '../pipes'\n\nconst rose: VChartSpecPipeline = [\n initRose,\n stackCornerRadius,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip,\n]\n\nconst pivotRose: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n initRose,\n addRegionPadding,\n stackCornerRadius,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n labelPie,\n tooltip,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const roseSpecPipeline = [pivotAdapter(rose, pivotRose)]\n"],"names":["rose","initRose","stackCornerRadius","stackInverse","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radiusAxis","verticalCrosshairRect","colorRoseStyleFill","roseStyle","discreteLegend","colorLegend","labelPie","tooltip","pivotRose","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","roseSpecPipeline","pivotAdapter"],"mappings":";AAmCA,MAAMA,OAA2B;IAC/BC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC,mBAAmBC;IACnBT,aAAaU,gBAAgBC;IAC7BC;IACAC;CACD;AAED,MAAMC,YAAoC;IACxCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdvB;QACAwB;QACAvB;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC,mBAAmBC;QACnBG;QACAC;KACD;IACDS;IACAC;IACAC;IACAxB,aAAayB,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,mBAAmB;IAACC,aAAajC,MAAMkB;CAAW"}
@@ -1,4 +1,4 @@
1
- import { addRegionPadding, annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, color, colorAdapter, colorLegend, colorRoseStyleFill, datasetPivot, datasetXY, discreteLegend, initPivot, initRoseParallel, labelPie, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, radiusAxis, roseStyle, stackCornerRadius, tooltip, verticalCrosshairRect } from "../pipes/index.js";
1
+ import { addRegionPadding, annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, color, colorAdapter, colorLegend, colorRoseStyleFill, datasetPivot, datasetXY, dimensionLinkage, discreteLegend, initPivot, initRoseParallel, labelPie, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, radiusAxis, roseStyle, stackCornerRadius, tooltip, verticalCrosshairRect } from "../pipes/index.js";
2
2
  const roseParallel = [
3
3
  initRoseParallel,
4
4
  stackCornerRadius,
@@ -44,7 +44,8 @@ const pivotRoseParallel = [
44
44
  pivotRowDimensions,
45
45
  pivotColumnDimensions,
46
46
  pivotTitle,
47
- colorAdapter(pivotDiscreteLegend, pivotColorLegend)
47
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend),
48
+ dimensionLinkage
48
49
  ];
49
50
  const roseParallelSpecPipeline = [
50
51
  pivotAdapter(roseParallel, pivotRoseParallel)
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/roseParallel.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/roseParallel.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n tooltip,\n discreteLegend,\n color,\n pivotIndicators,\n initPivot,\n datasetPivot,\n pivotAdapter,\n pivotDiscreteLegend,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n verticalCrosshairRect,\n stackCornerRadius,\n initRoseParallel,\n radiusAxis,\n progressive,\n pivotColorLegend,\n colorAdapter,\n linearColor,\n colorLegend,\n roseStyle,\n colorRoseStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n} from '../pipes'\n\nconst roseParallel: VChartSpecPipeline = [\n initRoseParallel,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n colorRoseStyleFill(roseStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip,\n verticalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotRoseParallel: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n initRoseParallel,\n addRegionPadding,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n labelPie,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const roseParallelSpecPipeline = [pivotAdapter(roseParallel, pivotRoseParallel)]\n"],"names":["roseParallel","initRoseParallel","stackCornerRadius","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radiusAxis","colorRoseStyleFill","roseStyle","discreteLegend","colorLegend","labelPie","tooltip","verticalCrosshairRect","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotRoseParallel","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","roseParallelSpecPipeline","pivotAdapter"],"mappings":";AAqCA,MAAMA,eAAmC;IACvCC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC,mBAAmBC;IACnBR,aAAaS,gBAAgBC;IAC7BC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,oBAA4C;IAChDC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd1B;QACA2B;QACA1B;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAO;QACAN,mBAAmBC;QACnBG;QACAC;QACAE;QACAC;QACAC;QACAC;KACD;IACDS;IACAC;IACAC;IACA5B,aAAa6B,qBAAqBC;CACnC;AAEM,MAAMC,2BAA2B;IAACC,aAAanC,cAAcqB;CAAmB"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/roseParallel.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/roseParallel.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n tooltip,\n discreteLegend,\n color,\n pivotIndicators,\n initPivot,\n datasetPivot,\n pivotAdapter,\n pivotDiscreteLegend,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n verticalCrosshairRect,\n stackCornerRadius,\n initRoseParallel,\n radiusAxis,\n progressive,\n pivotColorLegend,\n colorAdapter,\n linearColor,\n colorLegend,\n roseStyle,\n colorRoseStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n dimensionLinkage,\n} from '../pipes'\n\nconst roseParallel: VChartSpecPipeline = [\n initRoseParallel,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n colorRoseStyleFill(roseStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip,\n verticalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotRoseParallel: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n initRoseParallel,\n addRegionPadding,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n labelPie,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const roseParallelSpecPipeline = [pivotAdapter(roseParallel, pivotRoseParallel)]\n"],"names":["roseParallel","initRoseParallel","stackCornerRadius","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radiusAxis","colorRoseStyleFill","roseStyle","discreteLegend","colorLegend","labelPie","tooltip","verticalCrosshairRect","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotRoseParallel","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","roseParallelSpecPipeline","pivotAdapter"],"mappings":";AAsCA,MAAMA,eAAmC;IACvCC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC,mBAAmBC;IACnBR,aAAaS,gBAAgBC;IAC7BC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,oBAA4C;IAChDC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd1B;QACA2B;QACA1B;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAO;QACAN,mBAAmBC;QACnBG;QACAC;QACAE;QACAC;QACAC;QACAC;KACD;IACDS;IACAC;IACAC;IACA5B,aAAa6B,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,2BAA2B;IAACC,aAAapC,cAAcqB;CAAmB"}
@@ -44,19 +44,6 @@ const generateAnnotationPointPipe = (options)=>{
44
44
  confine: true,
45
45
  text: {
46
46
  text: text,
47
- style: {
48
- opacity: 0.95,
49
- visible: true,
50
- textAlign: textAlign,
51
- textBaseline: textBaseline,
52
- fill: textColor,
53
- stroke: textBackgroundColor,
54
- lineWidth: 1,
55
- fontSize: textFontSize,
56
- fontWeight: textFontWeight,
57
- dx,
58
- dy
59
- },
60
47
  labelBackground: {
61
48
  visible: textBackgroundVisible,
62
49
  padding: textBackgroundPadding,
@@ -70,6 +57,19 @@ const generateAnnotationPointPipe = (options)=>{
70
57
  dy
71
58
  }
72
59
  }
60
+ },
61
+ style: {
62
+ opacity: 0.95,
63
+ visible: true,
64
+ textAlign: textAlign,
65
+ textBaseline: textBaseline,
66
+ fill: textColor,
67
+ stroke: textBackgroundColor,
68
+ lineWidth: 1,
69
+ fontSize: textFontSize,
70
+ fontWeight: textFontWeight,
71
+ dx,
72
+ dy
73
73
  }
74
74
  }
75
75
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/annotation/annotationPointCommon.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/annotation/annotationPointCommon.ts"],"sourcesContent":["import type { ISpec, IMarkPointSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { Datum, Selector, Selectors, SpecPipelineContext, VChartSpecPipe, VSeed } from 'src/types'\nimport { isSubset } from './utils'\nimport { ANNOTATION_Z_INDEX } from '../../../../utils/constant'\nimport { isBarLikeChart } from 'src/pipeline/utils/chatType'\n\nexport const generateAnnotationPointPipe = (options: {\n findSelectedDatas?: (\n dataset: Datum[],\n selector: Selector | Selectors | undefined | null,\n spec: ISpec,\n context: SpecPipelineContext,\n ) => Datum[]\n generateMarkPoint?: (datum: Datum, spec: ISpec, context: SpecPipelineContext) => IMarkPointSpec[] | undefined\n}) => {\n const findSelectedDatas = options.findSelectedDatas ?? ((dataset, s) => dataset.filter((datum) => selector(datum, s)))\n const generateMarkPoint =\n options.generateMarkPoint ??\n ((datum: Datum) => {\n return [\n {\n coordinate: (data: Datum[]) => {\n return data.find((item) => isSubset(datum, item))\n },\n },\n ]\n })\n\n return ((spec: ISpec, context: SpecPipelineContext) => {\n const { advancedVSeed, vseed } = context\n const { annotation, config } = advancedVSeed\n\n if (!annotation || !annotation.annotationPoint) {\n return spec\n }\n\n const theme = config?.[vseed.chartType as 'column']?.annotation?.annotationPoint\n const { annotationPoint } = annotation\n const annotationPointList = Array.isArray(annotationPoint) ? annotationPoint : [annotationPoint]\n const isHorizontalBar = isBarLikeChart(advancedVSeed as VSeed)\n const defaultStyle = isHorizontalBar\n ? {\n textAlign: 'right',\n textBaseline: 'middle',\n }\n : {\n textAlign: 'center',\n textBaseline: 'top',\n }\n\n const markPoint = annotationPointList.flatMap((annotationPoint) => {\n const {\n selector: selectorPoint,\n text = '',\n textColor = theme?.textColor ?? '#ffffff',\n textFontSize = theme?.textFontSize ?? 12,\n textFontWeight = theme?.textFontWeight ?? 400,\n textAlign = defaultStyle.textAlign,\n textBaseline = defaultStyle.textBaseline,\n textBackgroundBorderColor = theme?.textBackgroundBorderColor,\n textBackgroundBorderRadius = theme?.textBackgroundBorderRadius ?? 4,\n textBackgroundBorderWidth = theme?.textBackgroundBorderWidth ?? 1,\n textBackgroundColor = theme?.textBackgroundColor ?? '#212121',\n textBackgroundPadding = theme?.textBackgroundPadding ?? 2,\n textBackgroundVisible = theme?.textBackgroundVisible ?? true,\n offsetX = theme?.offsetX ?? 0,\n offsetY = theme?.offsetY ?? 0,\n } = annotationPoint\n\n const dataset = advancedVSeed.dataset.flat()\n const selectedData = selectorPoint ? findSelectedDatas(dataset, selectorPoint, spec, context) : []\n const dx = -10 - (isHorizontalBar ? (textFontSize as number) : 0) // 由于vchart tag实现问题,需要设置这个强制偏移量\n const dy = isHorizontalBar ? 0 : (textFontSize as number)\n const markPointStyle = {\n zIndex: ANNOTATION_Z_INDEX,\n regionRelative: true,\n itemLine: {\n visible: false,\n },\n itemContent: {\n offsetY,\n offsetX,\n confine: true,\n text: {\n text: text,\n style: {\n opacity: 0.95,\n visible: true,\n textAlign: textAlign,\n textBaseline: textBaseline,\n fill: textColor,\n stroke: textBackgroundColor,\n lineWidth: 1,\n fontSize: textFontSize,\n fontWeight: textFontWeight,\n dx,\n dy,\n },\n labelBackground: {\n visible: textBackgroundVisible,\n padding: textBackgroundPadding,\n style: {\n opacity: 0.95,\n cornerRadius: textBackgroundBorderRadius ?? 4,\n fill: textBackgroundColor,\n stroke: textBackgroundBorderColor,\n lineWidth: textBackgroundBorderWidth,\n dx,\n dy,\n },\n },\n },\n },\n } as Partial<IMarkPointSpec>\n\n return selectedData.reduce((res: IMarkPointSpec[], datum) => {\n const marks = generateMarkPoint(datum, spec, context)\n\n if (marks && marks.length) {\n marks.forEach((mark) => {\n res.push({\n ...markPointStyle,\n ...mark,\n } as IMarkPointSpec)\n })\n }\n\n return res\n }, [])\n }) as unknown as IMarkPointSpec[]\n\n return {\n ...spec,\n markPoint,\n } as ISpec\n }) as VChartSpecPipe\n}\n"],"names":["generateAnnotationPointPipe","options","findSelectedDatas","dataset","s","datum","selector","generateMarkPoint","data","item","isSubset","spec","context","advancedVSeed","vseed","annotation","config","theme","annotationPoint","annotationPointList","Array","isHorizontalBar","isBarLikeChart","defaultStyle","markPoint","selectorPoint","text","textColor","textFontSize","textFontWeight","textAlign","textBaseline","textBackgroundBorderColor","textBackgroundBorderRadius","textBackgroundBorderWidth","textBackgroundColor","textBackgroundPadding","textBackgroundVisible","offsetX","offsetY","selectedData","dx","dy","markPointStyle","ANNOTATION_Z_INDEX","res","marks","mark"],"mappings":";;;;AAOO,MAAMA,8BAA8B,CAACC;IAS1C,MAAMC,oBAAoBD,QAAQ,iBAAiB,IAAM,EAAAE,SAASC,IAAMD,QAAQ,MAAM,CAAC,CAACE,QAAUC,SAASD,OAAOD,GAAE;IACpH,MAAMG,oBACJN,QAAQ,iBAAiB,IACvB,EAAAI,QACO;YACL;gBACE,YAAY,CAACG,OACJA,KAAK,IAAI,CAAC,CAACC,OAASC,SAASL,OAAOI;YAE/C;SACD,AACH;IAEF,OAAQ,CAACE,MAAaC;QACpB,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;QACjC,MAAM,EAAEG,UAAU,EAAEC,MAAM,EAAE,GAAGH;QAE/B,IAAI,CAACE,cAAc,CAACA,WAAW,eAAe,EAC5C,OAAOJ;QAGT,MAAMM,QAAQD,QAAQ,CAACF,MAAM,SAAS,CAAa,EAAE,YAAY;QACjE,MAAM,EAAEI,eAAe,EAAE,GAAGH;QAC5B,MAAMI,sBAAsBC,MAAM,OAAO,CAACF,mBAAmBA,kBAAkB;YAACA;SAAgB;QAChG,MAAMG,kBAAkBC,eAAeT;QACvC,MAAMU,eAAeF,kBACjB;YACE,WAAW;YACX,cAAc;QAChB,IACA;YACE,WAAW;YACX,cAAc;QAChB;QAEJ,MAAMG,YAAYL,oBAAoB,OAAO,CAAC,CAACD;YAC7C,MAAM,EACJ,UAAUO,aAAa,EACvBC,OAAO,EAAE,EACTC,YAAYV,OAAO,aAAa,SAAS,EACzCW,eAAeX,OAAO,gBAAgB,EAAE,EACxCY,iBAAiBZ,OAAO,kBAAkB,GAAG,EAC7Ca,YAAYP,aAAa,SAAS,EAClCQ,eAAeR,aAAa,YAAY,EACxCS,4BAA4Bf,OAAO,yBAAyB,EAC5DgB,6BAA6BhB,OAAO,8BAA8B,CAAC,EACnEiB,4BAA4BjB,OAAO,6BAA6B,CAAC,EACjEkB,sBAAsBlB,OAAO,uBAAuB,SAAS,EAC7DmB,wBAAwBnB,OAAO,yBAAyB,CAAC,EACzDoB,wBAAwBpB,OAAO,yBAAyB,IAAI,EAC5DqB,UAAUrB,OAAO,WAAW,CAAC,EAC7BsB,UAAUtB,OAAO,WAAW,CAAC,EAC9B,GAAGC;YAEJ,MAAMf,UAAUU,cAAc,OAAO,CAAC,IAAI;YAC1C,MAAM2B,eAAef,gBAAgBvB,kBAAkBC,SAASsB,eAAed,MAAMC,WAAW,EAAE;YAClG,MAAM6B,KAAK,MAAOpB,CAAAA,kBAAmBO,eAA0B;YAC/D,MAAMc,KAAKrB,kBAAkB,IAAKO;YAClC,MAAMe,iBAAiB;gBACrB,QAAQC;gBACR,gBAAgB;gBAChB,UAAU;oBACR,SAAS;gBACX;gBACA,aAAa;oBACXL;oBACAD;oBACA,SAAS;oBACT,MAAM;wBACJ,MAAMZ;wBACN,OAAO;4BACL,SAAS;4BACT,SAAS;4BACT,WAAWI;4BACX,cAAcC;4BACd,MAAMJ;4BACN,QAAQQ;4BACR,WAAW;4BACX,UAAUP;4BACV,YAAYC;4BACZY;4BACAC;wBACF;wBACA,iBAAiB;4BACf,SAASL;4BACT,SAASD;4BACT,OAAO;gCACL,SAAS;gCACT,cAAcH,8BAA8B;gCAC5C,MAAME;gCACN,QAAQH;gCACR,WAAWE;gCACXO;gCACAC;4BACF;wBACF;oBACF;gBACF;YACF;YAEA,OAAOF,aAAa,MAAM,CAAC,CAACK,KAAuBxC;gBACjD,MAAMyC,QAAQvC,kBAAkBF,OAAOM,MAAMC;gBAE7C,IAAIkC,SAASA,MAAM,MAAM,EACvBA,MAAM,OAAO,CAAC,CAACC;oBACbF,IAAI,IAAI,CAAC;wBACP,GAAGF,cAAc;wBACjB,GAAGI,IAAI;oBACT;gBACF;gBAGF,OAAOF;YACT,GAAG,EAAE;QACP;QAEA,OAAO;YACL,GAAGlC,IAAI;YACPa;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/annotation/annotationPointCommon.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/annotation/annotationPointCommon.ts"],"sourcesContent":["import type { ISpec, IMarkPointSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { Datum, Selector, Selectors, SpecPipelineContext, VChartSpecPipe, VSeed } from 'src/types'\nimport { isSubset } from './utils'\nimport { ANNOTATION_Z_INDEX } from '../../../../utils/constant'\nimport { isBarLikeChart } from 'src/pipeline/utils/chatType'\n\nexport const generateAnnotationPointPipe = (options: {\n findSelectedDatas?: (\n dataset: Datum[],\n selector: Selector | Selectors | undefined | null,\n spec: ISpec,\n context: SpecPipelineContext,\n ) => Datum[]\n generateMarkPoint?: (datum: Datum, spec: ISpec, context: SpecPipelineContext) => IMarkPointSpec[] | undefined\n}) => {\n const findSelectedDatas = options.findSelectedDatas ?? ((dataset, s) => dataset.filter((datum) => selector(datum, s)))\n const generateMarkPoint =\n options.generateMarkPoint ??\n ((datum: Datum) => {\n return [\n {\n coordinate: (data: Datum[]) => {\n return data.find((item) => isSubset(datum, item))\n },\n },\n ]\n })\n\n return ((spec: ISpec, context: SpecPipelineContext) => {\n const { advancedVSeed, vseed } = context\n const { annotation, config } = advancedVSeed\n\n if (!annotation || !annotation.annotationPoint) {\n return spec\n }\n\n const theme = config?.[vseed.chartType as 'column']?.annotation?.annotationPoint\n const { annotationPoint } = annotation\n const annotationPointList = Array.isArray(annotationPoint) ? annotationPoint : [annotationPoint]\n const isHorizontalBar = isBarLikeChart(advancedVSeed as VSeed)\n const defaultStyle = isHorizontalBar\n ? {\n textAlign: 'right',\n textBaseline: 'middle',\n }\n : {\n textAlign: 'center',\n textBaseline: 'top',\n }\n\n const markPoint = annotationPointList.flatMap((annotationPoint) => {\n const {\n selector: selectorPoint,\n text = '',\n textColor = theme?.textColor ?? '#ffffff',\n textFontSize = theme?.textFontSize ?? 12,\n textFontWeight = theme?.textFontWeight ?? 400,\n textAlign = defaultStyle.textAlign,\n textBaseline = defaultStyle.textBaseline,\n textBackgroundBorderColor = theme?.textBackgroundBorderColor,\n textBackgroundBorderRadius = theme?.textBackgroundBorderRadius ?? 4,\n textBackgroundBorderWidth = theme?.textBackgroundBorderWidth ?? 1,\n textBackgroundColor = theme?.textBackgroundColor ?? '#212121',\n textBackgroundPadding = theme?.textBackgroundPadding ?? 2,\n textBackgroundVisible = theme?.textBackgroundVisible ?? true,\n offsetX = theme?.offsetX ?? 0,\n offsetY = theme?.offsetY ?? 0,\n } = annotationPoint\n\n const dataset = advancedVSeed.dataset.flat()\n const selectedData = selectorPoint ? findSelectedDatas(dataset, selectorPoint, spec, context) : []\n const dx = -10 - (isHorizontalBar ? (textFontSize as number) : 0) // 由于vchart tag实现问题,需要设置这个强制偏移量\n const dy = isHorizontalBar ? 0 : (textFontSize as number)\n const markPointStyle = {\n zIndex: ANNOTATION_Z_INDEX,\n regionRelative: true,\n itemLine: {\n visible: false,\n },\n itemContent: {\n offsetY,\n offsetX,\n confine: true,\n text: {\n text: text,\n labelBackground: {\n visible: textBackgroundVisible,\n padding: textBackgroundPadding,\n style: {\n opacity: 0.95,\n cornerRadius: textBackgroundBorderRadius ?? 4,\n fill: textBackgroundColor,\n stroke: textBackgroundBorderColor,\n lineWidth: textBackgroundBorderWidth,\n dx,\n dy,\n },\n },\n },\n style: {\n opacity: 0.95,\n visible: true,\n textAlign: textAlign,\n textBaseline: textBaseline,\n fill: textColor,\n stroke: textBackgroundColor,\n lineWidth: 1,\n fontSize: textFontSize,\n fontWeight: textFontWeight,\n dx,\n dy,\n },\n },\n } as Partial<IMarkPointSpec>\n\n return selectedData.reduce((res: IMarkPointSpec[], datum) => {\n const marks = generateMarkPoint(datum, spec, context)\n\n if (marks && marks.length) {\n marks.forEach((mark) => {\n res.push({\n ...markPointStyle,\n ...mark,\n } as IMarkPointSpec)\n })\n }\n\n return res\n }, [])\n }) as unknown as IMarkPointSpec[]\n\n return {\n ...spec,\n markPoint,\n } as ISpec\n }) as VChartSpecPipe\n}\n"],"names":["generateAnnotationPointPipe","options","findSelectedDatas","dataset","s","datum","selector","generateMarkPoint","data","item","isSubset","spec","context","advancedVSeed","vseed","annotation","config","theme","annotationPoint","annotationPointList","Array","isHorizontalBar","isBarLikeChart","defaultStyle","markPoint","selectorPoint","text","textColor","textFontSize","textFontWeight","textAlign","textBaseline","textBackgroundBorderColor","textBackgroundBorderRadius","textBackgroundBorderWidth","textBackgroundColor","textBackgroundPadding","textBackgroundVisible","offsetX","offsetY","selectedData","dx","dy","markPointStyle","ANNOTATION_Z_INDEX","res","marks","mark"],"mappings":"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"}
@@ -10,6 +10,8 @@ const brush_brush = (spec, context)=>{
10
10
  result.brush = {
11
11
  visible: true,
12
12
  removeOnClick: brush.removeOnClick,
13
+ brushMode: brush?.brushMode || 'single',
14
+ brushType: brush?.brushType || 'rect',
13
15
  inBrush: {
14
16
  opacity: theme.inBrushStyle?.opacity,
15
17
  stroke: theme.inBrushStyle?.stroke,
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/brush/brush.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/brush/brush.ts"],"sourcesContent":["import type { Column, VChartSpecPipe } from 'src/types'\nimport type { BrushConfig } from 'src/types/properties/brush/zBrush'\n\nexport const brush: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as any\n const { advancedVSeed, vseed } = context\n const { brush = {}, chartType } = vseed as Column\n\n const theme = (advancedVSeed.config as any)?.[chartType]?.brush ?? ({} as BrushConfig)\n\n const enable = brush.enable ?? theme?.enable\n\n if (enable === false) {\n return result\n }\n\n result.brush = {\n visible: true,\n removeOnClick: brush.removeOnClick,\n inBrush: {\n opacity: theme.inBrushStyle?.opacity,\n stroke: theme.inBrushStyle?.stroke,\n lineWidth: theme.inBrushStyle?.lineWidth,\n },\n outOfBrush: {\n opacity: theme.outOfBrushStyle?.opacity,\n stroke: theme.outOfBrushStyle?.stroke,\n lineWidth: theme.outOfBrushStyle?.lineWidth,\n },\n }\n\n if (result.label && result.label.visible !== false) {\n if (!result.label.state) {\n result.label.state = {}\n }\n\n result.label.state.outOfBrush = {\n opacity: result.brush.outOfBrush.opacity,\n }\n result.label.state.inBrush = {\n opacity: result.brush.inBrush.opacity,\n }\n }\n\n return result\n}\n"],"names":["brush","spec","context","result","advancedVSeed","vseed","chartType","theme","enable"],"mappings":"AAGO,MAAMA,cAAwB,CAACC,MAAMC;IAC1C,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEF,QAAQ,CAAC,CAAC,EAAEM,SAAS,EAAE,GAAGD;IAElC,MAAME,QAASH,cAAc,MAAM,EAAU,CAACE,UAAU,EAAE,SAAU,CAAC;IAErE,MAAME,SAASR,MAAM,MAAM,IAAIO,OAAO;IAEtC,IAAIC,AAAW,UAAXA,QACF,OAAOL;IAGTA,OAAO,KAAK,GAAG;QACb,SAAS;QACT,eAAeH,MAAM,aAAa;QAClC,SAAS;YACP,SAASO,MAAM,YAAY,EAAE;YAC7B,QAAQA,MAAM,YAAY,EAAE;YAC5B,WAAWA,MAAM,YAAY,EAAE;QACjC;QACA,YAAY;YACV,SAASA,MAAM,eAAe,EAAE;YAChC,QAAQA,MAAM,eAAe,EAAE;YAC/B,WAAWA,MAAM,eAAe,EAAE;QACpC;IACF;IAEA,IAAIJ,OAAO,KAAK,IAAIA,AAAyB,UAAzBA,OAAO,KAAK,CAAC,OAAO,EAAY;QAClD,IAAI,CAACA,OAAO,KAAK,CAAC,KAAK,EACrBA,OAAO,KAAK,CAAC,KAAK,GAAG,CAAC;QAGxBA,OAAO,KAAK,CAAC,KAAK,CAAC,UAAU,GAAG;YAC9B,SAASA,OAAO,KAAK,CAAC,UAAU,CAAC,OAAO;QAC1C;QACAA,OAAO,KAAK,CAAC,KAAK,CAAC,OAAO,GAAG;YAC3B,SAASA,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO;QACvC;IACF;IAEA,OAAOA;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/brush/brush.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/brush/brush.ts"],"sourcesContent":["import type { Column, VChartSpecPipe } from 'src/types'\nimport type { BrushConfig } from 'src/types/properties/brush/zBrush'\n\nexport const brush: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as any\n const { advancedVSeed, vseed } = context\n const { brush = {}, chartType } = vseed as Column\n\n const theme = (advancedVSeed.config as any)?.[chartType]?.brush ?? ({} as BrushConfig)\n\n const enable = brush.enable ?? theme?.enable\n\n if (enable === false) {\n return result\n }\n\n result.brush = {\n visible: true,\n removeOnClick: brush.removeOnClick,\n brushMode: brush?.brushMode || 'single',\n brushType: brush?.brushType || 'rect',\n inBrush: {\n opacity: theme.inBrushStyle?.opacity,\n stroke: theme.inBrushStyle?.stroke,\n lineWidth: theme.inBrushStyle?.lineWidth,\n },\n outOfBrush: {\n opacity: theme.outOfBrushStyle?.opacity,\n stroke: theme.outOfBrushStyle?.stroke,\n lineWidth: theme.outOfBrushStyle?.lineWidth,\n },\n }\n\n if (result.label && result.label.visible !== false) {\n if (!result.label.state) {\n result.label.state = {}\n }\n\n result.label.state.outOfBrush = {\n opacity: result.brush.outOfBrush.opacity,\n }\n result.label.state.inBrush = {\n opacity: result.brush.inBrush.opacity,\n }\n }\n\n return result\n}\n"],"names":["brush","spec","context","result","advancedVSeed","vseed","chartType","theme","enable"],"mappings":"AAGO,MAAMA,cAAwB,CAACC,MAAMC;IAC1C,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEF,QAAQ,CAAC,CAAC,EAAEM,SAAS,EAAE,GAAGD;IAElC,MAAME,QAASH,cAAc,MAAM,EAAU,CAACE,UAAU,EAAE,SAAU,CAAC;IAErE,MAAME,SAASR,MAAM,MAAM,IAAIO,OAAO;IAEtC,IAAIC,AAAW,UAAXA,QACF,OAAOL;IAGTA,OAAO,KAAK,GAAG;QACb,SAAS;QACT,eAAeH,MAAM,aAAa;QAClC,WAAWA,OAAO,aAAa;QAC/B,WAAWA,OAAO,aAAa;QAC/B,SAAS;YACP,SAASO,MAAM,YAAY,EAAE;YAC7B,QAAQA,MAAM,YAAY,EAAE;YAC5B,WAAWA,MAAM,YAAY,EAAE;QACjC;QACA,YAAY;YACV,SAASA,MAAM,eAAe,EAAE;YAChC,QAAQA,MAAM,eAAe,EAAE;YAC/B,WAAWA,MAAM,eAAe,EAAE;QACpC;IACF;IAEA,IAAIJ,OAAO,KAAK,IAAIA,AAAyB,UAAzBA,OAAO,KAAK,CAAC,OAAO,EAAY;QAClD,IAAI,CAACA,OAAO,KAAK,CAAC,KAAK,EACrBA,OAAO,KAAK,CAAC,KAAK,GAAG,CAAC;QAGxBA,OAAO,KAAK,CAAC,KAAK,CAAC,UAAU,GAAG;YAC9B,SAASA,OAAO,KAAK,CAAC,UAAU,CAAC,OAAO;QAC1C;QACAA,OAAO,KAAK,CAAC,KAAK,CAAC,OAAO,GAAG;YAC3B,SAASA,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO;QACvC;IACF;IAEA,OAAOA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/areaStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/areaStyle.ts"],"sourcesContent":["import type { IAreaChartSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { AreaStyle, Datum, LineStyle, VChartSpecPipe } from 'src/types'\nimport { groupBy, isEmpty, isNullish } from 'remeda'\nimport { getCurveTension, getCurveType } from './curve'\n\nexport const areaStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { markStyle, datasetReshapeInfo, dataset } = advancedVSeed\n const { areaStyle, lineStyle } = markStyle\n const { unfoldInfo } = datasetReshapeInfo[0]\n const result = {\n ...spec,\n area: {\n visible: true,\n style: {},\n },\n } as IAreaChartSpec\n\n if (isNullish(areaStyle) || isEmpty(areaStyle)) {\n return result\n }\n\n const areaStyles = (Array.isArray(areaStyle) ? areaStyle : [areaStyle]) as AreaStyle[]\n const lineStyles = (Array.isArray(lineStyle) ? lineStyle : [lineStyle]) as LineStyle[]\n\n const group = unfoldInfo.encodingColorId\n\n const areaGroups = groupBy(dataset, (d) => d[group ?? ''] as string)\n\n const customMap = areaStyles.reduce<object>((result, style, index) => {\n const { areaColor, areaColorOpacity, areaVisible = true } = style\n\n const curveType = getCurveType(context.vseed, lineStyles[index]?.lineSmooth)\n const curveTension = getCurveTension(context.vseed, lineStyles[index]?.lineSmooth)\n\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n const lineData = areaGroups[datum[group ?? ''] as string]\n for (const d of lineData) {\n if (selector(d, style.selector)) {\n return true\n }\n }\n return false\n },\n style: {\n curveType,\n curveTension,\n visible: areaVisible,\n fill: areaColor,\n fillOpacity: areaColorOpacity,\n },\n },\n }\n }, {})\n\n return {\n ...result,\n area: {\n ...result.area,\n visible: true,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["areaStyle","spec","context","advancedVSeed","markStyle","datasetReshapeInfo","dataset","lineStyle","unfoldInfo","result","isNullish","isEmpty","areaStyles","Array","lineStyles","group","areaGroups","groupBy","d","customMap","style","index","areaColor","areaColorOpacity","areaVisible","curveType","getCurveType","curveTension","getCurveTension","datum","lineData","selector"],"mappings":";;;AAMO,MAAMA,sBAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,SAAS,EAAEC,kBAAkB,EAAEC,OAAO,EAAE,GAAGH;IACnD,MAAM,EAAEH,SAAS,EAAEO,SAAS,EAAE,GAAGH;IACjC,MAAM,EAAEI,UAAU,EAAE,GAAGH,kBAAkB,CAAC,EAAE;IAC5C,MAAMI,SAAS;QACb,GAAGR,IAAI;QACP,MAAM;YACJ,SAAS;YACT,OAAO,CAAC;QACV;IACF;IAEA,IAAIS,UAAUV,cAAcW,QAAQX,YAClC,OAAOS;IAGT,MAAMG,aAAcC,MAAM,OAAO,CAACb,aAAaA,YAAY;QAACA;KAAU;IACtE,MAAMc,aAAcD,MAAM,OAAO,CAACN,aAAaA,YAAY;QAACA;KAAU;IAEtE,MAAMQ,QAAQP,WAAW,eAAe;IAExC,MAAMQ,aAAaC,QAAQX,SAAS,CAACY,IAAMA,CAAC,CAACH,SAAS,GAAG;IAEzD,MAAMI,YAAYP,WAAW,MAAM,CAAS,CAACH,QAAQW,OAAOC;QAC1D,MAAM,EAAEC,SAAS,EAAEC,gBAAgB,EAAEC,cAAc,IAAI,EAAE,GAAGJ;QAE5D,MAAMK,YAAYC,aAAaxB,QAAQ,KAAK,EAAEY,UAAU,CAACO,MAAM,EAAE;QACjE,MAAMM,eAAeC,gBAAgB1B,QAAQ,KAAK,EAAEY,UAAU,CAACO,MAAM,EAAE;QAEvE,OAAO;YACL,GAAGZ,MAAM;YACT,CAAC,CAAC,MAAM,EAAEY,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACQ;oBACP,MAAMC,WAAWd,UAAU,CAACa,KAAK,CAACd,SAAS,GAAG,CAAW;oBACzD,KAAK,MAAMG,KAAKY,SACd,IAAIC,SAASb,GAAGE,MAAM,QAAQ,GAC5B,OAAO;oBAGX,OAAO;gBACT;gBACA,OAAO;oBACLK;oBACAE;oBACA,SAASH;oBACT,MAAMF;oBACN,aAAaC;gBACf;YACF;QACF;IACF,GAAG,CAAC;IAEJ,OAAO;QACL,GAAGd,MAAM;QACT,MAAM;YACJ,GAAGA,OAAO,IAAI;YACd,SAAS;YACT,OAAO;gBACL,GAAGU,SAAS;YACd;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/areaStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/areaStyle.ts"],"sourcesContent":["import type { IAreaChartSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { AreaStyle, Datum, LineStyle, VChartSpecPipe } from 'src/types'\nimport { groupBy, isEmpty, isNullish } from 'remeda'\nimport { getCurveTension, getCurveType } from './curve'\n\nexport const areaStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { markStyle, datasetReshapeInfo, dataset } = advancedVSeed\n const { areaStyle, lineStyle } = markStyle\n const { unfoldInfo } = datasetReshapeInfo[0]\n\n const result = {\n ...spec,\n area: {\n visible: true,\n style: {},\n },\n } as IAreaChartSpec\n\n if (isNullish(areaStyle) || isEmpty(areaStyle)) {\n return result\n }\n\n const areaStyles = (Array.isArray(areaStyle) ? areaStyle : [areaStyle]) as AreaStyle[]\n const lineStyles = (Array.isArray(lineStyle) ? lineStyle : [lineStyle]) as LineStyle[]\n\n const group = unfoldInfo.encodingColorId\n\n const areaGroups = groupBy(dataset, (d) => d[group ?? ''] as string)\n\n const customMap = areaStyles.reduce<object>((result, style, index) => {\n const { areaColor, areaColorOpacity, areaVisible = true } = style\n\n const curveType = getCurveType(context.vseed, lineStyles[index]?.lineSmooth)\n const curveTension = getCurveTension(context.vseed, lineStyles[index]?.lineSmooth)\n\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n const lineData = areaGroups[datum[group ?? ''] as string]\n for (const d of lineData) {\n if (selector(d, style.selector)) {\n return true\n }\n }\n return false\n },\n style: {\n curveType,\n curveTension,\n visible: areaVisible,\n fill: areaColor,\n fillOpacity: areaColorOpacity,\n },\n },\n }\n }, {})\n\n return {\n ...result,\n area: {\n ...result.area,\n visible: true,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["areaStyle","spec","context","advancedVSeed","markStyle","datasetReshapeInfo","dataset","lineStyle","unfoldInfo","result","isNullish","isEmpty","areaStyles","Array","lineStyles","group","areaGroups","groupBy","d","customMap","style","index","areaColor","areaColorOpacity","areaVisible","curveType","getCurveType","curveTension","getCurveTension","datum","lineData","selector"],"mappings":";;;AAMO,MAAMA,sBAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,SAAS,EAAEC,kBAAkB,EAAEC,OAAO,EAAE,GAAGH;IACnD,MAAM,EAAEH,SAAS,EAAEO,SAAS,EAAE,GAAGH;IACjC,MAAM,EAAEI,UAAU,EAAE,GAAGH,kBAAkB,CAAC,EAAE;IAE5C,MAAMI,SAAS;QACb,GAAGR,IAAI;QACP,MAAM;YACJ,SAAS;YACT,OAAO,CAAC;QACV;IACF;IAEA,IAAIS,UAAUV,cAAcW,QAAQX,YAClC,OAAOS;IAGT,MAAMG,aAAcC,MAAM,OAAO,CAACb,aAAaA,YAAY;QAACA;KAAU;IACtE,MAAMc,aAAcD,MAAM,OAAO,CAACN,aAAaA,YAAY;QAACA;KAAU;IAEtE,MAAMQ,QAAQP,WAAW,eAAe;IAExC,MAAMQ,aAAaC,QAAQX,SAAS,CAACY,IAAMA,CAAC,CAACH,SAAS,GAAG;IAEzD,MAAMI,YAAYP,WAAW,MAAM,CAAS,CAACH,QAAQW,OAAOC;QAC1D,MAAM,EAAEC,SAAS,EAAEC,gBAAgB,EAAEC,cAAc,IAAI,EAAE,GAAGJ;QAE5D,MAAMK,YAAYC,aAAaxB,QAAQ,KAAK,EAAEY,UAAU,CAACO,MAAM,EAAE;QACjE,MAAMM,eAAeC,gBAAgB1B,QAAQ,KAAK,EAAEY,UAAU,CAACO,MAAM,EAAE;QAEvE,OAAO;YACL,GAAGZ,MAAM;YACT,CAAC,CAAC,MAAM,EAAEY,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACQ;oBACP,MAAMC,WAAWd,UAAU,CAACa,KAAK,CAACd,SAAS,GAAG,CAAW;oBACzD,KAAK,MAAMG,KAAKY,SACd,IAAIC,SAASb,GAAGE,MAAM,QAAQ,GAC5B,OAAO;oBAGX,OAAO;gBACT;gBACA,OAAO;oBACLK;oBACAE;oBACA,SAASH;oBACT,MAAMF;oBACN,aAAaC;gBACf;YACF;QACF;IACF,GAAG,CAAC;IAEJ,OAAO;QACL,GAAGd,MAAM;QACT,MAAM;YACJ,GAAGA,OAAO,IAAI;YACd,SAAS;YACT,OAAO;gBACL,GAAGU,SAAS;YACd;QACF;IACF;AACF"}
@@ -4,7 +4,8 @@ const boxPlotStyle_boxPlotStyle = (spec, context)=>{
4
4
  const { advancedVSeed, vseed } = context;
5
5
  const { markStyle, config } = advancedVSeed;
6
6
  const { boxPlotStyle } = markStyle;
7
- const theme = config?.[vseed.chartType]?.boxPlotStyle;
7
+ const { chartType } = vseed;
8
+ const theme = config?.[chartType]?.boxPlotStyle;
8
9
  const result = {
9
10
  ...spec,
10
11
  boxPlot: {
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.ts"],"sourcesContent":["import type { IBoxPlotChartSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { BoxPlotStyle, Datum, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const boxPlotStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { markStyle, config } = advancedVSeed\n const { boxPlotStyle } = markStyle\n const theme = config?.[vseed.chartType as 'boxPlot']?.boxPlotStyle\n\n const result = {\n ...spec,\n boxPlot: {\n style: {\n shaftShape: 'filled-line',\n visible: true,\n shaftWidth: '50%',\n stroke: theme?.whiskerBorderColor,\n boxStroke: theme?.boxBorderColor,\n boxCornerRadius: theme?.boxCornerRadius,\n medianStroke: theme?.medianBorderColor ?? theme?.boxBorderColor,\n },\n },\n } as IBoxPlotChartSpec\n\n if (isNullish(boxPlotStyle) || isEmpty(boxPlotStyle)) {\n return result\n }\n\n const boxPlotStyles = (Array.isArray(boxPlotStyle) ? boxPlotStyle : [boxPlotStyle]) as BoxPlotStyle[]\n\n const customMap = boxPlotStyles.reduce<object>((result, style, index) => {\n const {\n boxColor,\n boxColorOpacity,\n boxBorderColor,\n boxBorderWidth = 1,\n boxVisible = true,\n boxBorderOpacity,\n medianBorderColor,\n whiskerBorderColor,\n boxCornerRadius,\n } = style\n\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n if (selector(datum, style.selector)) {\n return true\n }\n return false\n },\n style: {\n visible: boxVisible,\n fill: boxColor,\n fillOpacity: boxColorOpacity,\n lineWidth: boxBorderWidth,\n stroke: whiskerBorderColor,\n boxStroke: boxBorderColor,\n boxCornerRadius: boxCornerRadius,\n strokeOpacity: boxBorderOpacity,\n medianStroke: medianBorderColor ?? boxBorderColor,\n },\n },\n }\n }, {})\n\n result.boxPlot!.state = {\n ...result.boxPlot!.state,\n ...customMap,\n }\n\n return result\n}\n"],"names":["boxPlotStyle","spec","context","advancedVSeed","vseed","markStyle","config","theme","result","isNullish","isEmpty","boxPlotStyles","Array","customMap","style","index","boxColor","boxColorOpacity","boxBorderColor","boxBorderWidth","boxVisible","boxBorderOpacity","medianBorderColor","whiskerBorderColor","boxCornerRadius","datum","selector"],"mappings":";;AAKO,MAAMA,4BAA+B,CAACC,MAAMC;IACjD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAEC,MAAM,EAAE,GAAGH;IAC9B,MAAM,EAAEH,YAAY,EAAE,GAAGK;IACzB,MAAME,QAAQD,QAAQ,CAACF,MAAM,SAAS,CAAc,EAAE;IAEtD,MAAMI,SAAS;QACb,GAAGP,IAAI;QACP,SAAS;YACP,OAAO;gBACL,YAAY;gBACZ,SAAS;gBACT,YAAY;gBACZ,QAAQM,OAAO;gBACf,WAAWA,OAAO;gBAClB,iBAAiBA,OAAO;gBACxB,cAAcA,OAAO,qBAAqBA,OAAO;YACnD;QACF;IACF;IAEA,IAAIE,UAAUT,iBAAiBU,QAAQV,eACrC,OAAOQ;IAGT,MAAMG,gBAAiBC,MAAM,OAAO,CAACZ,gBAAgBA,eAAe;QAACA;KAAa;IAElF,MAAMa,YAAYF,cAAc,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC7D,MAAM,EACJC,QAAQ,EACRC,eAAe,EACfC,cAAc,EACdC,iBAAiB,CAAC,EAClBC,aAAa,IAAI,EACjBC,gBAAgB,EAChBC,iBAAiB,EACjBC,kBAAkB,EAClBC,eAAe,EAChB,GAAGV;QAEJ,OAAO;YACL,GAAGN,MAAM;YACT,CAAC,CAAC,MAAM,EAAEO,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACU;oBACP,IAAIC,SAASD,OAAOX,MAAM,QAAQ,GAChC,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASM;oBACT,MAAMJ;oBACN,aAAaC;oBACb,WAAWE;oBACX,QAAQI;oBACR,WAAWL;oBACX,iBAAiBM;oBACjB,eAAeH;oBACf,cAAcC,qBAAqBJ;gBACrC;YACF;QACF;IACF,GAAG,CAAC;IAEJV,OAAO,OAAO,CAAE,KAAK,GAAG;QACtB,GAAGA,OAAO,OAAO,CAAE,KAAK;QACxB,GAAGK,SAAS;IACd;IAEA,OAAOL;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.ts"],"sourcesContent":["import type { IBoxPlotChartSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { BoxPlotStyle, Datum, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const boxPlotStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { markStyle, config } = advancedVSeed\n const { boxPlotStyle } = markStyle\n const { chartType } = vseed\n const theme = config?.[chartType as 'boxPlot']?.boxPlotStyle\n\n const result = {\n ...spec,\n boxPlot: {\n style: {\n shaftShape: 'filled-line',\n visible: true,\n shaftWidth: '50%',\n stroke: theme?.whiskerBorderColor,\n boxStroke: theme?.boxBorderColor,\n boxCornerRadius: theme?.boxCornerRadius,\n medianStroke: theme?.medianBorderColor ?? theme?.boxBorderColor,\n },\n },\n } as IBoxPlotChartSpec\n\n if (isNullish(boxPlotStyle) || isEmpty(boxPlotStyle)) {\n return result\n }\n\n const boxPlotStyles = (Array.isArray(boxPlotStyle) ? boxPlotStyle : [boxPlotStyle]) as BoxPlotStyle[]\n\n const customMap = boxPlotStyles.reduce<object>((result, style, index) => {\n const {\n boxColor,\n boxColorOpacity,\n boxBorderColor,\n boxBorderWidth = 1,\n boxVisible = true,\n boxBorderOpacity,\n medianBorderColor,\n whiskerBorderColor,\n boxCornerRadius,\n } = style\n\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n if (selector(datum, style.selector)) {\n return true\n }\n return false\n },\n style: {\n visible: boxVisible,\n fill: boxColor,\n fillOpacity: boxColorOpacity,\n lineWidth: boxBorderWidth,\n stroke: whiskerBorderColor,\n boxStroke: boxBorderColor,\n boxCornerRadius: boxCornerRadius,\n strokeOpacity: boxBorderOpacity,\n medianStroke: medianBorderColor ?? boxBorderColor,\n },\n },\n }\n }, {})\n\n result.boxPlot!.state = {\n ...result.boxPlot!.state,\n ...customMap,\n }\n\n return result\n}\n"],"names":["boxPlotStyle","spec","context","advancedVSeed","vseed","markStyle","config","chartType","theme","result","isNullish","isEmpty","boxPlotStyles","Array","customMap","style","index","boxColor","boxColorOpacity","boxBorderColor","boxBorderWidth","boxVisible","boxBorderOpacity","medianBorderColor","whiskerBorderColor","boxCornerRadius","datum","selector"],"mappings":";;AAKO,MAAMA,4BAA+B,CAACC,MAAMC;IACjD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAEC,MAAM,EAAE,GAAGH;IAC9B,MAAM,EAAEH,YAAY,EAAE,GAAGK;IACzB,MAAM,EAAEE,SAAS,EAAE,GAAGH;IACtB,MAAMI,QAAQF,QAAQ,CAACC,UAAuB,EAAE;IAEhD,MAAME,SAAS;QACb,GAAGR,IAAI;QACP,SAAS;YACP,OAAO;gBACL,YAAY;gBACZ,SAAS;gBACT,YAAY;gBACZ,QAAQO,OAAO;gBACf,WAAWA,OAAO;gBAClB,iBAAiBA,OAAO;gBACxB,cAAcA,OAAO,qBAAqBA,OAAO;YACnD;QACF;IACF;IAEA,IAAIE,UAAUV,iBAAiBW,QAAQX,eACrC,OAAOS;IAGT,MAAMG,gBAAiBC,MAAM,OAAO,CAACb,gBAAgBA,eAAe;QAACA;KAAa;IAElF,MAAMc,YAAYF,cAAc,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC7D,MAAM,EACJC,QAAQ,EACRC,eAAe,EACfC,cAAc,EACdC,iBAAiB,CAAC,EAClBC,aAAa,IAAI,EACjBC,gBAAgB,EAChBC,iBAAiB,EACjBC,kBAAkB,EAClBC,eAAe,EAChB,GAAGV;QAEJ,OAAO;YACL,GAAGN,MAAM;YACT,CAAC,CAAC,MAAM,EAAEO,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACU;oBACP,IAAIC,SAASD,OAAOX,MAAM,QAAQ,GAChC,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASM;oBACT,MAAMJ;oBACN,aAAaC;oBACb,WAAWE;oBACX,QAAQI;oBACR,WAAWL;oBACX,iBAAiBM;oBACjB,eAAeH;oBACf,cAAcC,qBAAqBJ;gBACrC;YACF;QACF;IACF,GAAG,CAAC;IAEJV,OAAO,OAAO,CAAE,KAAK,GAAG;QACtB,GAAGA,OAAO,OAAO,CAAE,KAAK;QACxB,GAAGK,SAAS;IACd;IAEA,OAAOL;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/cellStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/cellStyle.ts"],"sourcesContent":["import { DATUM_HIDE_KEY } from 'src/pipeline/utils/constant'\nimport type { VChartSpecPipe } from 'src/types'\nimport { isLinearColor } from '../color/colorAdapter'\n\nexport const cellStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n const cell = advancedVSeed.config?.[chartType as 'heatmap']?.cell\n const { datasetReshapeInfo } = advancedVSeed\n const { unfoldInfo } = datasetReshapeInfo[0]\n\n return {\n ...spec,\n cell: {\n style: {\n visible: (datum: any) => {\n return datum?.[DATUM_HIDE_KEY] !== true\n },\n shape: 'rect',\n stroke: cell?.stroke,\n lineWidth: cell?.lineWidth ?? 1,\n fill: {\n field: isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingColor : unfoldInfo.encodingColorId,\n scale: 'color',\n },\n },\n state: {\n hover: {\n // innerBorder: {\n // lineWidth: 1,\n // stroke: cell?.hoverShadowColor,\n // distance: 1,\n // },\n shadowColor: cell?.hoverShadowColor,\n shadowBlur: 5,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n },\n },\n },\n }\n}\n"],"names":["cellStyle","spec","context","advancedVSeed","vseed","chartType","cell","datasetReshapeInfo","unfoldInfo","datum","DATUM_HIDE_KEY","isLinearColor"],"mappings":";;AAIO,MAAMA,YAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAE,GAAGD;IACtB,MAAME,OAAOH,cAAc,MAAM,EAAE,CAACE,UAAuB,EAAE;IAC7D,MAAM,EAAEE,kBAAkB,EAAE,GAAGJ;IAC/B,MAAM,EAAEK,UAAU,EAAE,GAAGD,kBAAkB,CAAC,EAAE;IAE5C,OAAO;QACL,GAAGN,IAAI;QACP,MAAM;YACJ,OAAO;gBACL,SAAS,CAACQ,QACDA,OAAO,CAACC,eAAe,KAAK;gBAErC,OAAO;gBACP,QAAQJ,MAAM;gBACd,WAAWA,MAAM,aAAa;gBAC9B,MAAM;oBACJ,OAAOK,cAAcR,eAAeC,SAASI,WAAW,aAAa,GAAGA,WAAW,eAAe;oBAClG,OAAO;gBACT;YACF;YACA,OAAO;gBACL,OAAO;oBAML,aAAaF,MAAM;oBACnB,YAAY;oBACZ,eAAe;oBACf,eAAe;gBACjB;YACF;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/cellStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/cellStyle.ts"],"sourcesContent":["import { DATUM_HIDE_KEY } from 'src/pipeline/utils/constant'\nimport type { VChartSpecPipe } from 'src/types'\nimport { isLinearColor } from '../color/colorAdapter'\n\nexport const cellStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n const cell = advancedVSeed.config?.[chartType as 'heatmap']?.cell\n const { datasetReshapeInfo } = advancedVSeed\n const { unfoldInfo } = datasetReshapeInfo[0]\n\n return {\n ...spec,\n cell: {\n style: {\n visible: (datum: any) => {\n return datum?.[DATUM_HIDE_KEY] !== true\n },\n shape: 'rect',\n stroke: cell?.stroke,\n lineWidth: cell?.lineWidth ?? 1,\n fill: {\n field: isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingColor : unfoldInfo.encodingColorId,\n scale: 'color',\n },\n },\n state: {\n hover: {\n shadowColor: cell?.hoverShadowColor,\n shadowBlur: 5,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n },\n },\n },\n }\n}\n"],"names":["cellStyle","spec","context","advancedVSeed","vseed","chartType","cell","datasetReshapeInfo","unfoldInfo","datum","DATUM_HIDE_KEY","isLinearColor"],"mappings":";;AAIO,MAAMA,YAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAE,GAAGD;IACtB,MAAME,OAAOH,cAAc,MAAM,EAAE,CAACE,UAAuB,EAAE;IAC7D,MAAM,EAAEE,kBAAkB,EAAE,GAAGJ;IAC/B,MAAM,EAAEK,UAAU,EAAE,GAAGD,kBAAkB,CAAC,EAAE;IAE5C,OAAO;QACL,GAAGN,IAAI;QACP,MAAM;YACJ,OAAO;gBACL,SAAS,CAACQ,QACDA,OAAO,CAACC,eAAe,KAAK;gBAErC,OAAO;gBACP,QAAQJ,MAAM;gBACd,WAAWA,MAAM,aAAa;gBAC9B,MAAM;oBACJ,OAAOK,cAAcR,eAAeC,SAASI,WAAW,aAAa,GAAGA,WAAW,eAAe;oBAClG,OAAO;gBACT;YACF;YACA,OAAO;gBACL,OAAO;oBACL,aAAaF,MAAM;oBACnB,YAAY;oBACZ,eAAe;oBACf,eAAe;gBACjB;YACF;QACF;IACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.ts"],"sourcesContent":["import type { VChartSpecPipe } from 'src/types'\n\nexport const funnelTransformStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n const config = advancedVSeed.config?.[chartType as 'funnel']?.transform\n\n return {\n ...spec,\n transform: {\n style: {\n fill: config?.backgroundColor,\n },\n },\n transformLabel: {\n visible: true,\n style: {\n fill: config?.textColor,\n },\n },\n }\n}\n"],"names":["funnelTransformStyle","spec","context","advancedVSeed","vseed","chartType","config"],"mappings":"AAEO,MAAMA,uBAAuC,CAACC,MAAMC;IACzD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAE,GAAGD;IACtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAsB,EAAE;IAE9D,OAAO;QACL,GAAGJ,IAAI;QACP,WAAW;YACT,OAAO;gBACL,MAAMK,QAAQ;YAChB;QACF;QACA,gBAAgB;YACd,SAAS;YACT,OAAO;gBACL,MAAMA,QAAQ;YAChB;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.ts"],"sourcesContent":["import type { VChartSpecPipe } from 'src/types'\nexport const funnelTransformStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n const config = advancedVSeed.config?.[chartType as 'funnel']?.transform\n return {\n ...spec,\n transform: {\n style: {\n fill: config?.backgroundColor,\n },\n },\n transformLabel: {\n visible: true,\n style: {\n fill: config?.textColor,\n },\n },\n }\n}\n"],"names":["funnelTransformStyle","spec","context","advancedVSeed","vseed","chartType","config"],"mappings":"AACO,MAAMA,uBAAuC,CAACC,MAAMC;IACzD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAE,GAAGD;IACtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAsB,EAAE;IAC9D,OAAO;QACL,GAAGJ,IAAI;QACP,WAAW;YACT,OAAO;gBACL,MAAMK,QAAQ;YAChB;QACF;QACA,gBAAgB;YACd,SAAS;YACT,OAAO;gBACL,MAAMA,QAAQ;YAChB;QACF;IACF;AACF"}
@@ -4,7 +4,8 @@ const outlierStyle_outlierStyle = (spec, context)=>{
4
4
  const { advancedVSeed, vseed } = context;
5
5
  const { markStyle, config } = advancedVSeed;
6
6
  const { outlierStyle } = markStyle;
7
- const theme = config?.[vseed.chartType]?.outlierStyle;
7
+ const { chartType } = vseed;
8
+ const theme = config?.[chartType]?.outlierStyle;
8
9
  const result = {
9
10
  ...spec,
10
11
  outlier: {
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/outlierStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/outlierStyle.ts"],"sourcesContent":["import type { IBoxPlotChartSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { Datum, OutlierStyle, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const outlierStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { markStyle, config } = advancedVSeed\n const { outlierStyle } = markStyle\n const theme = config?.[vseed.chartType as 'boxPlot']?.outlierStyle\n const result = {\n ...spec,\n outlier: {\n style: {\n // stroke: theme?.pointColor,\n fill: theme?.pointColor,\n lineWidth: theme?.pointBorderWidth,\n stroke: theme?.pointBorderColor,\n },\n },\n } as IBoxPlotChartSpec\n\n if (isNullish(outlierStyle) || isEmpty(outlierStyle)) {\n return result\n }\n\n const outlierStyles = (Array.isArray(outlierStyle) ? outlierStyle : [outlierStyle]) as OutlierStyle[]\n\n const customMap = outlierStyles.reduce<object>((result, style, index) => {\n const {\n pointBorderColor,\n pointBorderStyle,\n pointBorderWidth = 1,\n pointColor,\n pointColorOpacity,\n pointSize,\n pointVisible = true,\n } = style\n\n const lineDash = pointBorderStyle === 'dashed' ? [5, 2] : pointBorderStyle === 'dotted' ? [2, 5] : [0, 0]\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n if (selector(datum, style.selector)) {\n return true\n }\n return false\n },\n style: {\n visible: pointVisible,\n size: pointSize,\n fill: pointColor,\n fillOpacity: pointColorOpacity,\n stroke: pointBorderColor,\n lineWidth: pointBorderWidth,\n lineDash: lineDash,\n },\n },\n }\n }, {})\n\n return {\n ...result,\n outlier: {\n ...result.outlier,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["outlierStyle","spec","context","advancedVSeed","vseed","markStyle","config","theme","result","isNullish","isEmpty","outlierStyles","Array","customMap","style","index","pointBorderColor","pointBorderStyle","pointBorderWidth","pointColor","pointColorOpacity","pointSize","pointVisible","lineDash","datum","selector"],"mappings":";;AAKO,MAAMA,4BAA+B,CAACC,MAAMC;IACjD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAEC,MAAM,EAAE,GAAGH;IAC9B,MAAM,EAAEH,YAAY,EAAE,GAAGK;IACzB,MAAME,QAAQD,QAAQ,CAACF,MAAM,SAAS,CAAc,EAAE;IACtD,MAAMI,SAAS;QACb,GAAGP,IAAI;QACP,SAAS;YACP,OAAO;gBAEL,MAAMM,OAAO;gBACb,WAAWA,OAAO;gBAClB,QAAQA,OAAO;YACjB;QACF;IACF;IAEA,IAAIE,UAAUT,iBAAiBU,QAAQV,eACrC,OAAOQ;IAGT,MAAMG,gBAAiBC,MAAM,OAAO,CAACZ,gBAAgBA,eAAe;QAACA;KAAa;IAElF,MAAMa,YAAYF,cAAc,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC7D,MAAM,EACJC,gBAAgB,EAChBC,gBAAgB,EAChBC,mBAAmB,CAAC,EACpBC,UAAU,EACVC,iBAAiB,EACjBC,SAAS,EACTC,eAAe,IAAI,EACpB,GAAGR;QAEJ,MAAMS,WAAWN,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAGA,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAG;YAAC;YAAG;SAAE;QACzG,OAAO;YACL,GAAGT,MAAM;YACT,CAAC,CAAC,MAAM,EAAEO,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACS;oBACP,IAAIC,SAASD,OAAOV,MAAM,QAAQ,GAChC,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASQ;oBACT,MAAMD;oBACN,MAAMF;oBACN,aAAaC;oBACb,QAAQJ;oBACR,WAAWE;oBACX,UAAUK;gBACZ;YACF;QACF;IACF,GAAG,CAAC;IAEJ,OAAO;QACL,GAAGf,MAAM;QACT,SAAS;YACP,GAAGA,OAAO,OAAO;YACjB,OAAO;gBACL,GAAGK,SAAS;YACd;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/outlierStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/outlierStyle.ts"],"sourcesContent":["import type { IBoxPlotChartSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { Datum, OutlierStyle, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const outlierStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { markStyle, config } = advancedVSeed\n const { outlierStyle } = markStyle\n const { chartType } = vseed\n const theme = config?.[chartType as 'boxPlot']?.outlierStyle\n\n const result = {\n ...spec,\n outlier: {\n style: {\n fill: theme?.pointColor,\n lineWidth: theme?.pointBorderWidth,\n stroke: theme?.pointBorderColor,\n },\n },\n } as IBoxPlotChartSpec\n\n if (isNullish(outlierStyle) || isEmpty(outlierStyle)) {\n return result\n }\n\n const outlierStyles = (Array.isArray(outlierStyle) ? outlierStyle : [outlierStyle]) as OutlierStyle[]\n\n const customMap = outlierStyles.reduce<object>((result, style, index) => {\n const {\n pointBorderColor,\n pointBorderStyle,\n pointBorderWidth = 1,\n pointColor,\n pointColorOpacity,\n pointSize,\n pointVisible = true,\n } = style\n\n const lineDash = pointBorderStyle === 'dashed' ? [5, 2] : pointBorderStyle === 'dotted' ? [2, 5] : [0, 0]\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n if (selector(datum, style.selector)) {\n return true\n }\n return false\n },\n style: {\n visible: pointVisible,\n size: pointSize,\n fill: pointColor,\n fillOpacity: pointColorOpacity,\n stroke: pointBorderColor,\n lineWidth: pointBorderWidth,\n lineDash: lineDash,\n },\n },\n }\n }, {})\n\n return {\n ...result,\n outlier: {\n ...result.outlier,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["outlierStyle","spec","context","advancedVSeed","vseed","markStyle","config","chartType","theme","result","isNullish","isEmpty","outlierStyles","Array","customMap","style","index","pointBorderColor","pointBorderStyle","pointBorderWidth","pointColor","pointColorOpacity","pointSize","pointVisible","lineDash","datum","selector"],"mappings":";;AAKO,MAAMA,4BAA+B,CAACC,MAAMC;IACjD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAEC,MAAM,EAAE,GAAGH;IAC9B,MAAM,EAAEH,YAAY,EAAE,GAAGK;IACzB,MAAM,EAAEE,SAAS,EAAE,GAAGH;IACtB,MAAMI,QAAQF,QAAQ,CAACC,UAAuB,EAAE;IAEhD,MAAME,SAAS;QACb,GAAGR,IAAI;QACP,SAAS;YACP,OAAO;gBACL,MAAMO,OAAO;gBACb,WAAWA,OAAO;gBAClB,QAAQA,OAAO;YACjB;QACF;IACF;IAEA,IAAIE,UAAUV,iBAAiBW,QAAQX,eACrC,OAAOS;IAGT,MAAMG,gBAAiBC,MAAM,OAAO,CAACb,gBAAgBA,eAAe;QAACA;KAAa;IAElF,MAAMc,YAAYF,cAAc,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC7D,MAAM,EACJC,gBAAgB,EAChBC,gBAAgB,EAChBC,mBAAmB,CAAC,EACpBC,UAAU,EACVC,iBAAiB,EACjBC,SAAS,EACTC,eAAe,IAAI,EACpB,GAAGR;QAEJ,MAAMS,WAAWN,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAGA,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAG;YAAC;YAAG;SAAE;QACzG,OAAO;YACL,GAAGT,MAAM;YACT,CAAC,CAAC,MAAM,EAAEO,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACS;oBACP,IAAIC,SAASD,OAAOV,MAAM,QAAQ,GAChC,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASQ;oBACT,MAAMD;oBACN,MAAMF;oBACN,aAAaC;oBACb,QAAQJ;oBACR,WAAWE;oBACX,UAAUK;gBACZ;YACF;QACF;IACF,GAAG,CAAC;IAEJ,OAAO;QACL,GAAGf,MAAM;QACT,SAAS;YACP,GAAGA,OAAO,OAAO;YACjB,OAAO;gBACL,GAAGK,SAAS;YACd;QACF;IACF;AACF"}
@@ -22,7 +22,10 @@ const initPivotTable = (spec, context)=>{
22
22
  highlightMode: 'cross'
23
23
  },
24
24
  tooltip: {
25
- isShowOverflowTextTooltip: true
25
+ isShowOverflowTextTooltip: true,
26
+ renderMode: 'html',
27
+ confine: false,
28
+ parentElement: document.body
26
29
  },
27
30
  corner: {
28
31
  titleOnDimension: 'all'
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/init/pivotTable.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/init/pivotTable.ts"],"sourcesContent":["import type { PivotTableConstructorOptions } from '@visactor/vtable'\nimport type { PivotTableSpecPipe } from 'src/types'\n\nexport const initPivotTable: PivotTableSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { dataset } = advancedVSeed\n const { config } = advancedVSeed\n const { backgroundColor = 'transparent' } = config.pivotTable || {}\n return {\n ...spec,\n records: dataset,\n widthMode: 'standard',\n defaultHeaderColWidth: 'auto',\n heightMode: 'autoHeight',\n autoWrapText: true,\n columnResizeMode: 'all',\n columnResizeType: 'column',\n showColumnHeader: true,\n showRowHeader: true,\n select: {\n highlightMode: 'cell',\n headerSelectMode: 'inline',\n },\n hover: {\n highlightMode: 'cross',\n },\n tooltip: {\n isShowOverflowTextTooltip: true,\n },\n corner: {\n titleOnDimension: 'all',\n },\n widthAdaptiveMode: 'all',\n animationAppear: {\n duration: 300,\n delay: 250,\n type: 'one-by-one',\n direction: 'row',\n },\n theme: {\n cellInnerBorder: false,\n underlayBackgroundColor: backgroundColor,\n },\n } as PivotTableConstructorOptions\n}\n"],"names":["initPivotTable","spec","context","advancedVSeed","dataset","config","backgroundColor"],"mappings":"AAGO,MAAMA,iBAAqC,CAACC,MAAMC;IACvD,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,OAAO,EAAE,GAAGD;IACpB,MAAM,EAAEE,MAAM,EAAE,GAAGF;IACnB,MAAM,EAAEG,kBAAkB,aAAa,EAAE,GAAGD,OAAO,UAAU,IAAI,CAAC;IAClE,OAAO;QACL,GAAGJ,IAAI;QACP,SAASG;QACT,WAAW;QACX,uBAAuB;QACvB,YAAY;QACZ,cAAc;QACd,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,eAAe;QACf,QAAQ;YACN,eAAe;YACf,kBAAkB;QACpB;QACA,OAAO;YACL,eAAe;QACjB;QACA,SAAS;YACP,2BAA2B;QAC7B;QACA,QAAQ;YACN,kBAAkB;QACpB;QACA,mBAAmB;QACnB,iBAAiB;YACf,UAAU;YACV,OAAO;YACP,MAAM;YACN,WAAW;QACb;QACA,OAAO;YACL,iBAAiB;YACjB,yBAAyBE;QAC3B;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/init/pivotTable.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/init/pivotTable.ts"],"sourcesContent":["import type { PivotTableConstructorOptions } from '@visactor/vtable'\nimport type { PivotTableSpecPipe } from 'src/types'\n\nexport const initPivotTable: PivotTableSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { dataset } = advancedVSeed\n const { config } = advancedVSeed\n const { backgroundColor = 'transparent' } = config.pivotTable || {}\n return {\n ...spec,\n records: dataset,\n widthMode: 'standard',\n defaultHeaderColWidth: 'auto',\n heightMode: 'autoHeight',\n autoWrapText: true,\n columnResizeMode: 'all',\n columnResizeType: 'column',\n showColumnHeader: true,\n showRowHeader: true,\n select: {\n highlightMode: 'cell',\n headerSelectMode: 'inline',\n },\n hover: {\n highlightMode: 'cross',\n },\n tooltip: {\n isShowOverflowTextTooltip: true,\n renderMode: 'html',\n confine: false,\n parentElement: document.body,\n },\n corner: {\n titleOnDimension: 'all',\n },\n widthAdaptiveMode: 'all',\n animationAppear: {\n duration: 300,\n delay: 250,\n type: 'one-by-one',\n direction: 'row',\n },\n theme: {\n cellInnerBorder: false,\n underlayBackgroundColor: backgroundColor,\n },\n } as PivotTableConstructorOptions\n}\n"],"names":["initPivotTable","spec","context","advancedVSeed","dataset","config","backgroundColor","document"],"mappings":"AAGO,MAAMA,iBAAqC,CAACC,MAAMC;IACvD,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,OAAO,EAAE,GAAGD;IACpB,MAAM,EAAEE,MAAM,EAAE,GAAGF;IACnB,MAAM,EAAEG,kBAAkB,aAAa,EAAE,GAAGD,OAAO,UAAU,IAAI,CAAC;IAClE,OAAO;QACL,GAAGJ,IAAI;QACP,SAASG;QACT,WAAW;QACX,uBAAuB;QACvB,YAAY;QACZ,cAAc;QACd,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,eAAe;QACf,QAAQ;YACN,eAAe;YACf,kBAAkB;QACpB;QACA,OAAO;YACL,eAAe;QACjB;QACA,SAAS;YACP,2BAA2B;YAC3B,YAAY;YACZ,SAAS;YACT,eAAeG,SAAS,IAAI;QAC9B;QACA,QAAQ;YACN,kBAAkB;QACpB;QACA,mBAAmB;QACnB,iBAAiB;YACf,UAAU;YACV,OAAO;YACP,MAAM;YACN,WAAW;QACb;QACA,OAAO;YACL,iBAAiB;YACjB,yBAAyBD;QAC3B;IACF;AACF"}
@@ -13,7 +13,10 @@ const initTable = (spec, context)=>{
13
13
  columnResizeMode: 'all',
14
14
  showHeader: true,
15
15
  tooltip: {
16
- isShowOverflowTextTooltip: true
16
+ isShowOverflowTextTooltip: true,
17
+ renderMode: 'html',
18
+ confine: false,
19
+ parentElement: document.body
17
20
  },
18
21
  animationAppear: {
19
22
  duration: 300,
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/init/table.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/init/table.ts"],"sourcesContent":["import type { ListTableConstructorOptions } from '@visactor/vtable'\nimport type { ListTableSpecPipe } from 'src/types'\n\nexport const initTable: ListTableSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { dataset } = advancedVSeed\n const { config } = advancedVSeed\n const { backgroundColor = 'transparent' } = config.table || {}\n\n return {\n ...spec,\n records: dataset,\n widthMode: 'standard',\n defaultHeaderColWidth: 'auto',\n heightMode: 'autoHeight',\n autoWrapText: true,\n columnResizeMode: 'all',\n showHeader: true,\n tooltip: {\n isShowOverflowTextTooltip: true,\n },\n animationAppear: {\n duration: 300,\n delay: 250,\n type: 'one-by-one',\n direction: 'row',\n },\n hover: {\n highlightMode: 'row',\n },\n theme: {\n cellInnerBorder: false,\n underlayBackgroundColor: backgroundColor,\n },\n } as ListTableConstructorOptions\n}\n"],"names":["initTable","spec","context","advancedVSeed","dataset","config","backgroundColor"],"mappings":"AAGO,MAAMA,YAA+B,CAACC,MAAMC;IACjD,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,OAAO,EAAE,GAAGD;IACpB,MAAM,EAAEE,MAAM,EAAE,GAAGF;IACnB,MAAM,EAAEG,kBAAkB,aAAa,EAAE,GAAGD,OAAO,KAAK,IAAI,CAAC;IAE7D,OAAO;QACL,GAAGJ,IAAI;QACP,SAASG;QACT,WAAW;QACX,uBAAuB;QACvB,YAAY;QACZ,cAAc;QACd,kBAAkB;QAClB,YAAY;QACZ,SAAS;YACP,2BAA2B;QAC7B;QACA,iBAAiB;YACf,UAAU;YACV,OAAO;YACP,MAAM;YACN,WAAW;QACb;QACA,OAAO;YACL,eAAe;QACjB;QACA,OAAO;YACL,iBAAiB;YACjB,yBAAyBE;QAC3B;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/init/table.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/init/table.ts"],"sourcesContent":["import type { ListTableConstructorOptions } from '@visactor/vtable'\nimport type { ListTableSpecPipe } from 'src/types'\n\nexport const initTable: ListTableSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { dataset } = advancedVSeed\n const { config } = advancedVSeed\n const { backgroundColor = 'transparent' } = config.table || {}\n\n return {\n ...spec,\n records: dataset,\n widthMode: 'standard',\n defaultHeaderColWidth: 'auto',\n heightMode: 'autoHeight',\n autoWrapText: true,\n columnResizeMode: 'all',\n showHeader: true,\n tooltip: {\n isShowOverflowTextTooltip: true,\n renderMode: 'html',\n confine: false,\n parentElement: document.body,\n },\n animationAppear: {\n duration: 300,\n delay: 250,\n type: 'one-by-one',\n direction: 'row',\n },\n hover: {\n highlightMode: 'row',\n },\n theme: {\n cellInnerBorder: false,\n underlayBackgroundColor: backgroundColor,\n },\n } as ListTableConstructorOptions\n}\n"],"names":["initTable","spec","context","advancedVSeed","dataset","config","backgroundColor","document"],"mappings":"AAGO,MAAMA,YAA+B,CAACC,MAAMC;IACjD,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,OAAO,EAAE,GAAGD;IACpB,MAAM,EAAEE,MAAM,EAAE,GAAGF;IACnB,MAAM,EAAEG,kBAAkB,aAAa,EAAE,GAAGD,OAAO,KAAK,IAAI,CAAC;IAE7D,OAAO;QACL,GAAGJ,IAAI;QACP,SAASG;QACT,WAAW;QACX,uBAAuB;QACvB,YAAY;QACZ,cAAc;QACd,kBAAkB;QAClB,YAAY;QACZ,SAAS;YACP,2BAA2B;YAC3B,YAAY;YACZ,SAAS;YACT,eAAeG,SAAS,IAAI;QAC9B;QACA,iBAAiB;YACf,UAAU;YACV,OAAO;YACP,MAAM;YACN,WAAW;QACb;QACA,OAAO;YACL,eAAe;QACjB;QACA,OAAO;YACL,iBAAiB;YACjB,yBAAyBD;QAC3B;IACF;AACF"}
@@ -330,7 +330,27 @@ export declare const zArea: z.ZodObject<{
330
330
  }, z.core.$strip>>>;
331
331
  brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
332
  enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ brushType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
334
+ x: "x";
335
+ y: "y";
336
+ rect: "rect";
337
+ polygon: "polygon";
338
+ }>>>;
339
+ brushMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
340
+ single: "single";
341
+ multiple: "multiple";
342
+ }>>>;
333
343
  removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
344
+ inBrushStyle: z.ZodOptional<z.ZodObject<{
345
+ opacity: z.ZodOptional<z.ZodNumber>;
346
+ stroke: z.ZodOptional<z.ZodString>;
347
+ lineWidth: z.ZodOptional<z.ZodNumber>;
348
+ }, z.core.$strip>>;
349
+ outOfBrushStyle: z.ZodOptional<z.ZodObject<{
350
+ opacity: z.ZodOptional<z.ZodNumber>;
351
+ stroke: z.ZodOptional<z.ZodString>;
352
+ lineWidth: z.ZodOptional<z.ZodNumber>;
353
+ }, z.core.$strip>>;
334
354
  }, z.core.$strip>>>;
335
355
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
336
356
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -330,7 +330,27 @@ export declare const zAreaPercent: z.ZodObject<{
330
330
  }, z.core.$strip>>>;
331
331
  brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
332
  enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ brushType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
334
+ x: "x";
335
+ y: "y";
336
+ rect: "rect";
337
+ polygon: "polygon";
338
+ }>>>;
339
+ brushMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
340
+ single: "single";
341
+ multiple: "multiple";
342
+ }>>>;
333
343
  removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
344
+ inBrushStyle: z.ZodOptional<z.ZodObject<{
345
+ opacity: z.ZodOptional<z.ZodNumber>;
346
+ stroke: z.ZodOptional<z.ZodString>;
347
+ lineWidth: z.ZodOptional<z.ZodNumber>;
348
+ }, z.core.$strip>>;
349
+ outOfBrushStyle: z.ZodOptional<z.ZodObject<{
350
+ opacity: z.ZodOptional<z.ZodNumber>;
351
+ stroke: z.ZodOptional<z.ZodString>;
352
+ lineWidth: z.ZodOptional<z.ZodNumber>;
353
+ }, z.core.$strip>>;
334
354
  }, z.core.$strip>>>;
335
355
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
336
356
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -330,7 +330,27 @@ export declare const zBar: z.ZodObject<{
330
330
  }, z.core.$strip>>>;
331
331
  brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
332
  enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ brushType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
334
+ x: "x";
335
+ y: "y";
336
+ rect: "rect";
337
+ polygon: "polygon";
338
+ }>>>;
339
+ brushMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
340
+ single: "single";
341
+ multiple: "multiple";
342
+ }>>>;
333
343
  removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
344
+ inBrushStyle: z.ZodOptional<z.ZodObject<{
345
+ opacity: z.ZodOptional<z.ZodNumber>;
346
+ stroke: z.ZodOptional<z.ZodString>;
347
+ lineWidth: z.ZodOptional<z.ZodNumber>;
348
+ }, z.core.$strip>>;
349
+ outOfBrushStyle: z.ZodOptional<z.ZodObject<{
350
+ opacity: z.ZodOptional<z.ZodNumber>;
351
+ stroke: z.ZodOptional<z.ZodString>;
352
+ lineWidth: z.ZodOptional<z.ZodNumber>;
353
+ }, z.core.$strip>>;
334
354
  }, z.core.$strip>>>;
335
355
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
336
356
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -330,7 +330,27 @@ export declare const zBarParallel: z.ZodObject<{
330
330
  }, z.core.$strip>>>;
331
331
  brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
332
  enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ brushType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
334
+ x: "x";
335
+ y: "y";
336
+ rect: "rect";
337
+ polygon: "polygon";
338
+ }>>>;
339
+ brushMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
340
+ single: "single";
341
+ multiple: "multiple";
342
+ }>>>;
333
343
  removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
344
+ inBrushStyle: z.ZodOptional<z.ZodObject<{
345
+ opacity: z.ZodOptional<z.ZodNumber>;
346
+ stroke: z.ZodOptional<z.ZodString>;
347
+ lineWidth: z.ZodOptional<z.ZodNumber>;
348
+ }, z.core.$strip>>;
349
+ outOfBrushStyle: z.ZodOptional<z.ZodObject<{
350
+ opacity: z.ZodOptional<z.ZodNumber>;
351
+ stroke: z.ZodOptional<z.ZodString>;
352
+ lineWidth: z.ZodOptional<z.ZodNumber>;
353
+ }, z.core.$strip>>;
334
354
  }, z.core.$strip>>>;
335
355
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
336
356
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -330,7 +330,27 @@ export declare const zBarPercent: z.ZodObject<{
330
330
  }, z.core.$strip>>>;
331
331
  brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
332
  enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ brushType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
334
+ x: "x";
335
+ y: "y";
336
+ rect: "rect";
337
+ polygon: "polygon";
338
+ }>>>;
339
+ brushMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
340
+ single: "single";
341
+ multiple: "multiple";
342
+ }>>>;
333
343
  removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
344
+ inBrushStyle: z.ZodOptional<z.ZodObject<{
345
+ opacity: z.ZodOptional<z.ZodNumber>;
346
+ stroke: z.ZodOptional<z.ZodString>;
347
+ lineWidth: z.ZodOptional<z.ZodNumber>;
348
+ }, z.core.$strip>>;
349
+ outOfBrushStyle: z.ZodOptional<z.ZodObject<{
350
+ opacity: z.ZodOptional<z.ZodNumber>;
351
+ stroke: z.ZodOptional<z.ZodString>;
352
+ lineWidth: z.ZodOptional<z.ZodNumber>;
353
+ }, z.core.$strip>>;
334
354
  }, z.core.$strip>>>;
335
355
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
336
356
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;