@opentinyvue/vue-huicharts-scatter 2.21.0 → 3.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,35 +1,39 @@
1
1
  import Core, { isDefined, getFormatted, itemPoint, itemLabel, itemContent } from '@opentinyvue/vue-huicharts-core';
2
2
  import { $prefix } from '@opentinyvue/vue-common';
3
+ import { openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot } from 'vue';
3
4
 
4
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
5
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
6
- if (render) {
7
- options.render = render;
8
- options.staticRenderFns = staticRenderFns;
9
- options._compiled = true;
10
- }
11
- var hook;
12
- if (injectStyles) {
13
- hook = injectStyles;
5
+ function _createForOfIteratorHelperLoose(r, e) {
6
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7
+ if (t) return (t = t.call(r)).next.bind(t);
8
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
9
+ t && (r = t);
10
+ var o = 0;
11
+ return function() {
12
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
13
+ };
14
14
  }
15
- if (hook) {
16
- if (options.functional) {
17
- options._injectStyles = hook;
18
- var originalRender = options.render;
19
- options.render = function renderWithStyleInjection(h, context) {
20
- hook.call(context);
21
- return originalRender(h, context);
22
- };
23
- } else {
24
- var existing = options.beforeCreate;
25
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
26
- }
15
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16
+ }
17
+ function _unsupportedIterableToArray(r, a) {
18
+ if (r) {
19
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
20
+ var t = {}.toString.call(r).slice(8, -1);
21
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
27
22
  }
28
- return {
29
- exports: scriptExports,
30
- options
31
- };
32
23
  }
24
+ function _arrayLikeToArray(r, a) {
25
+ (null == a || a > r.length) && (a = r.length);
26
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
27
+ return n;
28
+ }
29
+ var _export_sfc = function _export_sfc2(sfc, props) {
30
+ var target = sfc.__vccOpts || sfc;
31
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
32
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
33
+ target[key] = val;
34
+ }
35
+ return target;
36
+ };
33
37
 
34
38
  function _extends() {
35
39
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
@@ -265,22 +269,7 @@ var scatter = function scatter2(columns, rows, settings, extra) {
265
269
  }
266
270
  return ichartOption;
267
271
  };
268
- var render = function render2() {
269
- var _vm = this;
270
- var _h = _vm.$createElement;
271
- var _c = _vm._self._c || _h;
272
- return _c("div", {
273
- staticClass: "hui-chart chart-box"
274
- }, [_c("div", {
275
- ref: "chartRef",
276
- style: {
277
- width: _vm.width,
278
- height: _vm.height
279
- }
280
- }), _vm._t("default")], 2);
281
- };
282
- var staticRenderFns = [];
283
- var __vue2_script = {
272
+ var _sfc_main = {
284
273
  name: $prefix + "ChartScatter",
285
274
  mixins: [Core],
286
275
  data: function data() {
@@ -300,16 +289,25 @@ var __vue2_script = {
300
289
  }
301
290
  }
302
291
  };
303
- var __cssModules = {};
304
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
305
- function __vue2_injectStyles(context) {
306
- for (var o in __cssModules) {
307
- this[o] = __cssModules[o];
308
- }
292
+ var _hoisted_1 = {
293
+ class: "hui-chart chart-box"
294
+ };
295
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
296
+ return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode(
297
+ "div",
298
+ {
299
+ ref: "chartRef",
300
+ style: normalizeStyle({
301
+ width: _ctx.width,
302
+ height: _ctx.height
303
+ })
304
+ },
305
+ null,
306
+ 4
307
+ /* STYLE */
308
+ ), renderSlot(_ctx.$slots, "default")]);
309
309
  }
310
- var HuiChartsScatter = /* @__PURE__ */ function() {
311
- return __component__.exports;
312
- }();
310
+ var HuiChartsScatter = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
313
311
  HuiChartsScatter.install = function(Vue) {
314
312
  Vue.component(HuiChartsScatter.name, HuiChartsScatter);
315
313
  };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-huicharts-scatter",
3
- "version": "2.21.0",
3
+ "version": "3.21.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-huicharts-core": "~2.21.0",
11
- "@opentinyvue/vue-common": "~2.21.0"
10
+ "@opentinyvue/vue-huicharts-core": "~3.21.0",
11
+ "@opentinyvue/vue-common": "~3.21.0"
12
12
  },
13
13
  "license": "MIT",
14
14
  "types": "index.d.ts",
@@ -1,6 +1,218 @@
1
- declare const _default: import("vue/types/vue").ExtendedVue<import("vue").default, {
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<{}, {}, {
2
2
  iChartName: string;
3
- }, {
3
+ }, {}, {
4
4
  updateChart(): void;
5
- }, any, Record<never, any>>;
5
+ }, {
6
+ name: string;
7
+ emits: string[];
8
+ props: {
9
+ data: {
10
+ type: ObjectConstructor;
11
+ default(): {};
12
+ };
13
+ settings: {
14
+ type: ObjectConstructor;
15
+ default(): {};
16
+ };
17
+ width: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ height: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ events: {
26
+ type: ObjectConstructor;
27
+ default(): void;
28
+ };
29
+ initOptions: {
30
+ type: ObjectConstructor;
31
+ default(): {};
32
+ };
33
+ tooltipVisible: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ legendVisible: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ legendPosition: {
42
+ type: StringConstructor;
43
+ };
44
+ theme: ObjectConstructor;
45
+ themeName: (StringConstructor | ObjectConstructor)[];
46
+ judgeWidth: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ widthChangeDelay: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ resizeable: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ changeDelay: {
59
+ type: NumberConstructor;
60
+ default: number;
61
+ };
62
+ dataEmpty: BooleanConstructor;
63
+ beforeConfig: {
64
+ type: FunctionConstructor;
65
+ };
66
+ afterConfig: {
67
+ type: FunctionConstructor;
68
+ };
69
+ afterSetOption: {
70
+ type: FunctionConstructor;
71
+ };
72
+ afterSetOptionOnce: {
73
+ type: FunctionConstructor;
74
+ };
75
+ loading: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ extend: {
80
+ type: ObjectConstructor;
81
+ default(): void;
82
+ };
83
+ tooltipFormatter: {
84
+ type: FunctionConstructor;
85
+ };
86
+ markArea: {
87
+ type: ObjectConstructor;
88
+ };
89
+ markLine: {
90
+ type: ObjectConstructor;
91
+ };
92
+ markPoint: {
93
+ type: ObjectConstructor;
94
+ };
95
+ grid: {
96
+ type: (ObjectConstructor | ArrayConstructor)[];
97
+ };
98
+ colors: {
99
+ type: ArrayConstructor;
100
+ };
101
+ visualMap: (ObjectConstructor | ArrayConstructor)[];
102
+ dataZoom: (ObjectConstructor | ArrayConstructor)[];
103
+ toolbox: (ObjectConstructor | ArrayConstructor)[];
104
+ title: ObjectConstructor;
105
+ legend: (ObjectConstructor | ArrayConstructor)[];
106
+ xAxis: (ObjectConstructor | ArrayConstructor)[];
107
+ yAxis: (ObjectConstructor | ArrayConstructor)[];
108
+ radar: ObjectConstructor;
109
+ tooltip: ObjectConstructor;
110
+ axisPointer: ObjectConstructor;
111
+ brush: (ObjectConstructor | ArrayConstructor)[];
112
+ geo: ObjectConstructor;
113
+ timeline: (ObjectConstructor | ArrayConstructor)[];
114
+ graphic: (ObjectConstructor | ArrayConstructor)[];
115
+ series: (ObjectConstructor | ArrayConstructor)[];
116
+ backgroundColor: (StringConstructor | ObjectConstructor)[];
117
+ textStyle: ObjectConstructor;
118
+ animation: ObjectConstructor;
119
+ options: {
120
+ type: ObjectConstructor;
121
+ default: () => {};
122
+ };
123
+ cancelResizeCheck: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ setOptionOpts: {
128
+ type: ObjectConstructor;
129
+ default(): void;
130
+ };
131
+ colorMode: {
132
+ type: StringConstructor;
133
+ default: string;
134
+ };
135
+ };
136
+ data(): {
137
+ huiChartOption: {};
138
+ eChartOption: {};
139
+ renderOption: {};
140
+ initOpts: {};
141
+ watchToPropsEchartOptions: never[];
142
+ selfChart: string[];
143
+ isSelfChart: boolean;
144
+ chartList: never[];
145
+ once: {};
146
+ store: {};
147
+ };
148
+ computed: {
149
+ delay(): any;
150
+ size(): any;
151
+ setting(): any;
152
+ };
153
+ watch: {
154
+ options: {
155
+ handler(): void;
156
+ deep: boolean;
157
+ };
158
+ setting: {
159
+ handler(): void;
160
+ deep: boolean;
161
+ };
162
+ events: {
163
+ handler(val: any, oldVal: any): void;
164
+ deep: boolean;
165
+ };
166
+ initOptions: {
167
+ handler(val: any): void;
168
+ deep: boolean;
169
+ };
170
+ judgeWidth: {
171
+ handler(val: any): void;
172
+ };
173
+ delay: {
174
+ handler(val: any): void;
175
+ deep: boolean;
176
+ };
177
+ resizeable: {
178
+ handler(val: any): void;
179
+ };
180
+ setOptionOpts: {
181
+ handler(val: any): void;
182
+ deep: boolean;
183
+ };
184
+ loading(val: any): void;
185
+ dataEmpty(val: any): void;
186
+ size: {
187
+ handler(): void;
188
+ };
189
+ colors: {
190
+ handler(): void;
191
+ deep: boolean;
192
+ };
193
+ };
194
+ methods: {
195
+ selfSetting(options: any): void;
196
+ setAnimation(options: any): void;
197
+ applyMarks(options: any): void;
198
+ applyExtend(huiChartOption: any): any;
199
+ refreshChart(): void;
200
+ renderChart(huiChartOption: any): void;
201
+ addEvents(val: any): void;
202
+ removeEvents(oldVal: any): void;
203
+ resize(): void;
204
+ afterConfigFn(huiChartOption: any): any;
205
+ beforeConfigFn(data: any): any;
206
+ isStack(): boolean;
207
+ calcColors({ len, type, isStack }: {
208
+ len: any;
209
+ type: any;
210
+ isStack: any;
211
+ }): string[];
212
+ computedChartColor(): any;
213
+ };
214
+ created(): void;
215
+ mounted(): void;
216
+ beforeUnmount(): void;
217
+ }, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>;
6
218
  export default _default;