@unovis/vue 1.3.0-alpha.3 → 1.3.0-alpha.4

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.
@@ -1,9 +1,40 @@
1
- import { XYContainer, XYContainerConfigInterface } from '@unovis/ts';
1
+ import { XYContainer, XYComponentCore, Tooltip, Crosshair, Axis } from '@unovis/ts';
2
2
  import { Ref } from 'vue';
3
- declare const _default: <T>(__VLS_props: any, __VLS_ctx?: Pick<any, "attrs" | "emit" | "slots">, __VLS_expose?: any, __VLS_setup?: Promise<{
4
- props: XYContainerConfigInterface<T> & {
3
+ declare const _default: <T>(__VLS_props: any, __VLS_ctx?: {
4
+ attrs: any;
5
+ emit: any;
6
+ slots: any;
7
+ }, __VLS_expose?: any, __VLS_setup?: Promise<{
8
+ props: {
9
+ xScale?: import("@unovis/ts").ContinuousScale;
10
+ yScale?: import("@unovis/ts").ContinuousScale;
11
+ duration?: number;
5
12
  data?: T[];
6
- };
13
+ tooltip?: Tooltip;
14
+ components?: XYComponentCore<T, import("@unovis/ts/lib/core/xy-component/config").XYComponentConfig<T>, Partial<import("@unovis/ts").XYComponentConfigInterface<T>>>[];
15
+ margin?: import("@unovis/ts").Spacing;
16
+ padding?: import("@unovis/ts").Spacing;
17
+ sizing?: string;
18
+ width?: string | number;
19
+ height?: string | number;
20
+ svgDefs?: string;
21
+ ariaLabel?: string;
22
+ xDomain?: [number, number];
23
+ xDomainMinConstraint?: [number, number];
24
+ xDomainMaxConstraint?: [number, number];
25
+ xRange?: [number, number];
26
+ yDomain?: [number, number];
27
+ yDomainMinConstraint?: [number, number];
28
+ yDomainMaxConstraint?: [number, number];
29
+ yRange?: [number, number];
30
+ yDirection?: string;
31
+ xAxis?: Axis<T>;
32
+ yAxis?: Axis<T>;
33
+ autoMargin?: boolean;
34
+ crosshair?: Crosshair<T>;
35
+ preventEmptyDomain?: boolean;
36
+ scaleByDomain?: boolean;
37
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
7
38
  expose(exposed: {
8
39
  component: Ref<XYContainer<T>>;
9
40
  }): void;
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("vue"),d=require("@unovis/ts"),r=require("../../utils/props.cjs"),f=e.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},data:{}},setup(u,{expose:i}){const l=u;e.computed(()=>l.data);const p=e.getCurrentInstance(),o=e.computed(()=>r.parseProps({...l},p)),n=e.ref(),a=e.ref();return e.onMounted(()=>{e.nextTick(()=>{a.value&&(n.value=new d.BulletLegend(a.value,o.value))})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy()}),e.watch(o,(t,s)=>{var c;r.arePropsEqual(t,s)||(c=n.value)==null||c.update(o.value)}),i({component:n}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:a},null,512))}});module.exports=f;
1
+ "use strict";const e=require("vue"),d=require("@unovis/ts"),c=require("../../utils/props.cjs"),f=e.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},bulletShape:{},data:{}},setup(r,{expose:i}){const a=r;e.computed(()=>a.data);const p=e.getCurrentInstance(),o=e.computed(()=>c.parseProps({...a},p)),n=e.ref(),l=e.ref();return e.onMounted(()=>{e.nextTick(()=>{l.value&&(n.value=new d.BulletLegend(l.value,o.value))})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy()}),e.watch(o,(t,s)=>{var u;c.arePropsEqual(t,s)||(u=n.value)==null||u.update(o.value)}),i({component:n}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:l},null,512))}});module.exports=f;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/html-components/bullet-legend/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\nimport { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps({ ...props }, instance))\n\n// component declaration\nconst component = ref<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(elRef.value, config.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.update(config.value)\n }\n})\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","BulletLegend","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"+FAU4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAC,EACR,eAAgB,CAAC,EACjB,kBAAmB,CAAE,KAAM,QAAS,EACpC,cAAe,CAAC,EAChB,cAAe,CAAC,EAChB,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAAE,OAAQC,GAAY,CAE5C,MAAMC,EAAQF,EAIDG,WAAS,IAAMD,EAAM,IAAI,EAEtC,MAAME,EAAWC,EAAAA,qBACXC,EAASH,WAAS,IAAMI,EAAA,WAAW,CAAE,GAAGL,CAAS,EAAAE,CAAQ,CAAC,EAG1DI,EAAYC,EAAAA,MACZC,EAAQD,EAAAA,MAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACVF,EAAM,QACTF,EAAU,MAAQ,IAAIK,EAAA,aAAaH,EAAM,MAAOJ,EAAO,KAAK,EAAA,CAG7D,CAAA,CACF,EAEDQ,EAAAA,YAAY,IAAM,QAChBC,EAAAP,EAAU,QAAV,MAAAO,EAAiB,SAAQ,CAE1B,EAEKC,EAAAA,MAAAV,EAAQ,CAACW,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBH,EAAAP,EAAA,QAAA,MAAAO,EAAO,OAAOT,EAAO,MACjC,CACD,EAEQL,EAAA,CACP,UAAAO,CAAA,CACD,EAEM,CAACY,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,yBAA0B,GAC1B,QAAS,QACT,IAAKb,CAAA,EACJ,KAAM,GAAG,EAEd,CAEA,CAAC"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/html-components/bullet-legend/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\nimport { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n bulletShape: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps({ ...props }, instance))\n\n// component declaration\nconst component = ref<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(elRef.value, config.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.update(config.value)\n }\n})\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","BulletLegend","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"+FAU4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAC,EACR,eAAgB,CAAC,EACjB,kBAAmB,CAAE,KAAM,QAAS,EACpC,cAAe,CAAC,EAChB,cAAe,CAAC,EAChB,WAAY,CAAC,EACb,YAAa,CAAC,EACd,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAAE,OAAQC,GAAY,CAE5C,MAAMC,EAAQF,EAIDG,WAAS,IAAMD,EAAM,IAAI,EAEtC,MAAME,EAAWC,EAAAA,qBACXC,EAASH,WAAS,IAAMI,EAAA,WAAW,CAAE,GAAGL,CAAS,EAAAE,CAAQ,CAAC,EAG1DI,EAAYC,EAAAA,MACZC,EAAQD,EAAAA,MAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACVF,EAAM,QACTF,EAAU,MAAQ,IAAIK,EAAA,aAAaH,EAAM,MAAOJ,EAAO,KAAK,EAAA,CAG7D,CAAA,CACF,EAEDQ,EAAAA,YAAY,IAAM,QAChBC,EAAAP,EAAU,QAAV,MAAAO,EAAiB,SAAQ,CAE1B,EAEKC,EAAAA,MAAAV,EAAQ,CAACW,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBH,EAAAP,EAAA,QAAA,MAAAO,EAAO,OAAOT,EAAO,MACjC,CACD,EAEQL,EAAA,CACP,UAAAO,CAAA,CACD,EAEM,CAACY,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,yBAA0B,GAC1B,QAAS,QACT,IAAKb,CAAA,EACJ,KAAM,GAAG,EAEd,CAEA,CAAC"}
@@ -19,6 +19,9 @@ declare const _default: import("vue").DefineComponent<{
19
19
  bulletSize: {
20
20
  type: import("vue").PropType<string>;
21
21
  };
22
+ bulletShape: {
23
+ type: import("vue").PropType<import("@unovis/ts").BulletShape>;
24
+ };
22
25
  data: {
23
26
  type: import("vue").PropType<never>;
24
27
  };
@@ -44,6 +47,9 @@ declare const _default: import("vue").DefineComponent<{
44
47
  bulletSize: {
45
48
  type: import("vue").PropType<string>;
46
49
  };
50
+ bulletShape: {
51
+ type: import("vue").PropType<import("@unovis/ts").BulletShape>;
52
+ };
47
53
  data: {
48
54
  type: import("vue").PropType<never>;
49
55
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as d, computed as c, getCurrentInstance as m, ref as s, onMounted as f, nextTick as v, onUnmounted as _, watch as x, openBlock as b, createElementBlock as g } from "vue";
1
+ import { defineComponent as d, computed as u, getCurrentInstance as m, ref as c, onMounted as f, nextTick as v, onUnmounted as _, watch as b, openBlock as x, createElementBlock as g } from "vue";
2
2
  import { BulletLegend as k } from "@unovis/ts";
3
- import { parseProps as C, arePropsEqual as h } from "../../utils/props.js";
4
- const z = /* @__PURE__ */ d({
3
+ import { parseProps as h, arePropsEqual as C } from "../../utils/props.js";
4
+ const w = /* @__PURE__ */ d({
5
5
  __name: "index",
6
6
  props: {
7
7
  items: {},
@@ -10,12 +10,13 @@ const z = /* @__PURE__ */ d({
10
10
  labelFontSize: {},
11
11
  labelMaxWidth: {},
12
12
  bulletSize: {},
13
+ bulletShape: {},
13
14
  data: {}
14
15
  },
15
- setup(u, { expose: i }) {
16
- const a = u;
17
- c(() => a.data);
18
- const p = m(), n = c(() => C({ ...a }, p)), t = s(), o = s();
16
+ setup(s, { expose: p }) {
17
+ const a = s;
18
+ u(() => a.data);
19
+ const i = m(), n = u(() => h({ ...a }, i)), t = c(), o = c();
19
20
  return f(() => {
20
21
  v(() => {
21
22
  o.value && (t.value = new k(o.value, n.value));
@@ -23,12 +24,12 @@ const z = /* @__PURE__ */ d({
23
24
  }), _(() => {
24
25
  var e;
25
26
  (e = t.value) == null || e.destroy();
26
- }), x(n, (e, l) => {
27
+ }), b(n, (e, l) => {
27
28
  var r;
28
- h(e, l) || (r = t.value) == null || r.update(n.value);
29
- }), i({
29
+ C(e, l) || (r = t.value) == null || r.update(n.value);
30
+ }), p({
30
31
  component: t
31
- }), (e, l) => (b(), g("div", {
32
+ }), (e, l) => (x(), g("div", {
32
33
  "data-vis-bullet-legend": "",
33
34
  ref_key: "elRef",
34
35
  ref: o
@@ -36,6 +37,6 @@ const z = /* @__PURE__ */ d({
36
37
  }
37
38
  });
38
39
  export {
39
- z as default
40
+ w as default
40
41
  };
41
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/html-components/bullet-legend/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\nimport { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps({ ...props }, instance))\n\n// component declaration\nconst component = ref<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(elRef.value, config.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.update(config.value)\n }\n})\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","BulletLegend","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;AAUA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,gBAAgB,CAAC;AAAA,IACjB,mBAAmB,EAAE,MAAM,SAAS;AAAA,IACpC,eAAe,CAAC;AAAA,IAChB,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc,EAAE,QAAQC,KAAY;AAE5C,UAAMC,IAAQF;AAID,IAAAG,EAAS,MAAMD,EAAM,IAAI;AAEtC,UAAME,IAAWC,KACXC,IAASH,EAAS,MAAMI,EAAW,EAAE,GAAGL,EAAS,GAAAE,CAAQ,CAAC,GAG1DI,IAAYC,KACZC,IAAQD;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAGF,EAAM,UACTF,EAAU,QAAQ,IAAIK,EAAaH,EAAM,OAAOJ,EAAO,KAAK;AAAA,MAAA,CAG7D;AAAA,IAAA,CACF,GAEDQ,EAAY,MAAM;;AAChB,OAAAC,IAAAP,EAAU,UAAV,QAAAO,EAAiB;AAAA,IAAQ,CAE1B,GAEKC,EAAAV,GAAQ,CAACW,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBH,IAAAP,EAAA,UAAA,QAAAO,EAAO,OAAOT,EAAO;AAAA,IACjC,CACD,GAEQL,EAAA;AAAA,MACP,WAAAO;AAAA,IAAA,CACD,GAEM,CAACY,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,0BAA0B;AAAA,MAC1B,SAAS;AAAA,MACT,KAAKb;AAAA,IAAA,GACJ,MAAM,GAAG;AAAA,EAEd;AAEA,CAAC;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/html-components/bullet-legend/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\nimport { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n bulletShape: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps({ ...props }, instance))\n\n// component declaration\nconst component = ref<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(elRef.value, config.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.update(config.value)\n }\n})\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","BulletLegend","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;AAUA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,gBAAgB,CAAC;AAAA,IACjB,mBAAmB,EAAE,MAAM,SAAS;AAAA,IACpC,eAAe,CAAC;AAAA,IAChB,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,aAAa,CAAC;AAAA,IACd,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc,EAAE,QAAQC,KAAY;AAE5C,UAAMC,IAAQF;AAID,IAAAG,EAAS,MAAMD,EAAM,IAAI;AAEtC,UAAME,IAAWC,KACXC,IAASH,EAAS,MAAMI,EAAW,EAAE,GAAGL,EAAS,GAAAE,CAAQ,CAAC,GAG1DI,IAAYC,KACZC,IAAQD;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAGF,EAAM,UACTF,EAAU,QAAQ,IAAIK,EAAaH,EAAM,OAAOJ,EAAO,KAAK;AAAA,MAAA,CAG7D;AAAA,IAAA,CACF,GAEDQ,EAAY,MAAM;;AAChB,OAAAC,IAAAP,EAAU,UAAV,QAAAO,EAAiB;AAAA,IAAQ,CAE1B,GAEKC,EAAAV,GAAQ,CAACW,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBH,IAAAP,EAAA,UAAA,QAAAO,EAAO,OAAOT,EAAO;AAAA,IACjC,CACD,GAEQL,EAAA;AAAA,MACP,WAAAO;AAAA,IAAA,CACD,GAEM,CAACY,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,0BAA0B;AAAA,MAC1B,SAAS;AAAA,MACT,KAAKb;AAAA,IAAA,GACJ,MAAM,GAAG;AAAA,EAEd;AAEA,CAAC;"}
@@ -1,11 +1,112 @@
1
- import { LeafletFlowMap, LeafletFlowMapConfigInterface, GenericDataRecord } from '@unovis/ts';
2
- declare const _default: <PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?: Pick<any, "attrs" | "emit" | "slots">, __VLS_expose?: any, __VLS_setup?: Promise<{
3
- props: LeafletFlowMapConfigInterface<PointDatum, FlowDatum> & {
1
+ import { LeafletFlowMap, GenericDataRecord } from '@unovis/ts';
2
+ declare const _default: <PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?: {
3
+ attrs: any;
4
+ emit: any;
5
+ slots: any;
6
+ }, __VLS_expose?: any, __VLS_setup?: Promise<{
7
+ props: {
8
+ duration?: number;
9
+ events?: {
10
+ [selector: string]: {
11
+ touchstart?: import("@unovis/ts").VisEventCallback<any>;
12
+ touchmove?: import("@unovis/ts").VisEventCallback<any>;
13
+ touchend?: import("@unovis/ts").VisEventCallback<any>;
14
+ mouseover?: import("@unovis/ts").VisEventCallback<any>;
15
+ mousemove?: import("@unovis/ts").VisEventCallback<any>;
16
+ mousedown?: import("@unovis/ts").VisEventCallback<any>;
17
+ mouseup?: import("@unovis/ts").VisEventCallback<any>;
18
+ click?: import("@unovis/ts").VisEventCallback<any>;
19
+ auxclick?: import("@unovis/ts").VisEventCallback<any>;
20
+ contextmenu?: import("@unovis/ts").VisEventCallback<any>;
21
+ dblclick?: import("@unovis/ts").VisEventCallback<any>;
22
+ mouseenter?: import("@unovis/ts").VisEventCallback<any>;
23
+ mouseleave?: import("@unovis/ts").VisEventCallback<any>;
24
+ mouseout?: import("@unovis/ts").VisEventCallback<any>;
25
+ scroll?: import("@unovis/ts").VisEventCallback<any>;
26
+ select?: import("@unovis/ts").VisEventCallback<any>;
27
+ wheel?: import("@unovis/ts").VisEventCallback<any>;
28
+ pointerdown?: import("@unovis/ts").VisEventCallback<any>;
29
+ pointerup?: import("@unovis/ts").VisEventCallback<any>;
30
+ pointerout?: import("@unovis/ts").VisEventCallback<any>;
31
+ pointermove?: import("@unovis/ts").VisEventCallback<any>;
32
+ };
33
+ };
34
+ attributes?: {
35
+ [selector: string]: {
36
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
37
+ };
38
+ };
4
39
  data?: {
5
40
  points: PointDatum[];
6
41
  flows?: FlowDatum[];
7
42
  };
8
- };
43
+ tooltip?: import("@unovis/ts").Tooltip;
44
+ zoomDuration?: number;
45
+ pointColor?: import("@unovis/ts").ColorAccessor<PointDatum>;
46
+ pointRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
47
+ pointCursor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
48
+ pointLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
49
+ pointId?: import("@unovis/ts").StringAccessor<PointDatum>;
50
+ clusterLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
51
+ clusterLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
52
+ width?: string | number;
53
+ height?: string | number;
54
+ ariaLabel?: string;
55
+ sourceLongitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
56
+ sourceLatitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
57
+ targetLongitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
58
+ targetLatitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
59
+ sourcePointRadius?: import("@unovis/ts").NumericAccessor<FlowDatum>;
60
+ sourcePointColor?: import("@unovis/ts").ColorAccessor<FlowDatum>;
61
+ flowParticleColor?: import("@unovis/ts").ColorAccessor<FlowDatum>;
62
+ flowParticleRadius?: import("@unovis/ts").NumericAccessor<FlowDatum>;
63
+ flowParticleSpeed?: import("@unovis/ts").NumericAccessor<FlowDatum>;
64
+ flowParticleDensity?: import("@unovis/ts").NumericAccessor<FlowDatum>;
65
+ onSourcePointClick?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
66
+ onSourcePointMouseEnter?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
67
+ onSourcePointMouseLeave?: (f: FlowDatum, event: MouseEvent) => void;
68
+ flyToDuration?: number;
69
+ fitViewPadding?: [number, number];
70
+ initialBounds?: import("@unovis/ts").Bounds;
71
+ fitBoundsOnUpdate?: import("@unovis/ts").Bounds;
72
+ fitViewOnInit?: boolean;
73
+ fitViewOnUpdate?: boolean;
74
+ styleDarkTheme?: string | import("maplibre-gl").StyleSpecification;
75
+ accessToken?: string;
76
+ attribution?: string[];
77
+ renderer?: string;
78
+ onMapInitialized?: () => void;
79
+ onMapMoveZoom?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
80
+ onMapMoveStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
81
+ onMapMoveEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
82
+ onMapZoomStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
83
+ onMapZoomEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
84
+ onMapClick?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
85
+ pointLongitude?: import("@unovis/ts").NumericAccessor<PointDatum>;
86
+ pointLatitude?: import("@unovis/ts").NumericAccessor<PointDatum>;
87
+ pointShape?: import("@unovis/ts").GenericAccessor<string, PointDatum>;
88
+ pointLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
89
+ pointBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
90
+ pointRingWidth?: number;
91
+ selectedPointId?: string;
92
+ clusterColor?: import("@unovis/ts").ColorAccessor<PointDatum>;
93
+ clusterRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
94
+ clusterBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
95
+ clusterRingWidth?: number;
96
+ clusterBackground?: boolean;
97
+ clusterExpandOnClick?: boolean;
98
+ clusteringDistance?: number;
99
+ colorMap?: import("@unovis/ts").LeafletMapPointStyles<PointDatum>;
100
+ topoJSONLayer?: {
101
+ sources: any;
102
+ featureName?: string;
103
+ fillProperty?: string;
104
+ strokeProperty?: string;
105
+ fillOpacity?: number;
106
+ strokeOpacity?: number;
107
+ strokeWidth?: number;
108
+ };
109
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
9
110
  expose(exposed: {
10
111
  component: import("vue").Ref<LeafletFlowMap<PointDatum, FlowDatum>>;
11
112
  }): void;
@@ -1,8 +1,96 @@
1
- import { LeafletMap, LeafletMapConfigInterface, GenericDataRecord } from '@unovis/ts';
2
- declare const _default: <Datum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?: Pick<any, "attrs" | "emit" | "slots">, __VLS_expose?: any, __VLS_setup?: Promise<{
3
- props: LeafletMapConfigInterface<Datum> & {
1
+ import { LeafletMap, GenericDataRecord } from '@unovis/ts';
2
+ declare const _default: <Datum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?: {
3
+ attrs: any;
4
+ emit: any;
5
+ slots: any;
6
+ }, __VLS_expose?: any, __VLS_setup?: Promise<{
7
+ props: {
8
+ duration?: number;
9
+ events?: {
10
+ [selector: string]: {
11
+ touchstart?: import("@unovis/ts").VisEventCallback<any>;
12
+ touchmove?: import("@unovis/ts").VisEventCallback<any>;
13
+ touchend?: import("@unovis/ts").VisEventCallback<any>;
14
+ mouseover?: import("@unovis/ts").VisEventCallback<any>;
15
+ mousemove?: import("@unovis/ts").VisEventCallback<any>;
16
+ mousedown?: import("@unovis/ts").VisEventCallback<any>;
17
+ mouseup?: import("@unovis/ts").VisEventCallback<any>;
18
+ click?: import("@unovis/ts").VisEventCallback<any>;
19
+ auxclick?: import("@unovis/ts").VisEventCallback<any>;
20
+ contextmenu?: import("@unovis/ts").VisEventCallback<any>;
21
+ dblclick?: import("@unovis/ts").VisEventCallback<any>;
22
+ mouseenter?: import("@unovis/ts").VisEventCallback<any>;
23
+ mouseleave?: import("@unovis/ts").VisEventCallback<any>;
24
+ mouseout?: import("@unovis/ts").VisEventCallback<any>;
25
+ scroll?: import("@unovis/ts").VisEventCallback<any>;
26
+ select?: import("@unovis/ts").VisEventCallback<any>;
27
+ wheel?: import("@unovis/ts").VisEventCallback<any>;
28
+ pointerdown?: import("@unovis/ts").VisEventCallback<any>;
29
+ pointerup?: import("@unovis/ts").VisEventCallback<any>;
30
+ pointerout?: import("@unovis/ts").VisEventCallback<any>;
31
+ pointermove?: import("@unovis/ts").VisEventCallback<any>;
32
+ };
33
+ };
34
+ attributes?: {
35
+ [selector: string]: {
36
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
37
+ };
38
+ };
4
39
  data?: Datum[];
5
- };
40
+ tooltip?: import("@unovis/ts").Tooltip;
41
+ zoomDuration?: number;
42
+ pointColor?: import("@unovis/ts").ColorAccessor<Datum>;
43
+ pointRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
44
+ pointCursor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
45
+ pointLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
46
+ pointId?: import("@unovis/ts").StringAccessor<Datum>;
47
+ clusterLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
48
+ clusterLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
49
+ width?: string | number;
50
+ height?: string | number;
51
+ ariaLabel?: string;
52
+ flyToDuration?: number;
53
+ fitViewPadding?: [number, number];
54
+ initialBounds?: import("@unovis/ts").Bounds;
55
+ fitBoundsOnUpdate?: import("@unovis/ts").Bounds;
56
+ fitViewOnInit?: boolean;
57
+ fitViewOnUpdate?: boolean;
58
+ styleDarkTheme?: string | import("maplibre-gl").StyleSpecification;
59
+ accessToken?: string;
60
+ attribution?: string[];
61
+ renderer?: string;
62
+ onMapInitialized?: () => void;
63
+ onMapMoveZoom?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
64
+ onMapMoveStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
65
+ onMapMoveEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
66
+ onMapZoomStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
67
+ onMapZoomEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
68
+ onMapClick?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
69
+ pointLongitude?: import("@unovis/ts").NumericAccessor<Datum>;
70
+ pointLatitude?: import("@unovis/ts").NumericAccessor<Datum>;
71
+ pointShape?: import("@unovis/ts").GenericAccessor<string, Datum>;
72
+ pointLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
73
+ pointBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
74
+ pointRingWidth?: number;
75
+ selectedPointId?: string;
76
+ clusterColor?: import("@unovis/ts").ColorAccessor<Datum>;
77
+ clusterRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
78
+ clusterBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
79
+ clusterRingWidth?: number;
80
+ clusterBackground?: boolean;
81
+ clusterExpandOnClick?: boolean;
82
+ clusteringDistance?: number;
83
+ colorMap?: import("@unovis/ts").LeafletMapPointStyles<Datum>;
84
+ topoJSONLayer?: {
85
+ sources: any;
86
+ featureName?: string;
87
+ fillProperty?: string;
88
+ strokeProperty?: string;
89
+ fillOpacity?: number;
90
+ strokeOpacity?: number;
91
+ strokeWidth?: number;
92
+ };
93
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
6
94
  expose(exposed: {
7
95
  component: import("vue").Ref<LeafletMap<Datum>>;
8
96
  }): void;
package/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}.unovis-single-container{display:block;position:relative;width:100%}[data-vis-bullet-legend]{display:block}.unovis-xy-container{display:block;position:relative;width:100%}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./containers/xy-container/index.cjs");require("./containers/xy-container/index2.cjs");const _=require("./containers/single-container/index.cjs");require("./containers/single-container/index2.cjs");const t=require("./components/line/index.cjs"),u=require("./components/area/index.cjs"),r=require("./components/axis/index.cjs"),i=require("./components/brush/index.cjs"),s=require("./components/free-brush/index.cjs"),n=require("./components/crosshair/index.cjs"),p=require("./components/grouped-bar/index.cjs"),c=require("./components/scatter/index.cjs"),v=require("./components/stacked-bar/index.cjs"),a=require("./components/timeline/index.cjs"),o=require("./components/xy-labels/index.cjs"),l=require("./components/donut/index.cjs"),d=require("./components/topojson-map/index.cjs"),g=require("./components/sankey/index.cjs"),q=require("./components/graph/index.cjs"),y=require("./components/chord-diagram/index.cjs"),x=require("./components/nested-donut/index.cjs"),V=require("./components/tooltip/index.cjs"),$=require("./html-components/leaflet-map/index.cjs");require("./html-components/leaflet-map/index2.cjs");const S=require("./html-components/leaflet-flow-map/index.cjs");require("./html-components/leaflet-flow-map/index2.cjs");const h=require("./html-components/bullet-legend/index.cjs");require("./html-components/bullet-legend/index2.cjs");exports.VisXYContainer=e;exports.VisSingleContainer=_;exports.VisLine=t;exports.VisArea=u;exports.VisAxis=r;exports.VisBrush=i;exports.VisFreeBrush=s;exports.VisCrosshair=n;exports.VisGroupedBar=p;exports.VisScatter=c;exports.VisStackedBar=v;exports.VisTimeline=a;exports.VisXYLabels=o;exports.VisDonut=l;exports.VisTopoJSONMap=d;exports.VisSankey=g;exports.VisGraph=q;exports.VisChordDiagram=y;exports.VisNestedDonut=x;exports.VisTooltip=V;exports.VisLeafletMap=$;exports.VisLeafletFlowMap=S;exports.VisBulletLegend=h;
3
3
  //# sourceMappingURL=index.cjs.map
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}.unovis-single-container{display:block;position:relative;width:100%}[data-vis-bullet-legend]{display:block}.unovis-xy-container{display:block;position:relative;width:100%}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  import { default as i } from "./containers/xy-container/index.js";
3
3
  import "./containers/xy-container/index2.js";
4
4
  import { default as l } from "./containers/single-container/index.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unovis/vue",
3
3
  "description": "Modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript",
4
- "version": "1.3.0-alpha.3",
4
+ "version": "1.3.0-alpha.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/f5/unovis.git",
@@ -18,7 +18,7 @@
18
18
  "charts",
19
19
  "graphs"
20
20
  ],
21
- "author": "Rebecca Bol, F5 Inc. <r.bol@f5.com>",
21
+ "author": "Zernonia Kong <zernonia@gmail.com>",
22
22
  "maintainers": [
23
23
  "Nikita Rokotyan <nikita@f5.com> (https://rokotyan.com)",
24
24
  "Rebecca Bol <r.bol@f5.com>"
@@ -51,7 +51,7 @@
51
51
  "dev": "vite"
52
52
  },
53
53
  "peerDependencies": {
54
- "@unovis/ts": "1.3.0-alpha.3",
54
+ "@unovis/ts": "1.3.0-alpha.4",
55
55
  "vue": "^3"
56
56
  },
57
57
  "devDependencies": {