@unovis/vue 1.3.0-alpha.0 → 1.3.0-alpha.2

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 (243) hide show
  1. package/components/area/index.cjs +2 -0
  2. package/components/area/index.cjs.map +1 -0
  3. package/components/area/index.js +44 -0
  4. package/components/area/index.js.map +1 -0
  5. package/components/area/index2.cjs +2 -0
  6. package/components/area/index2.cjs.map +1 -0
  7. package/components/area/index2.js +5 -0
  8. package/components/area/index2.js.map +1 -0
  9. package/components/axis/index.cjs +2 -0
  10. package/components/axis/index.cjs.map +1 -0
  11. package/components/axis/index.js +62 -0
  12. package/components/axis/index.js.map +1 -0
  13. package/components/axis/index2.cjs +2 -0
  14. package/components/axis/index2.cjs.map +1 -0
  15. package/components/axis/index2.js +5 -0
  16. package/components/axis/index2.js.map +1 -0
  17. package/components/brush/index.cjs +2 -0
  18. package/components/brush/index.cjs.map +1 -0
  19. package/components/brush/index.js +48 -0
  20. package/components/brush/index.js.map +1 -0
  21. package/components/brush/index2.cjs +2 -0
  22. package/components/brush/index2.cjs.map +1 -0
  23. package/components/brush/index2.js +5 -0
  24. package/components/brush/index2.js.map +1 -0
  25. package/components/chord-diagram/index.cjs +2 -0
  26. package/components/chord-diagram/index.cjs.map +1 -0
  27. package/components/chord-diagram/index.js +46 -0
  28. package/components/chord-diagram/index.js.map +1 -0
  29. package/components/chord-diagram/index2.cjs +2 -0
  30. package/components/chord-diagram/index2.cjs.map +1 -0
  31. package/components/chord-diagram/index2.js +5 -0
  32. package/components/chord-diagram/index2.js.map +1 -0
  33. package/components/crosshair/index.cjs +2 -0
  34. package/components/crosshair/index.cjs.map +1 -0
  35. package/components/crosshair/index.js +47 -0
  36. package/components/crosshair/index.js.map +1 -0
  37. package/components/crosshair/index2.cjs +2 -0
  38. package/components/crosshair/index2.cjs.map +1 -0
  39. package/components/crosshair/index2.js +5 -0
  40. package/components/crosshair/index2.js.map +1 -0
  41. package/components/donut/index.cjs +2 -0
  42. package/components/donut/index.cjs.map +1 -0
  43. package/components/donut/index.js +48 -0
  44. package/components/donut/index.js.map +1 -0
  45. package/components/donut/index2.cjs +2 -0
  46. package/components/donut/index2.cjs.map +1 -0
  47. package/components/donut/index2.js +5 -0
  48. package/components/donut/index2.js.map +1 -0
  49. package/components/free-brush/index.cjs +2 -0
  50. package/components/free-brush/index.cjs.map +1 -0
  51. package/components/free-brush/index.js +48 -0
  52. package/components/free-brush/index.js.map +1 -0
  53. package/components/free-brush/index2.cjs +2 -0
  54. package/components/free-brush/index2.cjs.map +1 -0
  55. package/components/free-brush/index2.js +5 -0
  56. package/components/free-brush/index2.js.map +1 -0
  57. package/components/graph/index.cjs +2 -0
  58. package/components/graph/index.cjs.map +1 -0
  59. package/components/graph/index.js +93 -0
  60. package/components/graph/index.js.map +1 -0
  61. package/components/graph/index2.cjs +2 -0
  62. package/components/graph/index2.cjs.map +1 -0
  63. package/components/graph/index2.js +5 -0
  64. package/components/graph/index2.js.map +1 -0
  65. package/components/grouped-bar/index.cjs +2 -0
  66. package/components/grouped-bar/index.cjs.map +1 -0
  67. package/components/grouped-bar/index.js +48 -0
  68. package/components/grouped-bar/index.js.map +1 -0
  69. package/components/grouped-bar/index2.cjs +2 -0
  70. package/components/grouped-bar/index2.cjs.map +1 -0
  71. package/components/grouped-bar/index2.js +5 -0
  72. package/components/grouped-bar/index2.js.map +1 -0
  73. package/components/line/index.cjs +2 -0
  74. package/components/line/index.cjs.map +1 -0
  75. package/components/line/index.js +45 -0
  76. package/components/line/index.js.map +1 -0
  77. package/components/line/index2.cjs +2 -0
  78. package/components/line/index2.cjs.map +1 -0
  79. package/components/line/index2.js +5 -0
  80. package/components/line/index2.js.map +1 -0
  81. package/components/nested-donut/index.cjs +2 -0
  82. package/components/nested-donut/index.cjs.map +1 -0
  83. package/components/nested-donut/index.js +50 -0
  84. package/components/nested-donut/index.js.map +1 -0
  85. package/components/nested-donut/index2.cjs +2 -0
  86. package/components/nested-donut/index2.cjs.map +1 -0
  87. package/components/nested-donut/index2.js +5 -0
  88. package/components/nested-donut/index2.js.map +1 -0
  89. package/components/sankey/index.cjs +2 -0
  90. package/components/sankey/index.cjs.map +1 -0
  91. package/components/sankey/index.js +76 -0
  92. package/components/sankey/index.js.map +1 -0
  93. package/components/sankey/index2.cjs +2 -0
  94. package/components/sankey/index2.cjs.map +1 -0
  95. package/components/sankey/index2.js +5 -0
  96. package/components/sankey/index2.js.map +1 -0
  97. package/components/scatter/index.cjs +2 -0
  98. package/components/scatter/index.cjs.map +1 -0
  99. package/components/scatter/index.js +51 -0
  100. package/components/scatter/index.js.map +1 -0
  101. package/components/scatter/index2.cjs +2 -0
  102. package/components/scatter/index2.cjs.map +1 -0
  103. package/components/scatter/index2.js +5 -0
  104. package/components/scatter/index2.js.map +1 -0
  105. package/components/stacked-bar/index.cjs +2 -0
  106. package/components/stacked-bar/index.cjs.map +1 -0
  107. package/components/stacked-bar/index.js +48 -0
  108. package/components/stacked-bar/index.js.map +1 -0
  109. package/components/stacked-bar/index2.cjs +2 -0
  110. package/components/stacked-bar/index2.cjs.map +1 -0
  111. package/components/stacked-bar/index2.js +5 -0
  112. package/components/stacked-bar/index2.js.map +1 -0
  113. package/components/timeline/index.cjs +2 -0
  114. package/components/timeline/index.cjs.map +1 -0
  115. package/components/timeline/index.js +51 -0
  116. package/components/timeline/index.js.map +1 -0
  117. package/components/timeline/index2.cjs +2 -0
  118. package/components/timeline/index2.cjs.map +1 -0
  119. package/components/timeline/index2.js +5 -0
  120. package/components/timeline/index2.js.map +1 -0
  121. package/components/tooltip/index.cjs +2 -0
  122. package/components/tooltip/index.cjs.map +1 -0
  123. package/components/tooltip/index.js +36 -0
  124. package/components/tooltip/index.js.map +1 -0
  125. package/components/tooltip/index2.cjs +2 -0
  126. package/components/tooltip/index2.cjs.map +1 -0
  127. package/components/tooltip/index2.js +5 -0
  128. package/components/tooltip/index2.js.map +1 -0
  129. package/components/topojson-map/index.cjs +2 -0
  130. package/components/topojson-map/index.cjs.map +1 -0
  131. package/components/topojson-map/index.js +62 -0
  132. package/components/topojson-map/index.js.map +1 -0
  133. package/components/topojson-map/index2.cjs +2 -0
  134. package/components/topojson-map/index2.cjs.map +1 -0
  135. package/components/topojson-map/index2.js +5 -0
  136. package/components/topojson-map/index2.js.map +1 -0
  137. package/components/xy-labels/index.cjs +2 -0
  138. package/components/xy-labels/index.cjs.map +1 -0
  139. package/components/xy-labels/index.js +52 -0
  140. package/components/xy-labels/index.js.map +1 -0
  141. package/components/xy-labels/index2.cjs +2 -0
  142. package/components/xy-labels/index2.cjs.map +1 -0
  143. package/components/xy-labels/index2.js +5 -0
  144. package/components/xy-labels/index2.js.map +1 -0
  145. package/components.d.ts +21 -21
  146. package/containers/single-container/index.cjs +2 -0
  147. package/containers/single-container/index.cjs.map +1 -0
  148. package/containers/single-container/index.js +64 -0
  149. package/containers/single-container/index.js.map +1 -0
  150. package/containers/single-container/index2.cjs +2 -0
  151. package/containers/single-container/index2.cjs.map +1 -0
  152. package/containers/single-container/index2.js +5 -0
  153. package/containers/single-container/index2.js.map +1 -0
  154. package/containers/single-container/index3.cjs +2 -0
  155. package/containers/single-container/index3.cjs.map +1 -0
  156. package/containers/single-container/index3.js +6 -0
  157. package/containers/single-container/index3.js.map +1 -0
  158. package/containers/xy-container/index.cjs +2 -0
  159. package/containers/xy-container/index.cjs.map +1 -0
  160. package/containers/xy-container/index.js +103 -0
  161. package/containers/xy-container/index.js.map +1 -0
  162. package/containers/xy-container/index2.cjs +2 -0
  163. package/containers/xy-container/index2.cjs.map +1 -0
  164. package/containers/xy-container/index2.js +5 -0
  165. package/containers/xy-container/index2.js.map +1 -0
  166. package/containers/xy-container/index3.cjs +2 -0
  167. package/containers/xy-container/index3.cjs.map +1 -0
  168. package/containers/xy-container/index3.js +6 -0
  169. package/containers/xy-container/index3.js.map +1 -0
  170. package/containers.d.ts +2 -2
  171. package/html-components/bullet-legend/index.cjs +2 -0
  172. package/html-components/bullet-legend/index.cjs.map +1 -0
  173. package/html-components/bullet-legend/index.js +39 -0
  174. package/html-components/bullet-legend/index.js.map +1 -0
  175. package/html-components/bullet-legend/index2.cjs +2 -0
  176. package/html-components/bullet-legend/index2.cjs.map +1 -0
  177. package/html-components/bullet-legend/index2.js +5 -0
  178. package/html-components/bullet-legend/index2.js.map +1 -0
  179. package/html-components/bullet-legend/index3.cjs +2 -0
  180. package/html-components/bullet-legend/index3.cjs.map +1 -0
  181. package/html-components/bullet-legend/index3.js +6 -0
  182. package/html-components/bullet-legend/index3.js.map +1 -0
  183. package/html-components/leaflet-flow-map/index.cjs +2 -0
  184. package/html-components/leaflet-flow-map/index.cjs.map +1 -0
  185. package/html-components/leaflet-flow-map/index.js +93 -0
  186. package/html-components/leaflet-flow-map/index.js.map +1 -0
  187. package/html-components/leaflet-flow-map/index2.cjs +2 -0
  188. package/html-components/leaflet-flow-map/index2.cjs.map +1 -0
  189. package/html-components/leaflet-flow-map/index2.js +5 -0
  190. package/html-components/leaflet-flow-map/index2.js.map +1 -0
  191. package/html-components/leaflet-flow-map/index3.cjs +2 -0
  192. package/html-components/leaflet-flow-map/index3.cjs.map +1 -0
  193. package/html-components/leaflet-flow-map/index3.js +6 -0
  194. package/html-components/leaflet-flow-map/index3.js.map +1 -0
  195. package/html-components/leaflet-map/index.cjs +2 -0
  196. package/html-components/leaflet-map/index.cjs.map +1 -0
  197. package/html-components/leaflet-map/index.js +80 -0
  198. package/html-components/leaflet-map/index.js.map +1 -0
  199. package/html-components/leaflet-map/index2.cjs +2 -0
  200. package/html-components/leaflet-map/index2.cjs.map +1 -0
  201. package/html-components/leaflet-map/index2.js +5 -0
  202. package/html-components/leaflet-map/index2.js.map +1 -0
  203. package/html-components/leaflet-map/index3.cjs +2 -0
  204. package/html-components/leaflet-map/index3.cjs.map +1 -0
  205. package/html-components/leaflet-map/index3.js +6 -0
  206. package/html-components/leaflet-map/index3.js.map +1 -0
  207. package/index.cjs +3 -0
  208. package/index.cjs.map +1 -0
  209. package/index.js +53 -1171
  210. package/index.js.map +1 -0
  211. package/package.json +15 -9
  212. package/utils/context.cjs +2 -0
  213. package/utils/context.cjs.map +1 -0
  214. package/utils/context.js +8 -0
  215. package/utils/context.js.map +1 -0
  216. package/utils/props.cjs +2 -0
  217. package/utils/props.cjs.map +1 -0
  218. package/utils/props.js +15 -0
  219. package/utils/props.js.map +1 -0
  220. package/index.umd.cjs +0 -2
  221. /package/components/area/{area.d.ts → index.d.ts} +0 -0
  222. /package/components/axis/{axis.d.ts → index.d.ts} +0 -0
  223. /package/components/brush/{brush.d.ts → index.d.ts} +0 -0
  224. /package/components/chord-diagram/{chord-diagram.d.ts → index.d.ts} +0 -0
  225. /package/components/crosshair/{crosshair.d.ts → index.d.ts} +0 -0
  226. /package/components/donut/{donut.d.ts → index.d.ts} +0 -0
  227. /package/components/free-brush/{free-brush.d.ts → index.d.ts} +0 -0
  228. /package/components/graph/{graph.d.ts → index.d.ts} +0 -0
  229. /package/components/grouped-bar/{grouped-bar.d.ts → index.d.ts} +0 -0
  230. /package/components/line/{line.d.ts → index.d.ts} +0 -0
  231. /package/components/nested-donut/{nested-donut.d.ts → index.d.ts} +0 -0
  232. /package/components/sankey/{sankey.d.ts → index.d.ts} +0 -0
  233. /package/components/scatter/{scatter.d.ts → index.d.ts} +0 -0
  234. /package/components/stacked-bar/{stacked-bar.d.ts → index.d.ts} +0 -0
  235. /package/components/timeline/{timeline.d.ts → index.d.ts} +0 -0
  236. /package/components/tooltip/{tooltip.d.ts → index.d.ts} +0 -0
  237. /package/components/topojson-map/{topojson-map.d.ts → index.d.ts} +0 -0
  238. /package/components/xy-labels/{xy-labels.d.ts → index.d.ts} +0 -0
  239. /package/containers/single-container/{single-container.d.ts → index.d.ts} +0 -0
  240. /package/containers/xy-container/{xy-container.d.ts → index.d.ts} +0 -0
  241. /package/html-components/bullet-legend/{bullet-legend.d.ts → index.d.ts} +0 -0
  242. /package/html-components/leaflet-flow-map/{leaflet-flow-map.d.ts → index.d.ts} +0 -0
  243. /package/html-components/leaflet-map/{leaflet-map.d.ts → index.d.ts} +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),y=require("@unovis/ts"),r=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),m={"data-vis-component":""},v=e.defineComponent({__name:"index",props:{curveType:{},baseline:{type:[Function,Number,null]},opacity:{type:[Function,Number,null]},cursor:{type:[Function,String,null]},minHeight1Px:{type:Boolean},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(s){const i=s,o=e.inject(d.componentAccessorKey),l=e.computed(()=>o.data.value),p=e.getCurrentInstance(),c=e.computed(()=>r.parseProps(i,p)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new y.Area(c.value),(t=n.value)==null||t.setData(l.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(c,(t,u)=>{var a;r.arePropsEqual(t,u)||((a=n.value)==null||a.setConfig(c.value),o.update(n.value))}),(t,u)=>(e.openBlock(),e.createElementBlock("div",m))}});module.exports=v;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/area/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Area, AreaConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n curveType: {},\n baseline: { type: [Function, Number, null] },\n opacity: { type: [Function, Number, null] },\n cursor: { type: [Function, String, null] },\n minHeight1Px: { type: Boolean },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Area","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,UAAW,CAAC,EACZ,SAAU,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC3C,QAAS,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC1C,OAAQ,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,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AAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { defineComponent as s, inject as m, computed as u, getCurrentInstance as y, ref as d, onMounted as v, nextTick as f, onUnmounted as F, watch as b, openBlock as x, createElementBlock as _ } from "vue";
2
+ import { Area as g } from "@unovis/ts";
3
+ import { parseProps as h, arePropsEqual as A } from "../../utils/props.js";
4
+ import { componentAccessorKey as B } from "../../utils/context.js";
5
+ const C = { "data-vis-component": "" }, P = /* @__PURE__ */ s({
6
+ __name: "index",
7
+ props: {
8
+ curveType: {},
9
+ baseline: { type: [Function, Number, null] },
10
+ opacity: { type: [Function, Number, null] },
11
+ cursor: { type: [Function, String, null] },
12
+ minHeight1Px: { type: Boolean },
13
+ x: { type: [Function, Number, null] },
14
+ y: { type: [Function, Number, null, Array] },
15
+ id: { type: Function },
16
+ color: { type: [Function, String, Array, null] },
17
+ xScale: { type: [Object, Function] },
18
+ yScale: { type: [Object, Function] },
19
+ excludeFromDomainCalculation: { type: Boolean },
20
+ duration: {},
21
+ events: {},
22
+ attributes: {},
23
+ data: {}
24
+ },
25
+ setup(r) {
26
+ const i = r, n = m(B), l = u(() => n.data.value), p = y(), o = u(() => h(i, p)), t = d();
27
+ return v(() => {
28
+ f(() => {
29
+ var e;
30
+ t.value = new g(o.value), (e = t.value) == null || e.setData(l.value), n.update(t.value);
31
+ });
32
+ }), F(() => {
33
+ var e;
34
+ (e = t.value) == null || e.destroy(), n.destroy();
35
+ }), b(o, (e, a) => {
36
+ var c;
37
+ A(e, a) || ((c = t.value) == null || c.setConfig(o.value), n.update(t.value));
38
+ }), (e, a) => (x(), _("div", C));
39
+ }
40
+ });
41
+ export {
42
+ P as default
43
+ };
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/area/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Area, AreaConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n curveType: {},\n baseline: { type: [Function, Number, null] },\n opacity: { type: [Function, Number, null] },\n cursor: { type: [Function, String, null] },\n minHeight1Px: { type: Boolean },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Area","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBl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ACrBH,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKgB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),d=require("@unovis/ts"),l=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),x={"data-vis-axis":""},k=e.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickPadding:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(u){const i=u,o=e.inject(y.axisAccessorKey),s=e.computed(()=>o.data.value),p=e.getCurrentInstance(),a=e.computed(()=>l.parseProps(i,p)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new d.Axis(a.value),(t=n.value)==null||t.setData(s.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy(i.type)}),e.watch(a,(t,c)=>{var r;l.arePropsEqual(t,c)||((r=n.value)==null||r.setConfig(a.value),o.update(n.value))}),(t,c)=>(e.openBlock(),e.createElementBlock("div",x))}});module.exports=k;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/axis/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-axis\": \"\" }\n\nimport { Axis, AxisConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { axisAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n position: {},\n type: {},\n fullSize: { type: Boolean },\n label: {},\n labelFontSize: {},\n labelMargin: {},\n labelColor: {},\n gridLine: { type: Boolean },\n tickLine: { type: Boolean },\n domainLine: { type: Boolean },\n minMaxTicksOnly: { type: Boolean },\n tickFormat: { type: Function },\n tickValues: {},\n numTicks: {},\n tickTextFitMode: {},\n tickTextWidth: {},\n tickTextSeparator: {},\n tickTextForceWordBreak: { type: Boolean },\n tickTextTrimType: {},\n tickTextFontSize: {},\n tickTextAlign: {},\n tickTextColor: {},\n tickPadding: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(axisAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Axis<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Axis<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy(props.type)\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","axisAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Axis","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,gBAAiB,IAQVC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,SAAU,CAAC,EACX,KAAM,CAAC,EACP,SAAU,CAAE,KAAM,OAAQ,EAC1B,MAAO,CAAC,EACR,cAAe,CAAC,EAChB,YAAa,CAAC,EACd,WAAY,CAAC,EACb,SAAU,CAAE,KAAM,OAAQ,EAC1B,SAAU,CAAE,KAAM,OAAQ,EAC1B,WAAY,CAAE,KAAM,OAAQ,EAC5B,gBAAiB,CAAE,KAAM,OAAQ,EAC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,CAAA,CAC5B,EAEKiB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { defineComponent as s, inject as d, computed as l, getCurrentInstance as y, ref as m, onMounted as x, nextTick as k, onUnmounted as v, watch as F, openBlock as T, createElementBlock as f } from "vue";
2
+ import { Axis as B } from "@unovis/ts";
3
+ import { parseProps as b, arePropsEqual as g } from "../../utils/props.js";
4
+ import { axisAccessorKey as _ } from "../../utils/context.js";
5
+ const S = { "data-vis-axis": "" }, j = /* @__PURE__ */ s({
6
+ __name: "index",
7
+ props: {
8
+ position: {},
9
+ type: {},
10
+ fullSize: { type: Boolean },
11
+ label: {},
12
+ labelFontSize: {},
13
+ labelMargin: {},
14
+ labelColor: {},
15
+ gridLine: { type: Boolean },
16
+ tickLine: { type: Boolean },
17
+ domainLine: { type: Boolean },
18
+ minMaxTicksOnly: { type: Boolean },
19
+ tickFormat: { type: Function },
20
+ tickValues: {},
21
+ numTicks: {},
22
+ tickTextFitMode: {},
23
+ tickTextWidth: {},
24
+ tickTextSeparator: {},
25
+ tickTextForceWordBreak: { type: Boolean },
26
+ tickTextTrimType: {},
27
+ tickTextFontSize: {},
28
+ tickTextAlign: {},
29
+ tickTextColor: {},
30
+ tickPadding: {},
31
+ x: { type: [Function, Number, null] },
32
+ y: { type: [Function, Number, null, Array] },
33
+ id: { type: Function },
34
+ color: { type: [Function, String, Array, null] },
35
+ xScale: { type: [Object, Function] },
36
+ yScale: { type: [Object, Function] },
37
+ excludeFromDomainCalculation: { type: Boolean },
38
+ duration: {},
39
+ events: {},
40
+ attributes: {},
41
+ data: {}
42
+ },
43
+ setup(r) {
44
+ const a = r, o = d(_), u = l(() => o.data.value), p = y(), n = l(() => b(a, p)), t = m();
45
+ return x(() => {
46
+ k(() => {
47
+ var e;
48
+ t.value = new B(n.value), (e = t.value) == null || e.setData(u.value), o.update(t.value);
49
+ });
50
+ }), v(() => {
51
+ var e;
52
+ (e = t.value) == null || e.destroy(), o.destroy(a.type);
53
+ }), F(n, (e, i) => {
54
+ var c;
55
+ g(e, i) || ((c = t.value) == null || c.setConfig(n.value), o.update(t.value));
56
+ }), (e, i) => (T(), f("div", S));
57
+ }
58
+ });
59
+ export {
60
+ j as default
61
+ };
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/axis/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-axis\": \"\" }\n\nimport { Axis, AxisConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { axisAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n position: {},\n type: {},\n fullSize: { type: Boolean },\n label: {},\n labelFontSize: {},\n labelMargin: {},\n labelColor: {},\n gridLine: { type: Boolean },\n tickLine: { type: Boolean },\n domainLine: { type: Boolean },\n minMaxTicksOnly: { type: Boolean },\n tickFormat: { type: Function },\n tickValues: {},\n numTicks: {},\n tickTextFitMode: {},\n tickTextWidth: {},\n tickTextSeparator: {},\n tickTextForceWordBreak: { type: Boolean },\n tickTextTrimType: {},\n tickTextFontSize: {},\n tickTextAlign: {},\n tickTextColor: {},\n tickPadding: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(axisAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Axis<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Axis<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy(props.type)\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","axisAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Axis","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,iBAAiB,MAQVC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,UAAU,CAAC;AAAA,IACX,MAAM,CAAC;AAAA,IACP,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,aAAa,CAAC;AAAA,IACd,YAAY,CAAC;AAAA,IACb,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,iBAAiB,EAAE,MAAM,QAAQ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;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACRd,EAAA,QAAQD,EAAM,IAAI;AAAA,IAAA,CAC5B,GAEKiB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),d=require("@unovis/ts"),r=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),v={"data-vis-component":""},m=e.defineComponent({__name:"index",props:{onBrush:{type:Function},onBrushStart:{type:Function},onBrushMove:{type:Function},onBrushEnd:{type:Function},handleWidth:{},selection:{},draggable:{type:Boolean},handlePosition:{},selectionMinLength:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(s){const i=s,o=e.inject(y.componentAccessorKey),l=e.computed(()=>o.data.value),p=e.getCurrentInstance(),c=e.computed(()=>r.parseProps(i,p)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new d.Brush(c.value),(t=n.value)==null||t.setData(l.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(c,(t,u)=>{var a;r.arePropsEqual(t,u)||((a=n.value)==null||a.setConfig(c.value),o.update(n.value))}),(t,u)=>(e.openBlock(),e.createElementBlock("div",v))}});module.exports=m;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/brush/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Brush, BrushConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n onBrush: { type: Function },\n onBrushStart: { type: Function },\n onBrushMove: { type: Function },\n onBrushEnd: { type: Function },\n handleWidth: {},\n selection: {},\n draggable: { type: Boolean },\n handlePosition: {},\n selectionMinLength: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Brush<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Brush<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Brush","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,QAAS,CAAE,KAAM,QAAS,EAC1B,aAAc,CAAE,KAAM,QAAS,EAC/B,YAAa,CAAE,KAAM,QAAS,EAC9B,WAAY,CAAE,KAAM,QAAS,EAC7B,YAAa,CAAC,EACd,UAAW,CAAC,EACZ,UAAW,CAAE,KAAM,OAAQ,EAC3B,eAAgB,CAAC,EACjB,mBAAoB,CAAC,EACrB,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpC,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,KAAM,KAAK,CAAE,EAC3C,GAAI,CAAE,KAAM,QAAS,EACrB,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC/C,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,6BAA8B,CAAE,KAAM,OAAQ,EAC9C,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAa,MAAAN,EAAO,KAAK,GACrCO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { defineComponent as p, inject as d, computed as r, getCurrentInstance as m, ref as y, onMounted as v, nextTick as h, onUnmounted as f, watch as F, openBlock as B, createElementBlock as _ } from "vue";
2
+ import { Brush as g } from "@unovis/ts";
3
+ import { parseProps as x, arePropsEqual as b } from "../../utils/props.js";
4
+ import { componentAccessorKey as C } from "../../utils/context.js";
5
+ const S = { "data-vis-component": "" }, M = /* @__PURE__ */ p({
6
+ __name: "index",
7
+ props: {
8
+ onBrush: { type: Function },
9
+ onBrushStart: { type: Function },
10
+ onBrushMove: { type: Function },
11
+ onBrushEnd: { type: Function },
12
+ handleWidth: {},
13
+ selection: {},
14
+ draggable: { type: Boolean },
15
+ handlePosition: {},
16
+ selectionMinLength: {},
17
+ x: { type: [Function, Number, null] },
18
+ y: { type: [Function, Number, null, Array] },
19
+ id: { type: Function },
20
+ color: { type: [Function, String, Array, null] },
21
+ xScale: { type: [Object, Function] },
22
+ yScale: { type: [Object, Function] },
23
+ excludeFromDomainCalculation: { type: Boolean },
24
+ duration: {},
25
+ events: {},
26
+ attributes: {},
27
+ data: {}
28
+ },
29
+ setup(u) {
30
+ const i = u, n = d(C), s = r(() => n.data.value), l = m(), o = r(() => x(i, l)), t = y();
31
+ return v(() => {
32
+ h(() => {
33
+ var e;
34
+ t.value = new g(o.value), (e = t.value) == null || e.setData(s.value), n.update(t.value);
35
+ });
36
+ }), f(() => {
37
+ var e;
38
+ (e = t.value) == null || e.destroy(), n.destroy();
39
+ }), F(o, (e, a) => {
40
+ var c;
41
+ b(e, a) || ((c = t.value) == null || c.setConfig(o.value), n.update(t.value));
42
+ }), (e, a) => (B(), _("div", S));
43
+ }
44
+ });
45
+ export {
46
+ M as default
47
+ };
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/brush/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Brush, BrushConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n onBrush: { type: Function },\n onBrushStart: { type: Function },\n onBrushMove: { type: Function },\n onBrushEnd: { type: Function },\n handleWidth: {},\n selection: {},\n draggable: { type: Boolean },\n handlePosition: {},\n selectionMinLength: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Brush<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Brush<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Brush","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,SAAS,EAAE,MAAM,SAAS;AAAA,IAC1B,cAAc,EAAE,MAAM,SAAS;AAAA,IAC/B,aAAa,EAAE,MAAM,SAAS;AAAA,IAC9B,YAAY,EAAE,MAAM,SAAS;AAAA,IAC7B,aAAa,CAAC;AAAA,IACd,WAAW,CAAC;AAAA,IACZ,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,gBAAgB,CAAC;AAAA,IACjB,oBAAo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GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),p=require("@unovis/ts"),c=require("../../utils/props.cjs"),g=require("../../utils/context.cjs"),m={"data-vis-component":""},v=e.defineComponent({__name:"index",props:{highlightedNodeId:{},highlightedLinkIds:{},linkColor:{type:[Function,String,Array,null]},linkValue:{type:[Function,Number,null]},nodeLevels:{},nodeWidth:{},nodeColor:{type:[Function,String,Array,null]},nodeLabel:{type:[Function,String,null]},nodeLabelColor:{type:[Function,String,null]},nodeLabelAlignment:{type:[Function,null]},padAngle:{type:[Function,Number,null]},cornerRadius:{type:[Function,Number,null]},angleRange:{},radiusScaleExponent:{},duration:{},events:{},attributes:{},data:{}},setup(l){const i=l,o=e.inject(g.componentAccessorKey),s=e.computed(()=>o.data.value),d=e.getCurrentInstance(),u=e.computed(()=>c.parseProps(i,d)),t=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var n;t.value=new p.ChordDiagram(u.value),(n=t.value)==null||n.setData(s.value),o.update(t.value)})}),e.onUnmounted(()=>{var n;(n=t.value)==null||n.destroy(),o.destroy()}),e.watch(u,(n,r)=>{var a;c.arePropsEqual(n,r)||((a=t.value)==null||a.setConfig(u.value),o.update(t.value))}),(n,r)=>(e.openBlock(),e.createElementBlock("div",m))}});module.exports=v;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/chord-diagram/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { ChordDiagram, ChordDiagramConfigInterface, ChordInputNode, ChordInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n highlightedNodeId: {},\n highlightedLinkIds: {},\n linkColor: { type: [Function, String, Array, null] },\n linkValue: { type: [Function, Number, null] },\n nodeLevels: {},\n nodeWidth: {},\n nodeColor: { type: [Function, String, Array, null] },\n nodeLabel: { type: [Function, String, null] },\n nodeLabelColor: { type: [Function, String, null] },\n nodeLabelAlignment: { type: [Function, null] },\n padAngle: { type: [Function, Number, null] },\n cornerRadius: { type: [Function, Number, null] },\n angleRange: {},\n radiusScaleExponent: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<ChordDiagram<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new ChordDiagram<N, L>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","ChordDiagram","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,kBAAmB,CAAC,EACpB,mBAAoB,CAAC,EACrB,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACnD,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC5C,WAAY,CAAC,EACb,UAAW,CAAC,EACZ,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACnD,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC5C,eAAgB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACjD,mBAAoB,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EAC7C,SAAU,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC3C,aAAc,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC/C,WAAY,CAAC,EACb,oBAAqB,CAAC,EACtB,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAmB,aAAAN,EAAO,KAAK,GAC3CO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { defineComponent as d, inject as p, computed as l, getCurrentInstance as m, ref as g, onMounted as v, nextTick as y, onUnmounted as f, watch as h, openBlock as F, createElementBlock as _ } from "vue";
2
+ import { ChordDiagram as b } from "@unovis/ts";
3
+ import { parseProps as C, arePropsEqual as k } from "../../utils/props.js";
4
+ import { componentAccessorKey as x } from "../../utils/context.js";
5
+ const A = { "data-vis-component": "" }, I = /* @__PURE__ */ d({
6
+ __name: "index",
7
+ props: {
8
+ highlightedNodeId: {},
9
+ highlightedLinkIds: {},
10
+ linkColor: { type: [Function, String, Array, null] },
11
+ linkValue: { type: [Function, Number, null] },
12
+ nodeLevels: {},
13
+ nodeWidth: {},
14
+ nodeColor: { type: [Function, String, Array, null] },
15
+ nodeLabel: { type: [Function, String, null] },
16
+ nodeLabelColor: { type: [Function, String, null] },
17
+ nodeLabelAlignment: { type: [Function, null] },
18
+ padAngle: { type: [Function, Number, null] },
19
+ cornerRadius: { type: [Function, Number, null] },
20
+ angleRange: {},
21
+ radiusScaleExponent: {},
22
+ duration: {},
23
+ events: {},
24
+ attributes: {},
25
+ data: {}
26
+ },
27
+ setup(u) {
28
+ const i = u, t = p(x), c = l(() => t.data.value), s = m(), o = l(() => C(i, s)), n = g();
29
+ return v(() => {
30
+ y(() => {
31
+ var e;
32
+ n.value = new b(o.value), (e = n.value) == null || e.setData(c.value), t.update(n.value);
33
+ });
34
+ }), f(() => {
35
+ var e;
36
+ (e = n.value) == null || e.destroy(), t.destroy();
37
+ }), h(o, (e, a) => {
38
+ var r;
39
+ k(e, a) || ((r = n.value) == null || r.setConfig(o.value), t.update(n.value));
40
+ }), (e, a) => (F(), _("div", A));
41
+ }
42
+ });
43
+ export {
44
+ I as default
45
+ };
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/chord-diagram/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { ChordDiagram, ChordDiagramConfigInterface, ChordInputNode, ChordInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n highlightedNodeId: {},\n highlightedLinkIds: {},\n linkColor: { type: [Function, String, Array, null] },\n linkValue: { type: [Function, Number, null] },\n nodeLevels: {},\n nodeWidth: {},\n nodeColor: { type: [Function, String, Array, null] },\n nodeLabel: { type: [Function, String, null] },\n nodeLabelColor: { type: [Function, String, null] },\n nodeLabelAlignment: { type: [Function, null] },\n padAngle: { type: [Function, Number, null] },\n cornerRadius: { type: [Function, Number, null] },\n angleRange: {},\n radiusScaleExponent: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<ChordDiagram<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new ChordDiagram<N, L>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","ChordDiagram","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,mBAAmB,CAAC;AAAA,IACpB,oBAAoB,CAAC;AAAA,IACrB,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IACnD,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC5C,YAAY,CAAC;AAAA,IACb,WAAW,CAAC;AAAA,IACZ,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IACnD,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC5C,gBAAgB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACjD,oBAAoB,EAAE,MAAM,CAAC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sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),d=require("@unovis/ts"),s=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),m={"data-vis-crosshair":""},v=e.defineComponent({__name:"index",props:{yStacked:{},baseline:{type:[Function,Number,null]},tooltip:{},template:{type:Function},hideWhenFarFromPointer:{type:Boolean},hideWhenFarFromPointerDistance:{},snapToData:{type:Boolean},getCircles:{type:Function},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(u){const i=u,o=e.inject(y.crosshairAccessorKey),l=e.computed(()=>o.data.value),p=e.getCurrentInstance(),a=e.computed(()=>s.parseProps(i,p)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new d.Crosshair(a.value),(t=n.value)==null||t.setData(l.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(a,(t,c)=>{var r;s.arePropsEqual(t,c)||((r=n.value)==null||r.setConfig(a.value),o.update(n.value))}),(t,c)=>(e.openBlock(),e.createElementBlock("div",m))}});module.exports=v;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/crosshair/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-crosshair\": \"\" }\n\nimport { Crosshair, CrosshairConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { crosshairAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n yStacked: {},\n baseline: { type: [Function, Number, null] },\n tooltip: {},\n template: { type: Function },\n hideWhenFarFromPointer: { type: Boolean },\n hideWhenFarFromPointerDistance: {},\n snapToData: { type: Boolean },\n getCircles: { type: Function },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(crosshairAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Crosshair<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Crosshair<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","crosshairAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Crosshair","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAA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EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { defineComponent as p, inject as m, computed as c, getCurrentInstance as d, ref as y, onMounted as F, nextTick as v, onUnmounted as f, watch as h, openBlock as _, createElementBlock as b } from "vue";
2
+ import { Crosshair as x } from "@unovis/ts";
3
+ import { parseProps as C, arePropsEqual as g } from "../../utils/props.js";
4
+ import { crosshairAccessorKey as B } from "../../utils/context.js";
5
+ const k = { "data-vis-crosshair": "" }, A = /* @__PURE__ */ p({
6
+ __name: "index",
7
+ props: {
8
+ yStacked: {},
9
+ baseline: { type: [Function, Number, null] },
10
+ tooltip: {},
11
+ template: { type: Function },
12
+ hideWhenFarFromPointer: { type: Boolean },
13
+ hideWhenFarFromPointerDistance: {},
14
+ snapToData: { type: Boolean },
15
+ getCircles: { type: Function },
16
+ x: { type: [Function, Number, null] },
17
+ y: { type: [Function, Number, null, Array] },
18
+ id: { type: Function },
19
+ color: { type: [Function, String, Array, null] },
20
+ xScale: { type: [Object, Function] },
21
+ yScale: { type: [Object, Function] },
22
+ excludeFromDomainCalculation: { type: Boolean },
23
+ duration: {},
24
+ events: {},
25
+ attributes: {},
26
+ data: {}
27
+ },
28
+ setup(i) {
29
+ const u = i, n = m(B), s = c(() => n.data.value), l = d(), o = c(() => C(u, l)), t = y();
30
+ return F(() => {
31
+ v(() => {
32
+ var e;
33
+ t.value = new x(o.value), (e = t.value) == null || e.setData(s.value), n.update(t.value);
34
+ });
35
+ }), f(() => {
36
+ var e;
37
+ (e = t.value) == null || e.destroy(), n.destroy();
38
+ }), h(o, (e, a) => {
39
+ var r;
40
+ g(e, a) || ((r = t.value) == null || r.setConfig(o.value), n.update(t.value));
41
+ }), (e, a) => (_(), b("div", k));
42
+ }
43
+ });
44
+ export {
45
+ A as default
46
+ };
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/crosshair/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-crosshair\": \"\" }\n\nimport { Crosshair, CrosshairConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { crosshairAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n yStacked: {},\n baseline: { type: [Function, Number, null] },\n tooltip: {},\n template: { type: Function },\n hideWhenFarFromPointer: { type: Boolean },\n hideWhenFarFromPointerDistance: {},\n snapToData: { type: Boolean },\n getCircles: { type: Function },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(crosshairAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Crosshair<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Crosshair<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","crosshairAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Crosshair","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,UAAU,CAAC;AAAA,IACX,UAAU,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC3C,SAAS,CAAC;AAAA,IACV,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,wBAAwB,EAAE,MAAM,QAAQ;AAAA,IACxC,gCAAgC,CAAC;AAAA,IACjC,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,YAAY,EAAE,MAAM,SAAS;AAAA,IAC7B,GAAG,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACpC,GAAG,EAAE,MAAM,CAAC,UAAU,QAAQ,MAAM,KAAK,EAAE;AAAA,IAC3C,IAAI,EAAE,MAAM,SAAS;AAAA,IACrB,OAAO,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IAC/C,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACnC,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACnC,8BAA8B,EAAE,MAAM,QAAQ;AAAA,IAC9C,UAAU,CAAC;AAAA,IACX,QAAQ,CAAC;AAAA,IACT,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAGRE,IAAWC,EAAOC,CAAoB,GAItCC,IAAOC,EAAS,MAAMJ,EAAS,KAAK,KAAK,GAEzCK,IAAWC,KACXC,IAASH,EAAS,MAAMI,EAAWT,GAAOM,CAAQ,CAAC,GAGnDI,IAAYC;AAGlB,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAII,EAAiBN,EAAO,KAAK,IACzCO,IAAAL,EAAA,UAAA,QAAAK,EAAO,QAAQX,EAAK,QACrBH,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKgB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),d=require("@unovis/ts"),u=require("../../utils/props.cjs"),m=require("../../utils/context.cjs"),v={"data-vis-component":""},g=e.defineComponent({__name:"index",props:{id:{type:Function},value:{type:[Function,Number,null]},angleRange:{},padAngle:{},sortFunction:{type:Function},cornerRadius:{},color:{type:[Function,String,Array,null]},radius:{},arcWidth:{},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showEmptySegments:{type:Boolean},emptySegmentAngle:{},showBackground:{type:Boolean},backgroundAngleRange:{},duration:{},events:{},attributes:{},data:{}},setup(s){const l=s,o=e.inject(m.componentAccessorKey),p=e.computed(()=>o.data.value),i=e.getCurrentInstance(),a=e.computed(()=>u.parseProps(l,i)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new d.Donut(a.value),(t=n.value)==null||t.setData(p.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(a,(t,c)=>{var r;u.arePropsEqual(t,c)||((r=n.value)==null||r.setConfig(a.value),o.update(n.value))}),(t,c)=>(e.openBlock(),e.createElementBlock("div",v))}});module.exports=g;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/donut/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Donut, DonutConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n id: { type: Function },\n value: { type: [Function, Number, null] },\n angleRange: {},\n padAngle: {},\n sortFunction: { type: Function },\n cornerRadius: {},\n color: { type: [Function, String, Array, null] },\n radius: {},\n arcWidth: {},\n centralLabel: {},\n centralSubLabel: {},\n centralSubLabelWrap: { type: Boolean },\n showEmptySegments: { type: Boolean },\n emptySegmentAngle: {},\n showBackground: { type: Boolean },\n backgroundAngleRange: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Donut<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Donut<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Donut","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,GAAI,CAAE,KAAM,QAAS,EACrB,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACxC,WAAY,CAAC,EACb,SAAU,CAAC,EACX,aAAc,CAAE,KAAM,QAAS,EAC/B,aAAc,CAAC,EACf,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC/C,OAAQ,CAAC,EACT,SAAU,CAAC,EACX,aAAc,CAAC,EACf,gBAAiB,CAAC,EAClB,oBAAqB,CAAE,KAAM,OAAQ,EACrC,kBAAmB,CAAE,KAAM,OAAQ,EACnC,kBAAmB,CAAC,EACpB,eAAgB,CAAE,KAAM,OAAQ,EAChC,qBAAsB,CAAC,EACvB,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAa,MAAAN,EAAO,KAAK,GACrCO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { defineComponent as i, inject as d, computed as c, getCurrentInstance as m, ref as g, onMounted as v, nextTick as y, onUnmounted as f, watch as b, openBlock as _, createElementBlock as h } from "vue";
2
+ import { Donut as B } from "@unovis/ts";
3
+ import { parseProps as k, arePropsEqual as A } from "../../utils/props.js";
4
+ import { componentAccessorKey as F } from "../../utils/context.js";
5
+ const S = { "data-vis-component": "" }, L = /* @__PURE__ */ i({
6
+ __name: "index",
7
+ props: {
8
+ id: { type: Function },
9
+ value: { type: [Function, Number, null] },
10
+ angleRange: {},
11
+ padAngle: {},
12
+ sortFunction: { type: Function },
13
+ cornerRadius: {},
14
+ color: { type: [Function, String, Array, null] },
15
+ radius: {},
16
+ arcWidth: {},
17
+ centralLabel: {},
18
+ centralSubLabel: {},
19
+ centralSubLabelWrap: { type: Boolean },
20
+ showEmptySegments: { type: Boolean },
21
+ emptySegmentAngle: {},
22
+ showBackground: { type: Boolean },
23
+ backgroundAngleRange: {},
24
+ duration: {},
25
+ events: {},
26
+ attributes: {},
27
+ data: {}
28
+ },
29
+ setup(u) {
30
+ const s = u, n = d(F), l = c(() => n.data.value), p = m(), o = c(() => k(s, p)), t = g();
31
+ return v(() => {
32
+ y(() => {
33
+ var e;
34
+ t.value = new B(o.value), (e = t.value) == null || e.setData(l.value), n.update(t.value);
35
+ });
36
+ }), f(() => {
37
+ var e;
38
+ (e = t.value) == null || e.destroy(), n.destroy();
39
+ }), b(o, (e, a) => {
40
+ var r;
41
+ A(e, a) || ((r = t.value) == null || r.setConfig(o.value), n.update(t.value));
42
+ }), (e, a) => (_(), h("div", S));
43
+ }
44
+ });
45
+ export {
46
+ L as default
47
+ };
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/donut/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Donut, DonutConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n id: { type: Function },\n value: { type: [Function, Number, null] },\n angleRange: {},\n padAngle: {},\n sortFunction: { type: Function },\n cornerRadius: {},\n color: { type: [Function, String, Array, null] },\n radius: {},\n arcWidth: {},\n centralLabel: {},\n centralSubLabel: {},\n centralSubLabelWrap: { type: Boolean },\n showEmptySegments: { type: Boolean },\n emptySegmentAngle: {},\n showBackground: { type: Boolean },\n backgroundAngleRange: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Donut<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Donut<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Donut","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,IAAI,EAAE,MAAM,SAAS;AAAA,IACr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,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),d=require("@unovis/ts"),r=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),m={"data-vis-component":""},v=e.defineComponent({__name:"index",props:{mode:{},onBrush:{type:Function},onBrushStart:{type:Function},onBrushMove:{type:Function},onBrushEnd:{type:Function},handleWidth:{},selection:{},selectionMinLength:{},autoHide:{type:Boolean},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(s){const i=s,o=e.inject(y.componentAccessorKey),p=e.computed(()=>o.data.value),l=e.getCurrentInstance(),c=e.computed(()=>r.parseProps(i,l)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new d.FreeBrush(c.value),(t=n.value)==null||t.setData(p.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(c,(t,u)=>{var a;r.arePropsEqual(t,u)||((a=n.value)==null||a.setConfig(c.value),o.update(n.value))}),(t,u)=>(e.openBlock(),e.createElementBlock("div",m))}});module.exports=v;
2
+ //# sourceMappingURL=index.cjs.map