@visactor/vseed 0.1.45 → 0.1.46
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 +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +86 -14
- package/dist/esm/dataReshape/constant.d.ts +2 -2
- package/dist/esm/dataReshape/constant.js +3 -3
- package/dist/esm/dataReshape/constant.js.map +1 -1
- package/dist/esm/i18n/i18n.js +2 -2
- package/dist/esm/i18n/i18n.js.map +1 -1
- package/dist/esm/i18n/i18nData.d.ts +2 -0
- package/dist/esm/i18n/i18nData.js +41 -5
- package/dist/esm/i18n/i18nData.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/area.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/area.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/bar.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/line.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/radar.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/radar.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/rose.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/dimensions/index.d.ts +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/dimensions/index.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/dimensions/pickDimensionsForReshape.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/dimensions/pickDimensionsForReshape.js +14 -0
- package/dist/esm/pipeline/advanced/chart/pipes/dimensions/pickDimensionsForReshape.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/measures/index.d.ts +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/measures/index.js +2 -2
- package/dist/esm/pipeline/advanced/chart/pipes/measures/pickMeasuresForReshape.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/measures/pickMeasuresForReshape.js +14 -0
- package/dist/esm/pipeline/advanced/chart/pipes/measures/pickMeasuresForReshape.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +8 -6
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +5 -3
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js +8 -6
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js +3 -5
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/histogramCrosshair.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/histogramCrosshair.js +27 -0
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/histogramCrosshair.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/index.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/boxplot.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipes/init/boxplot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/legend/boxLegend.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/legend/boxLegend.js +15 -0
- package/dist/esm/pipeline/spec/chart/pipes/legend/boxLegend.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/legend/colorLegend.js +3 -4
- package/dist/esm/pipeline/spec/chart/pipes/legend/colorLegend.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +31 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js +5 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +5 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js +14 -5
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js +6 -4
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/utils/histogram.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/utils/histogram.js +12 -0
- package/dist/esm/pipeline/spec/chart/utils/histogram.js.map +1 -0
- package/dist/esm/pipeline/utils/measures/delete.d.ts +2 -2
- package/dist/esm/pipeline/utils/measures/delete.js +7 -3
- package/dist/esm/pipeline/utils/measures/delete.js.map +1 -1
- package/dist/esm/pipeline/utils/tree/traverse.d.ts +1 -0
- package/dist/esm/pipeline/utils/tree/traverse.js +12 -1
- package/dist/esm/pipeline/utils/tree/traverse.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +116 -3
- package/dist/esm/types/advancedVSeed.js +2 -0
- package/dist/esm/types/advancedVSeed.js.map +1 -1
- package/dist/esm/types/chartType/area/zArea.d.ts +12 -3
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +12 -3
- package/dist/esm/types/chartType/bar/zBar.d.ts +12 -3
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +12 -3
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +12 -3
- package/dist/esm/types/chartType/boxplot/zBoxplot.d.ts +12 -3
- package/dist/esm/types/chartType/column/zColumn.d.ts +12 -3
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +12 -3
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +12 -3
- package/dist/esm/types/chartType/donut/zDonut.d.ts +12 -3
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +42 -15
- package/dist/esm/types/chartType/funnel/zFunnel.d.ts +12 -3
- package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +12 -3
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +12 -3
- package/dist/esm/types/chartType/line/zLine.d.ts +12 -3
- package/dist/esm/types/chartType/pie/zPie.d.ts +12 -3
- package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +12 -3
- package/dist/esm/types/chartType/radar/zRadar.d.ts +12 -3
- package/dist/esm/types/chartType/rose/zRose.d.ts +12 -3
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +12 -3
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +42 -15
- package/dist/esm/types/chartType/table/zTable.d.ts +12 -3
- package/dist/esm/types/properties/measures/zDualMeasures.d.ts +60 -24
- package/dist/esm/types/properties/measures/zMeasures.d.ts +36 -9
- package/dist/esm/types/properties/measures/zMeasures.js +13 -4
- package/dist/esm/types/properties/measures/zMeasures.js.map +1 -1
- package/dist/esm/types/properties/measures/zScatterMeasures.d.ts +60 -24
- package/dist/esm/types/properties/regressionLine/linearRegressionLine.d.ts +5 -0
- package/dist/esm/types/properties/regressionLine/logisticRegressionLine.d.ts +5 -0
- package/dist/esm/types/properties/regressionLine/lowessRegressionLine.d.ts +5 -0
- package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.d.ts +5 -0
- package/dist/esm/types/zVseed.d.ts +324 -90
- package/dist/umd/index.js +273 -144
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/dimensions/deleteTooltipAndLabelDimensions.d.ts +0 -2
- package/dist/esm/pipeline/advanced/chart/pipes/dimensions/deleteTooltipAndLabelDimensions.js +0 -12
- package/dist/esm/pipeline/advanced/chart/pipes/dimensions/deleteTooltipAndLabelDimensions.js.map +0 -1
- package/dist/esm/pipeline/advanced/chart/pipes/measures/deleteEncodingForMeasure.d.ts +0 -2
- package/dist/esm/pipeline/advanced/chart/pipes/measures/deleteEncodingForMeasure.js +0 -12
- package/dist/esm/pipeline/advanced/chart/pipes/measures/deleteEncodingForMeasure.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isMeasure, isMeasureGroup } from "./typeGuard.js";
|
|
2
2
|
const deleteMeasureTreeByCallback = (measureTree, callback)=>{
|
|
3
|
-
if (!measureTree) return
|
|
3
|
+
if (!measureTree) return;
|
|
4
4
|
const stack = [
|
|
5
5
|
...measureTree
|
|
6
6
|
].reverse();
|
|
@@ -24,16 +24,20 @@ const deleteMeasureTreeByCallback = (measureTree, callback)=>{
|
|
|
24
24
|
nodesToProcess.push(node);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
+
const deleted = [];
|
|
27
28
|
for (const node of nodesToProcess){
|
|
28
29
|
const parentList = parents.get(node);
|
|
29
30
|
if (parentList) {
|
|
30
31
|
const index = parentList.indexOf(node);
|
|
31
32
|
if (isMeasure(node)) {
|
|
32
|
-
if (callback?.(node, index, parentList))
|
|
33
|
+
if (callback?.(node, index, parentList)) {
|
|
34
|
+
parentList.splice(index, 1);
|
|
35
|
+
deleted.push(node);
|
|
36
|
+
}
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
|
-
return
|
|
40
|
+
return deleted;
|
|
37
41
|
};
|
|
38
42
|
export { deleteMeasureTreeByCallback };
|
|
39
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline/utils/measures/delete.js","sources":["webpack://@visactor/vseed/./src/pipeline/utils/measures/delete.ts"],"sourcesContent":["import type { Measure, MeasureGroup, MeasureTree } from 'src/types'\nimport { isMeasure, isMeasureGroup } from './typeGuard'\n\n/**\n * @description 删除 measureTree 中符合 callback 条件的节点\n * @param measureTree 待删除的 measureTree\n * @param callback 回调函数,用于判断是否删除当前节点\n * @returns
|
|
1
|
+
{"version":3,"file":"pipeline/utils/measures/delete.js","sources":["webpack://@visactor/vseed/./src/pipeline/utils/measures/delete.ts"],"sourcesContent":["import type { Measure, MeasureGroup, MeasureTree } from 'src/types'\nimport { isMeasure, isMeasureGroup } from './typeGuard'\n\n/**\n * @description 删除 measureTree 中符合 callback 条件的节点\n * @param measureTree 待删除的 measureTree\n * @param callback 回调函数,用于判断是否删除当前节点\n * @returns 删除的度量\n */\nexport const deleteMeasureTreeByCallback = <T extends MeasureTree>(\n measureTree?: T,\n callback?: (measure: Measure, index: number, measures: (Measure | MeasureGroup)[]) => boolean,\n): Measure[] => {\n if (!measureTree) {\n return undefined as unknown as Measure[]\n }\n const stack: (Measure | MeasureGroup)[] = [...measureTree].reverse()\n const parents = new Map<Measure | MeasureGroup, (Measure | MeasureGroup)[]>()\n\n measureTree.forEach((node) => {\n parents.set(node, measureTree)\n })\n\n const nodesToProcess: Measure[] = []\n const visited = new Set<Measure | MeasureGroup>()\n\n while (stack.length > 0) {\n const node = stack[stack.length - 1]\n\n if (isMeasureGroup(node) && node.children && !visited.has(node)) {\n visited.add(node)\n const children = node.children.slice().reverse()\n for (const child of children) {\n parents.set(child, node.children)\n stack.push(child)\n }\n } else {\n stack.pop()\n nodesToProcess.push(node as Measure)\n }\n }\n const deleted: Measure[] = []\n\n for (const node of nodesToProcess) {\n const parentList = parents.get(node)\n\n if (parentList) {\n const index = parentList.indexOf(node)\n if (isMeasure(node)) {\n if (callback?.(node, index, parentList)) {\n parentList.splice(index, 1)\n deleted.push(node)\n }\n }\n }\n }\n\n return deleted\n}\n"],"names":["deleteMeasureTreeByCallback","measureTree","callback","stack","parents","Map","node","nodesToProcess","visited","Set","isMeasureGroup","children","child","deleted","parentList","index","isMeasure"],"mappings":";AASO,MAAMA,8BAA8B,CACzCC,aACAC;IAEA,IAAI,CAACD,aACH;IAEF,MAAME,QAAoC;WAAIF;KAAY,CAAC,OAAO;IAClE,MAAMG,UAAU,IAAIC;IAEpBJ,YAAY,OAAO,CAAC,CAACK;QACnBF,QAAQ,GAAG,CAACE,MAAML;IACpB;IAEA,MAAMM,iBAA4B,EAAE;IACpC,MAAMC,UAAU,IAAIC;IAEpB,MAAON,MAAM,MAAM,GAAG,EAAG;QACvB,MAAMG,OAAOH,KAAK,CAACA,MAAM,MAAM,GAAG,EAAE;QAEpC,IAAIO,eAAeJ,SAASA,KAAK,QAAQ,IAAI,CAACE,QAAQ,GAAG,CAACF,OAAO;YAC/DE,QAAQ,GAAG,CAACF;YACZ,MAAMK,WAAWL,KAAK,QAAQ,CAAC,KAAK,GAAG,OAAO;YAC9C,KAAK,MAAMM,SAASD,SAAU;gBAC5BP,QAAQ,GAAG,CAACQ,OAAON,KAAK,QAAQ;gBAChCH,MAAM,IAAI,CAACS;YACb;QACF,OAAO;YACLT,MAAM,GAAG;YACTI,eAAe,IAAI,CAACD;QACtB;IACF;IACA,MAAMO,UAAqB,EAAE;IAE7B,KAAK,MAAMP,QAAQC,eAAgB;QACjC,MAAMO,aAAaV,QAAQ,GAAG,CAACE;QAE/B,IAAIQ,YAAY;YACd,MAAMC,QAAQD,WAAW,OAAO,CAACR;YACjC,IAAIU,UAAUV,OACZ;gBAAA,IAAIJ,WAAWI,MAAMS,OAAOD,aAAa;oBACvCA,WAAW,MAAM,CAACC,OAAO;oBACzBF,QAAQ,IAAI,CAACP;gBACf;YAAA;QAEJ;IACF;IAEA,OAAOO;AACT"}
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export declare const preorderTraverse: <Node, K extends string = "children">(tree: Node[], callback: (node: Node) => boolean, childrenKey?: K) => void;
|
|
2
|
+
export declare const findTreeNodesBy: <Node, K extends string = "children">(nodes: Node[] | undefined, callback: (node: Node) => boolean, childrenKey?: K) => Node[];
|
|
@@ -14,6 +14,17 @@ const preorderTraverse = (tree, callback, childrenKey = 'children')=>{
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
const findTreeNodesBy = (nodes = [], callback, childrenKey = 'children')=>{
|
|
18
|
+
if (!nodes) return [];
|
|
19
|
+
const result = [];
|
|
20
|
+
preorderTraverse(nodes, (node)=>{
|
|
21
|
+
if (!(childrenKey in node)) {
|
|
22
|
+
if (callback(node)) result.push(node);
|
|
23
|
+
}
|
|
24
|
+
return false;
|
|
25
|
+
});
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
export { findTreeNodesBy, preorderTraverse };
|
|
18
29
|
|
|
19
30
|
//# sourceMappingURL=traverse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline/utils/tree/traverse.js","sources":["webpack://@visactor/vseed/./src/pipeline/utils/tree/traverse.ts"],"sourcesContent":["/**\n * 支持泛型与可配置子节点键名的非递归前序遍历\n * @param tree 根节点数组\n * @param callback 遍历时对每个节点执行的回调,返回 true 时停止遍历\n * @param childrenKey 子节点键名(默认 'children')\n */\ntype WithChildren<Node, K extends string> = Node & { [P in K]?: Node[] }\n\nexport const preorderTraverse = <Node, K extends string = 'children'>(\n tree: Node[],\n callback: (node: Node) => boolean,\n childrenKey: K = 'children' as K,\n) => {\n if (!tree || tree.length === 0) return\n\n const stack: Node[] = [...tree].reverse()\n\n while (stack.length > 0) {\n const node = stack.pop() as Node\n const stop = callback(node)\n if (stop === true) {\n return\n }\n\n const children = (node as WithChildren<Node, K>)[childrenKey]\n if (Array.isArray(children) && children.length > 0) {\n for (let i = children.length - 1; i >= 0; i--) {\n const child = children[i]\n stack.push(child)\n }\n }\n }\n}\n"],"names":["preorderTraverse","tree","callback","childrenKey","stack","node","stop","children","Array","i","child"],"mappings":"AAQO,MAAMA,mBAAmB,CAC9BC,MACAC,UACAC,cAAiB,UAAe;IAEhC,IAAI,CAACF,QAAQA,AAAgB,MAAhBA,KAAK,MAAM,EAAQ;IAEhC,MAAMG,QAAgB;WAAIH;KAAK,CAAC,OAAO;IAEvC,MAAOG,MAAM,MAAM,GAAG,EAAG;QACvB,MAAMC,OAAOD,MAAM,GAAG;QACtB,MAAME,OAAOJ,SAASG;QACtB,IAAIC,AAAS,SAATA,MACF;QAGF,MAAMC,WAAYF,IAA8B,CAACF,YAAY;QAC7D,IAAIK,MAAM,OAAO,CAACD,aAAaA,SAAS,MAAM,GAAG,GAC/C,IAAK,IAAIE,IAAIF,SAAS,MAAM,GAAG,GAAGE,KAAK,GAAGA,IAAK;YAC7C,MAAMC,QAAQH,QAAQ,CAACE,EAAE;YACzBL,MAAM,IAAI,CAACM;QACb;IAEJ;AACF"}
|
|
1
|
+
{"version":3,"file":"pipeline/utils/tree/traverse.js","sources":["webpack://@visactor/vseed/./src/pipeline/utils/tree/traverse.ts"],"sourcesContent":["/**\n * 支持泛型与可配置子节点键名的非递归前序遍历\n * @param tree 根节点数组\n * @param callback 遍历时对每个节点执行的回调,返回 true 时停止遍历\n * @param childrenKey 子节点键名(默认 'children')\n */\ntype WithChildren<Node, K extends string> = Node & { [P in K]?: Node[] }\n\nexport const preorderTraverse = <Node, K extends string = 'children'>(\n tree: Node[],\n callback: (node: Node) => boolean,\n childrenKey: K = 'children' as K,\n) => {\n if (!tree || tree.length === 0) return\n\n const stack: Node[] = [...tree].reverse()\n\n while (stack.length > 0) {\n const node = stack.pop() as Node\n const stop = callback(node)\n if (stop === true) {\n return\n }\n\n const children = (node as WithChildren<Node, K>)[childrenKey]\n if (Array.isArray(children) && children.length > 0) {\n for (let i = children.length - 1; i >= 0; i--) {\n const child = children[i]\n stack.push(child)\n }\n }\n }\n}\n\nexport const findTreeNodesBy = <Node, K extends string = 'children'>(\n nodes: Node[] = [],\n callback: (node: Node) => boolean,\n childrenKey: K = 'children' as K,\n): Node[] => {\n if (!nodes) return []\n const result: Node[] = []\n preorderTraverse<Node, K>(nodes, (node) => {\n if (!(childrenKey in (node as WithChildren<Node, K>))) {\n if (callback(node)) {\n result.push(node)\n }\n }\n return false\n })\n return result\n}\n"],"names":["preorderTraverse","tree","callback","childrenKey","stack","node","stop","children","Array","i","child","findTreeNodesBy","nodes","result"],"mappings":"AAQO,MAAMA,mBAAmB,CAC9BC,MACAC,UACAC,cAAiB,UAAe;IAEhC,IAAI,CAACF,QAAQA,AAAgB,MAAhBA,KAAK,MAAM,EAAQ;IAEhC,MAAMG,QAAgB;WAAIH;KAAK,CAAC,OAAO;IAEvC,MAAOG,MAAM,MAAM,GAAG,EAAG;QACvB,MAAMC,OAAOD,MAAM,GAAG;QACtB,MAAME,OAAOJ,SAASG;QACtB,IAAIC,AAAS,SAATA,MACF;QAGF,MAAMC,WAAYF,IAA8B,CAACF,YAAY;QAC7D,IAAIK,MAAM,OAAO,CAACD,aAAaA,SAAS,MAAM,GAAG,GAC/C,IAAK,IAAIE,IAAIF,SAAS,MAAM,GAAG,GAAGE,KAAK,GAAGA,IAAK;YAC7C,MAAMC,QAAQH,QAAQ,CAACE,EAAE;YACzBL,MAAM,IAAI,CAACM;QACb;IAEJ;AACF;AAEO,MAAMC,kBAAkB,CAC7BC,QAAgB,EAAE,EAClBV,UACAC,cAAiB,UAAe;IAEhC,IAAI,CAACS,OAAO,OAAO,EAAE;IACrB,MAAMC,SAAiB,EAAE;IACzBb,iBAA0BY,OAAO,CAACP;QAChC,IAAI,CAAEF,CAAAA,eAAgBE,IAAG,GACvB;YAAA,IAAIH,SAASG,OACXQ,OAAO,IAAI,CAACR;QACd;QAEF,OAAO;IACT;IACA,OAAOQ;AACT"}
|
|
@@ -88,8 +88,8 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
|
88
88
|
measures: z.ZodArray<z.ZodUnion<[z.ZodType<import("./properties").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("./properties").MeasureGroup, unknown>>, z.ZodObject<{
|
|
89
89
|
id: z.ZodString;
|
|
90
90
|
alias: z.ZodOptional<z.ZodString>;
|
|
91
|
-
autoFormat: z.
|
|
92
|
-
numFormat: z.
|
|
91
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
93
93
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
94
94
|
number: "number";
|
|
95
95
|
percent: "percent";
|
|
@@ -119,7 +119,7 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
|
119
119
|
halfEven: "halfEven";
|
|
120
120
|
}>>>;
|
|
121
121
|
}, z.core.$strip>>>;
|
|
122
|
-
format: z.
|
|
122
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
123
123
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
124
124
|
number: "number";
|
|
125
125
|
percent: "percent";
|
|
@@ -151,6 +151,7 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
|
151
151
|
}, z.core.$strip>>>;
|
|
152
152
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
153
153
|
column: "column";
|
|
154
|
+
value: "value";
|
|
154
155
|
xAxis: "xAxis";
|
|
155
156
|
yAxis: "yAxis";
|
|
156
157
|
angle: "angle";
|
|
@@ -162,9 +163,121 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
|
162
163
|
secondaryYAxis: "secondaryYAxis";
|
|
163
164
|
radius: "radius";
|
|
164
165
|
size: "size";
|
|
166
|
+
q1: "q1";
|
|
167
|
+
median: "median";
|
|
168
|
+
q3: "q3";
|
|
169
|
+
min: "min";
|
|
170
|
+
max: "max";
|
|
171
|
+
outliers: "outliers";
|
|
172
|
+
x0: "x0";
|
|
173
|
+
x1: "x1";
|
|
165
174
|
}>>;
|
|
166
175
|
parentId: z.ZodOptional<z.ZodString>;
|
|
167
176
|
}, z.core.$strip>]>>;
|
|
177
|
+
reshapeMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("./properties").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("./properties").MeasureGroup, unknown>>, z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
180
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
182
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
183
|
+
number: "number";
|
|
184
|
+
percent: "percent";
|
|
185
|
+
permille: "permille";
|
|
186
|
+
scientific: "scientific";
|
|
187
|
+
}>>>;
|
|
188
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
189
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
190
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
191
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
192
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
193
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
194
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
195
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
196
|
+
morePrecision: "morePrecision";
|
|
197
|
+
lessPrecision: "lessPrecision";
|
|
198
|
+
}>>>;
|
|
199
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
200
|
+
floor: "floor";
|
|
201
|
+
ceil: "ceil";
|
|
202
|
+
expand: "expand";
|
|
203
|
+
trunc: "trunc";
|
|
204
|
+
halfCeil: "halfCeil";
|
|
205
|
+
halfFloor: "halfFloor";
|
|
206
|
+
halfExpand: "halfExpand";
|
|
207
|
+
halfTrunc: "halfTrunc";
|
|
208
|
+
halfEven: "halfEven";
|
|
209
|
+
}>>>;
|
|
210
|
+
}, z.core.$strip>>>;
|
|
211
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
212
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
213
|
+
number: "number";
|
|
214
|
+
percent: "percent";
|
|
215
|
+
permille: "permille";
|
|
216
|
+
scientific: "scientific";
|
|
217
|
+
}>>>;
|
|
218
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
219
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
220
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
221
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
222
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
223
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
224
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
225
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
226
|
+
morePrecision: "morePrecision";
|
|
227
|
+
lessPrecision: "lessPrecision";
|
|
228
|
+
}>>>;
|
|
229
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
230
|
+
floor: "floor";
|
|
231
|
+
ceil: "ceil";
|
|
232
|
+
expand: "expand";
|
|
233
|
+
trunc: "trunc";
|
|
234
|
+
halfCeil: "halfCeil";
|
|
235
|
+
halfFloor: "halfFloor";
|
|
236
|
+
halfExpand: "halfExpand";
|
|
237
|
+
halfTrunc: "halfTrunc";
|
|
238
|
+
halfEven: "halfEven";
|
|
239
|
+
}>>>;
|
|
240
|
+
}, z.core.$strip>>>;
|
|
241
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
242
|
+
column: "column";
|
|
243
|
+
value: "value";
|
|
244
|
+
xAxis: "xAxis";
|
|
245
|
+
yAxis: "yAxis";
|
|
246
|
+
angle: "angle";
|
|
247
|
+
color: "color";
|
|
248
|
+
detail: "detail";
|
|
249
|
+
tooltip: "tooltip";
|
|
250
|
+
label: "label";
|
|
251
|
+
primaryYAxis: "primaryYAxis";
|
|
252
|
+
secondaryYAxis: "secondaryYAxis";
|
|
253
|
+
radius: "radius";
|
|
254
|
+
size: "size";
|
|
255
|
+
q1: "q1";
|
|
256
|
+
median: "median";
|
|
257
|
+
q3: "q3";
|
|
258
|
+
min: "min";
|
|
259
|
+
max: "max";
|
|
260
|
+
outliers: "outliers";
|
|
261
|
+
x0: "x0";
|
|
262
|
+
x1: "x1";
|
|
263
|
+
}>>;
|
|
264
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>]>>>;
|
|
266
|
+
reshapeDimensions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("./properties").DimensionGroup, unknown, z.core.$ZodTypeInternals<import("./properties").DimensionGroup, unknown>>, z.ZodObject<{
|
|
267
|
+
id: z.ZodString;
|
|
268
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
269
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
270
|
+
column: "column";
|
|
271
|
+
xAxis: "xAxis";
|
|
272
|
+
yAxis: "yAxis";
|
|
273
|
+
angle: "angle";
|
|
274
|
+
color: "color";
|
|
275
|
+
detail: "detail";
|
|
276
|
+
tooltip: "tooltip";
|
|
277
|
+
label: "label";
|
|
278
|
+
row: "row";
|
|
279
|
+
}>>;
|
|
280
|
+
}, z.core.$strip>]>>>;
|
|
168
281
|
encoding: z.ZodObject<{
|
|
169
282
|
x: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
170
283
|
y: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -16,6 +16,8 @@ const zAdvancedVSeed = z.object({
|
|
|
16
16
|
datasetReshapeInfo: zDatasetReshapeInfo,
|
|
17
17
|
dimensions: zDimensionTree,
|
|
18
18
|
measures: zMeasureTree,
|
|
19
|
+
reshapeMeasures: zMeasureTree.optional(),
|
|
20
|
+
reshapeDimensions: zDimensionTree.optional(),
|
|
19
21
|
encoding: zEncoding,
|
|
20
22
|
config: zConfig,
|
|
21
23
|
analysis: zAnalysis,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/advancedVSeed.js","sources":["webpack://@visactor/vseed/./src/types/advancedVSeed.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zChartType } from './properties/chartType'\nimport { zDataset } from './properties/dataset'\nimport { zDimensionTree } from './properties/dimensions'\nimport { zMeasureTree } from './properties/measures'\nimport { zEncoding } from './properties/encoding'\nimport { zDatasetReshapeInfo } from './properties/datasetReshapeInfo'\nimport { zTheme, zCustomThemeConfig } from './properties/theme'\nimport { zConfig } from './properties/config'\nimport { zAnalysis, zAnnotation, zRegressionLine, zMarkStyle } from './properties'\nimport { zLocale } from './i18n'\nimport { zCellStyle } from './properties/cellStyle/cellStyle'\n\nexport const zAdvancedVSeed = z.object({\n chartType: zChartType,\n dataset: zDataset,\n datasetReshapeInfo: zDatasetReshapeInfo,\n dimensions: zDimensionTree,\n measures: zMeasureTree,\n encoding: zEncoding,\n config: zConfig,\n analysis: zAnalysis,\n theme: zTheme,\n markStyle: zMarkStyle,\n cellStyle: zCellStyle,\n customTheme: zCustomThemeConfig,\n annotation: zAnnotation,\n locale: zLocale,\n regressionLine: zRegressionLine,\n})\n\nexport type AdvancedVSeed = z.infer<typeof zAdvancedVSeed>\n"],"names":["zAdvancedVSeed","z","zChartType","zDataset","zDatasetReshapeInfo","zDimensionTree","zMeasureTree","zEncoding","zConfig","zAnalysis","zTheme","zMarkStyle","zCellStyle","zCustomThemeConfig","zAnnotation","zLocale","zRegressionLine"],"mappings":";;;;;;;;;;;;AAaO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWC;IACX,SAASC;IACT,oBAAoBC;IACpB,YAAYC;IACZ,UAAUC;IACV,
|
|
1
|
+
{"version":3,"file":"types/advancedVSeed.js","sources":["webpack://@visactor/vseed/./src/types/advancedVSeed.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zChartType } from './properties/chartType'\nimport { zDataset } from './properties/dataset'\nimport { zDimensionTree } from './properties/dimensions'\nimport { zMeasureTree } from './properties/measures'\nimport { zEncoding } from './properties/encoding'\nimport { zDatasetReshapeInfo } from './properties/datasetReshapeInfo'\nimport { zTheme, zCustomThemeConfig } from './properties/theme'\nimport { zConfig } from './properties/config'\nimport { zAnalysis, zAnnotation, zRegressionLine, zMarkStyle } from './properties'\nimport { zLocale } from './i18n'\nimport { zCellStyle } from './properties/cellStyle/cellStyle'\n\nexport const zAdvancedVSeed = z.object({\n chartType: zChartType,\n dataset: zDataset,\n datasetReshapeInfo: zDatasetReshapeInfo,\n dimensions: zDimensionTree,\n measures: zMeasureTree,\n reshapeMeasures: zMeasureTree.optional(),\n reshapeDimensions: zDimensionTree.optional(),\n encoding: zEncoding,\n config: zConfig,\n analysis: zAnalysis,\n theme: zTheme,\n markStyle: zMarkStyle,\n cellStyle: zCellStyle,\n customTheme: zCustomThemeConfig,\n annotation: zAnnotation,\n locale: zLocale,\n regressionLine: zRegressionLine,\n})\n\nexport type AdvancedVSeed = z.infer<typeof zAdvancedVSeed>\n"],"names":["zAdvancedVSeed","z","zChartType","zDataset","zDatasetReshapeInfo","zDimensionTree","zMeasureTree","zEncoding","zConfig","zAnalysis","zTheme","zMarkStyle","zCellStyle","zCustomThemeConfig","zAnnotation","zLocale","zRegressionLine"],"mappings":";;;;;;;;;;;;AAaO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWC;IACX,SAASC;IACT,oBAAoBC;IACpB,YAAYC;IACZ,UAAUC;IACV,iBAAiBA,aAAa,QAAQ;IACtC,mBAAmBD,eAAe,QAAQ;IAC1C,UAAUE;IACV,QAAQC;IACR,UAAUC;IACV,OAAOC;IACP,WAAWC;IACX,WAAWC;IACX,aAAaC;IACb,YAAYC;IACZ,QAAQC;IACR,gBAAgBC;AAClB"}
|
|
@@ -43,8 +43,8 @@ export declare const zArea: z.ZodObject<{
|
|
|
43
43
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
-
autoFormat: z.
|
|
47
|
-
numFormat: z.
|
|
46
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
number: "number";
|
|
50
50
|
percent: "percent";
|
|
@@ -74,7 +74,7 @@ export declare const zArea: z.ZodObject<{
|
|
|
74
74
|
halfEven: "halfEven";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
format: z.
|
|
77
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
number: "number";
|
|
80
80
|
percent: "percent";
|
|
@@ -106,6 +106,7 @@ export declare const zArea: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
column: "column";
|
|
109
|
+
value: "value";
|
|
109
110
|
xAxis: "xAxis";
|
|
110
111
|
yAxis: "yAxis";
|
|
111
112
|
angle: "angle";
|
|
@@ -117,6 +118,14 @@ export declare const zArea: z.ZodObject<{
|
|
|
117
118
|
secondaryYAxis: "secondaryYAxis";
|
|
118
119
|
radius: "radius";
|
|
119
120
|
size: "size";
|
|
121
|
+
q1: "q1";
|
|
122
|
+
median: "median";
|
|
123
|
+
q3: "q3";
|
|
124
|
+
min: "min";
|
|
125
|
+
max: "max";
|
|
126
|
+
outliers: "outliers";
|
|
127
|
+
x0: "x0";
|
|
128
|
+
x1: "x1";
|
|
120
129
|
}>>;
|
|
121
130
|
parentId: z.ZodOptional<z.ZodString>;
|
|
122
131
|
}, z.core.$strip>]>>>>;
|
|
@@ -43,8 +43,8 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
43
43
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
-
autoFormat: z.
|
|
47
|
-
numFormat: z.
|
|
46
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
number: "number";
|
|
50
50
|
percent: "percent";
|
|
@@ -74,7 +74,7 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
74
74
|
halfEven: "halfEven";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
format: z.
|
|
77
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
number: "number";
|
|
80
80
|
percent: "percent";
|
|
@@ -106,6 +106,7 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
column: "column";
|
|
109
|
+
value: "value";
|
|
109
110
|
xAxis: "xAxis";
|
|
110
111
|
yAxis: "yAxis";
|
|
111
112
|
angle: "angle";
|
|
@@ -117,6 +118,14 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
117
118
|
secondaryYAxis: "secondaryYAxis";
|
|
118
119
|
radius: "radius";
|
|
119
120
|
size: "size";
|
|
121
|
+
q1: "q1";
|
|
122
|
+
median: "median";
|
|
123
|
+
q3: "q3";
|
|
124
|
+
min: "min";
|
|
125
|
+
max: "max";
|
|
126
|
+
outliers: "outliers";
|
|
127
|
+
x0: "x0";
|
|
128
|
+
x1: "x1";
|
|
120
129
|
}>>;
|
|
121
130
|
parentId: z.ZodOptional<z.ZodString>;
|
|
122
131
|
}, z.core.$strip>]>>>>;
|
|
@@ -43,8 +43,8 @@ export declare const zBar: z.ZodObject<{
|
|
|
43
43
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
-
autoFormat: z.
|
|
47
|
-
numFormat: z.
|
|
46
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
number: "number";
|
|
50
50
|
percent: "percent";
|
|
@@ -74,7 +74,7 @@ export declare const zBar: z.ZodObject<{
|
|
|
74
74
|
halfEven: "halfEven";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
format: z.
|
|
77
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
number: "number";
|
|
80
80
|
percent: "percent";
|
|
@@ -106,6 +106,7 @@ export declare const zBar: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
column: "column";
|
|
109
|
+
value: "value";
|
|
109
110
|
xAxis: "xAxis";
|
|
110
111
|
yAxis: "yAxis";
|
|
111
112
|
angle: "angle";
|
|
@@ -117,6 +118,14 @@ export declare const zBar: z.ZodObject<{
|
|
|
117
118
|
secondaryYAxis: "secondaryYAxis";
|
|
118
119
|
radius: "radius";
|
|
119
120
|
size: "size";
|
|
121
|
+
q1: "q1";
|
|
122
|
+
median: "median";
|
|
123
|
+
q3: "q3";
|
|
124
|
+
min: "min";
|
|
125
|
+
max: "max";
|
|
126
|
+
outliers: "outliers";
|
|
127
|
+
x0: "x0";
|
|
128
|
+
x1: "x1";
|
|
120
129
|
}>>;
|
|
121
130
|
parentId: z.ZodOptional<z.ZodString>;
|
|
122
131
|
}, z.core.$strip>]>>>>;
|
|
@@ -43,8 +43,8 @@ export declare const zBarParallel: z.ZodObject<{
|
|
|
43
43
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
-
autoFormat: z.
|
|
47
|
-
numFormat: z.
|
|
46
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
number: "number";
|
|
50
50
|
percent: "percent";
|
|
@@ -74,7 +74,7 @@ export declare const zBarParallel: z.ZodObject<{
|
|
|
74
74
|
halfEven: "halfEven";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
format: z.
|
|
77
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
number: "number";
|
|
80
80
|
percent: "percent";
|
|
@@ -106,6 +106,7 @@ export declare const zBarParallel: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
column: "column";
|
|
109
|
+
value: "value";
|
|
109
110
|
xAxis: "xAxis";
|
|
110
111
|
yAxis: "yAxis";
|
|
111
112
|
angle: "angle";
|
|
@@ -117,6 +118,14 @@ export declare const zBarParallel: z.ZodObject<{
|
|
|
117
118
|
secondaryYAxis: "secondaryYAxis";
|
|
118
119
|
radius: "radius";
|
|
119
120
|
size: "size";
|
|
121
|
+
q1: "q1";
|
|
122
|
+
median: "median";
|
|
123
|
+
q3: "q3";
|
|
124
|
+
min: "min";
|
|
125
|
+
max: "max";
|
|
126
|
+
outliers: "outliers";
|
|
127
|
+
x0: "x0";
|
|
128
|
+
x1: "x1";
|
|
120
129
|
}>>;
|
|
121
130
|
parentId: z.ZodOptional<z.ZodString>;
|
|
122
131
|
}, z.core.$strip>]>>>>;
|
|
@@ -43,8 +43,8 @@ export declare const zBarPercent: z.ZodObject<{
|
|
|
43
43
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
-
autoFormat: z.
|
|
47
|
-
numFormat: z.
|
|
46
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
number: "number";
|
|
50
50
|
percent: "percent";
|
|
@@ -74,7 +74,7 @@ export declare const zBarPercent: z.ZodObject<{
|
|
|
74
74
|
halfEven: "halfEven";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
format: z.
|
|
77
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
number: "number";
|
|
80
80
|
percent: "percent";
|
|
@@ -106,6 +106,7 @@ export declare const zBarPercent: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
column: "column";
|
|
109
|
+
value: "value";
|
|
109
110
|
xAxis: "xAxis";
|
|
110
111
|
yAxis: "yAxis";
|
|
111
112
|
angle: "angle";
|
|
@@ -117,6 +118,14 @@ export declare const zBarPercent: z.ZodObject<{
|
|
|
117
118
|
secondaryYAxis: "secondaryYAxis";
|
|
118
119
|
radius: "radius";
|
|
119
120
|
size: "size";
|
|
121
|
+
q1: "q1";
|
|
122
|
+
median: "median";
|
|
123
|
+
q3: "q3";
|
|
124
|
+
min: "min";
|
|
125
|
+
max: "max";
|
|
126
|
+
outliers: "outliers";
|
|
127
|
+
x0: "x0";
|
|
128
|
+
x1: "x1";
|
|
120
129
|
}>>;
|
|
121
130
|
parentId: z.ZodOptional<z.ZodString>;
|
|
122
131
|
}, z.core.$strip>]>>>>;
|
|
@@ -43,8 +43,8 @@ export declare const zBoxplot: z.ZodObject<{
|
|
|
43
43
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
-
autoFormat: z.
|
|
47
|
-
numFormat: z.
|
|
46
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
number: "number";
|
|
50
50
|
percent: "percent";
|
|
@@ -74,7 +74,7 @@ export declare const zBoxplot: z.ZodObject<{
|
|
|
74
74
|
halfEven: "halfEven";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
format: z.
|
|
77
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
number: "number";
|
|
80
80
|
percent: "percent";
|
|
@@ -106,6 +106,7 @@ export declare const zBoxplot: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
column: "column";
|
|
109
|
+
value: "value";
|
|
109
110
|
xAxis: "xAxis";
|
|
110
111
|
yAxis: "yAxis";
|
|
111
112
|
angle: "angle";
|
|
@@ -117,6 +118,14 @@ export declare const zBoxplot: z.ZodObject<{
|
|
|
117
118
|
secondaryYAxis: "secondaryYAxis";
|
|
118
119
|
radius: "radius";
|
|
119
120
|
size: "size";
|
|
121
|
+
q1: "q1";
|
|
122
|
+
median: "median";
|
|
123
|
+
q3: "q3";
|
|
124
|
+
min: "min";
|
|
125
|
+
max: "max";
|
|
126
|
+
outliers: "outliers";
|
|
127
|
+
x0: "x0";
|
|
128
|
+
x1: "x1";
|
|
120
129
|
}>>;
|
|
121
130
|
parentId: z.ZodOptional<z.ZodString>;
|
|
122
131
|
}, z.core.$strip>]>>>>;
|
|
@@ -43,8 +43,8 @@ export declare const zColumn: z.ZodObject<{
|
|
|
43
43
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
-
autoFormat: z.
|
|
47
|
-
numFormat: z.
|
|
46
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
number: "number";
|
|
50
50
|
percent: "percent";
|
|
@@ -74,7 +74,7 @@ export declare const zColumn: z.ZodObject<{
|
|
|
74
74
|
halfEven: "halfEven";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
format: z.
|
|
77
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
number: "number";
|
|
80
80
|
percent: "percent";
|
|
@@ -106,6 +106,7 @@ export declare const zColumn: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
column: "column";
|
|
109
|
+
value: "value";
|
|
109
110
|
xAxis: "xAxis";
|
|
110
111
|
yAxis: "yAxis";
|
|
111
112
|
angle: "angle";
|
|
@@ -117,6 +118,14 @@ export declare const zColumn: z.ZodObject<{
|
|
|
117
118
|
secondaryYAxis: "secondaryYAxis";
|
|
118
119
|
radius: "radius";
|
|
119
120
|
size: "size";
|
|
121
|
+
q1: "q1";
|
|
122
|
+
median: "median";
|
|
123
|
+
q3: "q3";
|
|
124
|
+
min: "min";
|
|
125
|
+
max: "max";
|
|
126
|
+
outliers: "outliers";
|
|
127
|
+
x0: "x0";
|
|
128
|
+
x1: "x1";
|
|
120
129
|
}>>;
|
|
121
130
|
parentId: z.ZodOptional<z.ZodString>;
|
|
122
131
|
}, z.core.$strip>]>>>>;
|
|
@@ -43,8 +43,8 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
|
43
43
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
-
autoFormat: z.
|
|
47
|
-
numFormat: z.
|
|
46
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
number: "number";
|
|
50
50
|
percent: "percent";
|
|
@@ -74,7 +74,7 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
|
74
74
|
halfEven: "halfEven";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
format: z.
|
|
77
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
number: "number";
|
|
80
80
|
percent: "percent";
|
|
@@ -106,6 +106,7 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
column: "column";
|
|
109
|
+
value: "value";
|
|
109
110
|
xAxis: "xAxis";
|
|
110
111
|
yAxis: "yAxis";
|
|
111
112
|
angle: "angle";
|
|
@@ -117,6 +118,14 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
|
117
118
|
secondaryYAxis: "secondaryYAxis";
|
|
118
119
|
radius: "radius";
|
|
119
120
|
size: "size";
|
|
121
|
+
q1: "q1";
|
|
122
|
+
median: "median";
|
|
123
|
+
q3: "q3";
|
|
124
|
+
min: "min";
|
|
125
|
+
max: "max";
|
|
126
|
+
outliers: "outliers";
|
|
127
|
+
x0: "x0";
|
|
128
|
+
x1: "x1";
|
|
120
129
|
}>>;
|
|
121
130
|
parentId: z.ZodOptional<z.ZodString>;
|
|
122
131
|
}, z.core.$strip>]>>>>;
|
|
@@ -43,8 +43,8 @@ export declare const zColumnPercent: z.ZodObject<{
|
|
|
43
43
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
-
autoFormat: z.
|
|
47
|
-
numFormat: z.
|
|
46
|
+
autoFormat: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
numFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
number: "number";
|
|
50
50
|
percent: "percent";
|
|
@@ -74,7 +74,7 @@ export declare const zColumnPercent: z.ZodObject<{
|
|
|
74
74
|
halfEven: "halfEven";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
format: z.
|
|
77
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
number: "number";
|
|
80
80
|
percent: "percent";
|
|
@@ -106,6 +106,7 @@ export declare const zColumnPercent: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
column: "column";
|
|
109
|
+
value: "value";
|
|
109
110
|
xAxis: "xAxis";
|
|
110
111
|
yAxis: "yAxis";
|
|
111
112
|
angle: "angle";
|
|
@@ -117,6 +118,14 @@ export declare const zColumnPercent: z.ZodObject<{
|
|
|
117
118
|
secondaryYAxis: "secondaryYAxis";
|
|
118
119
|
radius: "radius";
|
|
119
120
|
size: "size";
|
|
121
|
+
q1: "q1";
|
|
122
|
+
median: "median";
|
|
123
|
+
q3: "q3";
|
|
124
|
+
min: "min";
|
|
125
|
+
max: "max";
|
|
126
|
+
outliers: "outliers";
|
|
127
|
+
x0: "x0";
|
|
128
|
+
x1: "x1";
|
|
120
129
|
}>>;
|
|
121
130
|
parentId: z.ZodOptional<z.ZodString>;
|
|
122
131
|
}, z.core.$strip>]>>>>;
|