vue-chrts 2.1.0-beta-7 → 2.1.0-beta-8

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 (35) hide show
  1. package/dist/components/AreaChart/AreaChart.js +95 -116
  2. package/dist/components/AreaChart/types.d.ts +1 -205
  3. package/dist/components/BarChart/BarChart.js +9 -9
  4. package/dist/components/BarChart/types.d.ts +1 -191
  5. package/dist/components/BubbleChart/BubbleChart.js +4 -4
  6. package/dist/components/BubbleChart/types.d.ts +1 -172
  7. package/dist/components/DagreGraph/DagreGraph.js +65 -62
  8. package/dist/components/DagreGraph/types.d.ts +1 -1
  9. package/dist/components/DonutChart/DonutChart.js +5 -5
  10. package/dist/components/DonutChart/types.d.ts +2 -68
  11. package/dist/components/DualChart/DualChart.js +125 -122
  12. package/dist/components/DualChart/types.d.ts +1 -1
  13. package/dist/components/GanttChart/GanttChart.js +6 -6
  14. package/dist/components/GanttChart/types.d.ts +1 -124
  15. package/dist/components/LineChart/LineChart.js +7 -12
  16. package/dist/components/LineChart/types.d.ts +1 -2
  17. package/dist/components/Maps/DottedMap/DottedMap.js +2 -2
  18. package/dist/components/Maps/DottedMap/core.js +2 -2
  19. package/dist/components/Maps/DottedMap/core.vue.d.ts +1 -1
  20. package/dist/components/Maps/DottedMap/mapUtils.js +1 -1
  21. package/dist/components/Maps/TopoJSONMap/TopoJSONMap.js +5 -5
  22. package/dist/components/SankeyChart/SankeyChart.js +59 -56
  23. package/dist/components/SankeyChart/types.d.ts +1 -1
  24. package/dist/components/Tooltip.js +5 -5
  25. package/dist/index.d.ts +3 -3
  26. package/dist/index.js +2 -2
  27. package/dist/node_modules/.pnpm/{@turf_boolean-point-in-polygon@7.3.1 → @turf_boolean-point-in-polygon@7.3.2}/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js +1 -1
  28. package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/orient2d.js +1 -1
  29. package/dist/packages/shared/dist/donut-chart.js +7 -0
  30. package/dist/packages/shared/dist/index.js +19 -0
  31. package/dist/types.d.ts +7 -101
  32. package/package.json +8 -2
  33. package/dist/components/DonutChart/types.js +0 -4
  34. package/dist/types.js +0 -6
  35. /package/dist/node_modules/.pnpm/{@turf_invariant@7.3.1 → @turf_invariant@7.3.2}/node_modules/@turf/invariant/dist/esm/index.js +0 -0
@@ -19,8 +19,8 @@ declare const __VLS_component: import('vue').DefineComponent<DottedMapProps, {},
19
19
  "onPoint-click"?: ((event: MouseEvent, point: any) => any) | undefined;
20
20
  "onPin-click"?: ((point: any) => any) | undefined;
21
21
  }>, {
22
- grid: "vertical" | "diagonal";
23
22
  color: string;
23
+ grid: "vertical" | "diagonal";
24
24
  avoidOuterPins: boolean;
25
25
  dotSize: number;
26
26
  strokeWidth: number;
@@ -1,5 +1,5 @@
1
1
  import y from "../../../node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/index.js";
2
- import Y from "../../../node_modules/.pnpm/@turf_boolean-point-in-polygon@7.3.1/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js";
2
+ import Y from "../../../node_modules/.pnpm/@turf_boolean-point-in-polygon@7.3.2/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js";
3
3
  y.defs("GOOGLE") || y.defs("GOOGLE", "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs");
4
4
  const h = {
5
5
  lat: { min: -56, max: 71 },
@@ -1,8 +1,8 @@
1
- import { defineComponent as M, useSlots as O, useTemplateRef as y, ref as C, computed as u, createElementBlock as h, openBlock as c, normalizeStyle as d, createVNode as l, createCommentVNode as f, createElementVNode as A, unref as r, withCtx as R, createBlock as $, renderSlot as v } from "vue";
1
+ import { defineComponent as M, useSlots as O, useTemplateRef as y, ref as C, computed as u, openBlock as c, createElementBlock as h, normalizeStyle as d, createVNode as l, unref as r, withCtx as A, createBlock as R, createCommentVNode as f, createElementVNode as $, renderSlot as v } from "vue";
2
2
  import { VisSingleContainer as D, VisTopoJSONMap as K, VisTooltip as H, VisBulletLegend as q } from "@unovis/vue";
3
3
  import { TopoJSONMap as s } from "@unovis/ts";
4
4
  import G from "../../Tooltip.js";
5
- import { LegendPosition as I } from "../../../types.js";
5
+ import { LegendPosition as I } from "../../../packages/shared/dist/index.js";
6
6
  const Q = {
7
7
  ref: "slotWrapper",
8
8
  style: { display: "none" }
@@ -88,7 +88,7 @@ const Q = {
88
88
  width: e.width,
89
89
  padding: e.padding
90
90
  }, {
91
- default: R(() => [
91
+ default: A(() => [
92
92
  l(r(K), {
93
93
  ref_key: "map",
94
94
  ref: p,
@@ -122,7 +122,7 @@ const Q = {
122
122
  }
123
123
  }
124
124
  }, null, 8, ["data", "point-data", "link-data", "topojson", "projection", "zoom-factor", "zoom-extent", "fitView", "fitViewPadding", "pointCursor", "pointStrokeWidth", "linkCursor", "mapFitToPoints", "areaCursor", "map-feature-name", "events"]),
125
- e.hideTooltip ? f("", !0) : (c(), $(r(H), {
125
+ e.hideTooltip ? f("", !0) : (c(), R(r(H), {
126
126
  key: 0,
127
127
  triggers: V
128
128
  }))
@@ -147,7 +147,7 @@ const Q = {
147
147
  }))
148
148
  }, null, 8, ["style", "items"])
149
149
  ], 4)) : f("", !0),
150
- A("div", Q, [
150
+ $("div", Q, [
151
151
  r(w).tooltip ? v(t.$slots, "tooltip", {
152
152
  key: 0,
153
153
  values: n.value
@@ -1,12 +1,12 @@
1
- import { defineComponent as W, useSlots as x, useTemplateRef as V, ref as L, computed as f, createElementBlock as c, openBlock as d, normalizeStyle as r, createVNode as a, createCommentVNode as s, createElementVNode as p, unref as o, withCtx as P, createBlock as w, renderSlot as h } from "vue";
2
- import { SankeyNodeAlign as A, Sankey as B } from "@unovis/ts";
3
- import { VisSingleContainer as N, VisTooltip as H, VisSankey as T, VisBulletLegend as z } from "@unovis/vue";
4
- import M from "../Tooltip.js";
5
- import { LegendPosition as O } from "../../types.js";
6
- const F = {
1
+ import { defineComponent as L, useSlots as p, useTemplateRef as P, ref as w, computed as y, openBlock as d, createElementBlock as b, normalizeStyle as r, createVNode as a, unref as o, withCtx as A, createBlock as B, createCommentVNode as s, createElementVNode as N, renderSlot as m } from "vue";
2
+ import { SankeyNodeAlign as H, Sankey as T } from "@unovis/ts";
3
+ import { VisSingleContainer as z, VisTooltip as M, VisSankey as O, VisBulletLegend as F } from "@unovis/vue";
4
+ import D from "../Tooltip.js";
5
+ import { LegendPosition as $ } from "../../packages/shared/dist/index.js";
6
+ const j = {
7
7
  ref: "slotWrapper",
8
8
  style: { display: "none" }
9
- }, J = /* @__PURE__ */ W({
9
+ }, I = /* @__PURE__ */ L({
10
10
  __name: "SankeyChart",
11
11
  props: {
12
12
  data: {},
@@ -19,7 +19,7 @@ const F = {
19
19
  }) },
20
20
  categories: {},
21
21
  hideLegend: { type: Boolean, default: !1 },
22
- legendPosition: { default: O.BottomCenter },
22
+ legendPosition: { default: $.BottomCenter },
23
23
  legendStyle: { default: void 0 },
24
24
  label: {},
25
25
  subLabel: {},
@@ -27,12 +27,12 @@ const F = {
27
27
  linkColor: {},
28
28
  linkValue: {},
29
29
  nodeWidth: { default: 10 },
30
- nodeAlign: { default: A.Justify },
30
+ nodeAlign: { default: H.Justify },
31
31
  nodePadding: { default: 10 },
32
32
  nodeSort: {},
33
33
  linkSort: {},
34
34
  iterations: { default: 32 },
35
- hideTooltip: { type: Boolean },
35
+ hideTooltip: { type: Boolean, default: !1 },
36
36
  tooltip: { default: () => ({
37
37
  followCursor: !0
38
38
  }) },
@@ -43,66 +43,69 @@ const F = {
43
43
  duration: { default: 600 }
44
44
  },
45
45
  emits: ["click"],
46
- setup(e, { emit: y }) {
47
- const b = y, t = e, m = x(), k = V("slotWrapper"), i = L(), S = f(() => t.legendPosition.startsWith("top")), C = f(() => t.legendPosition.includes("left") ? "flex-start" : t.legendPosition.includes("right") ? "flex-end" : "center");
48
- function v(n) {
46
+ setup(e, { emit: k }) {
47
+ const S = k, t = e, C = p(), v = P("slotWrapper"), i = w(), W = y(() => t.legendPosition.startsWith("top")), x = y(() => t.legendPosition.includes("left") ? "flex-start" : t.legendPosition.includes("right") ? "flex-end" : "center");
48
+ function V(n) {
49
49
  i.value = n;
50
50
  }
51
- return (n, u) => (d(), c("div", {
51
+ return (n, u) => (d(), b("div", {
52
52
  style: r({
53
53
  display: "flex",
54
- flexDirection: S.value ? "column-reverse" : "column",
54
+ flexDirection: W.value ? "column-reverse" : "column",
55
55
  gap: "var(--vis-legend-spacing)"
56
56
  }),
57
- onClick: u[0] || (u[0] = (l) => b("click", l))
57
+ onClick: u[0] || (u[0] = (l) => S("click", l))
58
58
  }, [
59
- a(o(N), {
59
+ a(o(z), {
60
60
  padding: e.padding,
61
61
  height: e.height,
62
62
  duration: e.duration
63
63
  }, {
64
- default: P(() => [
65
- e.hideTooltip ? s("", !0) : (d(), w(o(H), {
66
- key: 0,
67
- followCursor: t.tooltip.followCursor,
68
- "show-delay": t.tooltip.showDelay,
69
- "hide-delay": t.tooltip.hideDelay,
70
- triggers: {
71
- [o(B).selectors.node]: (l) => {
72
- var g;
73
- return v(l), l ? (g = k.value) == null ? void 0 : g.innerHTML : "";
64
+ default: A(() => {
65
+ var l, g, f;
66
+ return [
67
+ e.hideTooltip ? s("", !0) : (d(), B(o(M), {
68
+ key: 0,
69
+ followCursor: (l = t.tooltip) == null ? void 0 : l.followCursor,
70
+ "show-delay": (g = t.tooltip) == null ? void 0 : g.showDelay,
71
+ "hide-delay": (f = t.tooltip) == null ? void 0 : f.hideDelay,
72
+ triggers: {
73
+ [o(T).selectors.node]: (c) => {
74
+ var h;
75
+ return V(c), c ? (h = v.value) == null ? void 0 : h.innerHTML : "";
76
+ }
74
77
  }
75
- }
76
- }, null, 8, ["followCursor", "show-delay", "hide-delay", "triggers"])),
77
- a(o(T), {
78
- data: e.data,
79
- label: e.label,
80
- subLabel: e.subLabel,
81
- nodeColor: e.nodeColor,
82
- linkColor: e.linkColor,
83
- linkValue: e.linkValue,
84
- nodeWidth: e.nodeWidth,
85
- nodeAlign: e.nodeAlign,
86
- nodePadding: e.nodePadding,
87
- nodeSort: e.nodeSort,
88
- linkSort: e.linkSort,
89
- iterations: e.iterations,
90
- highlightSubtreeOnHover: e.highlightSubtreeOnHover,
91
- labelFontSize: e.labelFontSize,
92
- labelColor: e.labelColor,
93
- labelMaxWidth: e.labelMaxWidth
94
- }, null, 8, ["data", "label", "subLabel", "nodeColor", "linkColor", "linkValue", "nodeWidth", "nodeAlign", "nodePadding", "nodeSort", "linkSort", "iterations", "highlightSubtreeOnHover", "labelFontSize", "labelColor", "labelMaxWidth"])
95
- ]),
78
+ }, null, 8, ["followCursor", "show-delay", "hide-delay", "triggers"])),
79
+ a(o(O), {
80
+ data: e.data,
81
+ label: e.label,
82
+ subLabel: e.subLabel,
83
+ nodeColor: e.nodeColor,
84
+ linkColor: e.linkColor,
85
+ linkValue: e.linkValue,
86
+ nodeWidth: e.nodeWidth,
87
+ nodeAlign: e.nodeAlign,
88
+ nodePadding: e.nodePadding,
89
+ nodeSort: e.nodeSort,
90
+ linkSort: e.linkSort,
91
+ iterations: e.iterations,
92
+ highlightSubtreeOnHover: e.highlightSubtreeOnHover,
93
+ labelFontSize: e.labelFontSize,
94
+ labelColor: e.labelColor,
95
+ labelMaxWidth: e.labelMaxWidth
96
+ }, null, 8, ["data", "label", "subLabel", "nodeColor", "linkColor", "linkValue", "nodeWidth", "nodeAlign", "nodePadding", "nodeSort", "linkSort", "iterations", "highlightSubtreeOnHover", "labelFontSize", "labelColor", "labelMaxWidth"])
97
+ ];
98
+ }),
96
99
  _: 1
97
100
  }, 8, ["padding", "height", "duration"]),
98
- !t.hideLegend && t.categories ? (d(), c("div", {
101
+ !t.hideLegend && t.categories ? (d(), b("div", {
99
102
  key: 0,
100
103
  style: r({
101
104
  display: "flex",
102
- justifyContent: C.value
105
+ justifyContent: x.value
103
106
  })
104
107
  }, [
105
- a(o(z), {
108
+ a(o(F), {
106
109
  style: r([
107
110
  t.legendStyle,
108
111
  "display: flex; gap: var(--vis-legend-spacing);"
@@ -113,12 +116,12 @@ const F = {
113
116
  }))
114
117
  }, null, 8, ["style", "items"])
115
118
  ], 4)) : s("", !0),
116
- p("div", F, [
117
- o(m).tooltip ? h(n.$slots, "tooltip", {
119
+ N("div", j, [
120
+ o(C).tooltip ? m(n.$slots, "tooltip", {
118
121
  key: 0,
119
122
  node: i.value
120
- }) : i.value ? h(n.$slots, "fallback", { key: 1 }, () => [
121
- a(M, {
123
+ }) : i.value ? m(n.$slots, "fallback", { key: 1 }, () => [
124
+ a(D, {
122
125
  data: i.value,
123
126
  categories: t.categories ?? {},
124
127
  "title-formatter": (l) => l.label || l.id || "Node"
@@ -129,5 +132,5 @@ const F = {
129
132
  }
130
133
  });
131
134
  export {
132
- J as default
135
+ I as default
133
136
  };
@@ -1,4 +1,4 @@
1
- import { BulletLegendItemInterface, LegendPosition, TooltipConfig } from '../../types';
1
+ import { BulletLegendItemInterface, TooltipConfig, LegendPosition } from '../../../../shared/dist/index.d.ts';
2
2
  import { SankeyInputNode, SankeyInputLink, SankeyNodeAlign } from '@unovis/ts';
3
3
  export type SankeyChartProps<N extends SankeyInputNode, L extends SankeyInputLink> = {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { defineComponent as w, computed as l, createElementBlock as a, openBlock as n, createElementVNode as s, createCommentVNode as k, normalizeStyle as d, toDisplayString as m, Fragment as g, renderList as B } from "vue";
1
+ import { defineComponent as w, computed as l, openBlock as a, createElementBlock as n, createElementVNode as s, normalizeStyle as d, toDisplayString as m, Fragment as g, renderList as k, createCommentVNode as B } from "vue";
2
2
  import { getFirstPropertyValue as C } from "../utils.js";
3
3
  const _ = /* @__PURE__ */ w({
4
4
  __name: "Tooltip",
@@ -55,22 +55,22 @@ const _ = /* @__PURE__ */ w({
55
55
  backgroundColor: typeof ((o = t.categories[e]) == null ? void 0 : o.color) == "string" && ((i = t.categories[e]) != null && i.color) ? t.categories[e].color : `var(--vis-color${v})`
56
56
  };
57
57
  };
58
- return (e, v) => (n(), a("div", { style: y }, [
58
+ return (e, v) => (a(), n("div", { style: y }, [
59
59
  s("div", {
60
60
  style: d(h.value)
61
61
  }, m(u.value), 5),
62
- c.value ? (n(), a("div", {
62
+ c.value ? (a(), n("div", {
63
63
  key: 0,
64
64
  style: b
65
65
  }, [
66
- (n(!0), a(g, null, B(p.value, ([o, i], z) => (n(), a(g, { key: o }, [
66
+ (a(!0), n(g, null, k(p.value, ([o, i], z) => (a(), n(g, { key: o }, [
67
67
  s("span", {
68
68
  style: d(F(o, z))
69
69
  }, null, 4),
70
70
  s("span", { style: x }, m(r.categories[o].name), 1),
71
71
  s("span", { style: S }, m(r.yFormatter ? r.yFormatter(i) : i), 1)
72
72
  ], 64))), 128))
73
- ])) : k("", !0)
73
+ ])) : B("", !0)
74
74
  ]));
75
75
  }
76
76
  });
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ import { default as DualChart } from './components/DualChart/DualChart.vue';
9
9
  import { default as SankeyChart } from './components/SankeyChart/SankeyChart.vue';
10
10
  import { default as TopoJSONMap } from './components/Maps/TopoJSONMap/TopoJSONMap.vue';
11
11
  import { default as DottedMap } from './components/Maps/DottedMap/DottedMap.vue';
12
- import { LegendPosition, CurveType, Orientation, MarkerConfig, CrosshairConfig, DonutType, BulletLegendItemInterface } from './types';
13
12
  export { getMap, getPin } from './components/Maps/DottedMap/mapUtils';
14
- export { AreaChart, LineChart, BarChart, DonutChart, BubbleChart, GanttChart, DagreGraph, DualChart, SankeyChart, TopoJSONMap, DottedMap, Orientation, CurveType, LegendPosition, DonutType };
15
- export type { BulletLegendItemInterface, MarkerConfig, CrosshairConfig };
13
+ export { LegendPosition, CurveType, Orientation, DonutType, } from './types';
14
+ export type { BulletLegendItemInterface, AreaChartProps, BarChartProps, BarChartPropsBase, ValueLabel, LineChartProps, DonutChartProps, BubbleChartProps, SizeOptions, GanttChartProps, axisFormatter, AxisConfig, MarkerConfig, CrosshairConfig, TooltipConfig, DagreGraphProps, GraphNodeDatum, GraphLinkDatum, GraphData, DagreLayoutSettings, DagreRankDir, DagreAlign, DagreRanker, NodeShape, LinkArrowPosition, SankeyChartProps, DualChartProps, MapsData, DottedMapProps, } from './types';
15
+ export { AreaChart, LineChart, BarChart, DonutChart, BubbleChart, GanttChart, DagreGraph, DualChart, SankeyChart, TopoJSONMap, DottedMap, };
package/dist/index.js CHANGED
@@ -10,8 +10,8 @@ import { default as g } from "./components/SankeyChart/SankeyChart.js";
10
10
  import { default as M } from "./components/Maps/TopoJSONMap/TopoJSONMap.js";
11
11
  import { default as b } from "./components/Maps/DottedMap/DottedMap.js";
12
12
  import { getMap as G, getPin as L } from "./components/Maps/DottedMap/mapUtils.js";
13
- import { CurveType as P, LegendPosition as S, Orientation as k } from "./types.js";
14
- import { DonutType as A } from "./components/DonutChart/types.js";
13
+ import { CurveType as P, LegendPosition as S, Orientation as k } from "./packages/shared/dist/index.js";
14
+ import { DonutType as A } from "./packages/shared/dist/donut-chart.js";
15
15
  export {
16
16
  a as AreaChart,
17
17
  p as BarChart,
@@ -1,5 +1,5 @@
1
1
  import c from "../../../../../../point-in-polygon-hao@1.2.4/node_modules/point-in-polygon-hao/dist/esm/index.js";
2
- import { getCoord as d, getGeom as g } from "../../../../../../@turf_invariant@7.3.1/node_modules/@turf/invariant/dist/esm/index.js";
2
+ import { getCoord as d, getGeom as g } from "../../../../../../@turf_invariant@7.3.2/node_modules/@turf/invariant/dist/esm/index.js";
3
3
  function y(o, e, u = {}) {
4
4
  if (!o)
5
5
  throw new Error("point is required");
@@ -1,4 +1,4 @@
1
- import { epsilon as k, vec as J, estimate as S, resulterrbound as T, splitter as f, sum as K } from "./util.js";
1
+ import { epsilon as k, estimate as S, resulterrbound as T, splitter as f, sum as K, vec as J } from "./util.js";
2
2
  const U = (3 + 16 * k) * k, V = (2 + 12 * k) * k, W = (9 + 64 * k) * k * k, G = J(4), L = J(8), N = J(12), O = J(16), h = J(4);
3
3
  function X(q, z, E, F, j, A, H) {
4
4
  let p, C, m, M, t, n, e, s, r, c, o, i, u, l, a, d, w, b;
@@ -0,0 +1,7 @@
1
+ var f;
2
+ (function(l) {
3
+ l.Half = "half", l.Full = "full";
4
+ })(f || (f = {}));
5
+ export {
6
+ f as DonutType
7
+ };
@@ -0,0 +1,19 @@
1
+ import { DonutType as i } from "./donut-chart.js";
2
+ var o;
3
+ (function(t) {
4
+ t.TopLeft = "top-left", t.TopCenter = "top-center", t.TopRight = "top-right", t.BottomLeft = "bottom-left", t.BottomCenter = "bottom-center", t.BottomRight = "bottom-right";
5
+ })(o || (o = {}));
6
+ var a;
7
+ (function(t) {
8
+ t.Basis = "basis", t.BasisClosed = "basisClosed", t.BasisOpen = "basisOpen", t.Bundle = "bundle", t.Cardinal = "cardinal", t.CardinalClosed = "cardinalClosed", t.CardinalOpen = "cardinalOpen", t.CatmullRom = "catmullRom", t.CatmullRomClosed = "catmullRomClosed", t.CatmullRomOpen = "catmullRomOpen", t.Linear = "linear", t.LinearClosed = "linearClosed", t.MonotoneX = "monotoneX", t.MonotoneY = "monotoneY", t.Natural = "natural", t.Step = "step", t.StepAfter = "stepAfter", t.StepBefore = "stepBefore";
9
+ })(a || (a = {}));
10
+ var l;
11
+ (function(t) {
12
+ t.Horizontal = "horizontal", t.Vertical = "vertical";
13
+ })(l || (l = {}));
14
+ export {
15
+ a as CurveType,
16
+ i as DonutType,
17
+ o as LegendPosition,
18
+ l as Orientation
19
+ };
package/dist/types.d.ts CHANGED
@@ -1,101 +1,7 @@
1
- import { AreaChartProps } from './components/AreaChart/types';
2
- import { BarChartProps } from './components/BarChart/types';
3
- import { LineChartProps } from './components/LineChart/types';
4
- import { DonutChartProps, DonutType } from './components/DonutChart/types';
5
- import { BubbleChartProps } from './components/BubbleChart/types';
6
- import { GanttChartProps } from './components/GanttChart/types';
7
- import { DagreGraphProps, GraphNodeDatum, GraphLinkDatum, GraphData, DagreLayoutSettings, DagreRankDir, DagreAlign, DagreRanker, NodeShape, LinkArrowPosition } from './components/DagreGraph/types';
8
- import { SankeyChartProps } from './components/SankeyChart/types';
9
- declare enum LegendPosition {
10
- TopLeft = "top-left",
11
- TopCenter = "top-center",
12
- TopRight = "top-right",
13
- BottomLeft = "bottom-left",
14
- BottomCenter = "bottom-center",
15
- BottomRight = "bottom-right"
16
- }
17
- declare enum CurveType {
18
- Basis = "basis",
19
- BasisClosed = "basisClosed",
20
- BasisOpen = "basisOpen",
21
- Bundle = "bundle",
22
- Cardinal = "cardinal",
23
- CardinalClosed = "cardinalClosed",
24
- CardinalOpen = "cardinalOpen",
25
- CatmullRom = "catmullRom",
26
- CatmullRomClosed = "catmullRomClosed",
27
- CatmullRomOpen = "catmullRomOpen",
28
- Linear = "linear",
29
- LinearClosed = "linearClosed",
30
- MonotoneX = "monotoneX",
31
- MonotoneY = "monotoneY",
32
- Natural = "natural",
33
- Step = "step",
34
- StepAfter = "stepAfter",
35
- StepBefore = "stepBefore"
36
- }
37
- interface BulletLegendItemInterface {
38
- name: string | number;
39
- color?: string | Array<string>;
40
- className?: string;
41
- inactive?: boolean;
42
- hidden?: boolean;
43
- pointer?: boolean;
44
- }
45
- declare enum Orientation {
46
- Horizontal = "horizontal",
47
- Vertical = "vertical"
48
- }
49
- export { LegendPosition, CurveType, Orientation, DonutType, type AreaChartProps, type BarChartProps, type LineChartProps, type DonutChartProps, type BulletLegendItemInterface, type BubbleChartProps, type GanttChartProps, type DagreGraphProps, type GraphNodeDatum, type GraphLinkDatum, type GraphData, type DagreLayoutSettings, type DagreRankDir, type DagreAlign, type DagreRanker, type NodeShape, type LinkArrowPosition, type SankeyChartProps, };
50
- export type axisFormatter = ((tick: number, i?: number, ticks?: number[]) => string) | ((tick: Date, i?: number, ticks?: Date[]) => string);
51
- export interface AxisConfig {
52
- tickLine?: boolean;
53
- tickTextFontSize?: string;
54
- tickTextColor?: string;
55
- tickFormat?: axisFormatter;
56
- tickTextAlign?: "left" | "right" | "center";
57
- tickTextAngle?: number;
58
- tickTextWidth?: number;
59
- tickTextFitMode?: "wrap" | "trim";
60
- tickTextTrimType?: "start" | "middle" | "end";
61
- tickTextForceWordBreak?: boolean;
62
- tickTextSeparator?: string | readonly string[];
63
- minMaxTicksOnly?: boolean;
64
- minMaxTicksOnlyShowGridLines?: boolean;
65
- tickValues?: readonly number[] | readonly Date[];
66
- /**
67
- * Animation duration in milliseconds.
68
- */
69
- duration?: number;
70
- }
71
- export type MarkerConfig = {
72
- id: string;
73
- config: {
74
- [key: string]: {
75
- type?: "circle" | "square" | "triangle" | "diamond";
76
- size?: number;
77
- strokeWidth?: number;
78
- color?: string;
79
- strokeColor?: string;
80
- };
81
- };
82
- };
83
- export interface CrosshairConfig {
84
- color?: string;
85
- strokeColor?: string;
86
- strokeWidth?: number;
87
- }
88
- export interface TooltipConfig {
89
- /**
90
- * Hide delay in milliseconds. Default: undefined
91
- */
92
- hideDelay?: number;
93
- /**
94
- * Show delay in milliseconds. Default: undefined
95
- */
96
- showDelay?: number;
97
- /**
98
- * If `true`, the tooltip will follow the cursor.
99
- */
100
- followCursor?: boolean;
101
- }
1
+ export { LegendPosition, CurveType, Orientation, DonutType, } from '../../shared/dist/index.d.ts';
2
+ export type { BulletLegendItemInterface, axisFormatter, AxisConfig, MarkerConfig, CrosshairConfig, TooltipConfig, AreaChartProps, BarChartProps, BarChartPropsBase, ValueLabel, LineChartProps, DonutChartProps, BubbleChartProps, SizeOptions, GanttChartProps, } from '../../shared/dist/index.d.ts';
3
+ export type { DagreGraphProps, GraphNodeDatum, GraphLinkDatum, GraphData, DagreLayoutSettings, DagreRankDir, DagreAlign, DagreRanker, NodeShape, LinkArrowPosition, } from './components/DagreGraph/types';
4
+ export type { SankeyChartProps } from './components/SankeyChart/types';
5
+ export type { DualChartProps } from './components/DualChart/types';
6
+ export type { MapsData } from './components/Maps/TopoJSONMap/types';
7
+ export type { DottedMapProps } from './components/Maps/DottedMap/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-chrts",
3
- "version": "2.1.0-beta-7",
3
+ "version": "2.1.0-beta-8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -10,8 +10,13 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
+ "types": "./dist/index.d.ts",
13
14
  "import": "./dist/index.js",
14
15
  "require": "./dist/index.umd.cjs"
16
+ },
17
+ "./types": {
18
+ "types": "./dist/types.d.ts",
19
+ "import": "./dist/types.js"
15
20
  }
16
21
  },
17
22
  "peerDependencies": {
@@ -41,7 +46,8 @@
41
46
  "vue-tsc": "^2.2.4"
42
47
  },
43
48
  "dependencies": {
44
- "@turf/boolean-point-in-polygon": "^7.3.1"
49
+ "@turf/boolean-point-in-polygon": "^7.3.1",
50
+ "@vue-chrts/shared": "^1.0.0"
45
51
  },
46
52
  "scripts": {
47
53
  "dev": "vite",
@@ -1,4 +0,0 @@
1
- var r = /* @__PURE__ */ ((l) => (l.Half = "half", l.Full = "full", l))(r || {});
2
- export {
3
- r as DonutType
4
- };
package/dist/types.js DELETED
@@ -1,6 +0,0 @@
1
- var o = /* @__PURE__ */ ((t) => (t.TopLeft = "top-left", t.TopCenter = "top-center", t.TopRight = "top-right", t.BottomLeft = "bottom-left", t.BottomCenter = "bottom-center", t.BottomRight = "bottom-right", t))(o || {}), a = /* @__PURE__ */ ((t) => (t.Basis = "basis", t.BasisClosed = "basisClosed", t.BasisOpen = "basisOpen", t.Bundle = "bundle", t.Cardinal = "cardinal", t.CardinalClosed = "cardinalClosed", t.CardinalOpen = "cardinalOpen", t.CatmullRom = "catmullRom", t.CatmullRomClosed = "catmullRomClosed", t.CatmullRomOpen = "catmullRomOpen", t.Linear = "linear", t.LinearClosed = "linearClosed", t.MonotoneX = "monotoneX", t.MonotoneY = "monotoneY", t.Natural = "natural", t.Step = "step", t.StepAfter = "stepAfter", t.StepBefore = "stepBefore", t))(a || {}), l = /* @__PURE__ */ ((t) => (t.Horizontal = "horizontal", t.Vertical = "vertical", t))(l || {});
2
- export {
3
- a as CurveType,
4
- o as LegendPosition,
5
- l as Orientation
6
- };