@visactor/vseed 0.0.10 → 0.0.12

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 (69) hide show
  1. package/dist/builder/builder/builder.d.ts +5168 -511
  2. package/dist/builder/register/theme.d.ts +4 -1
  3. package/dist/dataSelector/selector.d.ts +1 -1
  4. package/dist/index.cjs +1690 -247
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.js +1658 -254
  7. package/dist/index.js.map +1 -1
  8. package/dist/pipeline/advanced/pipes/config/config.d.ts +3 -3
  9. package/dist/pipeline/constant.d.ts +2 -0
  10. package/dist/pipeline/spec/pipes/annotation/annotationArea.d.ts +2 -0
  11. package/dist/pipeline/spec/pipes/annotation/annotationAreaBand.d.ts +2 -0
  12. package/dist/pipeline/spec/pipes/annotation/annotationHorizontalLine.d.ts +2 -0
  13. package/dist/pipeline/spec/pipes/annotation/annotationVerticalLine.d.ts +2 -0
  14. package/dist/pipeline/spec/pipes/annotation/index.d.ts +4 -0
  15. package/dist/pipeline/spec/pipes/annotation/utils.d.ts +2 -0
  16. package/dist/pipeline/spec/pipes/crosshair/horizontalCrosshairRect.d.ts +2 -0
  17. package/dist/pipeline/spec/pipes/crosshair/index.d.ts +3 -0
  18. package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairLine.d.ts +2 -0
  19. package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairRect.d.ts +2 -0
  20. package/dist/pipeline/spec/pipes/index.d.ts +1 -0
  21. package/dist/pipeline/spec/pipes/markStyle/areaStyle.d.ts +2 -0
  22. package/dist/pipeline/spec/pipes/markStyle/index.d.ts +3 -0
  23. package/dist/pipeline/spec/pipes/markStyle/lineStyle.d.ts +2 -0
  24. package/dist/pipeline/spec/pipes/markStyle/pointStyle.d.ts +2 -0
  25. package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -0
  26. package/dist/pipeline/spec/pipes/stack/stackCornerRadius.d.ts +2 -0
  27. package/dist/pipeline/utils/chatType.d.ts +16 -16
  28. package/dist/pipeline/utils/format/createFormatter.d.ts +2 -0
  29. package/dist/pipeline/utils/format/createNumFormatter.d.ts +2 -0
  30. package/dist/pipeline/utils/format/index.d.ts +2 -0
  31. package/dist/pipeline/utils/index.d.ts +4 -2
  32. package/dist/pipeline/utils/measures/findMeasureById.d.ts +2 -0
  33. package/dist/pipeline/utils/measures/index.d.ts +1 -0
  34. package/dist/types/advancedVSeed.d.ts +3018 -106
  35. package/dist/types/builder/builder.d.ts +3 -0
  36. package/dist/types/chartType/area/area.d.ts +48 -1
  37. package/dist/types/chartType/areaPercent/areaPercent.d.ts +48 -1
  38. package/dist/types/chartType/bar/bar.d.ts +28 -2
  39. package/dist/types/chartType/barParallel/barParallel.d.ts +28 -2
  40. package/dist/types/chartType/barPercent/barPercent.d.ts +28 -2
  41. package/dist/types/chartType/column/column.d.ts +28 -2
  42. package/dist/types/chartType/columnParallel/columnParallel.d.ts +28 -2
  43. package/dist/types/chartType/columnPercent/columnPercent.d.ts +28 -2
  44. package/dist/types/chartType/line/line.d.ts +39 -1
  45. package/dist/types/dataSelector/selector.d.ts +60 -6
  46. package/dist/types/properties/annotation/annotation.d.ts +747 -8
  47. package/dist/types/properties/annotation/annotationArea.d.ts +248 -0
  48. package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +253 -0
  49. package/dist/types/properties/annotation/annotationPoint.d.ts +56 -4
  50. package/dist/types/properties/annotation/annotationVerticalLine.d.ts +253 -0
  51. package/dist/types/properties/annotation/index.d.ts +3 -0
  52. package/dist/types/properties/config/config.d.ts +105 -36
  53. package/dist/types/properties/config/crosshair.d.ts +17 -0
  54. package/dist/types/properties/config/index.d.ts +2 -0
  55. package/dist/types/properties/config/stackCornerRadius.d.ts +3 -0
  56. package/dist/types/properties/markStyle/areaStyle.d.ts +129 -0
  57. package/dist/types/properties/markStyle/barStyle.d.ts +56 -4
  58. package/dist/types/properties/markStyle/index.d.ts +3 -0
  59. package/dist/types/properties/markStyle/lineStyle.d.ts +160 -0
  60. package/dist/types/properties/markStyle/markStyle.d.ts +599 -6
  61. package/dist/types/properties/markStyle/pointStyle.d.ts +168 -0
  62. package/dist/types/properties/measures/format/formatter.d.ts +1 -0
  63. package/dist/types/properties/measures/format/index.d.ts +2 -0
  64. package/dist/types/properties/measures/format/numFormat.d.ts +20 -0
  65. package/dist/types/properties/measures/index.d.ts +2 -2
  66. package/dist/types/properties/measures/measures.d.ts +40 -40
  67. package/dist/types/properties/theme/customTheme.d.ts +3094 -72
  68. package/dist/types/vseed.d.ts +20 -20
  69. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import type { AdvancedPipe } from '../../../../types';
2
2
  export declare const lineConfig: AdvancedPipe;
3
+ export declare const columnConfig: AdvancedPipe;
3
4
  export declare const pieConfig: AdvancedPipe;
5
+ export declare const areaConfig: AdvancedPipe;
6
+ export declare const areaPercentConfig: AdvancedPipe;
4
7
  export declare const barConfig: AdvancedPipe;
5
8
  export declare const barParallelConfig: AdvancedPipe;
6
9
  export declare const barPercentConfig: AdvancedPipe;
7
- export declare const columnConfig: AdvancedPipe;
8
10
  export declare const columnParallelConfig: AdvancedPipe;
9
11
  export declare const columnPercentConfig: AdvancedPipe;
10
- export declare const areaConfig: AdvancedPipe;
11
- export declare const areaPercentConfig: AdvancedPipe;
@@ -0,0 +1,2 @@
1
+ export declare const ANNOTATION_Z_INDEX = 1000;
2
+ export declare const LINEAR_AXIS_INNER_OFFSET_TOP = 5;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const annotationArea: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const annotationAreaBand: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const annotationHorizontalLine: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const annotationVerticalLine: SpecPipe;
@@ -1 +1,5 @@
1
1
  export { annotationPoint } from './annotationPoint';
2
+ export { annotationVerticalLine } from './annotationVerticalLine';
3
+ export { annotationHorizontalLine } from './annotationHorizontalLine';
4
+ export { annotationArea } from './annotationArea';
5
+ export { annotationAreaBand } from './annotationAreaBand';
@@ -0,0 +1,2 @@
1
+ import type { Datum } from "../../../../types";
2
+ export declare const isSubset: (sub: Datum, obj: Datum) => boolean;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const horizontalCrosshairRect: SpecPipe;
@@ -0,0 +1,3 @@
1
+ export { verticalCrosshairLine } from './verticalCrosshairLine';
2
+ export { verticalCrosshairRect } from './verticalCrosshairRect';
3
+ export { horizontalCrosshairRect } from './horizontalCrosshairRect';
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const verticalCrosshairLine: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const verticalCrosshairRect: SpecPipe;
@@ -11,3 +11,4 @@ export * from './color';
11
11
  export * from './pivotChart';
12
12
  export * from './markStyle';
13
13
  export * from './annotation';
14
+ export * from './crosshair';
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const areaStyle: SpecPipe;
@@ -1 +1,4 @@
1
1
  export { barStyle } from './barStyle';
2
+ export { pointStyle } from './pointStyle';
3
+ export { lineStyle } from './lineStyle';
4
+ export { areaStyle } from './areaStyle';
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const lineStyle: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const pointStyle: SpecPipe;
@@ -1 +1,2 @@
1
1
  export { stackInverse } from './stack';
2
+ export { stackCornerRadius } from './stackCornerRadius';
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../types';
2
+ export declare const stackCornerRadius: SpecPipe;
@@ -7,14 +7,14 @@ export declare const isPivotChart: (vseed: VSeed | AdvancedVSeed) => true | {
7
7
  visible?: boolean | undefined;
8
8
  autoFormat?: boolean | undefined;
9
9
  format?: {
10
- type: "number" | "percent" | "permille";
11
- ratio: number;
12
- symbol: string;
13
- thousandSeparator: boolean;
14
- decimalPlaces: number;
15
- round: "round" | "floor" | "ceil";
16
- prefix: string;
17
- suffix: string;
10
+ type?: "number" | "percent" | "permille" | undefined;
11
+ ratio?: number | undefined;
12
+ symbol?: string | undefined;
13
+ thousandSeparator?: boolean | undefined;
14
+ decimalPlaces?: number | undefined;
15
+ round?: "round" | "floor" | "ceil" | undefined;
16
+ prefix?: string | undefined;
17
+ suffix?: string | undefined;
18
18
  } | undefined;
19
19
  } | {
20
20
  id: string;
@@ -26,14 +26,14 @@ export declare const isPivotChart: (vseed: VSeed | AdvancedVSeed) => true | {
26
26
  visible?: boolean | undefined;
27
27
  autoFormat?: boolean | undefined;
28
28
  format?: {
29
- type: "number" | "percent" | "permille";
30
- ratio: number;
31
- symbol: string;
32
- thousandSeparator: boolean;
33
- decimalPlaces: number;
34
- round: "round" | "floor" | "ceil";
35
- prefix: string;
36
- suffix: string;
29
+ type?: "number" | "percent" | "permille" | undefined;
30
+ ratio?: number | undefined;
31
+ symbol?: string | undefined;
32
+ thousandSeparator?: boolean | undefined;
33
+ decimalPlaces?: number | undefined;
34
+ round?: "round" | "floor" | "ceil" | undefined;
35
+ prefix?: string | undefined;
36
+ suffix?: string | undefined;
37
37
  } | undefined;
38
38
  } | /*elided*/ any)[] | undefined;
39
39
  } | undefined;
@@ -0,0 +1,2 @@
1
+ import type { Formatter, NumFormat } from '../../../types';
2
+ export declare const createFormatter: (format: Partial<NumFormat>) => Formatter;
@@ -0,0 +1,2 @@
1
+ import type { Formatter, NumFormat } from '../../../types';
2
+ export declare const createNumFormatter: (format: NumFormat) => Formatter;
@@ -0,0 +1,2 @@
1
+ export { createNumFormatter } from './createNumFormatter';
2
+ export { createFormatter } from './createFormatter';
@@ -1,2 +1,4 @@
1
- export { execPipeline } from './pipeline';
2
- export { isVTable, isVChart, isPivotChart } from './chatType';
1
+ export * from './pipeline';
2
+ export * from './chatType';
3
+ export * from './format';
4
+ export * from './measures';
@@ -0,0 +1,2 @@
1
+ import type { Measure, Measures } from '../../../types';
2
+ export declare function findMeasureById(measures: Measures, id: string): Measure | undefined;
@@ -0,0 +1 @@
1
+ export { findMeasureById } from './findMeasureById';