vue-chrts 2.1.0-beta-7 → 2.1.0-beta-9

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 (165) hide show
  1. package/dist/components/AreaChart/{types.d.ts → AreaChart.d.ts} +2 -22
  2. package/dist/components/AreaChart/AreaChart.js +95 -116
  3. package/dist/components/AreaChart/AreaChart.vue.d.ts +1 -1
  4. package/dist/components/AreaChart/index.d.ts +2 -0
  5. package/dist/components/BarChart/{types.d.ts → BarChart.d.ts} +12 -11
  6. package/dist/components/BarChart/BarChart.js +9 -9
  7. package/dist/components/BarChart/BarChart.vue.d.ts +1 -1
  8. package/dist/components/BarChart/index.d.ts +2 -0
  9. package/dist/components/BubbleChart/{types.d.ts → BubbleChart.d.ts} +2 -1
  10. package/dist/components/BubbleChart/BubbleChart.js +4 -4
  11. package/dist/components/BubbleChart/BubbleChart.vue.d.ts +1 -1
  12. package/dist/components/BubbleChart/index.d.ts +2 -0
  13. package/dist/components/DagreGraph/DagreGraph.d.ts +254 -0
  14. package/dist/components/DagreGraph/DagreGraph.js +65 -62
  15. package/dist/components/DagreGraph/DagreGraph.vue.d.ts +1 -1
  16. package/dist/components/DagreGraph/index.d.ts +2 -0
  17. package/dist/components/DagreGraph/types.d.ts +2 -1
  18. package/dist/components/DonutChart/{types.d.ts → DonutChart.d.ts} +7 -7
  19. package/dist/components/DonutChart/DonutChart.js +3 -3
  20. package/dist/components/DonutChart/DonutChart.vue.d.ts +1 -1
  21. package/dist/components/DonutChart/DonutChart2.js +2 -2
  22. package/dist/components/DonutChart/DonutChart3.js +4 -0
  23. package/dist/components/DonutChart/index.d.ts +2 -0
  24. package/dist/components/DualChart/DualChart.d.ts +195 -0
  25. package/dist/components/DualChart/DualChart.js +125 -122
  26. package/dist/components/DualChart/DualChart.vue.d.ts +1 -1
  27. package/dist/components/DualChart/index.d.ts +2 -0
  28. package/dist/components/DualChart/types.d.ts +2 -2
  29. package/dist/components/GanttChart/{types.d.ts → GanttChart.d.ts} +2 -1
  30. package/dist/components/GanttChart/GanttChart.js +6 -6
  31. package/dist/components/GanttChart/GanttChart.vue.d.ts +1 -1
  32. package/dist/components/GanttChart/index.d.ts +2 -0
  33. package/dist/components/LineChart/{types.d.ts → LineChart.d.ts} +1 -1
  34. package/dist/components/LineChart/LineChart.js +7 -12
  35. package/dist/components/LineChart/LineChart.vue.d.ts +1 -1
  36. package/dist/components/LineChart/index.d.ts +2 -0
  37. package/dist/components/Maps/DottedMap/DottedMap.js +2 -2
  38. package/dist/components/Maps/DottedMap/DottedMap.vue.d.ts +2 -2
  39. package/dist/components/Maps/DottedMap/core.js +2 -2
  40. package/dist/components/Maps/DottedMap/core.vue.d.ts +2 -2
  41. package/dist/components/Maps/DottedMap/mapUtils.js +22 -22
  42. package/dist/components/Maps/TopoJSONMap/TopoJSONMap.js +5 -5
  43. package/dist/components/Maps/TopoJSONMap/TopoJSONMap.vue.d.ts +2 -2
  44. package/dist/components/Maps/TopoJSONMap/types.d.ts +2 -1
  45. package/dist/components/Maps/index.d.ts +5 -0
  46. package/dist/components/SankeyChart/SankeyChart.d.ts +117 -0
  47. package/dist/components/SankeyChart/SankeyChart.js +59 -56
  48. package/dist/components/SankeyChart/SankeyChart.vue.d.ts +1 -1
  49. package/dist/components/SankeyChart/index.d.ts +2 -0
  50. package/dist/components/SankeyChart/types.d.ts +2 -1
  51. package/dist/components/Tooltip.js +5 -5
  52. package/dist/enums.d.ts +32 -0
  53. package/dist/index.d.ts +12 -14
  54. package/dist/index.js +31 -31
  55. package/dist/types.d.ts +2 -46
  56. package/package.json +16 -10
  57. package/dist/components/DonutChart/types.js +0 -4
  58. package/dist/node_modules/.pnpm/@turf_boolean-point-in-polygon@7.3.1/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js +0 -28
  59. package/dist/node_modules/.pnpm/@turf_invariant@7.3.1/node_modules/@turf/invariant/dist/esm/index.js +0 -20
  60. package/dist/node_modules/.pnpm/mgrs@1.0.0/node_modules/mgrs/mgrs.js +0 -222
  61. package/dist/node_modules/.pnpm/point-in-polygon-hao@1.2.4/node_modules/point-in-polygon-hao/dist/esm/index.js +0 -25
  62. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Point.js +0 -24
  63. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Proj.js +0 -46
  64. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/adjust_axis.js +0 -31
  65. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/checkSanity.js +0 -15
  66. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lat.js +0 -8
  67. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lon.js +0 -8
  68. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_zone.js +0 -13
  69. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinhy.js +0 -9
  70. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinz.js +0 -6
  71. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens.js +0 -8
  72. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens_cmplx.js +0 -10
  73. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/cosh.js +0 -7
  74. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e0fn.js +0 -6
  75. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e1fn.js +0 -6
  76. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e2fn.js +0 -6
  77. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e3fn.js +0 -6
  78. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gN.js +0 -7
  79. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gatg.js +0 -8
  80. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/hypot.js +0 -8
  81. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/imlfn.js +0 -11
  82. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/iqsfnz.js +0 -13
  83. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/log1py.js +0 -7
  84. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/mlfn.js +0 -6
  85. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/msfnz.js +0 -7
  86. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/phi2z.js +0 -10
  87. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_enfn.js +0 -10
  88. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_inv_mlfn.js +0 -14
  89. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_mlfn.js +0 -6
  90. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/qsfnz.js +0 -7
  91. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sign.js +0 -6
  92. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sinh.js +0 -7
  93. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/srat.js +0 -6
  94. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/toPoint.js +0 -10
  95. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/tsfnz.js +0 -8
  96. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/vincenty.js +0 -33
  97. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Datum.js +0 -1278
  98. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Ellipsoid.js +0 -226
  99. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/PrimeMeridian.js +0 -17
  100. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/units.js +0 -25
  101. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/values.js +0 -22
  102. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/core.js +0 -65
  103. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum.js +0 -8
  104. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datumUtils.js +0 -82
  105. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum_transform.js +0 -94
  106. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/defs.js +0 -39
  107. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/deriveConstants.js +0 -30
  108. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/extend.js +0 -12
  109. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/global.js +0 -9
  110. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/index.js +0 -25
  111. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/match.js +0 -11
  112. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/nadgrid.js +0 -128
  113. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/parseCode.js +0 -47
  114. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projString.js +0 -119
  115. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aea.js +0 -43
  116. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aeqd.js +0 -36
  117. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/bonne.js +0 -55
  118. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cass.js +0 -52
  119. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cea.js +0 -36
  120. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqc.js +0 -27
  121. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqdc.js +0 -48
  122. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqearth.js +0 -30
  123. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/etmerc.js +0 -54
  124. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gauss.js +0 -27
  125. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geocent.js +0 -26
  126. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geos.js +0 -49
  127. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gnom.js +0 -28
  128. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/krovak.js +0 -31
  129. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/laea.js +0 -134
  130. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/lcc.js +0 -61
  131. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/longlat.js +0 -19
  132. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/merc.js +0 -49
  133. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/mill.js +0 -26
  134. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/moll.js +0 -37
  135. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/nzmg.js +0 -48
  136. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ob_tran.js +0 -173
  137. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/omerc.js +0 -58
  138. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ortho.js +0 -28
  139. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/poly.js +0 -68
  140. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/qsc.js +0 -67
  141. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/robin.js +0 -104
  142. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sinu.js +0 -47
  143. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/somerc.js +0 -34
  144. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/stere.js +0 -46
  145. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sterea.js +0 -33
  146. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tmerc.js +0 -60
  147. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tpers.js +0 -110
  148. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/utm.js +0 -22
  149. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/vandg.js +0 -34
  150. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections.js +0 -34
  151. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/transform.js +0 -49
  152. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/projs.js +0 -38
  153. package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/orient2d.js +0 -23
  154. package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/util.js +0 -30
  155. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2015.js +0 -9
  156. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2019.js +0 -20
  157. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilderBase.js +0 -171
  158. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/buildPROJJSON.js +0 -11
  159. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/detectWKTVersion.js +0 -7
  160. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/index.js +0 -104
  161. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/parser.js +0 -117
  162. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/process.js +0 -89
  163. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/transformPROJJSON.js +0 -73
  164. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/util.js +0 -12
  165. /package/dist/{types.js → enums.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { LineChartProps } from './types';
1
+ import { LineChartProps } from './LineChart';
2
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
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & LineChartProps<T> & Partial<{}>> & import('vue').PublicProps;
4
4
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
@@ -0,0 +1,2 @@
1
+ export { default as LineChart } from './LineChart.vue';
2
+ export * from './LineChart';
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, ref as W, computed as d, watch as M, createElementBlock as Z, openBlock as H, normalizeStyle as f, createElementVNode as v, renderSlot as k, withModifiers as $, unref as a, createVNode as I, mergeProps as _ } from "vue";
1
+ import { defineComponent as x, ref as W, computed as d, watch as M, openBlock as Z, createElementBlock as H, normalizeStyle as f, createElementVNode as v, withModifiers as $, unref as a, createVNode as I, mergeProps as _, renderSlot as k } from "vue";
2
2
  import { REGIONS as B, COUNTRIES as E, DEFAULT_ZOOM as D } from "./regions.js";
3
3
  import { USA_PINS as V, WORLD_PINS as L } from "./pins.js";
4
4
  import { useMapPanZoom as R } from "./useMapPanZoom.js";
@@ -103,7 +103,7 @@ const j = { class: "absolute bottom-4 right-4 flex flex-col gap-2" }, J = /* @__
103
103
  zoomIn: z,
104
104
  zoomOut: P,
105
105
  resetView: () => p(o.value.defaultZoom)
106
- }), (i, t) => (H(), Z("div", {
106
+ }), (i, t) => (Z(), H("div", {
107
107
  class: "w-full h-full overflow-hidden relative",
108
108
  style: f({
109
109
  width: "100%",
@@ -28,13 +28,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
28
28
  zoomOut: () => void;
29
29
  resetView: () => void;
30
30
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
- "point-click": (event: MouseEvent, point: MapPin) => any;
32
31
  "pin-click": (pin: MapPin) => any;
32
+ "point-click": (event: MouseEvent, point: MapPin) => any;
33
33
  "pin-add": (pin: MapPin) => any;
34
34
  "pin-remove": (pin: MapPin, index: number) => any;
35
35
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
36
- "onPoint-click"?: ((event: MouseEvent, point: MapPin) => any) | undefined;
37
36
  "onPin-click"?: ((pin: MapPin) => any) | undefined;
37
+ "onPoint-click"?: ((event: MouseEvent, point: MapPin) => any) | undefined;
38
38
  "onPin-add"?: ((pin: MapPin) => any) | undefined;
39
39
  "onPin-remove"?: ((pin: MapPin, index: number) => any) | undefined;
40
40
  }>, {
@@ -1,4 +1,4 @@
1
- import { defineComponent as Y, computed as u, createElementBlock as q, openBlock as F, normalizeStyle as L, renderSlot as T, createElementVNode as J } from "vue";
1
+ import { defineComponent as Y, computed as u, openBlock as q, createElementBlock as F, normalizeStyle as L, renderSlot as T, createElementVNode as J } from "vue";
2
2
  import { getMap as R, getPin as V } from "./mapUtils.js";
3
3
  import D from "../../../data/countries.geo.json.js";
4
4
  const G = ["innerHTML"], Z = /* @__PURE__ */ Y({
@@ -94,7 +94,7 @@ const G = ["innerHTML"], Z = /* @__PURE__ */ Y({
94
94
  O("point-click", n, l);
95
95
  }
96
96
  }
97
- return (n, e) => (F(), q("div", {
97
+ return (n, e) => (q(), F("div", {
98
98
  class: "dotted-world-map-container",
99
99
  style: L({
100
100
  backgroundColor: p.backgroundColor,
@@ -13,11 +13,11 @@ declare function __VLS_template(): {
13
13
  };
14
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
15
  declare const __VLS_component: import('vue').DefineComponent<DottedMapProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
- "point-click": (event: MouseEvent, point: any) => any;
17
16
  "pin-click": (point: any) => any;
17
+ "point-click": (event: MouseEvent, point: any) => any;
18
18
  }, string, import('vue').PublicProps, Readonly<DottedMapProps> & Readonly<{
19
- "onPoint-click"?: ((event: MouseEvent, point: any) => any) | undefined;
20
19
  "onPin-click"?: ((point: any) => any) | undefined;
20
+ "onPoint-click"?: ((event: MouseEvent, point: any) => any) | undefined;
21
21
  }>, {
22
22
  grid: "vertical" | "diagonal";
23
23
  color: string;
@@ -1,5 +1,5 @@
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";
1
+ import y from "proj4";
2
+ import Y from "@turf/boolean-point-in-polygon";
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 },
@@ -9,10 +9,10 @@ const h = {
9
9
  o.geometry.type === "Polygon" ? [o.geometry.coordinates] : o.geometry.coordinates
10
10
  ),
11
11
  []
12
- ) } }), M = (t) => {
12
+ ) } }), x = (t) => {
13
13
  const { type: n, features: c, geometry: o, coordinates: i } = t;
14
14
  if (n === "FeatureCollection") {
15
- const l = c.map(M);
15
+ const l = c.map(x);
16
16
  return {
17
17
  lat: {
18
18
  min: Math.min(...l.map((e) => e.lat.min)),
@@ -25,14 +25,14 @@ const h = {
25
25
  };
26
26
  } else {
27
27
  if (n === "Feature")
28
- return M(o);
28
+ return x(o);
29
29
  if (n === "MultiPolygon")
30
- return M({
30
+ return x({
31
31
  type: "Polygon",
32
32
  coordinates: i.flat(1)
33
33
  });
34
34
  if (n === "Polygon") {
35
- const l = i.flat(1), e = l.map(([u, r]) => r), a = l.map(([u, r]) => u);
35
+ const l = i.flat(1), e = l.map(([m, r]) => r), a = l.map(([m, r]) => m);
36
36
  return {
37
37
  lat: {
38
38
  min: Math.min(...e),
@@ -56,26 +56,26 @@ const h = {
56
56
  }) => {
57
57
  if (t <= 0 && n <= 0)
58
58
  throw new Error("height or width is required");
59
- const e = l.features.reduce((s, m) => (s[m.id] = m, s), {});
59
+ const e = l.features.reduce((s, u) => (s[u.id] = u, s), {});
60
60
  let a = l;
61
61
  c.length > 0 ? (a = {
62
62
  type: "FeatureCollection",
63
63
  features: c.map((s) => e[s]).filter(Boolean)
64
- }, o || (o = M(a))) : o || (o = h), P(a);
65
- const [u, r] = y("GOOGLE", [
64
+ }, o || (o = x(a))) : o || (o = h), P(a);
65
+ const [m, r] = y("GOOGLE", [
66
66
  o.lng.min,
67
67
  o.lat.min
68
68
  ]), [d, f] = y("GOOGLE", [
69
69
  o.lng.max,
70
70
  o.lat.max
71
- ]), g = d - u, x = f - r;
72
- n <= 0 ? n = Math.round(t * g / x) : t <= 0 && (t = Math.round(n * x / g));
71
+ ]), g = d - m, M = f - r;
72
+ n <= 0 ? n = Math.round(t * g / M) : t <= 0 && (t = Math.round(n * M / g));
73
73
  const E = {}, G = i === "diagonal" ? Math.sqrt(3) / 2 : 1;
74
74
  for (let s = 0; s * G < t; s += 1)
75
- for (let m = 0; m < n; m += 1) {
76
- const O = s % 2 === 0 && i === "diagonal" ? m + 0.5 : m, X = s * G, L = [
77
- O / n * g + u,
78
- f - X / t * x
75
+ for (let u = 0; u < n; u += 1) {
76
+ const O = s % 2 === 0 && i === "diagonal" ? u + 0.5 : u, X = s * G, L = [
77
+ O / n * g + m,
78
+ f - X / t * M
79
79
  ], p = y(
80
80
  "GOOGLE",
81
81
  "WGS84",
@@ -83,17 +83,17 @@ const h = {
83
83
  ), A = a.features.find((_) => Y(p, _));
84
84
  if (A) {
85
85
  const [_, N] = p;
86
- E[[m, s].join(";")] = { x: O, y: X, lat: N, lng: _, countryId: A.id };
86
+ E[[u, s].join(";")] = { x: O, y: X, lat: N, lng: _, countryId: A.id };
87
87
  }
88
88
  }
89
89
  return {
90
90
  points: E,
91
- X_MIN: u,
91
+ X_MIN: m,
92
92
  Y_MIN: r,
93
93
  X_MAX: d,
94
94
  Y_MAX: f,
95
95
  X_RANGE: g,
96
- Y_RANGE: x,
96
+ Y_RANGE: M,
97
97
  region: o,
98
98
  grid: i,
99
99
  height: t,
@@ -108,8 +108,8 @@ const h = {
108
108
  ];
109
109
  const a = Math.round(e / t.ystep);
110
110
  a % 2 === 0 && t.grid === "diagonal" && (l -= 0.5);
111
- const u = Math.round(l);
112
- let [r, d] = [u, Math.round(a) * t.ystep];
111
+ const m = Math.round(l);
112
+ let [r, d] = [m, Math.round(a) * t.ystep];
113
113
  a % 2 === 0 && t.grid === "diagonal" && (r += 0.5);
114
114
  const [f, g] = y(
115
115
  "GOOGLE",
@@ -123,7 +123,7 @@ const h = {
123
123
  };
124
124
  export {
125
125
  h as DEFAULT_WORLD_REGION,
126
- M as computeGeojsonBox,
126
+ x as computeGeojsonBox,
127
127
  P as geojsonToMultiPolygons,
128
128
  w as getMap,
129
129
  F as getPin
@@ -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 "../../../enums.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
@@ -4,9 +4,9 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onMouseenter?: ((d: any) => any) | undefined;
6
6
  readonly onMouseleave?: ((d: any) => any) | undefined;
7
- readonly "onFeature-click"?: ((d: any, event: MouseEvent) => any) | undefined;
8
7
  readonly "onPoint-click"?: ((d: MapPoint, event: MouseEvent) => any) | undefined;
9
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onMouseenter" | "onMouseleave" | "onFeature-click" | "onPoint-click"> & MapsData<T> & Partial<{}>> & import('vue').PublicProps;
8
+ readonly "onFeature-click"?: ((d: any, event: MouseEvent) => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onMouseenter" | "onMouseleave" | "onPoint-click" | "onFeature-click"> & MapsData<T> & Partial<{}>> & import('vue').PublicProps;
10
10
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
11
  attrs: any;
12
12
  slots: {
@@ -1,5 +1,6 @@
1
1
  import { GeoProjection } from 'd3-geo';
2
- import { axisFormatter, BulletLegendItemInterface, LegendPosition } from '../../../types';
2
+ import { axisFormatter, BulletLegendItemInterface } from '../../../types';
3
+ import { LegendPosition } from '../../../enums';
3
4
  import { MapData, MapPoint } from '../types';
4
5
  export type MapsData<T extends Record<string, any>> = {
5
6
  mapFeatureKey: keyof T;
@@ -0,0 +1,5 @@
1
+ export { default as DottedMap } from './DottedMap/DottedMap.vue';
2
+ export { default as TopoJSONMap } from './TopoJSONMap/TopoJSONMap.vue';
3
+ export * from './types';
4
+ export * from './DottedMap/types';
5
+ export * from './TopoJSONMap/types';
@@ -0,0 +1,117 @@
1
+ import { BulletLegendItemInterface, TooltipConfig } from '../../types';
2
+ import { LegendPosition } from '../../enums';
3
+ import { SankeyInputNode, SankeyInputLink, SankeyNodeAlign } from '@unovis/ts';
4
+ export type SankeyChartProps<N extends SankeyInputNode, L extends SankeyInputLink> = {
5
+ /**
6
+ * The data to be displayed in the Sankey diagram.
7
+ * Contains nodes and links representing the flow between entities.
8
+ */
9
+ data: {
10
+ nodes: N[];
11
+ links: L[];
12
+ };
13
+ /**
14
+ * The height of the chart in pixels.
15
+ */
16
+ height: number;
17
+ /**
18
+ * Optional padding applied to the chart.
19
+ * Allows specifying individual padding values for the top, right, bottom, and left sides.
20
+ */
21
+ padding?: {
22
+ top: number;
23
+ right: number;
24
+ bottom: number;
25
+ left: number;
26
+ };
27
+ /**
28
+ * A record mapping category keys to `BulletLegendItemInterface` objects.
29
+ * This defines the visual representation and labels for each category in the chart's legend.
30
+ */
31
+ categories?: Record<string, BulletLegendItemInterface>;
32
+ /**
33
+ * If `true`, hides the chart legend.
34
+ */
35
+ hideLegend?: boolean;
36
+ /**
37
+ * Optional position for the legend, if applicable.
38
+ * See `LegendPosition` for available options.
39
+ */
40
+ legendPosition?: LegendPosition;
41
+ /**
42
+ * Optional style object for the legend container. Allows custom CSS styling.
43
+ */
44
+ legendStyle?: string | Record<string, string>;
45
+ /**
46
+ * Node label accessor function or value.
47
+ */
48
+ label?: (node: N) => string;
49
+ /**
50
+ * Node sub-label accessor function or value.
51
+ */
52
+ subLabel?: (node: N) => string;
53
+ /**
54
+ * Node color accessor function or value.
55
+ */
56
+ nodeColor?: (node: N) => string;
57
+ /**
58
+ * Link color accessor function or value.
59
+ */
60
+ linkColor?: (link: L) => string;
61
+ /**
62
+ * Link value accessor function or value.
63
+ */
64
+ linkValue?: (link: L) => number;
65
+ /**
66
+ * Sankey node width in pixels. Default: 10
67
+ */
68
+ nodeWidth?: number;
69
+ /**
70
+ * Sankey node alignment method. Default: 'justify'
71
+ */
72
+ nodeAlign?: SankeyNodeAlign;
73
+ /**
74
+ * Sankey vertical separation between nodes in pixels. Default: 10
75
+ */
76
+ nodePadding?: number;
77
+ /**
78
+ * Node sorting function.
79
+ */
80
+ nodeSort?: (node1: any, node2: any) => number;
81
+ /**
82
+ * Link sorting function.
83
+ */
84
+ linkSort?: (link1: any, link2: any) => number;
85
+ /**
86
+ * Sankey algorithm iterations. Default: 32
87
+ */
88
+ iterations?: number;
89
+ /**
90
+ * If `true`, hides the chart tooltip.
91
+ */
92
+ hideTooltip?: boolean;
93
+ /**
94
+ * Configuration object for the chart tooltip.
95
+ */
96
+ tooltip?: TooltipConfig;
97
+ /**
98
+ * Highlight the corresponding subtree on node / link hover. Default: false
99
+ */
100
+ highlightSubtreeOnHover?: boolean;
101
+ /**
102
+ * Label font size in pixels.
103
+ */
104
+ labelFontSize?: number;
105
+ /**
106
+ * Label color accessor function or value.
107
+ */
108
+ labelColor?: (node: N) => string;
109
+ /**
110
+ * Maximum label width in pixels. Default: 70
111
+ */
112
+ labelMaxWidth?: number;
113
+ /**
114
+ * Animation duration in milliseconds.
115
+ */
116
+ duration?: number;
117
+ };
@@ -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 "../../enums.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,5 +1,5 @@
1
1
  import { SankeyInputNode, SankeyInputLink } from '@unovis/ts';
2
- import { SankeyChartProps } from './types';
2
+ import { SankeyChartProps } from './SankeyChart';
3
3
  declare const _default: <N extends SankeyInputNode, L extends SankeyInputLink>(__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
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onClick?: ((event: MouseEvent) => any) | undefined;
@@ -0,0 +1,2 @@
1
+ export { default as SankeyChart } from './SankeyChart.vue';
2
+ export * from './SankeyChart';
@@ -1,4 +1,5 @@
1
- import { BulletLegendItemInterface, LegendPosition, TooltipConfig } from '../../types';
1
+ import { BulletLegendItemInterface, TooltipConfig } from '../../types';
2
+ import { LegendPosition } from '../../enums';
2
3
  import { SankeyInputNode, SankeyInputLink, SankeyNodeAlign } from '@unovis/ts';
3
4
  export type SankeyChartProps<N extends SankeyInputNode, L extends SankeyInputLink> = {
4
5
  /**
@@ -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
  });
@@ -0,0 +1,32 @@
1
+ export declare enum LegendPosition {
2
+ TopLeft = "top-left",
3
+ TopCenter = "top-center",
4
+ TopRight = "top-right",
5
+ BottomLeft = "bottom-left",
6
+ BottomCenter = "bottom-center",
7
+ BottomRight = "bottom-right"
8
+ }
9
+ export declare enum CurveType {
10
+ Basis = "basis",
11
+ BasisClosed = "basisClosed",
12
+ BasisOpen = "basisOpen",
13
+ Bundle = "bundle",
14
+ Cardinal = "cardinal",
15
+ CardinalClosed = "cardinalClosed",
16
+ CardinalOpen = "cardinalOpen",
17
+ CatmullRom = "catmullRom",
18
+ CatmullRomClosed = "catmullRomClosed",
19
+ CatmullRomOpen = "catmullRomOpen",
20
+ Linear = "linear",
21
+ LinearClosed = "linearClosed",
22
+ MonotoneX = "monotoneX",
23
+ MonotoneY = "monotoneY",
24
+ Natural = "natural",
25
+ Step = "step",
26
+ StepAfter = "stepAfter",
27
+ StepBefore = "stepBefore"
28
+ }
29
+ export declare enum Orientation {
30
+ Horizontal = "horizontal",
31
+ Vertical = "vertical"
32
+ }