@visactor/vchart 1.12.5 → 1.12.7
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/build/es5/index.js +2 -2
- package/build/index.js +1424 -1192
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base/base-chart.d.ts +1 -0
- package/cjs/chart/base/base-chart.js +17 -11
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/chart/chart-meta/data.d.ts +1 -2
- package/cjs/chart/chart-meta/data.js +11 -11
- package/cjs/chart/chart-meta/data.js.map +1 -1
- package/cjs/chart/mosaic/mosaic.d.ts +0 -1
- package/cjs/chart/mosaic/mosaic.js +0 -3
- package/cjs/chart/mosaic/mosaic.js.map +1 -1
- package/cjs/chart/pie/interface.d.ts +2 -2
- package/cjs/chart/pie/interface.js.map +1 -1
- package/cjs/chart/polar/interface.d.ts +2 -0
- package/cjs/chart/polar/interface.js.map +1 -1
- package/cjs/compile/compilable-base.js +2 -1
- package/cjs/compile/mark/compilable-mark.d.ts +1 -1
- package/cjs/compile/mark/compilable-mark.js +4 -4
- package/cjs/compile/mark/compilable-mark.js.map +1 -1
- package/cjs/compile/mark/interface.d.ts +1 -0
- package/cjs/compile/mark/interface.js.map +1 -1
- package/cjs/compile/util.js +1 -2
- package/cjs/component/axis/base-axis.d.ts +1 -2
- package/cjs/component/axis/base-axis.js +0 -3
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.js +5 -3
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/polar/axis.d.ts +0 -1
- package/cjs/component/axis/polar/axis.js +4 -20
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/axis/polar/interface/spec.d.ts +3 -1
- package/cjs/component/axis/polar/interface/spec.js.map +1 -1
- package/cjs/component/base/base-component.js +1 -3
- package/cjs/component/base/base-component.js.map +1 -1
- package/cjs/component/custom-mark/custom-mark.d.ts +0 -1
- package/cjs/component/custom-mark/custom-mark.js +1 -12
- package/cjs/component/custom-mark/custom-mark.js.map +1 -1
- package/cjs/component/data-zoom/data-filter-base-component.js +10 -7
- package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/cjs/component/data-zoom/util.js +11 -3
- package/cjs/component/data-zoom/util.js.map +1 -1
- package/cjs/component/label/base-label.d.ts +1 -2
- package/cjs/component/label/base-label.js +0 -3
- package/cjs/component/label/base-label.js.map +1 -1
- package/cjs/component/label/label.d.ts +0 -1
- package/cjs/component/label/label.js +2 -12
- package/cjs/component/label/label.js.map +1 -1
- package/cjs/component/label/total-label.d.ts +1 -1
- package/cjs/component/label/total-label.js +5 -12
- package/cjs/component/label/total-label.js.map +1 -1
- package/cjs/component/label/util.d.ts +1 -1
- package/cjs/component/label/util.js +12 -7
- package/cjs/component/label/util.js.map +1 -1
- package/cjs/component/legend/util.d.ts +2 -2
- package/cjs/constant/correlation.js +1 -2
- package/cjs/constant/layout.js +2 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/vchart.d.ts +1 -1
- package/cjs/core/vchart.js +22 -25
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/data/initialize.d.ts +1 -2
- package/cjs/data/initialize.js +5 -5
- package/cjs/data/initialize.js.map +1 -1
- package/cjs/plugin/chart/media-query/media-query.d.ts +1 -0
- package/cjs/plugin/chart/media-query/media-query.js +3 -1
- package/cjs/plugin/chart/media-query/media-query.js.map +1 -1
- package/cjs/plugin/chart/plugin-service.d.ts +2 -0
- package/cjs/plugin/chart/plugin-service.js +5 -0
- package/cjs/plugin/chart/plugin-service.js.map +1 -1
- package/cjs/region/region.js +2 -3
- package/cjs/region/region.js.map +1 -1
- package/cjs/series/base/base-series.d.ts +6 -5
- package/cjs/series/base/base-series.js +25 -15
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/base/constant.js +1 -0
- package/cjs/series/base/constant.js.map +1 -1
- package/cjs/series/funnel/funnel.d.ts +1 -0
- package/cjs/series/funnel/funnel.js +7 -6
- package/cjs/series/funnel/funnel.js.map +1 -1
- package/cjs/series/funnel/interface.d.ts +3 -1
- package/cjs/series/funnel/interface.js.map +1 -1
- package/cjs/series/gauge/interface.d.ts +1 -1
- package/cjs/series/gauge/interface.js.map +1 -1
- package/cjs/series/polar/animation.d.ts +8 -11
- package/cjs/series/polar/animation.js +18 -23
- package/cjs/series/polar/animation.js.map +1 -1
- package/cjs/series/radar/animation.d.ts +0 -3
- package/cjs/series/radar/animation.js +4 -4
- package/cjs/series/radar/animation.js.map +1 -1
- package/cjs/series/radar/radar.js +10 -7
- package/cjs/series/radar/radar.js.map +1 -1
- package/cjs/theme/builtin/common/series/linear-progress.js +4 -1
- package/cjs/theme/builtin/common/series/linear-progress.js.map +1 -1
- package/cjs/theme/builtin/dark/color-scheme.js +2 -1
- package/cjs/theme/builtin/dark/color-scheme.js.map +1 -1
- package/cjs/theme/builtin/light/color-scheme.js +2 -1
- package/cjs/theme/builtin/light/color-scheme.js.map +1 -1
- package/cjs/typings/spec/common.d.ts +5 -2
- package/cjs/typings/spec/common.js.map +1 -1
- package/esm/chart/base/base-chart.d.ts +1 -0
- package/esm/chart/base/base-chart.js +18 -12
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/chart/chart-meta/data.d.ts +1 -2
- package/esm/chart/chart-meta/data.js +12 -10
- package/esm/chart/chart-meta/data.js.map +1 -1
- package/esm/chart/mosaic/mosaic.d.ts +0 -1
- package/esm/chart/mosaic/mosaic.js +0 -3
- package/esm/chart/mosaic/mosaic.js.map +1 -1
- package/esm/chart/pie/interface.d.ts +2 -2
- package/esm/chart/pie/interface.js.map +1 -1
- package/esm/chart/polar/interface.d.ts +2 -0
- package/esm/chart/polar/interface.js.map +1 -1
- package/esm/compile/compilable-base.js +2 -1
- package/esm/compile/mark/compilable-mark.d.ts +1 -1
- package/esm/compile/mark/compilable-mark.js +5 -4
- package/esm/compile/mark/compilable-mark.js.map +1 -1
- package/esm/compile/mark/interface.d.ts +1 -0
- package/esm/compile/mark/interface.js.map +1 -1
- package/esm/compile/util.js +1 -2
- package/esm/component/axis/base-axis.d.ts +1 -2
- package/esm/component/axis/base-axis.js +0 -3
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/axis/cartesian/axis.js +6 -4
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/polar/axis.d.ts +0 -1
- package/esm/component/axis/polar/axis.js +4 -22
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/axis/polar/interface/spec.d.ts +3 -1
- package/esm/component/axis/polar/interface/spec.js.map +1 -1
- package/esm/component/base/base-component.js +1 -3
- package/esm/component/base/base-component.js.map +1 -1
- package/esm/component/custom-mark/custom-mark.d.ts +0 -1
- package/esm/component/custom-mark/custom-mark.js +0 -13
- package/esm/component/custom-mark/custom-mark.js.map +1 -1
- package/esm/component/data-zoom/data-filter-base-component.js +7 -6
- package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/esm/component/data-zoom/util.js +11 -2
- package/esm/component/data-zoom/util.js.map +1 -1
- package/esm/component/label/base-label.d.ts +1 -2
- package/esm/component/label/base-label.js +0 -3
- package/esm/component/label/base-label.js.map +1 -1
- package/esm/component/label/label.d.ts +0 -1
- package/esm/component/label/label.js +1 -13
- package/esm/component/label/label.js.map +1 -1
- package/esm/component/label/total-label.d.ts +1 -1
- package/esm/component/label/total-label.js +4 -13
- package/esm/component/label/total-label.js.map +1 -1
- package/esm/component/label/util.d.ts +1 -1
- package/esm/component/label/util.js +12 -7
- package/esm/component/label/util.js.map +1 -1
- package/esm/component/legend/util.d.ts +2 -2
- package/esm/constant/correlation.js +1 -2
- package/esm/constant/layout.js +2 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/core/vchart.d.ts +1 -1
- package/esm/core/vchart.js +24 -27
- package/esm/core/vchart.js.map +1 -1
- package/esm/data/initialize.d.ts +1 -2
- package/esm/data/initialize.js +6 -7
- package/esm/data/initialize.js.map +1 -1
- package/esm/plugin/chart/media-query/media-query.d.ts +1 -0
- package/esm/plugin/chart/media-query/media-query.js +3 -1
- package/esm/plugin/chart/media-query/media-query.js.map +1 -1
- package/esm/plugin/chart/plugin-service.d.ts +2 -0
- package/esm/plugin/chart/plugin-service.js +5 -0
- package/esm/plugin/chart/plugin-service.js.map +1 -1
- package/esm/region/region.js +2 -3
- package/esm/region/region.js.map +1 -1
- package/esm/series/base/base-series.d.ts +6 -5
- package/esm/series/base/base-series.js +23 -14
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/base/constant.js +1 -0
- package/esm/series/base/constant.js.map +1 -1
- package/esm/series/funnel/funnel.d.ts +1 -0
- package/esm/series/funnel/funnel.js +7 -6
- package/esm/series/funnel/funnel.js.map +1 -1
- package/esm/series/funnel/interface.d.ts +3 -1
- package/esm/series/funnel/interface.js.map +1 -1
- package/esm/series/gauge/interface.d.ts +1 -1
- package/esm/series/gauge/interface.js.map +1 -1
- package/esm/series/polar/animation.d.ts +8 -11
- package/esm/series/polar/animation.js +17 -24
- package/esm/series/polar/animation.js.map +1 -1
- package/esm/series/radar/animation.d.ts +0 -3
- package/esm/series/radar/animation.js +4 -4
- package/esm/series/radar/animation.js.map +1 -1
- package/esm/series/radar/radar.js +10 -7
- package/esm/series/radar/radar.js.map +1 -1
- package/esm/theme/builtin/common/series/linear-progress.js +4 -1
- package/esm/theme/builtin/common/series/linear-progress.js.map +1 -1
- package/esm/theme/builtin/dark/color-scheme.js +2 -1
- package/esm/theme/builtin/dark/color-scheme.js.map +1 -1
- package/esm/theme/builtin/light/color-scheme.js +2 -1
- package/esm/theme/builtin/light/color-scheme.js.map +1 -1
- package/esm/typings/spec/common.d.ts +5 -2
- package/esm/typings/spec/common.js.map +1 -1
- package/package.json +18 -18
package/cjs/core/vchart.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export declare class VChart implements IVChart {
|
|
|
74
74
|
private _context;
|
|
75
75
|
private _isReleased;
|
|
76
76
|
private _chartPlugin?;
|
|
77
|
+
private _onResize?;
|
|
77
78
|
constructor(spec: ISpec, options: IInitOption);
|
|
78
79
|
private _setNewSpec;
|
|
79
80
|
private _getSpecFromOriginalSpec;
|
|
@@ -89,7 +90,6 @@ export declare class VChart implements IVChart {
|
|
|
89
90
|
height: number;
|
|
90
91
|
};
|
|
91
92
|
private _doResize;
|
|
92
|
-
private _onResize;
|
|
93
93
|
private _initDataSet;
|
|
94
94
|
updateCustomConfigAndRerender(updateSpecResult: IUpdateSpecResult | (() => IUpdateSpecResult), sync?: boolean, option?: IVChartRenderOption): IVChart | Promise<IVChart>;
|
|
95
95
|
protected _updateCustomConfigAndRecompile(updateSpecResult: IUpdateSpecResult, option?: IVChartRenderOption): boolean;
|
package/cjs/core/vchart.js
CHANGED
|
@@ -109,7 +109,7 @@ class VChart {
|
|
|
109
109
|
return this._dataSet;
|
|
110
110
|
}
|
|
111
111
|
constructor(spec, options) {
|
|
112
|
-
var _a, _b, _c, _d, _e, _f;
|
|
112
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
113
113
|
this.id = (0, id_1.createID)(), this._userEvents = [], this._autoSize = !0, this._option = {
|
|
114
114
|
mode: common_1.RenderModeEnum["desktop-browser"],
|
|
115
115
|
onError: msg => {
|
|
@@ -118,9 +118,13 @@ class VChart {
|
|
|
118
118
|
optimize: {
|
|
119
119
|
disableCheckGraphicWidthOutRange: !0
|
|
120
120
|
}
|
|
121
|
-
}, this._observer = null, this._context = {}, this.
|
|
122
|
-
this.
|
|
123
|
-
|
|
121
|
+
}, this._observer = null, this._context = {}, this._doResize = () => {
|
|
122
|
+
const {width: width, height: height} = this.getCurrentSize();
|
|
123
|
+
this._currentSize.width === width && this._currentSize.height === height || (this._currentSize = {
|
|
124
|
+
width: width,
|
|
125
|
+
height: height
|
|
126
|
+
}, this.resizeSync(width, height));
|
|
127
|
+
}, this._renderSync = (option = {}) => {
|
|
124
128
|
var _a;
|
|
125
129
|
const self = this;
|
|
126
130
|
return this._beforeRender(option) ? (null === (_a = this._compiler) || void 0 === _a || _a.render(option.morphConfig),
|
|
@@ -128,6 +132,7 @@ class VChart {
|
|
|
128
132
|
}, this._updateSpec = (spec, forceMerge = !1, userUpdateOptions) => {
|
|
129
133
|
var _a, _b;
|
|
130
134
|
const lastSpec = this._spec, result = {
|
|
135
|
+
changeBackground: !1,
|
|
131
136
|
reTransformSpec: !1,
|
|
132
137
|
change: !1,
|
|
133
138
|
reMake: !1,
|
|
@@ -142,13 +147,13 @@ class VChart {
|
|
|
142
147
|
if (result.reSize = reSize, null === (_b = null === (_a = this._compiler) || void 0 === _a ? void 0 : _a.getVGrammarView()) || void 0 === _b || _b.updateLayoutTag(),
|
|
143
148
|
this._spec.type !== lastSpec.type) return result.reMake = !0, result.reTransformSpec = !0,
|
|
144
149
|
result.change = !0, result.changeTheme = !0, result;
|
|
145
|
-
this._initChartSpec(this._spec, "
|
|
150
|
+
this._initChartSpec(this._spec, "updateSpec");
|
|
146
151
|
const res = (0, util_2.mergeUpdateResult)(this._chart.updateSpec(this._spec), result);
|
|
147
152
|
return userUpdateOptions ? Object.assign(Object.assign({}, res), userUpdateOptions) : res;
|
|
148
153
|
}, this._option = (0, vutils_1.merge)(this._option, {
|
|
149
154
|
animation: !1 !== spec.animation
|
|
150
155
|
}, options), this._onError = null === (_a = this._option) || void 0 === _a ? void 0 : _a.onError;
|
|
151
|
-
const
|
|
156
|
+
const _j = this._option, {dom: dom, renderCanvas: renderCanvas, mode: mode, stage: stage, poptip: poptip} = _j, restOptions = __rest(_j, [ "dom", "renderCanvas", "mode", "stage", "poptip" ]), isTrueBrowseEnv = (0,
|
|
152
157
|
env_1.isTrueBrowser)(mode);
|
|
153
158
|
isTrueBrowseEnv ? (0, env_2.registerBrowserEnv)() : "node" === mode && (0, env_2.registerNodeEnv)(),
|
|
154
159
|
isTrueBrowseEnv && dom && (this._container = (0, util_1.isString)(dom) ? vrender_core_1.vglobal.getElementById(dom) : dom),
|
|
@@ -170,7 +175,7 @@ class VChart {
|
|
|
170
175
|
this._setFontFamilyTheme(null === (_d = this._currentTheme) || void 0 === _d ? void 0 : _d.fontFamily),
|
|
171
176
|
this._initDataSet(this._option.dataSet), this._autoSize = !!isTrueBrowseEnv && (null === (_f = null !== (_e = spec.autoFit) && void 0 !== _e ? _e : this._option.autoFit) || void 0 === _f || _f),
|
|
172
177
|
this._bindResizeEvent(), this._bindVGrammarViewEvent(), this._initChartPlugin(),
|
|
173
|
-
instance_manager_1.InstanceManager.registerInstance(this)) : null === (_b = this._option) || void 0 === _b || _b.onError("please specify container or renderCanvas!");
|
|
178
|
+
instance_manager_1.InstanceManager.registerInstance(this), null === (_h = null === (_g = this._option.performanceHook) || void 0 === _g ? void 0 : _g.afterCreateVChart) || void 0 === _h || _h.call(_g, this)) : null === (_b = this._option) || void 0 === _b || _b.onError("please specify container or renderCanvas!");
|
|
174
179
|
}
|
|
175
180
|
_setNewSpec(spec, forceMerge) {
|
|
176
181
|
return !!spec && ((0, util_1.isString)(spec) && (spec = JSON.parse(spec)), forceMerge && this._originalSpec && (spec = (0,
|
|
@@ -223,12 +228,13 @@ class VChart {
|
|
|
223
228
|
})));
|
|
224
229
|
}
|
|
225
230
|
_bindResizeEvent() {
|
|
226
|
-
var _a;
|
|
231
|
+
var _a, _b;
|
|
227
232
|
if (this._autoSize) {
|
|
228
|
-
if (this.
|
|
233
|
+
if (this._onResize = (0, vutils_1.throttle)(this._doResize, null !== (_a = this._option.resizeDelay) && void 0 !== _a ? _a : 100),
|
|
234
|
+
this._container) {
|
|
229
235
|
const ResizeObserverWindow = window.ResizeObserver;
|
|
230
236
|
ResizeObserverWindow && (this._observer = new ResizeObserverWindow(this._onResize),
|
|
231
|
-
null === (
|
|
237
|
+
null === (_b = this._observer) || void 0 === _b || _b.observe(this._container));
|
|
232
238
|
}
|
|
233
239
|
window.addEventListener("resize", this._onResize);
|
|
234
240
|
}
|
|
@@ -249,13 +255,6 @@ class VChart {
|
|
|
249
255
|
height: null !== (_d = null === (_c = this._currentSize) || void 0 === _c ? void 0 : _c.height) && void 0 !== _d ? _d : base_1.DEFAULT_CHART_HEIGHT
|
|
250
256
|
});
|
|
251
257
|
}
|
|
252
|
-
_doResize() {
|
|
253
|
-
const {width: width, height: height} = this.getCurrentSize();
|
|
254
|
-
this._currentSize.width === width && this._currentSize.height === height || (this._currentSize = {
|
|
255
|
-
width: width,
|
|
256
|
-
height: height
|
|
257
|
-
}, this.resizeSync(width, height));
|
|
258
|
-
}
|
|
259
258
|
_initDataSet(dataSet) {
|
|
260
259
|
dataSet instanceof vdataset_1.DataSet ? this._dataSet = dataSet : this._dataSet = new vdataset_1.DataSet,
|
|
261
260
|
(0, register_1.registerDataSetInstanceParser)(this._dataSet, "dataview", vdataset_1.dataViewParser),
|
|
@@ -273,7 +272,7 @@ class VChart {
|
|
|
273
272
|
return !!updateSpecResult && (this._reCompile(updateSpecResult), this._beforeRender(option));
|
|
274
273
|
}
|
|
275
274
|
_reCompile(updateResult, morphConfig) {
|
|
276
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
275
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
277
276
|
if (updateResult.reMake) this._releaseData(), this._initDataSet(), this._chartSpecTransformer = null,
|
|
278
277
|
null === (_a = this._chart) || void 0 === _a || _a.release(), this._chart = null,
|
|
279
278
|
updateResult.changeTheme ? (this._setCurrentTheme(), this._setFontFamilyTheme(null === (_b = this._currentTheme) || void 0 === _b ? void 0 : _b.fontFamily)) : updateResult.changeBackground && (null === (_c = this._compiler) || void 0 === _c || _c.setBackground(this._getBackground())),
|
|
@@ -286,7 +285,8 @@ class VChart {
|
|
|
286
285
|
updateResult.reCompile && (null === (_j = this._compiler) || void 0 === _j || _j.clear({
|
|
287
286
|
chart: this._chart,
|
|
288
287
|
vChart: this
|
|
289
|
-
}, !this._option
|
|
288
|
+
}, !1 === (null === (_k = this._option) || void 0 === _k ? void 0 : _k.animation) || !1 === (null === (_l = this._spec) || void 0 === _l ? void 0 : _l.animation)),
|
|
289
|
+
null === (_m = this._compiler) || void 0 === _m || _m.compile({
|
|
290
290
|
chart: this._chart,
|
|
291
291
|
vChart: this
|
|
292
292
|
}, {})), updateResult.reSize) {
|
|
@@ -300,8 +300,8 @@ class VChart {
|
|
|
300
300
|
if (this._chart) return !0;
|
|
301
301
|
const {transformSpec: transformSpec, actionSource: actionSource} = option;
|
|
302
302
|
return transformSpec && this._initChartSpec(this._spec, "render"), this._chartPluginApply("onBeforeInitChart", this._spec, actionSource),
|
|
303
|
-
null === (_b = null === (_a = this._option.performanceHook) || void 0 === _a ? void 0 : _a.beforeInitializeChart) || void 0 === _b || _b.call(_a),
|
|
304
|
-
this._initChart(this._spec), null === (_d = null === (_c = this._option.performanceHook) || void 0 === _c ? void 0 : _c.afterInitializeChart) || void 0 === _d || _d.call(_c),
|
|
303
|
+
null === (_b = null === (_a = this._option.performanceHook) || void 0 === _a ? void 0 : _a.beforeInitializeChart) || void 0 === _b || _b.call(_a, this),
|
|
304
|
+
this._initChart(this._spec), null === (_d = null === (_c = this._option.performanceHook) || void 0 === _c ? void 0 : _c.afterInitializeChart) || void 0 === _d || _d.call(_c, this),
|
|
305
305
|
!(!this._chart || !this._compiler) && (null === (_f = null === (_e = this._option.performanceHook) || void 0 === _e ? void 0 : _e.beforeCompileToVGrammar) || void 0 === _f || _f.call(_e),
|
|
306
306
|
this._compiler.compile({
|
|
307
307
|
chart: this._chart,
|
|
@@ -399,14 +399,11 @@ class VChart {
|
|
|
399
399
|
this;
|
|
400
400
|
const prevData = (0, util_1.array)(this._spec.data);
|
|
401
401
|
return (0, util_1.array)(data).forEach((d => {
|
|
402
|
-
var _a;
|
|
403
402
|
const {id: id, values: values, parser: parser, fields: fields} = d, preDV = prevData.find((dv => dv.name === id));
|
|
404
403
|
if (preDV) preDV instanceof vdataset_1.DataView ? (preDV.setFields((0, vutils_1.cloneDeep)(fields)),
|
|
405
404
|
preDV.parse(values, (0, vutils_1.cloneDeep)(parser))) : (preDV.values = values,
|
|
406
405
|
(0, util_1.isValid)(parser) && (preDV.parser = parser), (0, util_1.isValid)(fields) && (preDV.fields = fields)); else {
|
|
407
|
-
const dataView = (0, initialize_1.dataToDataView)(d, this._dataSet, prevData
|
|
408
|
-
onError: null === (_a = this._option) || void 0 === _a ? void 0 : _a.onError
|
|
409
|
-
});
|
|
406
|
+
const dataView = (0, initialize_1.dataToDataView)(d, this._dataSet, prevData);
|
|
410
407
|
(0, vutils_1.isArray)(this._spec.data) && this._spec.data.push(dataView);
|
|
411
408
|
}
|
|
412
409
|
})), this;
|