vue-chrts 0.0.44 → 0.0.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/components/Area/Area.d.ts +23 -22
- package/dist/components/Area/index.d.ts +62 -0
- package/dist/vue-chrts.js +6670 -1652
- package/dist/vue-chrts.umd.cjs +205 -34
- package/package.json +1 -1
|
@@ -1,30 +1,31 @@
|
|
|
1
|
+
import { BaseChartProps } from '.';
|
|
1
2
|
import { BulletLegendItemInterface, CurveType } from '@unovis/ts';
|
|
2
|
-
import {
|
|
3
|
+
import { Component } from 'vue';
|
|
3
4
|
|
|
4
|
-
declare const _default: <T
|
|
5
|
-
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
7
|
+
readonly onLegendItemClick?: ((d: BulletLegendItemInterface, i: number) => any) | undefined;
|
|
8
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & (BaseChartProps<T> & {
|
|
9
|
+
/**
|
|
10
|
+
* Render custom tooltip component.
|
|
11
|
+
*/
|
|
12
|
+
customTooltip?: Component;
|
|
13
|
+
/**
|
|
14
|
+
* Type of curve
|
|
15
|
+
*/
|
|
13
16
|
curveType?: CurveType;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
gridLineY?: boolean;
|
|
21
|
-
domainLineY?: boolean;
|
|
22
|
-
paginationPoisition?: PaginationPosition;
|
|
23
|
-
}, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
17
|
+
/**
|
|
18
|
+
* Controls the visibility of gradient.
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
showGradiant?: boolean;
|
|
22
|
+
}), keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
24
23
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
25
24
|
attrs: any;
|
|
26
|
-
slots: ReturnType<() => {
|
|
27
|
-
|
|
25
|
+
slots: ReturnType<() => {
|
|
26
|
+
default?(_: {}): any;
|
|
27
|
+
}>;
|
|
28
|
+
emit: (evt: "legendItemClick", d: BulletLegendItemInterface, i: number) => void;
|
|
28
29
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
29
30
|
[key: string]: any;
|
|
30
31
|
}> & {
|
|
@@ -1,5 +1,67 @@
|
|
|
1
|
+
import { Spacing } from '@unovis/ts';
|
|
1
2
|
export { default as Area } from './Area.vue';
|
|
2
3
|
export declare enum PaginationPosition {
|
|
3
4
|
Top = "top",
|
|
4
5
|
Bottom = "bottom"
|
|
5
6
|
}
|
|
7
|
+
type KeyOf<T extends Record<string, any>> = Extract<keyof T, string>;
|
|
8
|
+
export interface BaseChartProps<T extends Record<string, any>> {
|
|
9
|
+
/**
|
|
10
|
+
* The source data, in which each entry is a dictionary.
|
|
11
|
+
*/
|
|
12
|
+
data: T[];
|
|
13
|
+
/**
|
|
14
|
+
* Select the categories from your data. Used to populate the legend and toolip.
|
|
15
|
+
*/
|
|
16
|
+
categories: KeyOf<T>[];
|
|
17
|
+
/**
|
|
18
|
+
* Sets the key to map the data to the axis.
|
|
19
|
+
*/
|
|
20
|
+
index: KeyOf<T>;
|
|
21
|
+
/**
|
|
22
|
+
* Change the default colors.
|
|
23
|
+
*/
|
|
24
|
+
colors?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* Margin of each the container
|
|
27
|
+
*/
|
|
28
|
+
margin?: Spacing;
|
|
29
|
+
/**
|
|
30
|
+
* Change the opacity of the non-selected field
|
|
31
|
+
* @default 0.2
|
|
32
|
+
*/
|
|
33
|
+
filterOpacity?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Function to format X label
|
|
36
|
+
*/
|
|
37
|
+
xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string;
|
|
38
|
+
/**
|
|
39
|
+
* Function to format Y label
|
|
40
|
+
*/
|
|
41
|
+
yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string;
|
|
42
|
+
/**
|
|
43
|
+
* Controls the visibility of the X axis.
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
showXAxis?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Controls the visibility of the Y axis.
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
showYAxis?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Controls the visibility of tooltip.
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
showTooltip?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Controls the visibility of legend.
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
showLegend?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Controls the visibility of gridline.
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
showGridLine?: boolean;
|
|
67
|
+
}
|