vue-chrts 1.0.0-test.2 → 1.0.0-test.3
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/DonutChart/DonutChart.js +8 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -10
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -3,7 +3,12 @@ import { Donut as R } from "@unovis/ts";
|
|
|
3
3
|
import { DonutType as z } from "./types.js";
|
|
4
4
|
import { VisSingleContainer as H, VisTooltip as N, VisDonut as $, VisBulletLegend as j } from "@unovis/vue";
|
|
5
5
|
import { LegendPosition as E } from "../../types.js";
|
|
6
|
-
const M = {
|
|
6
|
+
const M = { style: {
|
|
7
|
+
position: "absolute",
|
|
8
|
+
top: "50%",
|
|
9
|
+
left: "50%",
|
|
10
|
+
transform: "translate(-50%, -50%)"
|
|
11
|
+
} }, O = {
|
|
7
12
|
ref: "slotWrapper",
|
|
8
13
|
style: { display: "none" }
|
|
9
14
|
}, U = { style: { display: "flex", "align-items": "center", padding: "10px 15px" } }, K = /* @__PURE__ */ T({
|
|
@@ -21,8 +26,8 @@ const M = { class: "absolute top-1/2 left-1/2 -translate-1/2" }, O = {
|
|
|
21
26
|
padAngle: {}
|
|
22
27
|
},
|
|
23
28
|
emits: ["click"],
|
|
24
|
-
setup(
|
|
25
|
-
const C =
|
|
29
|
+
setup(y, { emit: h }) {
|
|
30
|
+
const C = h, n = y, k = B(), g = P("slotWrapper"), r = W(), V = (e) => e, x = n.type === z.Half;
|
|
26
31
|
function S(e) {
|
|
27
32
|
return r.value = e, w();
|
|
28
33
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { default as BarChart } from './components/BarChart/BarChart.vue';
|
|
|
4
4
|
import { default as DonutChart } from './components/DonutChart/DonutChart.vue';
|
|
5
5
|
import { default as BubbleChart } from './components/BubbleChart/BubbleChart.vue';
|
|
6
6
|
import { default as GanttChart } from './components/GanttChart/GanttChart.vue';
|
|
7
|
-
import { LegendPosition, CurveType, Orientation, BulletLegendItemInterface, MarkerConfig, CrosshairConfig } from './types';
|
|
8
|
-
export { AreaChart, LineChart, BarChart, DonutChart, BubbleChart, GanttChart, Orientation, CurveType, LegendPosition };
|
|
7
|
+
import { LegendPosition, CurveType, Orientation, BulletLegendItemInterface, MarkerConfig, CrosshairConfig, DonutType } from './types';
|
|
8
|
+
export { AreaChart, LineChart, BarChart, DonutChart, BubbleChart, GanttChart, Orientation, CurveType, LegendPosition, DonutType };
|
|
9
9
|
export type { BulletLegendItemInterface, MarkerConfig, CrosshairConfig };
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as e } from "./components/AreaChart/AreaChart.js";
|
|
2
2
|
import { default as o } from "./components/LineChart/LineChart.js";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
3
|
+
import { default as p } from "./components/BarChart/BarChart.js";
|
|
4
|
+
import { default as m } from "./components/DonutChart/DonutChart.js";
|
|
5
|
+
import { default as x } from "./components/BubbleChart/BubbleChart.js";
|
|
6
|
+
import { default as l } from "./components/GanttChart/GanttChart.js";
|
|
7
7
|
import { CurveType as C, LegendPosition as h, Orientation as i } from "./types.js";
|
|
8
|
+
import { DonutType as y } from "./components/DonutChart/types.js";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
e as AreaChart,
|
|
11
|
+
p as BarChart,
|
|
12
|
+
x as BubbleChart,
|
|
12
13
|
C as CurveType,
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
m as DonutChart,
|
|
15
|
+
y as DonutType,
|
|
16
|
+
l as GanttChart,
|
|
15
17
|
h as LegendPosition,
|
|
16
18
|
o as LineChart,
|
|
17
19
|
i as Orientation
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AreaChartProps } from './components/AreaChart/types';
|
|
2
2
|
import { BarChartProps } from './components/BarChart/types';
|
|
3
3
|
import { LineChartProps } from './components/LineChart/types';
|
|
4
|
-
import { DonutChartProps } from './components/DonutChart/types';
|
|
4
|
+
import { DonutChartProps, DonutType } from './components/DonutChart/types';
|
|
5
5
|
import { BubbleChartProps } from './components/BubbleChart/types';
|
|
6
6
|
import { GanttChartProps } from './components/GanttChart/types';
|
|
7
7
|
declare enum LegendPosition {
|
|
@@ -44,7 +44,7 @@ declare enum Orientation {
|
|
|
44
44
|
Horizontal = "horizontal",
|
|
45
45
|
Vertical = "vertical"
|
|
46
46
|
}
|
|
47
|
-
export { LegendPosition, CurveType, Orientation, type AreaChartProps, type BarChartProps, type LineChartProps, type DonutChartProps, type BulletLegendItemInterface, type BubbleChartProps, type GanttChartProps, };
|
|
47
|
+
export { LegendPosition, CurveType, Orientation, DonutType, type AreaChartProps, type BarChartProps, type LineChartProps, type DonutChartProps, type BulletLegendItemInterface, type BubbleChartProps, type GanttChartProps, };
|
|
48
48
|
export type axisFormatter = ((tick: number, i?: number, ticks?: number[]) => string) | ((tick: Date, i?: number, ticks?: Date[]) => string);
|
|
49
49
|
export interface AxisConfig {
|
|
50
50
|
tickLine?: boolean;
|