@opentiny/vue-renderless 3.1.0-alpha.0 → 3.5.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.
Files changed (178) hide show
  1. package/action-menu/index.js +10 -0
  2. package/action-menu/vue.js +26 -0
  3. package/amount/index.js +334 -0
  4. package/amount/vue.js +206 -0
  5. package/area/index.js +162 -0
  6. package/area/vue.js +68 -0
  7. package/autonavi-map/index.js +28 -0
  8. package/avatar/index.js +5 -1
  9. package/avatar/vue.js +2 -1
  10. package/baidu-map/index.js +28 -0
  11. package/breadcrumb/index.js +9 -0
  12. package/breadcrumb/vue.js +25 -3
  13. package/breadcrumb-item/index.js +26 -0
  14. package/breadcrumb-item/vue.js +20 -11
  15. package/bulletin-board/index.js +4 -1
  16. package/button-group/vue.js +1 -1
  17. package/calendar/index.js +14 -14
  18. package/card-template/index.js +1 -1
  19. package/cascader/index.js +21 -7
  20. package/cascader/vue.js +1 -2
  21. package/cascader-node/index.js +3 -1
  22. package/cascader-panel/index.js +12 -4
  23. package/cascader-panel/vue.js +1 -2
  24. package/chart-bar/index.js +533 -0
  25. package/chart-boxplot/index.js +270 -0
  26. package/chart-candle/index.js +428 -0
  27. package/chart-core/deps/constants.js +65 -0
  28. package/chart-core/deps/numerify.js +286 -0
  29. package/chart-core/deps/utils.js +205 -0
  30. package/chart-core/index.js +541 -0
  31. package/chart-core/modules/animation.js +10 -0
  32. package/chart-core/modules/extend.js +36 -0
  33. package/chart-core/modules/mark.js +7 -0
  34. package/chart-core/vue.js +128 -0
  35. package/chart-funnel/index.js +155 -0
  36. package/chart-gauge/index.js +153 -0
  37. package/chart-graph/index.js +38 -0
  38. package/chart-heatmap/index.js +407 -0
  39. package/chart-line/index.js +358 -0
  40. package/chart-liquidfill/index.js +119 -0
  41. package/chart-map/index.js +261 -0
  42. package/chart-pie/index.js +327 -0
  43. package/chart-radar/index.js +181 -0
  44. package/chart-sankey/index.js +166 -0
  45. package/chart-scatter/index.js +360 -0
  46. package/chart-sunburst/index.js +36 -0
  47. package/chart-tree/index.js +107 -0
  48. package/chart-waterfall/index.js +231 -0
  49. package/chart-wordcloud/index.js +109 -0
  50. package/checkbox/index.js +4 -4
  51. package/checkbox-button/index.js +3 -1
  52. package/common/bigInt.js +5 -2
  53. package/common/date.js +17 -17
  54. package/common/deps/date-util.js +15 -5
  55. package/common/deps/date.js +6 -6
  56. package/common/deps/dom.js +18 -6
  57. package/common/deps/eSpaceCtrl.js +286 -0
  58. package/common/deps/fullscreen/apis.js +22 -22
  59. package/common/deps/memorize.js +3 -3
  60. package/common/deps/modal-queue.js +2 -0
  61. package/common/deps/popper.js +12 -10
  62. package/common/deps/popup-manager.js +16 -5
  63. package/common/deps/resize-event.js +6 -2
  64. package/common/deps/scrollbar-width.js +6 -2
  65. package/common/deps/tree-model/node.js +30 -10
  66. package/common/deps/tree-model/tree-store.js +33 -21
  67. package/common/deps/tree-model/util.js +6 -2
  68. package/common/deps/upload-ajax.js +7 -1
  69. package/common/deps/vue-popper.js +2 -2
  70. package/common/string.js +1 -1
  71. package/company/index.js +56 -0
  72. package/company/vue.js +35 -0
  73. package/country/index.js +54 -0
  74. package/country/vue.js +35 -0
  75. package/credit-card-form/index.js +1 -0
  76. package/currency/index.js +78 -0
  77. package/currency/vue.js +39 -0
  78. package/date-panel/index.js +16 -6
  79. package/date-picker/index.js +9 -5
  80. package/date-range/index.js +28 -9
  81. package/date-table/index.js +3 -1
  82. package/dept/index.js +318 -0
  83. package/dept/vue.js +163 -0
  84. package/detail-page/index.js +4 -1
  85. package/dialog-box/index.js +14 -4
  86. package/dialog-box/vue.js +7 -3
  87. package/drop-roles/index.js +73 -0
  88. package/drop-roles/vue.js +38 -0
  89. package/dropdown/index.js +5 -4
  90. package/dropdown/vue.js +5 -3
  91. package/dropdown-item/index.js +15 -0
  92. package/dropdown-item/vue.js +27 -13
  93. package/espace/index.js +129 -0
  94. package/espace/vue.js +52 -0
  95. package/exception/index.js +1 -1
  96. package/file-upload/index.js +336 -291
  97. package/form/index.js +3 -1
  98. package/form/vue.js +15 -0
  99. package/form-item/index.js +15 -5
  100. package/fullscreen/index.js +4 -4
  101. package/fullscreen/vue.js +3 -3
  102. package/grid/core/interceptor.js +4 -7
  103. package/grid/plugins/export.js +2 -2
  104. package/grid/plugins/exportExcel.js +28 -10
  105. package/grid/static/array/findTree.js +1 -1
  106. package/grid/static/base/helperCreateGetObjects.js +1 -1
  107. package/grid/static/base/helperEqualCompare.js +2 -2
  108. package/grid/static/base/helperGetHGSKeys.js +1 -1
  109. package/grid/static/base/uniqueId.js +1 -1
  110. package/grid/static/object/assign.js +3 -3
  111. package/grid/static/string/toString.js +3 -3
  112. package/hrapprover/index.js +118 -0
  113. package/hrapprover/vue.js +102 -0
  114. package/locales/index.js +116 -0
  115. package/locales/vue.js +46 -0
  116. package/logon-user/index.js +23 -0
  117. package/logon-user/vue.js +22 -0
  118. package/logout/index.js +118 -0
  119. package/logout/vue.js +22 -0
  120. package/milestone/index.js +2 -1
  121. package/mini-picker/index.js +1 -1
  122. package/mini-picker/vue.js +1 -1
  123. package/modal/index.js +4 -2
  124. package/month-table/index.js +2 -2
  125. package/nav-menu/index.js +2 -2
  126. package/numeric/index.js +5 -2
  127. package/package.json +33 -136
  128. package/pager-item/vue.js +6 -2
  129. package/picker/index.js +43 -17
  130. package/picker/timezone.js +2 -2
  131. package/picker-column/index.js +7 -3
  132. package/pop-upload/index.js +5 -3
  133. package/popeditor/index.js +15 -7
  134. package/popover/index.js +87 -54
  135. package/popover/vue.js +13 -9
  136. package/rate/index.js +2 -2
  137. package/rich-text/clipboard.js +77 -0
  138. package/rich-text/index.js +176 -0
  139. package/rich-text/module/file-upload.js +118 -0
  140. package/rich-text/module/image-drop.js +54 -0
  141. package/rich-text/module/image-upload.js +84 -0
  142. package/rich-text/options.js +187 -0
  143. package/rich-text/table-module.js +557 -0
  144. package/rich-text/vue.js +149 -0
  145. package/roles/index.js +87 -0
  146. package/roles/vue.js +39 -0
  147. package/search/index.js +32 -27
  148. package/search/vue.js +7 -2
  149. package/select/index.js +328 -304
  150. package/select/vue.js +19 -9
  151. package/select-dropdown/index.js +1 -1
  152. package/slider/index.js +9 -11
  153. package/slider/vue.js +3 -3
  154. package/split/vue.js +1 -1
  155. package/tab-nav/index.js +0 -6
  156. package/tab-nav/vue.js +0 -14
  157. package/table/index.js +1 -1
  158. package/text-popup/index.js +6 -4
  159. package/time/index.js +3 -1
  160. package/time-range/index.js +6 -2
  161. package/time-spinner/index.js +15 -5
  162. package/toggle-menu/index.js +11 -0
  163. package/toggle-menu/vue.js +2 -1
  164. package/tooltip/index.js +46 -35
  165. package/tooltip/vue.js +5 -1
  166. package/tree/index.js +57 -21
  167. package/tree-menu/index.js +3 -1
  168. package/tree-node/index.js +7 -3
  169. package/upload/index.js +14 -5
  170. package/user/index.js +634 -0
  171. package/user/vue.js +113 -0
  172. package/user-account/index.js +23 -0
  173. package/user-account/vue.js +25 -0
  174. package/user-contact/index.js +1 -4
  175. package/user-head/index.js +33 -11
  176. package/user-head/vue.js +10 -7
  177. package/user-link/index.js +43 -0
  178. package/user-link/vue.js +60 -0
@@ -0,0 +1,407 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _toArray from "@babel/runtime/helpers/toArray";
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ import { getFormated, getBmap, getAmap, getMapJSON } from '@opentiny/vue-renderless/chart-core/deps/utils';
6
+ import { HEAT_MAP_COLOR, itemPoint, itemLabel, itemContent } from '@opentiny/vue-renderless/chart-core/deps/constants';
7
+ var getAxisList = function getAxisList(rows, label) {
8
+ var result = [];
9
+ rows.forEach(function (row) {
10
+ return result.indexOf(row[label]) === -1 && result.push(row[label]);
11
+ });
12
+ return result;
13
+ };
14
+ var getData = function getData(args) {
15
+ var extraMetrics = args.extraMetrics,
16
+ innerXAxisList = args.innerXAxisList,
17
+ innerYAxisList = args.innerYAxisList,
18
+ metrics = args.metrics,
19
+ rows = args.rows,
20
+ type = args.type,
21
+ xDim = args.xDim,
22
+ yDim = args.yDim;
23
+ var result = null;
24
+ if (type !== 'cartesian') {
25
+ result = rows.map(function (row) {
26
+ return {
27
+ value: [row[xDim], row[yDim], metrics ? row[metrics] : 1]
28
+ };
29
+ });
30
+ } else {
31
+ result = rows.map(function (row) {
32
+ var _ref = {},
33
+ xIndex = _ref.xIndex,
34
+ yIndex = _ref.yIndex,
35
+ value = _ref.value,
36
+ extra = _ref.extra;
37
+ yIndex = innerYAxisList.indexOf(row[yDim]);
38
+ xIndex = innerXAxisList.indexOf(row[xDim]);
39
+ extra = extraMetrics.map(function (m) {
40
+ return row[m] || '-';
41
+ });
42
+ value = metrics ? row[metrics] : 1;
43
+ return {
44
+ value: [xIndex, yIndex, value].concat(extra),
45
+ label: {
46
+ show: true,
47
+ color: '#191919'
48
+ }
49
+ };
50
+ });
51
+ }
52
+ return result;
53
+ };
54
+ var getAxis = function getAxis(list, name, type) {
55
+ return {
56
+ data: list,
57
+ name: name,
58
+ nameLocation: 'end',
59
+ type: 'category',
60
+ splitArea: {
61
+ show: false
62
+ },
63
+ splitLine: {
64
+ show: true,
65
+ lineStyle: {
66
+ color: '#6d8ff0'
67
+ }
68
+ },
69
+ axisLabel: {
70
+ show: true,
71
+ color: '#4E4E4E'
72
+ },
73
+ offset: type === 'y' ? 25 : 5,
74
+ zlevel: 1
75
+ };
76
+ };
77
+ var getVisualMap = function getVisualMap(args) {
78
+ var min = args.innerMin,
79
+ max = args.innerMax,
80
+ type = args.type,
81
+ heatColor = args.heatColor,
82
+ series = args.series;
83
+ var _ref2 = {},
84
+ extra = _ref2.extra;
85
+ if (type === 'map') {
86
+ extra = {};
87
+ !series[0].data.length && (extra.show = false);
88
+ } else if (type === 'bmap' || type === 'amap') {
89
+ extra = {
90
+ show: false
91
+ };
92
+ } else {
93
+ extra = {
94
+ dimension: 2
95
+ };
96
+ }
97
+ var defaultColor = type === 'map' || type === 'bmap' || type === 'amap' ? HEAT_MAP_COLOR : ['#fff', '#6D8FF0'];
98
+ return Object.assign(extra, {
99
+ min: min,
100
+ max: max,
101
+ calculable: true,
102
+ left: 'right',
103
+ bottom: 'center',
104
+ orient: 'vertical',
105
+ align: 'left',
106
+ borderColor: '#6D8FF0',
107
+ inverse: true,
108
+ inRange: {
109
+ color: heatColor || defaultColor
110
+ }
111
+ });
112
+ };
113
+ var getSeries = function getSeries(args) {
114
+ return [{
115
+ type: 'heatmap',
116
+ data: args.chartData
117
+ }];
118
+ };
119
+ var getTooltip = function getTooltip(args) {
120
+ var dataType = args.dataType,
121
+ innerXAxisList = args.innerXAxisList,
122
+ innerYAxisList = args.innerYAxisList,
123
+ digit = args.digit,
124
+ extraMetrics = args.extraMetrics,
125
+ metrics = args.metrics;
126
+ function formatter(_ref3) {
127
+ var color = _ref3.color,
128
+ data = _ref3.data;
129
+ var dataVal = data.value;
130
+ var _dataVal = _toArray(dataVal),
131
+ xDim = _dataVal[0],
132
+ yDim = _dataVal[1],
133
+ value = _dataVal[2],
134
+ extraData = _dataVal.slice(3);
135
+ var tplt = [itemContent("".concat(innerXAxisList[xDim], " ~ ").concat(innerYAxisList[yDim], "<br>"))];
136
+ extraMetrics.forEach(function (m, index) {
137
+ return tplt.push("".concat(m, ": ").concat(extraData[index], "<br>"));
138
+ });
139
+ tplt.push("".concat(itemPoint(color)).concat(itemLabel(metrics)).concat(itemContent(getFormated(value, dataType, digit)), "<br>"));
140
+ return tplt.join('');
141
+ }
142
+ return {
143
+ trigger: 'item',
144
+ formatter: formatter
145
+ };
146
+ };
147
+ var fixParam = function fixParam(_ref4) {
148
+ var type = _ref4.type,
149
+ rows = _ref4.rows,
150
+ dimension = _ref4.dimension,
151
+ metrics = _ref4.metrics,
152
+ extraMetrics = _ref4.extraMetrics,
153
+ chartData = _ref4.chartData,
154
+ innerXAxisList = _ref4.innerXAxisList,
155
+ innerYAxisList = _ref4.innerYAxisList;
156
+ var chartDataParams;
157
+ if (type !== 'cartesian') {
158
+ chartDataParams = {
159
+ rows: rows,
160
+ xDim: dimension[0],
161
+ yDim: dimension[1]
162
+ };
163
+ Object.assign(chartDataParams, {
164
+ metrics: metrics,
165
+ type: type,
166
+ extraMetrics: extraMetrics
167
+ });
168
+ chartData = getData(chartDataParams);
169
+ } else {
170
+ var flag = !innerXAxisList || !innerXAxisList.length;
171
+ flag && (innerXAxisList = getAxisList(rows, dimension[0]));
172
+ flag = !innerYAxisList || !innerYAxisList.length;
173
+ flag && (innerYAxisList = getAxisList(rows, dimension[1]));
174
+ chartDataParams = {
175
+ xDim: dimension[0],
176
+ yDim: dimension[1],
177
+ rows: rows
178
+ };
179
+ Object.assign(chartDataParams, {
180
+ innerXAxisList: innerXAxisList,
181
+ innerYAxisList: innerYAxisList,
182
+ metrics: metrics,
183
+ type: type,
184
+ extraMetrics: extraMetrics
185
+ });
186
+ chartData = getData(chartDataParams);
187
+ }
188
+ return {
189
+ chartData: chartData,
190
+ innerXAxisList: innerXAxisList,
191
+ innerYAxisList: innerYAxisList
192
+ };
193
+ };
194
+ var getResult = function getResult(args) {
195
+ var type = args.type,
196
+ options = args.options,
197
+ pointSize = args.pointSize,
198
+ blurSize = args.blurSize,
199
+ res = args.res,
200
+ key = args.key,
201
+ v = args.v,
202
+ bmap = args.bmap,
203
+ mapOrigin = args.mapOrigin,
204
+ geo = args.geo,
205
+ beforeRegisterMap = args.beforeRegisterMap;
206
+ var echarts = args.echarts,
207
+ specialAreas = args.specialAreas,
208
+ position = args.position,
209
+ positionJsonLink = args.positionJsonLink,
210
+ beforeRegisterMapOnce = args.beforeRegisterMapOnce;
211
+ var mapURLProfix = args.mapURLProfix,
212
+ amap = args.amap,
213
+ tooltip = args.tooltip,
214
+ xAxis = args.xAxis,
215
+ yAxis = args.yAxis;
216
+ if (type === 'bmap') {
217
+ Object.assign(options.series[0], {
218
+ coordinateSystem: 'bmap',
219
+ pointSize: pointSize,
220
+ blurSize: blurSize
221
+ });
222
+ res = getBmap(key, v).then(function () {
223
+ return _objectSpread({
224
+ bmap: bmap
225
+ }, options);
226
+ });
227
+ } else if (type === 'map') {
228
+ options.series[0].coordinateSystem = 'geo';
229
+ var json = mapOrigin;
230
+ if (json) {
231
+ var geoAttr = _objectSpread({
232
+ map: mapOrigin
233
+ }, geo);
234
+ beforeRegisterMap && (json = beforeRegisterMap(json));
235
+ echarts.registerMap(mapOrigin, json, specialAreas);
236
+ res = new Promise(function (resolve) {
237
+ return resolve(_objectSpread({
238
+ geo: geoAttr
239
+ }, options));
240
+ });
241
+ } else {
242
+ var params = {
243
+ position: position,
244
+ positionJsonLink: positionJsonLink,
245
+ beforeRegisterMapOnce: beforeRegisterMapOnce,
246
+ mapURLProfix: mapURLProfix
247
+ };
248
+ res = getMapJSON(params).then(function (json) {
249
+ var geoAttr = _objectSpread({
250
+ map: position
251
+ }, geo);
252
+ beforeRegisterMap && (json = beforeRegisterMap(json));
253
+ echarts.registerMap(position, json, specialAreas);
254
+ return _objectSpread({
255
+ geo: geoAttr
256
+ }, options);
257
+ });
258
+ }
259
+ } else if (type === 'amap') {
260
+ Object.assign(options.series[0], {
261
+ coordinateSystem: 'amap',
262
+ pointSize: pointSize,
263
+ blurSize: blurSize
264
+ });
265
+ res = getAmap(key, v).then(function () {
266
+ return _objectSpread({
267
+ amap: amap
268
+ }, options);
269
+ });
270
+ } else {
271
+ res = _objectSpread({
272
+ tooltip: tooltip,
273
+ xAxis: xAxis,
274
+ yAxis: yAxis
275
+ }, options);
276
+ }
277
+ return res;
278
+ };
279
+ export var heatmap = function heatmap(columns, rows, settings, extra) {
280
+ var _settings$type = settings.type,
281
+ type = _settings$type === void 0 ? 'cartesian' : _settings$type;
282
+ var _settings$dimension = settings.dimension,
283
+ dimension = _settings$dimension === void 0 ? [columns[0], columns[1]] : _settings$dimension;
284
+ var _settings$dataType = settings.dataType,
285
+ dataType = _settings$dataType === void 0 ? 'normal' : _settings$dataType,
286
+ min = settings.min,
287
+ max = settings.max,
288
+ digit = settings.digit,
289
+ bmap = settings.bmap,
290
+ amap = settings.amap,
291
+ geo = settings.geo,
292
+ key = settings.key,
293
+ _settings$v = settings.v,
294
+ v = _settings$v === void 0 ? '2.0' : _settings$v;
295
+ var position = settings.position,
296
+ mapOrigin = settings.mapOrigin,
297
+ positionJsonLink = settings.positionJsonLink,
298
+ beforeRegisterMap = settings.beforeRegisterMap,
299
+ _settings$pointSize = settings.pointSize,
300
+ pointSize = _settings$pointSize === void 0 ? 10 : _settings$pointSize,
301
+ _settings$blurSize = settings.blurSize,
302
+ blurSize = _settings$blurSize === void 0 ? 5 : _settings$blurSize;
303
+ var heatColor = settings.heatColor,
304
+ yAxisName = settings.yAxisName,
305
+ xAxisName = settings.xAxisName,
306
+ beforeRegisterMapOnce = settings.beforeRegisterMapOnce,
307
+ _settings$specialArea = settings.specialAreas,
308
+ specialAreas = _settings$specialArea === void 0 ? {} : _settings$specialArea;
309
+ var _settings$metrics = settings.metrics,
310
+ metrics = _settings$metrics === void 0 ? columns[2] : _settings$metrics,
311
+ _settings$mapURLProfi = settings.mapURLProfix,
312
+ mapURLProfix = _settings$mapURLProfi === void 0 ? 'https://unpkg.com/echarts@3.6.2/map/json/' : _settings$mapURLProfi;
313
+ var tooltipVisible = extra.tooltipVisible,
314
+ echarts = extra.echartsLib;
315
+ var innerXAxisList = settings.xAxisList,
316
+ innerYAxisList = settings.yAxisList;
317
+ var _ref5 = {},
318
+ _ref5$chartData = _ref5.chartData,
319
+ chartData = _ref5$chartData === void 0 ? [] : _ref5$chartData,
320
+ _ref5$extraMetrics = _ref5.extraMetrics,
321
+ extraMetrics = _ref5$extraMetrics === void 0 ? [] : _ref5$extraMetrics,
322
+ _ref5$mainColumn = _ref5.mainColumn,
323
+ mainColumn = _ref5$mainColumn === void 0 ? dimension.concat([metrics]) : _ref5$mainColumn;
324
+ columns.forEach(function (column) {
325
+ return !~mainColumn.indexOf(column) && extraMetrics.push(column);
326
+ });
327
+ var ret = fixParam({
328
+ type: type,
329
+ rows: rows,
330
+ dimension: dimension,
331
+ metrics: metrics,
332
+ extraMetrics: extraMetrics,
333
+ chartData: chartData,
334
+ innerXAxisList: innerXAxisList,
335
+ innerYAxisList: innerYAxisList
336
+ });
337
+ chartData = ret.chartData;
338
+ innerXAxisList = ret.innerXAxisList;
339
+ innerYAxisList = ret.innerYAxisList;
340
+ var metricsList = metrics ? rows.map(function (row) {
341
+ return row[metrics];
342
+ }) : [0, 5];
343
+ !metricsList.length && (metricsList = [0]);
344
+ var innerMin = min || Math.min.apply(null, metricsList);
345
+ var innerMax = max || Math.max.apply(null, metricsList);
346
+ var xAxis = getAxis(innerXAxisList, xAxisName, 'x');
347
+ var yAxis = getAxis(innerYAxisList, yAxisName, 'y');
348
+ var series = getSeries({
349
+ chartData: chartData
350
+ });
351
+ var visualMap = getVisualMap({
352
+ innerMin: innerMin,
353
+ innerMax: innerMax,
354
+ type: type,
355
+ heatColor: heatColor,
356
+ series: series
357
+ });
358
+ var tooltipParams = {
359
+ dataType: dataType,
360
+ innerXAxisList: innerXAxisList,
361
+ innerYAxisList: innerYAxisList,
362
+ digit: digit,
363
+ extraMetrics: extraMetrics,
364
+ metrics: metrics
365
+ };
366
+ var tooltip = tooltipVisible && getTooltip(tooltipParams);
367
+ var options = {
368
+ visualMap: visualMap,
369
+ series: series,
370
+ grid: {
371
+ left: 25,
372
+ right: 80,
373
+ width: 'auto',
374
+ height: 'auto'
375
+ }
376
+ };
377
+ var res;
378
+ var args = {
379
+ type: type,
380
+ options: options,
381
+ pointSize: pointSize,
382
+ blurSize: blurSize,
383
+ res: res,
384
+ key: key,
385
+ v: v,
386
+ bmap: bmap,
387
+ mapOrigin: mapOrigin,
388
+ geo: geo,
389
+ beforeRegisterMap: beforeRegisterMap
390
+ };
391
+ Object.assign(args, {
392
+ echarts: echarts,
393
+ specialAreas: specialAreas,
394
+ position: position,
395
+ positionJsonLink: positionJsonLink,
396
+ beforeRegisterMapOnce: beforeRegisterMapOnce
397
+ });
398
+ Object.assign(args, {
399
+ mapURLProfix: mapURLProfix,
400
+ amap: amap,
401
+ tooltip: tooltip,
402
+ xAxis: xAxis,
403
+ yAxis: yAxis
404
+ });
405
+ res = getResult(args);
406
+ return res;
407
+ };