vue-chrts 0.1.0-beta.2-internal-17 → 0.1.0-beta.2-internal-18
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/vue-chrts.js +522 -0
- package/dist/vue-chrts.mjs +522 -0
- package/dist/vue-chrts.umd.js +10 -0
- package/package.json +8 -22
- package/dist/components/Area/AreaChart.cjs +0 -7
- package/dist/components/Area/AreaChart.cjs.map +0 -1
- package/dist/components/Area/AreaChart.d.ts +0 -17
- package/dist/components/Area/AreaChart.js +0 -134
- package/dist/components/Area/AreaChart.js.map +0 -1
- package/dist/components/Area/AreaChart2.cjs +0 -2
- package/dist/components/Area/AreaChart2.cjs.map +0 -1
- package/dist/components/Area/AreaChart2.js +0 -5
- package/dist/components/Area/AreaChart2.js.map +0 -1
- package/dist/components/Area/index.d.ts +0 -2
- package/dist/components/Area/types.d.ts +0 -83
- package/dist/components/AreaStacked/AreaStackedChart.cjs +0 -2
- package/dist/components/AreaStacked/AreaStackedChart.cjs.map +0 -1
- package/dist/components/AreaStacked/AreaStackedChart.d.ts +0 -20
- package/dist/components/AreaStacked/AreaStackedChart.js +0 -70
- package/dist/components/AreaStacked/AreaStackedChart.js.map +0 -1
- package/dist/components/AreaStacked/AreaStackedChart2.cjs +0 -2
- package/dist/components/AreaStacked/AreaStackedChart2.cjs.map +0 -1
- package/dist/components/AreaStacked/AreaStackedChart2.js +0 -5
- package/dist/components/AreaStacked/AreaStackedChart2.js.map +0 -1
- package/dist/components/AreaStacked/index.d.ts +0 -1
- package/dist/components/Bar/BarChart.cjs +0 -2
- package/dist/components/Bar/BarChart.cjs.map +0 -1
- package/dist/components/Bar/BarChart.d.ts +0 -36
- package/dist/components/Bar/BarChart.js +0 -114
- package/dist/components/Bar/BarChart.js.map +0 -1
- package/dist/components/Bar/BarChart2.cjs +0 -2
- package/dist/components/Bar/BarChart2.cjs.map +0 -1
- package/dist/components/Bar/BarChart2.js +0 -5
- package/dist/components/Bar/BarChart2.js.map +0 -1
- package/dist/components/Bar/index.d.ts +0 -1
- package/dist/components/Crosshair/Crosshair.cjs +0 -2
- package/dist/components/Crosshair/Crosshair.cjs.map +0 -1
- package/dist/components/Crosshair/Crosshair.d.ts +0 -38
- package/dist/components/Crosshair/Crosshair.js +0 -40
- package/dist/components/Crosshair/Crosshair.js.map +0 -1
- package/dist/components/Crosshair/Crosshair2.cjs +0 -2
- package/dist/components/Crosshair/Crosshair2.cjs.map +0 -1
- package/dist/components/Crosshair/Crosshair2.js +0 -5
- package/dist/components/Crosshair/Crosshair2.js.map +0 -1
- package/dist/components/Crosshair/index.d.ts +0 -1
- package/dist/components/Donut/DonutChart.cjs +0 -6
- package/dist/components/Donut/DonutChart.cjs.map +0 -1
- package/dist/components/Donut/DonutChart.d.ts +0 -22
- package/dist/components/Donut/DonutChart.js +0 -59
- package/dist/components/Donut/DonutChart.js.map +0 -1
- package/dist/components/Donut/DonutChart2.cjs +0 -2
- package/dist/components/Donut/DonutChart2.cjs.map +0 -1
- package/dist/components/Donut/DonutChart2.js +0 -5
- package/dist/components/Donut/DonutChart2.js.map +0 -1
- package/dist/components/Donut/index.cjs +0 -2
- package/dist/components/Donut/index.cjs.map +0 -1
- package/dist/components/Donut/index.d.ts +0 -17
- package/dist/components/Donut/index.js +0 -5
- package/dist/components/Donut/index.js.map +0 -1
- package/dist/components/Line/LineChart.cjs +0 -2
- package/dist/components/Line/LineChart.cjs.map +0 -1
- package/dist/components/Line/LineChart.d.ts +0 -27
- package/dist/components/Line/LineChart.js +0 -91
- package/dist/components/Line/LineChart.js.map +0 -1
- package/dist/components/Line/LineChart2.cjs +0 -2
- package/dist/components/Line/LineChart2.cjs.map +0 -1
- package/dist/components/Line/LineChart2.js +0 -5
- package/dist/components/Line/LineChart2.js.map +0 -1
- package/dist/components/Line/index.d.ts +0 -1
- package/dist/components/Tooltip.cjs +0 -2
- package/dist/components/Tooltip.cjs.map +0 -1
- package/dist/components/Tooltip.d.ts +0 -17
- package/dist/components/Tooltip.js +0 -38
- package/dist/components/Tooltip.js.map +0 -1
- package/dist/components/Tooltip2.cjs +0 -2
- package/dist/components/Tooltip2.cjs.map +0 -1
- package/dist/components/Tooltip2.js +0 -5
- package/dist/components/Tooltip2.js.map +0 -1
- package/dist/components.d.ts +0 -6
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -23
- package/dist/index.js.map +0 -1
- package/dist/types/components/Area/AreaChart.vue.d.ts +0 -16
- package/dist/types/components/Area/index.d.ts +0 -2
- package/dist/types/components/Area/types.d.ts +0 -82
- package/dist/types/components/AreaStacked/AreaStackedChart.vue.d.ts +0 -22
- package/dist/types/components/AreaStacked/index.d.ts +0 -1
- package/dist/types/components/Bar/BarChart.vue.d.ts +0 -35
- package/dist/types/components/Bar/index.d.ts +0 -1
- package/dist/types/components/Crosshair/Crosshair.vue.d.ts +0 -12
- package/dist/types/components/Crosshair/index.d.ts +0 -1
- package/dist/types/components/Donut/DonutChart.vue.d.ts +0 -29
- package/dist/types/components/Donut/index.d.ts +0 -17
- package/dist/types/components/Line/LineChart.vue.d.ts +0 -29
- package/dist/types/components/Line/index.d.ts +0 -1
- package/dist/types/components/Tooltip.vue.d.ts +0 -19
- package/dist/types/components.d.ts +0 -6
- package/dist/types/index.d.ts +0 -6
- package/dist/types/types.d.ts +0 -4
- package/dist/types/utils.d.ts +0 -1
- package/dist/types.cjs +0 -2
- package/dist/types.cjs.map +0 -1
- package/dist/types.d.ts +0 -4
- package/dist/types.js +0 -5
- package/dist/types.js.map +0 -1
- package/dist/utils.cjs +0 -2
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js +0 -19
- package/dist/utils.js.map +0 -1
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { PaginationPosition } from "../../types";
|
|
2
|
-
import type { BulletLegendItemInterface, CurveType } from "@unovis/ts";
|
|
3
|
-
export interface AreaChartProps<T> {
|
|
4
|
-
/**
|
|
5
|
-
* The data to be displayed in the area chart.
|
|
6
|
-
* Each element of the array represents a data point.
|
|
7
|
-
* The structure of 'T' should be compatible with the chart's rendering logic.
|
|
8
|
-
*/
|
|
9
|
-
data: T[];
|
|
10
|
-
/**
|
|
11
|
-
* The height of the chart in pixels.
|
|
12
|
-
*/
|
|
13
|
-
height: number;
|
|
14
|
-
/**
|
|
15
|
-
* Optional label for the x-axis.
|
|
16
|
-
*/
|
|
17
|
-
xLabel?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional label for the y-axis.
|
|
20
|
-
*/
|
|
21
|
-
yLabel?: string;
|
|
22
|
-
/**
|
|
23
|
-
* A record mapping category keys to `BulletLegendItemInterface` objects.
|
|
24
|
-
* This defines the visual representation and labels for each category in the chart's legend.
|
|
25
|
-
*/
|
|
26
|
-
categories: Record<string, BulletLegendItemInterface>;
|
|
27
|
-
/**
|
|
28
|
-
* A function that formats the x-axis tick labels.
|
|
29
|
-
* @param item The x-axis value to be formatted.
|
|
30
|
-
* @returns The formatted x-axis label.
|
|
31
|
-
*/
|
|
32
|
-
xFormatter: (item: T) => string | number;
|
|
33
|
-
/**
|
|
34
|
-
* An optional function that formats the y-axis tick labels.
|
|
35
|
-
* @param i The value to be formatted.
|
|
36
|
-
* @param idx The index of the data point (optional).
|
|
37
|
-
* @returns The formatted y-axis label or value.
|
|
38
|
-
*/
|
|
39
|
-
yFormatter?: (i: number, idx?: number) => string | number;
|
|
40
|
-
/**
|
|
41
|
-
* The type of curve to use for the area chart lines.
|
|
42
|
-
* See `CurveType` for available options.
|
|
43
|
-
*/
|
|
44
|
-
curveType?: CurveType;
|
|
45
|
-
/**
|
|
46
|
-
* The desired number of ticks on the x-axis.
|
|
47
|
-
*/
|
|
48
|
-
xNumTicks?: number;
|
|
49
|
-
/**
|
|
50
|
-
* The desired number of ticks on the y-axis.
|
|
51
|
-
*/
|
|
52
|
-
yNumTicks?: number;
|
|
53
|
-
/**
|
|
54
|
-
* If `true`, hides the chart legend.
|
|
55
|
-
*/
|
|
56
|
-
hideLegend?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* If `true`, hides the chart tooltip.
|
|
59
|
-
*/
|
|
60
|
-
hideTooltip?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* If `true`, displays grid lines along the x-axis.
|
|
63
|
-
*/
|
|
64
|
-
gridLineX?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* If `true`, displays a domain line (axis line) along the x-axis.
|
|
67
|
-
*/
|
|
68
|
-
domainLineX?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* If `true`, displays grid lines along the y-axis.
|
|
71
|
-
*/
|
|
72
|
-
gridLineY?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* If `true`, displays a domain line (axis line) along the y-axis.
|
|
75
|
-
*/
|
|
76
|
-
domainLineY?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Optional position for pagination controls, if applicable.
|
|
79
|
-
* See `PaginationPosition` for available options.
|
|
80
|
-
*/
|
|
81
|
-
paginationPosition?: PaginationPosition;
|
|
82
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BulletLegendItemInterface } from "@unovis/ts";
|
|
2
|
-
export type AreaStackedChartProps<T> = {
|
|
3
|
-
data: T[];
|
|
4
|
-
height: number;
|
|
5
|
-
categories: Record<string, BulletLegendItemInterface>;
|
|
6
|
-
hideTooltip?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
9
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & AreaStackedChartProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
10
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
11
|
-
attrs: any;
|
|
12
|
-
slots: {};
|
|
13
|
-
emit: {};
|
|
14
|
-
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}> & {
|
|
17
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_PrettifyLocal<T> = {
|
|
21
|
-
[K in keyof T]: T[K];
|
|
22
|
-
} & {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as AreaStackedChart } from './AreaStackedChart.vue';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BulletLegendItemInterface, Orientation } from "@unovis/ts";
|
|
2
|
-
import { PaginationPosition } from "../../types";
|
|
3
|
-
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
|
|
5
|
-
data: T[];
|
|
6
|
-
stacked?: boolean;
|
|
7
|
-
height: number;
|
|
8
|
-
xLabel?: string;
|
|
9
|
-
yLabel?: string;
|
|
10
|
-
categories: Record<string, BulletLegendItemInterface>;
|
|
11
|
-
xFormatter: (i: number, idx?: number) => string | number;
|
|
12
|
-
yFormatter?: (i: number, idx?: number) => string | number;
|
|
13
|
-
yNumTicks?: number;
|
|
14
|
-
xNumTicks?: number;
|
|
15
|
-
yAxis: (keyof T)[];
|
|
16
|
-
groupPadding?: number;
|
|
17
|
-
barPadding?: number;
|
|
18
|
-
radius?: number;
|
|
19
|
-
hideLegend?: boolean;
|
|
20
|
-
orientation?: Orientation;
|
|
21
|
-
paginationPosition?: PaginationPosition;
|
|
22
|
-
} & Partial<{}>> & import("vue").PublicProps;
|
|
23
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
24
|
-
attrs: any;
|
|
25
|
-
slots: {};
|
|
26
|
-
emit: {};
|
|
27
|
-
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}> & {
|
|
30
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
33
|
-
type __VLS_PrettifyLocal<T> = {
|
|
34
|
-
[K in keyof T]: T[K];
|
|
35
|
-
} & {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as BarChart } from './BarChart.vue';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
-
import { type Component } from 'vue';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
colors: string[];
|
|
5
|
-
index: string;
|
|
6
|
-
items: BulletLegendItemInterface[];
|
|
7
|
-
customTooltip?: Component;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
-
colors: string[];
|
|
11
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Crosshair } from './Crosshair.vue';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { VisBulletLegend, VisDonut, VisSingleContainer, VisTooltip } from "@unovis/vue";
|
|
2
|
-
import { type DonutChartProps } from ".";
|
|
3
|
-
declare const value: (d: number) => number;
|
|
4
|
-
declare const isHalf: boolean;
|
|
5
|
-
declare const tooltip: {
|
|
6
|
-
[x: string]: (d: any) => string;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
9
|
-
declare var __VLS_13: {};
|
|
10
|
-
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
11
|
-
default?: (props: typeof __VLS_13) => any;
|
|
12
|
-
}>;
|
|
13
|
-
declare const __VLS_self: import("vue").DefineComponent<DonutChartProps, {
|
|
14
|
-
VisBulletLegend: typeof VisBulletLegend;
|
|
15
|
-
VisDonut: typeof VisDonut;
|
|
16
|
-
VisSingleContainer: typeof VisSingleContainer;
|
|
17
|
-
VisTooltip: typeof VisTooltip;
|
|
18
|
-
value: typeof value;
|
|
19
|
-
isHalf: typeof isHalf;
|
|
20
|
-
tooltip: typeof tooltip;
|
|
21
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DonutChartProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const __VLS_component: import("vue").DefineComponent<DonutChartProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DonutChartProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
-
new (): {
|
|
27
|
-
$slots: S;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { default as DonutChart } from "./DonutChart.vue";
|
|
2
|
-
type DonutChartProps = {
|
|
3
|
-
type?: string;
|
|
4
|
-
data: number[];
|
|
5
|
-
height: number;
|
|
6
|
-
radius: number;
|
|
7
|
-
hidePagination?: boolean;
|
|
8
|
-
labels: {
|
|
9
|
-
name: string;
|
|
10
|
-
color: string;
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
declare enum DonutType {
|
|
14
|
-
Half = "half",
|
|
15
|
-
Full = "full"
|
|
16
|
-
}
|
|
17
|
-
export { type DonutChartProps, DonutType };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CurveType, BulletLegendItemInterface } from "@unovis/ts";
|
|
2
|
-
import { PaginationPosition } from "../../types";
|
|
3
|
-
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
|
|
5
|
-
data: T[];
|
|
6
|
-
height: number;
|
|
7
|
-
xLabel?: string;
|
|
8
|
-
yLabel?: string;
|
|
9
|
-
categories: Record<string, BulletLegendItemInterface>;
|
|
10
|
-
xFormatter: (i: number, idx: number) => string;
|
|
11
|
-
yFormatter?: (i: number, idx: number) => string;
|
|
12
|
-
curveType?: CurveType;
|
|
13
|
-
yNumTicks?: number;
|
|
14
|
-
xNumTicks?: number;
|
|
15
|
-
paginationPosition?: PaginationPosition;
|
|
16
|
-
} & Partial<{}>> & import("vue").PublicProps;
|
|
17
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
18
|
-
attrs: any;
|
|
19
|
-
slots: {};
|
|
20
|
-
emit: {};
|
|
21
|
-
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}> & {
|
|
24
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_PrettifyLocal<T> = {
|
|
28
|
-
[K in keyof T]: T[K];
|
|
29
|
-
} & {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as LineChart } from './LineChart.vue';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BulletLegendItemInterface } from "@unovis/ts";
|
|
2
|
-
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
|
|
4
|
-
data: T;
|
|
5
|
-
categories: Record<string, BulletLegendItemInterface>;
|
|
6
|
-
} & Partial<{}>> & import("vue").PublicProps;
|
|
7
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
8
|
-
attrs: any;
|
|
9
|
-
slots: {};
|
|
10
|
-
emit: {};
|
|
11
|
-
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}> & {
|
|
14
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_PrettifyLocal<T> = {
|
|
18
|
-
[K in keyof T]: T[K];
|
|
19
|
-
} & {};
|
package/dist/types/index.d.ts
DELETED
package/dist/types/types.d.ts
DELETED
package/dist/types/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getDistributedIndices(length: any, numTicks: any): any[];
|
package/dist/types.cjs
DELETED
package/dist/types.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sources":["../src/types.ts"],"sourcesContent":["export enum PaginationPosition {\n Top = \"top\",\n Bottom = \"bottom\",\n }\n "],"names":["PaginationPosition"],"mappings":"gFAAY,IAAAA,GAAAA,IACRA,EAAA,IAAM,MACNA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA"}
|
package/dist/types.d.ts
DELETED
package/dist/types.js
DELETED
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../src/types.ts"],"sourcesContent":["export enum PaginationPosition {\n Top = \"top\",\n Bottom = \"bottom\",\n }\n "],"names":["PaginationPosition"],"mappings":"AAAY,IAAAA,sBAAAA,OACRA,EAAA,MAAM,OACNA,EAAA,SAAS,UAFDA,IAAAA,KAAA,CAAA,CAAA;"}
|
package/dist/utils.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function d(t,r){if(r<=0)return[];if(r>=t)return Array.from({length:t},(e,i)=>i);if(r===1)return[Math.floor((t-1)/2)];if(r===2)return[0,t-1];const o=[];for(let e=0;e<r;e++){const i=Math.round(e*(t-1)/(r-1));o.push(i)}return o}exports.getDistributedIndices=d;
|
|
2
|
-
//# sourceMappingURL=utils.cjs.map
|
package/dist/utils.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.cjs","sources":["../src/utils.ts"],"sourcesContent":["export function getDistributedIndices(length, numTicks) {\n // Handle edge cases\n if (numTicks <= 0) return [];\n\n // If numTicks >= length, return all indices\n if (numTicks >= length) {\n return Array.from({ length }, (_, i) => i);\n }\n\n // Special case: if numTicks is 1, return only the middle index\n if (numTicks === 1) {\n return [Math.floor((length - 1) / 2)];\n }\n\n // For 2 ticks, just return first and last\n if (numTicks === 2) {\n return [0, length - 1];\n }\n\n // For 3 or more ticks, we need to ensure perfectly even distribution\n const indices = [];\n\n // We'll manually calculate the indices to ensure perfect distribution\n for (let i = 0; i < numTicks; i++) {\n // This formula ensures perfect distribution of indices\n const index = Math.round(i * (length - 1) / (numTicks - 1));\n indices.push(index);\n }\n\n // No need to filter duplicates as our formula ensures unique indices\n return indices;\n}"],"names":["getDistributedIndices","length","numTicks","_","indices","i","index"],"mappings":"gFAAgB,SAAAA,EAAsBC,EAAQC,EAAU,CAElD,GAAAA,GAAY,EAAG,MAAO,CAAC,EAG3B,GAAIA,GAAYD,EACP,OAAA,MAAM,KAAK,CAAE,OAAAA,GAAU,CAACE,EAAG,IAAM,CAAC,EAI3C,GAAID,IAAa,EACf,MAAO,CAAC,KAAK,OAAOD,EAAS,GAAK,CAAC,CAAC,EAItC,GAAIC,IAAa,EACR,MAAA,CAAC,EAAGD,EAAS,CAAC,EAIvB,MAAMG,EAAU,CAAC,EAGjB,QAASC,EAAI,EAAGA,EAAIH,EAAUG,IAAK,CAEjC,MAAMC,EAAQ,KAAK,MAAMD,GAAKJ,EAAS,IAAMC,EAAW,EAAE,EAC1DE,EAAQ,KAAKE,CAAK,CAAA,CAIb,OAAAF,CACT"}
|
package/dist/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getDistributedIndices(length: any, numTicks: any): any[];
|
package/dist/utils.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
function i(t, r) {
|
|
2
|
-
if (r <= 0) return [];
|
|
3
|
-
if (r >= t)
|
|
4
|
-
return Array.from({ length: t }, (o, e) => e);
|
|
5
|
-
if (r === 1)
|
|
6
|
-
return [Math.floor((t - 1) / 2)];
|
|
7
|
-
if (r === 2)
|
|
8
|
-
return [0, t - 1];
|
|
9
|
-
const f = [];
|
|
10
|
-
for (let o = 0; o < r; o++) {
|
|
11
|
-
const e = Math.round(o * (t - 1) / (r - 1));
|
|
12
|
-
f.push(e);
|
|
13
|
-
}
|
|
14
|
-
return f;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
i as getDistributedIndices
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../src/utils.ts"],"sourcesContent":["export function getDistributedIndices(length, numTicks) {\n // Handle edge cases\n if (numTicks <= 0) return [];\n\n // If numTicks >= length, return all indices\n if (numTicks >= length) {\n return Array.from({ length }, (_, i) => i);\n }\n\n // Special case: if numTicks is 1, return only the middle index\n if (numTicks === 1) {\n return [Math.floor((length - 1) / 2)];\n }\n\n // For 2 ticks, just return first and last\n if (numTicks === 2) {\n return [0, length - 1];\n }\n\n // For 3 or more ticks, we need to ensure perfectly even distribution\n const indices = [];\n\n // We'll manually calculate the indices to ensure perfect distribution\n for (let i = 0; i < numTicks; i++) {\n // This formula ensures perfect distribution of indices\n const index = Math.round(i * (length - 1) / (numTicks - 1));\n indices.push(index);\n }\n\n // No need to filter duplicates as our formula ensures unique indices\n return indices;\n}"],"names":["getDistributedIndices","length","numTicks","_","i","indices","index"],"mappings":"AAAgB,SAAAA,EAAsBC,GAAQC,GAAU;AAElD,MAAAA,KAAY,EAAG,QAAO,CAAC;AAG3B,MAAIA,KAAYD;AACP,WAAA,MAAM,KAAK,EAAE,QAAAA,KAAU,CAACE,GAAGC,MAAMA,CAAC;AAI3C,MAAIF,MAAa;AACf,WAAO,CAAC,KAAK,OAAOD,IAAS,KAAK,CAAC,CAAC;AAItC,MAAIC,MAAa;AACR,WAAA,CAAC,GAAGD,IAAS,CAAC;AAIvB,QAAMI,IAAU,CAAC;AAGjB,WAASD,IAAI,GAAGA,IAAIF,GAAUE,KAAK;AAEjC,UAAME,IAAQ,KAAK,MAAMF,KAAKH,IAAS,MAAMC,IAAW,EAAE;AAC1D,IAAAG,EAAQ,KAAKC,CAAK;AAAA,EAAA;AAIb,SAAAD;AACT;"}
|