@visactor/vseed 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/register/all.js +3 -1
- package/dist/esm/builder/register/all.js.map +1 -1
- package/dist/esm/builder/register/chartType/hierarchySankey.d.ts +4 -0
- package/dist/esm/builder/register/chartType/hierarchySankey.js +9 -0
- package/dist/esm/builder/register/chartType/hierarchySankey.js.map +1 -0
- package/dist/esm/builder/register/chartType/index.d.ts +2 -0
- package/dist/esm/builder/register/chartType/index.js +2 -0
- package/dist/esm/builder/register/chartType/sankey.d.ts +1 -0
- package/dist/esm/builder/register/chartType/sankey.js +9 -0
- package/dist/esm/builder/register/chartType/sankey.js.map +1 -0
- package/dist/esm/dataReshape/constant.d.ts +2 -0
- package/dist/esm/dataReshape/constant.js +3 -1
- package/dist/esm/dataReshape/constant.js.map +1 -1
- package/dist/esm/dataReshape/unfoldDimensions.js +8 -2
- package/dist/esm/dataReshape/unfoldDimensions.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/hierarchySankey.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/hierarchySankey.js +33 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/hierarchySankey.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/index.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/index.js +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/sankey.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/sankey.js +33 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/sankey.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/hierarchySankey.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/hierarchySankey.js +27 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/hierarchySankey.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/index.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/index.js +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/index.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/sankey.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/sankey.js +27 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/sankey.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.d.ts +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.js +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/sankey.d.ts +3 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/sankey.js +83 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/sankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/hierarchySankey.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/hierarchySankey.js +39 -0
- package/dist/esm/pipeline/spec/chart/pipeline/hierarchySankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipeline/index.js +2 -0
- package/dist/esm/pipeline/spec/chart/pipeline/sankey.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/sankey.js +39 -0
- package/dist/esm/pipeline/spec/chart/pipeline/sankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHierarchy.js +5 -2
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHierarchy.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHierarchySankey.d.ts +4 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHierarchySankey.js +136 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHierarchySankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotHierarchy.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotHierarchy.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotHierarchy.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotHierarchySankey.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotHierarchySankey.js +44 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotHierarchySankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotSankey.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotSankey.js +50 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotSankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetSankey.d.ts +16 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetSankey.js +97 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetSankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/index.d.ts +4 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/index.js +4 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/circlePacking.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/circlePacking.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/hierarchySankey.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/hierarchySankey.js +32 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/hierarchySankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/index.js +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/sankey.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/sankey.js +33 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/sankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/sunburst.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/sunburst.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/treeMap.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/treeMap.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/index.js +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelHierarchySankey.d.ts +17 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelHierarchySankey.js +92 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelHierarchySankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelSankey.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelSankey.js +78 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelSankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapLeaf.js +4 -4
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapLeaf.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/index.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/sankeyInteractive.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/sankeyInteractive.js +33 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/sankeyInteractive.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.js +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHierarchySankey.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHierarchySankey.js +150 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHierarchySankey.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipSankey.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipSankey.js +75 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipSankey.js.map +1 -0
- package/dist/esm/pipeline/utils/chatType.d.ts +2 -0
- package/dist/esm/pipeline/utils/chatType.js +3 -1
- package/dist/esm/pipeline/utils/chatType.js.map +1 -1
- package/dist/esm/pipeline/utils/constant.d.ts +2 -0
- package/dist/esm/pipeline/utils/constant.js +2 -0
- package/dist/esm/pipeline/utils/constant.js.map +1 -1
- package/dist/esm/pipeline/utils/measures/typeGuard.js +1 -1
- package/dist/esm/pipeline/utils/measures/typeGuard.js.map +1 -1
- package/dist/esm/theme/dark/dark.js +3 -1
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/dark/hierarchy.d.ts +132 -0
- package/dist/esm/theme/dark/hierarchy.js +3 -1
- package/dist/esm/theme/dark/hierarchy.js.map +1 -1
- package/dist/esm/theme/light/hierarchy.d.ts +132 -0
- package/dist/esm/theme/light/hierarchy.js +3 -1
- package/dist/esm/theme/light/hierarchy.js.map +1 -1
- package/dist/esm/theme/light/light.js +3 -1
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/chartType/area/zArea.d.ts +4 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +4 -0
- package/dist/esm/types/chartType/bar/zBar.d.ts +4 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +4 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +4 -0
- package/dist/esm/types/chartType/boxPlot/zBoxPlot.d.ts +4 -0
- package/dist/esm/types/chartType/circlePacking/zCirclePacking.d.ts +2 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +4 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +4 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +4 -0
- package/dist/esm/types/chartType/donut/zDonut.d.ts +4 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +2 -0
- package/dist/esm/types/chartType/funnel/zFunnel.d.ts +4 -0
- package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +2 -0
- package/dist/esm/types/chartType/hierarchySankey/hierarchySankey.d.ts +92 -0
- package/dist/esm/types/chartType/hierarchySankey/hierarchySankey.js +0 -0
- package/dist/esm/types/chartType/hierarchySankey/index.d.ts +2 -0
- package/dist/esm/types/chartType/hierarchySankey/index.js +1 -0
- package/dist/esm/types/chartType/hierarchySankey/zHierarchySankey.d.ts +422 -0
- package/dist/esm/types/chartType/hierarchySankey/zHierarchySankey.js +20 -0
- package/dist/esm/types/chartType/hierarchySankey/zHierarchySankey.js.map +1 -0
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +4 -0
- package/dist/esm/types/chartType/index.d.ts +2 -0
- package/dist/esm/types/chartType/index.js +2 -0
- package/dist/esm/types/chartType/line/zLine.d.ts +4 -0
- package/dist/esm/types/chartType/pie/zPie.d.ts +4 -0
- package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +2 -0
- package/dist/esm/types/chartType/raceBar/zRaceBar.d.ts +4 -0
- package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +4 -0
- package/dist/esm/types/chartType/raceDonut/zRaceDonut.d.ts +4 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +4 -0
- package/dist/esm/types/chartType/racePie/zRacePie.d.ts +4 -0
- package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +4 -0
- package/dist/esm/types/chartType/radar/zRadar.d.ts +4 -0
- package/dist/esm/types/chartType/rose/zRose.d.ts +4 -0
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +4 -0
- package/dist/esm/types/chartType/sankey/index.d.ts +2 -0
- package/dist/esm/types/chartType/sankey/index.js +1 -0
- package/dist/esm/types/chartType/sankey/sankey.d.ts +91 -0
- package/dist/esm/types/chartType/sankey/sankey.js +0 -0
- package/dist/esm/types/chartType/sankey/zSankey.d.ts +422 -0
- package/dist/esm/types/chartType/sankey/zSankey.js +20 -0
- package/dist/esm/types/chartType/sankey/zSankey.js.map +1 -0
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +4 -0
- package/dist/esm/types/chartType/sunburst/zSunburst.d.ts +2 -0
- package/dist/esm/types/chartType/table/zTable.d.ts +2 -0
- package/dist/esm/types/chartType/treeMap/zTreeMap.d.ts +2 -0
- package/dist/esm/types/properties/chartType/chartType.d.ts +3 -1
- package/dist/esm/types/properties/chartType/chartType.js +2 -0
- package/dist/esm/types/properties/chartType/chartType.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +602 -0
- package/dist/esm/types/properties/config/config.js +4 -0
- package/dist/esm/types/properties/config/config.js.map +1 -1
- package/dist/esm/types/properties/config/hierarchySankey.d.ts +303 -0
- package/dist/esm/types/properties/config/hierarchySankey.js +18 -0
- package/dist/esm/types/properties/config/hierarchySankey.js.map +1 -0
- package/dist/esm/types/properties/config/index.d.ts +2 -0
- package/dist/esm/types/properties/config/index.js +2 -0
- package/dist/esm/types/properties/config/sankey.d.ts +303 -0
- package/dist/esm/types/properties/config/sankey.js +18 -0
- package/dist/esm/types/properties/config/sankey.js.map +1 -0
- package/dist/esm/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +2 -0
- package/dist/esm/types/properties/datasetReshapeInfo/zDatasetReshapeInfo.d.ts +4 -0
- package/dist/esm/types/properties/datasetReshapeInfo/zDatasetReshapeInfo.js +2 -0
- package/dist/esm/types/properties/datasetReshapeInfo/zDatasetReshapeInfo.js.map +1 -1
- package/dist/esm/types/properties/dimensions/index.d.ts +1 -0
- package/dist/esm/types/properties/dimensions/sankeyDimension.d.ts +15 -0
- package/dist/esm/types/properties/dimensions/sankeyDimension.js +0 -0
- package/dist/esm/types/properties/dimensions/zDimensions.d.ts +6 -0
- package/dist/esm/types/properties/encoding/dimensionEncoding.d.ts +3 -1
- package/dist/esm/types/properties/encoding/encoding.d.ts +8 -0
- package/dist/esm/types/properties/encoding/zDimensionEncoding.d.ts +4 -0
- package/dist/esm/types/properties/encoding/zDimensionEncoding.js +6 -2
- package/dist/esm/types/properties/encoding/zDimensionEncoding.js.map +1 -1
- package/dist/esm/types/properties/encoding/zEncoding.d.ts +4 -0
- package/dist/esm/types/properties/encoding/zEncoding.js +5 -1
- package/dist/esm/types/properties/encoding/zEncoding.js.map +1 -1
- package/dist/esm/types/properties/measures/index.d.ts +1 -0
- package/dist/esm/types/properties/measures/sankeyMeasure.d.ts +11 -0
- package/dist/esm/types/properties/measures/sankeyMeasure.js +0 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +3752 -2548
- package/dist/esm/types/vseed.d.ts +2 -2
- package/dist/esm/types/zVseed.js +3 -1
- package/dist/esm/types/zVseed.js.map +1 -1
- package/dist/umd/index.js +1303 -185
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { zBackgroundColor } from "./backgroundColor/backgroundColor.js";
|
|
3
|
+
import { zColor } from "./color/color.js";
|
|
4
|
+
import { zLabel } from "./label/index.js";
|
|
5
|
+
import { zLegend } from "./legend/legend.js";
|
|
6
|
+
import { zTooltip } from "./tooltip/tooltip.js";
|
|
7
|
+
import { zPivotChartGridConfig } from "./pivotGrid/index.js";
|
|
8
|
+
const zSankeyConfig = z.object({
|
|
9
|
+
backgroundColor: zBackgroundColor.nullish(),
|
|
10
|
+
label: zLabel.nullish(),
|
|
11
|
+
color: zColor.nullish(),
|
|
12
|
+
tooltip: zTooltip.nullish(),
|
|
13
|
+
legend: zLegend.nullish(),
|
|
14
|
+
pivotGrid: zPivotChartGridConfig.nullish()
|
|
15
|
+
});
|
|
16
|
+
export { zSankeyConfig };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=sankey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types/properties/config/sankey.js","sources":["../../../../../src/types/properties/config/sankey.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zPivotChartGridConfig } from './pivotGrid'\n\nexport const zSankeyConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\n\nexport type SankeyConfig = z.infer<typeof zSankeyConfig>\n"],"names":["zSankeyConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zPivotChartGridConfig"],"mappings":";;;;;;;AAQO,MAAMA,gBAAgBC,EAAE,MAAM,CAAC;IACpC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IACvB,WAAWC,sBAAsB,OAAO;AAC1C"}
|
|
@@ -22,6 +22,8 @@ export declare const zUnfoldInfo: z.ZodObject<{
|
|
|
22
22
|
encodingAngle: z.ZodString;
|
|
23
23
|
encodingPlayer: z.ZodString;
|
|
24
24
|
encodingHierarchy: z.ZodString;
|
|
25
|
+
encodingSource: z.ZodOptional<z.ZodString>;
|
|
26
|
+
encodingTarget: z.ZodOptional<z.ZodString>;
|
|
25
27
|
colorItems: z.ZodArray<z.ZodString>;
|
|
26
28
|
colorIdMap: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
27
29
|
id: z.ZodString;
|
|
@@ -68,6 +70,8 @@ export declare const zDatasetReshapeInfo: z.ZodArray<z.ZodObject<{
|
|
|
68
70
|
encodingAngle: z.ZodString;
|
|
69
71
|
encodingPlayer: z.ZodString;
|
|
70
72
|
encodingHierarchy: z.ZodString;
|
|
73
|
+
encodingSource: z.ZodOptional<z.ZodString>;
|
|
74
|
+
encodingTarget: z.ZodOptional<z.ZodString>;
|
|
71
75
|
colorItems: z.ZodArray<z.ZodString>;
|
|
72
76
|
colorIdMap: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
73
77
|
id: z.ZodString;
|
|
@@ -22,6 +22,8 @@ const zUnfoldInfo = z.object({
|
|
|
22
22
|
encodingAngle: z.string(),
|
|
23
23
|
encodingPlayer: z.string(),
|
|
24
24
|
encodingHierarchy: z.string(),
|
|
25
|
+
encodingSource: z.string().optional(),
|
|
26
|
+
encodingTarget: z.string().optional(),
|
|
25
27
|
colorItems: z.array(z.string()),
|
|
26
28
|
colorIdMap: z.record(z.string(), z.object({
|
|
27
29
|
id: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/datasetReshapeInfo/zDatasetReshapeInfo.js","sources":["../../../../../src/types/properties/datasetReshapeInfo/zDatasetReshapeInfo.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zFoldInfo = z.object({\n foldMap: z.record(z.string(), z.string().or(z.undefined())),\n statistics: z.object({\n min: z.number(),\n max: z.number(),\n sum: z.number(),\n count: z.number(),\n colorMin: z.number(),\n colorMax: z.number(),\n }),\n measureId: z.string(),\n measureName: z.string(),\n measureValue: z.string(),\n})\nexport const zUnfoldInfo = z.object({\n encodingX: z.string(),\n encodingY: z.string(),\n encodingColor: z.string(),\n encodingColorId: z.string(),\n encodingDetail: z.string(),\n encodingAngle: z.string(),\n encodingPlayer: z.string(),\n encodingHierarchy: z.string(),\n colorItems: z.array(z.string()),\n colorIdMap: z.record(z.string(), z.object({ id: z.string(), alias: z.string() })),\n})\n\nexport const zDatasetReshapeInfo = z.array(\n z.object({\n id: z.string(),\n index: z.number(),\n foldInfo: zFoldInfo,\n foldInfoList: z.array(zFoldInfo).nullish(),\n unfoldInfo: zUnfoldInfo,\n }),\n)\n"],"names":["zFoldInfo","z","zUnfoldInfo","zDatasetReshapeInfo"],"mappings":";AAEO,MAAMA,YAAYC,EAAE,MAAM,CAAC;IAChC,SAASA,EAAE,MAAM,CAACA,EAAE,MAAM,IAAIA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,SAAS;IACvD,YAAYA,EAAE,MAAM,CAAC;QACnB,KAAKA,EAAE,MAAM;QACb,KAAKA,EAAE,MAAM;QACb,KAAKA,EAAE,MAAM;QACb,OAAOA,EAAE,MAAM;QACf,UAAUA,EAAE,MAAM;QAClB,UAAUA,EAAE,MAAM;IACpB;IACA,WAAWA,EAAE,MAAM;IACnB,aAAaA,EAAE,MAAM;IACrB,cAAcA,EAAE,MAAM;AACxB;AACO,MAAMC,cAAcD,EAAE,MAAM,CAAC;IAClC,WAAWA,EAAE,MAAM;IACnB,WAAWA,EAAE,MAAM;IACnB,eAAeA,EAAE,MAAM;IACvB,iBAAiBA,EAAE,MAAM;IACzB,gBAAgBA,EAAE,MAAM;IACxB,eAAeA,EAAE,MAAM;IACvB,gBAAgBA,EAAE,MAAM;IACxB,mBAAmBA,EAAE,MAAM;IAC3B,YAAYA,EAAE,KAAK,CAACA,EAAE,MAAM;IAC5B,YAAYA,EAAE,MAAM,CAACA,EAAE,MAAM,IAAIA,EAAE,MAAM,CAAC;QAAE,IAAIA,EAAE,MAAM;QAAI,OAAOA,EAAE,MAAM;IAAG;AAChF;AAEO,MAAME,sBAAsBF,EAAE,KAAK,CACxCA,EAAE,MAAM,CAAC;IACP,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM;IACf,UAAUD;IACV,cAAcC,EAAE,KAAK,CAACD,WAAW,OAAO;IACxC,YAAYE;AACd"}
|
|
1
|
+
{"version":3,"file":"types/properties/datasetReshapeInfo/zDatasetReshapeInfo.js","sources":["../../../../../src/types/properties/datasetReshapeInfo/zDatasetReshapeInfo.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zFoldInfo = z.object({\n foldMap: z.record(z.string(), z.string().or(z.undefined())),\n statistics: z.object({\n min: z.number(),\n max: z.number(),\n sum: z.number(),\n count: z.number(),\n colorMin: z.number(),\n colorMax: z.number(),\n }),\n measureId: z.string(),\n measureName: z.string(),\n measureValue: z.string(),\n})\nexport const zUnfoldInfo = z.object({\n encodingX: z.string(),\n encodingY: z.string(),\n encodingColor: z.string(),\n encodingColorId: z.string(),\n encodingDetail: z.string(),\n encodingAngle: z.string(),\n encodingPlayer: z.string(),\n encodingHierarchy: z.string(),\n encodingSource: z.string().optional(),\n encodingTarget: z.string().optional(),\n colorItems: z.array(z.string()),\n colorIdMap: z.record(z.string(), z.object({ id: z.string(), alias: z.string() })),\n})\n\nexport const zDatasetReshapeInfo = z.array(\n z.object({\n id: z.string(),\n index: z.number(),\n foldInfo: zFoldInfo,\n foldInfoList: z.array(zFoldInfo).nullish(),\n unfoldInfo: zUnfoldInfo,\n }),\n)\n"],"names":["zFoldInfo","z","zUnfoldInfo","zDatasetReshapeInfo"],"mappings":";AAEO,MAAMA,YAAYC,EAAE,MAAM,CAAC;IAChC,SAASA,EAAE,MAAM,CAACA,EAAE,MAAM,IAAIA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,SAAS;IACvD,YAAYA,EAAE,MAAM,CAAC;QACnB,KAAKA,EAAE,MAAM;QACb,KAAKA,EAAE,MAAM;QACb,KAAKA,EAAE,MAAM;QACb,OAAOA,EAAE,MAAM;QACf,UAAUA,EAAE,MAAM;QAClB,UAAUA,EAAE,MAAM;IACpB;IACA,WAAWA,EAAE,MAAM;IACnB,aAAaA,EAAE,MAAM;IACrB,cAAcA,EAAE,MAAM;AACxB;AACO,MAAMC,cAAcD,EAAE,MAAM,CAAC;IAClC,WAAWA,EAAE,MAAM;IACnB,WAAWA,EAAE,MAAM;IACnB,eAAeA,EAAE,MAAM;IACvB,iBAAiBA,EAAE,MAAM;IACzB,gBAAgBA,EAAE,MAAM;IACxB,eAAeA,EAAE,MAAM;IACvB,gBAAgBA,EAAE,MAAM;IACxB,mBAAmBA,EAAE,MAAM;IAC3B,gBAAgBA,EAAE,MAAM,GAAG,QAAQ;IACnC,gBAAgBA,EAAE,MAAM,GAAG,QAAQ;IACnC,YAAYA,EAAE,KAAK,CAACA,EAAE,MAAM;IAC5B,YAAYA,EAAE,MAAM,CAACA,EAAE,MAAM,IAAIA,EAAE,MAAM,CAAC;QAAE,IAAIA,EAAE,MAAM;QAAI,OAAOA,EAAE,MAAM;IAAG;AAChF;AAEO,MAAME,sBAAsBF,EAAE,KAAK,CACxCA,EAAE,MAAM,CAAC;IACP,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM;IACf,UAAUD;IACV,cAAcC,EAAE,KAAK,CAACD,WAAW,OAAO;IACxC,YAAYE;AACd"}
|
|
@@ -21,3 +21,4 @@ export type { RacePieDimension } from './racePieDimension';
|
|
|
21
21
|
export type { RaceDonutDimension } from './raceDonutDimension';
|
|
22
22
|
export type { TableDimension, DimensionGroup, DimensionTree } from './tableDimension';
|
|
23
23
|
export type { HierarchyDimension } from './hierarchyDimension';
|
|
24
|
+
export type { SankeyDimension } from './sankeyDimension';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BaseDimension } from './baseDimension';
|
|
2
|
+
export type SankeyDimension = BaseDimension & {
|
|
3
|
+
/**
|
|
4
|
+
* @description 维度映射的通道
|
|
5
|
+
* - source: 支持将多个维度映射到 source 通道,advanced 阶段会拼接为上游节点路径
|
|
6
|
+
* - target: 支持将多个维度映射到 target 通道,advanced 阶段会拼接为下游节点路径
|
|
7
|
+
* - color: 支持将多个维度映射到颜色通道,用于生成 sankey 的颜色分类键
|
|
8
|
+
* - detail: 支持将多个维度映射到明细通道
|
|
9
|
+
* - label: 支持将多个维度映射到标签通道
|
|
10
|
+
* - tooltip: 支持将多个维度映射到提示通道
|
|
11
|
+
* - row: 支持将多个维度映射到行通道,用于 pivot chart
|
|
12
|
+
* - column: 支持将多个维度映射到列通道,用于 pivot chart
|
|
13
|
+
*/
|
|
14
|
+
encoding?: 'source' | 'target' | 'color' | 'detail' | 'label' | 'tooltip' | 'row' | 'column';
|
|
15
|
+
};
|
|
File without changes
|
|
@@ -15,6 +15,8 @@ export declare const zDimension: z.ZodObject<{
|
|
|
15
15
|
row: "row";
|
|
16
16
|
player: "player";
|
|
17
17
|
hierarchy: "hierarchy";
|
|
18
|
+
source: "source";
|
|
19
|
+
target: "target";
|
|
18
20
|
}>>;
|
|
19
21
|
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
20
22
|
type: z.ZodEnum<{
|
|
@@ -45,6 +47,8 @@ export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
|
|
45
47
|
row: "row";
|
|
46
48
|
player: "player";
|
|
47
49
|
hierarchy: "hierarchy";
|
|
50
|
+
source: "source";
|
|
51
|
+
target: "target";
|
|
48
52
|
}>>;
|
|
49
53
|
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
50
54
|
type: z.ZodEnum<{
|
|
@@ -74,6 +78,8 @@ export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodType<DimensionG
|
|
|
74
78
|
row: "row";
|
|
75
79
|
player: "player";
|
|
76
80
|
hierarchy: "hierarchy";
|
|
81
|
+
source: "source";
|
|
82
|
+
target: "target";
|
|
77
83
|
}>>;
|
|
78
84
|
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
79
85
|
type: z.ZodEnum<{
|
|
@@ -9,5 +9,7 @@
|
|
|
9
9
|
* - label: 支持将多个维度映射到标签通道, 支持所有图表类型
|
|
10
10
|
* - row: 支持将多个维度映射到行通道, 支持所有图表类型
|
|
11
11
|
* - column: 支持将多个维度映射到列通道, 支持所有图表类型
|
|
12
|
+
* - source: 支持将多个维度映射到桑基图的 source 通道
|
|
13
|
+
* - target: 支持将多个维度映射到桑基图的 target 通道
|
|
12
14
|
*/
|
|
13
|
-
export type DimensionEncoding = 'xAxis' | 'yAxis' | 'angle' | 'color' | 'detail' | 'tooltip' | 'label' | 'row' | 'column' | 'player' | 'hierarchy';
|
|
15
|
+
export type DimensionEncoding = 'xAxis' | 'yAxis' | 'angle' | 'color' | 'detail' | 'tooltip' | 'label' | 'row' | 'column' | 'player' | 'hierarchy' | 'source' | 'target';
|
|
@@ -54,6 +54,14 @@ export type Encoding = {
|
|
|
54
54
|
* @description 层级映射通道, 支持放入多个维度字段, 不支持放入指标字段, 在矩形树图、旭日图、圆形打包图中用于显示层级
|
|
55
55
|
*/
|
|
56
56
|
hierarchy?: string[];
|
|
57
|
+
/**
|
|
58
|
+
* @description 桑基图起点映射通道, 支持放入多个维度字段
|
|
59
|
+
*/
|
|
60
|
+
source?: string[];
|
|
61
|
+
/**
|
|
62
|
+
* @description 桑基图终点映射通道, 支持放入多个维度字段
|
|
63
|
+
*/
|
|
64
|
+
target?: string[];
|
|
57
65
|
/**
|
|
58
66
|
* ------------------------------------------------- 直方图与boxplot -------------------------------------------------
|
|
59
67
|
*/
|
|
@@ -11,6 +11,8 @@ export declare const zDimensionEncoding: z.ZodEnum<{
|
|
|
11
11
|
row: "row";
|
|
12
12
|
player: "player";
|
|
13
13
|
hierarchy: "hierarchy";
|
|
14
|
+
source: "source";
|
|
15
|
+
target: "target";
|
|
14
16
|
}>;
|
|
15
17
|
export declare const DimensionEncodingEnum: {
|
|
16
18
|
readonly xAxis: "xAxis";
|
|
@@ -24,4 +26,6 @@ export declare const DimensionEncodingEnum: {
|
|
|
24
26
|
readonly column: "column";
|
|
25
27
|
readonly player: "player";
|
|
26
28
|
readonly hierarchy: "hierarchy";
|
|
29
|
+
readonly source: "source";
|
|
30
|
+
readonly target: "target";
|
|
27
31
|
};
|
|
@@ -10,7 +10,9 @@ const zDimensionEncoding = z["enum"]([
|
|
|
10
10
|
'row',
|
|
11
11
|
'column',
|
|
12
12
|
'player',
|
|
13
|
-
'hierarchy'
|
|
13
|
+
'hierarchy',
|
|
14
|
+
'source',
|
|
15
|
+
'target'
|
|
14
16
|
]);
|
|
15
17
|
const DimensionEncodingEnum = {
|
|
16
18
|
xAxis: 'xAxis',
|
|
@@ -23,7 +25,9 @@ const DimensionEncodingEnum = {
|
|
|
23
25
|
row: 'row',
|
|
24
26
|
column: 'column',
|
|
25
27
|
player: 'player',
|
|
26
|
-
hierarchy: 'hierarchy'
|
|
28
|
+
hierarchy: 'hierarchy',
|
|
29
|
+
source: 'source',
|
|
30
|
+
target: 'target'
|
|
27
31
|
};
|
|
28
32
|
export { DimensionEncodingEnum, zDimensionEncoding };
|
|
29
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/encoding/zDimensionEncoding.js","sources":["../../../../../src/types/properties/encoding/zDimensionEncoding.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zDimensionEncoding = z.enum([\n 'xAxis',\n 'yAxis',\n 'angle',\n 'color',\n 'detail',\n 'tooltip',\n 'label',\n 'row',\n 'column',\n 'player',\n 'hierarchy',\n])\n\nexport const DimensionEncodingEnum = {\n xAxis: 'xAxis',\n yAxis: 'yAxis',\n angle: 'angle',\n color: 'color',\n detail: 'detail',\n tooltip: 'tooltip',\n label: 'label',\n row: 'row',\n column: 'column',\n player: 'player',\n hierarchy: 'hierarchy',\n} as const\n"],"names":["zDimensionEncoding","z","DimensionEncodingEnum"],"mappings":";AAEO,MAAMA,qBAAqBC,CAAC,CAADA,OAAM,CAAC;IACvC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAEM,MAAMC,wBAAwB;IACnC,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,SAAS;IACT,OAAO;IACP,KAAK;IACL,QAAQ;IACR,QAAQ;IACR,WAAW;
|
|
1
|
+
{"version":3,"file":"types/properties/encoding/zDimensionEncoding.js","sources":["../../../../../src/types/properties/encoding/zDimensionEncoding.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zDimensionEncoding = z.enum([\n 'xAxis',\n 'yAxis',\n 'angle',\n 'color',\n 'detail',\n 'tooltip',\n 'label',\n 'row',\n 'column',\n 'player',\n 'hierarchy',\n 'source',\n 'target',\n])\n\nexport const DimensionEncodingEnum = {\n xAxis: 'xAxis',\n yAxis: 'yAxis',\n angle: 'angle',\n color: 'color',\n detail: 'detail',\n tooltip: 'tooltip',\n label: 'label',\n row: 'row',\n column: 'column',\n player: 'player',\n hierarchy: 'hierarchy',\n source: 'source',\n target: 'target',\n} as const\n"],"names":["zDimensionEncoding","z","DimensionEncodingEnum"],"mappings":";AAEO,MAAMA,qBAAqBC,CAAC,CAADA,OAAM,CAAC;IACvC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAEM,MAAMC,wBAAwB;IACnC,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,SAAS;IACT,OAAO;IACP,KAAK;IACL,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,QAAQ;AACV"}
|
|
@@ -13,6 +13,8 @@ export declare const zEncoding: z.ZodObject<{
|
|
|
13
13
|
column: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
14
14
|
player: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
15
15
|
hierarchy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
|
+
target: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
18
|
value: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
19
|
q1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
20
|
q3: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -40,4 +42,6 @@ export declare const EncodingEnum: {
|
|
|
40
42
|
readonly column: "column";
|
|
41
43
|
readonly player: "player";
|
|
42
44
|
readonly hierarchy: "hierarchy";
|
|
45
|
+
readonly source: "source";
|
|
46
|
+
readonly target: "target";
|
|
43
47
|
};
|
|
@@ -13,6 +13,8 @@ const zEncoding = z.object({
|
|
|
13
13
|
column: z.array(z.string()).nullish(),
|
|
14
14
|
player: z.array(z.string()).nullish(),
|
|
15
15
|
hierarchy: z.array(z.string()).nullish(),
|
|
16
|
+
source: z.array(z.string()).nullish(),
|
|
17
|
+
target: z.array(z.string()).nullish(),
|
|
16
18
|
value: z.array(z.string()).nullish(),
|
|
17
19
|
q1: z.array(z.string()).nullish(),
|
|
18
20
|
q3: z.array(z.string()).nullish(),
|
|
@@ -36,7 +38,9 @@ const EncodingEnum = {
|
|
|
36
38
|
row: 'row',
|
|
37
39
|
column: 'column',
|
|
38
40
|
player: 'player',
|
|
39
|
-
hierarchy: 'hierarchy'
|
|
41
|
+
hierarchy: 'hierarchy',
|
|
42
|
+
source: 'source',
|
|
43
|
+
target: 'target'
|
|
40
44
|
};
|
|
41
45
|
export { EncodingEnum, zEncoding };
|
|
42
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/encoding/zEncoding.js","sources":["../../../../../src/types/properties/encoding/zEncoding.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zEncoding = z.object({\n x: z.array(z.string()).nullish(),\n y: z.array(z.string()).nullish(),\n angle: z.array(z.string()).nullish(),\n radius: z.array(z.string()).nullish(),\n detail: z.array(z.string()).nullish(),\n\n color: z.array(z.string()).nullish(),\n size: z.array(z.string()).nullish(),\n tooltip: z.array(z.string()).nullish(),\n label: z.array(z.string()).nullish(),\n\n row: z.array(z.string()).nullish(),\n column: z.array(z.string()).nullish(),\n player: z.array(z.string()).nullish(),\n hierarchy: z.array(z.string()).nullish(),\n\n value: z.array(z.string()).nullish(),\n q1: z.array(z.string()).nullish(),\n q3: z.array(z.string()).nullish(),\n median: z.array(z.string()).nullish(),\n min: z.array(z.string()).nullish(),\n max: z.array(z.string()).nullish(),\n outliers: z.array(z.string()).nullish(),\n\n x0: z.array(z.string()).nullish(),\n x1: z.array(z.string()).nullish(),\n})\n\n/**\n * @description 仅VSeed内AdvancedVSeed使用此结构, 其余场景请使用DimensionEncodingEnum、MeasureEncodingEnum\n */\nexport const EncodingEnum = {\n x: 'x',\n y: 'y',\n angle: 'angle',\n radius: 'radius',\n detail: 'detail',\n\n color: 'color',\n size: 'size',\n tooltip: 'tooltip',\n label: 'label',\n\n row: 'row',\n column: 'column',\n\n player: 'player',\n hierarchy: 'hierarchy',\n} as const\n"],"names":["zEncoding","z","EncodingEnum"],"mappings":";AAEO,MAAMA,YAAYC,EAAE,MAAM,CAAC;IAChC,GAAGA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC9B,GAAGA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC9B,OAAOA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAClC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACnC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAEnC,OAAOA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAClC,MAAMA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACjC,SAASA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACpC,OAAOA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAElC,KAAKA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAChC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACnC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACnC,WAAWA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;
|
|
1
|
+
{"version":3,"file":"types/properties/encoding/zEncoding.js","sources":["../../../../../src/types/properties/encoding/zEncoding.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zEncoding = z.object({\n x: z.array(z.string()).nullish(),\n y: z.array(z.string()).nullish(),\n angle: z.array(z.string()).nullish(),\n radius: z.array(z.string()).nullish(),\n detail: z.array(z.string()).nullish(),\n\n color: z.array(z.string()).nullish(),\n size: z.array(z.string()).nullish(),\n tooltip: z.array(z.string()).nullish(),\n label: z.array(z.string()).nullish(),\n\n row: z.array(z.string()).nullish(),\n column: z.array(z.string()).nullish(),\n player: z.array(z.string()).nullish(),\n hierarchy: z.array(z.string()).nullish(),\n source: z.array(z.string()).nullish(),\n target: z.array(z.string()).nullish(),\n\n value: z.array(z.string()).nullish(),\n q1: z.array(z.string()).nullish(),\n q3: z.array(z.string()).nullish(),\n median: z.array(z.string()).nullish(),\n min: z.array(z.string()).nullish(),\n max: z.array(z.string()).nullish(),\n outliers: z.array(z.string()).nullish(),\n\n x0: z.array(z.string()).nullish(),\n x1: z.array(z.string()).nullish(),\n})\n\n/**\n * @description 仅VSeed内AdvancedVSeed使用此结构, 其余场景请使用DimensionEncodingEnum、MeasureEncodingEnum\n */\nexport const EncodingEnum = {\n x: 'x',\n y: 'y',\n angle: 'angle',\n radius: 'radius',\n detail: 'detail',\n\n color: 'color',\n size: 'size',\n tooltip: 'tooltip',\n label: 'label',\n\n row: 'row',\n column: 'column',\n\n player: 'player',\n hierarchy: 'hierarchy',\n source: 'source',\n target: 'target',\n} as const\n"],"names":["zEncoding","z","EncodingEnum"],"mappings":";AAEO,MAAMA,YAAYC,EAAE,MAAM,CAAC;IAChC,GAAGA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC9B,GAAGA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC9B,OAAOA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAClC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACnC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAEnC,OAAOA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAClC,MAAMA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACjC,SAASA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACpC,OAAOA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAElC,KAAKA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAChC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACnC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACnC,WAAWA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACtC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACnC,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAEnC,OAAOA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAClC,IAAIA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC/B,IAAIA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC/B,QAAQA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACnC,KAAKA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAChC,KAAKA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAChC,UAAUA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAErC,IAAIA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC/B,IAAIA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;AACjC;AAKO,MAAMC,eAAe;IAC1B,GAAG;IACH,GAAG;IACH,OAAO;IACP,QAAQ;IACR,QAAQ;IAER,OAAO;IACP,MAAM;IACN,SAAS;IACT,OAAO;IAEP,KAAK;IACL,QAAQ;IAER,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,QAAQ;AACV"}
|
|
@@ -19,3 +19,4 @@ export type { RaceBarMeasure } from './raceBarMeasure';
|
|
|
19
19
|
export type { RacePieMeasure } from './racePieMeasure';
|
|
20
20
|
export type { RaceDonutMeasure } from './raceDonutMeasure';
|
|
21
21
|
export type { HierarchyMeasure } from './hierarchyMeasure';
|
|
22
|
+
export type { SankeyMeasure } from './sankeyMeasure';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BaseMeasure } from './baseMeasure';
|
|
2
|
+
export type SankeyMeasure = BaseMeasure & {
|
|
3
|
+
/**
|
|
4
|
+
* @description 指标映射的通道
|
|
5
|
+
* - size: 指标映射到边宽/流量大小通道
|
|
6
|
+
* - detail: 指标映射到明细通道
|
|
7
|
+
* - label: 指标映射到标签通道
|
|
8
|
+
* - tooltip: 指标映射到提示通道
|
|
9
|
+
*/
|
|
10
|
+
encoding?: 'size' | 'detail' | 'label' | 'tooltip';
|
|
11
|
+
};
|
|
File without changes
|