tvcharts 0.6.93 → 0.6.95
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/dist/echarts.js +387 -145
- package/dist/echarts.js.map +3 -3
- package/lib/chart/barPlot/BarPlotSeries.js +2 -1
- package/lib/chart/barPlot/barPlotLayout.js +1 -1
- package/lib/chart/bgColor/BgColorLayout.js +5 -4
- package/lib/chart/bgColor/BgColorPath.js +11 -10
- package/lib/chart/bgColor/BgColorView.js +15 -12
- package/lib/chart/candlePlot/CandlePlotSeries.js +2 -1
- package/lib/chart/candlePlot/candlePlotLayout.js +14 -8
- package/lib/component/axisPointer/modelHelper.js +17 -14
- package/lib/coord/cartesian/Grid.js +1 -1
- package/package.json +1 -1
- package/types/src/chart/barPlot/BarPlotSeries.d.ts +1 -0
- package/types/src/chart/bgColor/BgColorPath.d.ts +4 -4
- package/types/src/chart/bgColor/BgColorView.d.ts +5 -5
- package/types/src/chart/candlePlot/CandlePlotSeries.d.ts +1 -0
package/dist/echarts.js
CHANGED
|
@@ -228,16 +228,16 @@ var OFFSET = 20;
|
|
|
228
228
|
var SCALE = 100;
|
|
229
229
|
var defaultWidthMapStr = `007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;
|
|
230
230
|
function getTextWidthMap(mapStr) {
|
|
231
|
-
const
|
|
231
|
+
const map7 = {};
|
|
232
232
|
if (typeof JSON === "undefined") {
|
|
233
|
-
return
|
|
233
|
+
return map7;
|
|
234
234
|
}
|
|
235
235
|
for (let i = 0; i < mapStr.length; i++) {
|
|
236
236
|
const char = String.fromCharCode(i + 32);
|
|
237
237
|
const size = (mapStr.charCodeAt(i) - OFFSET) / SCALE;
|
|
238
|
-
|
|
238
|
+
map7[char] = size;
|
|
239
239
|
}
|
|
240
|
-
return
|
|
240
|
+
return map7;
|
|
241
241
|
}
|
|
242
242
|
var DEFAULT_TEXT_WIDTH_MAP = getTextWidthMap(defaultWidthMapStr);
|
|
243
243
|
var platformApi = {
|
|
@@ -350,15 +350,15 @@ var LRU = class {
|
|
|
350
350
|
}
|
|
351
351
|
put(key, value) {
|
|
352
352
|
const list = this._list;
|
|
353
|
-
const
|
|
353
|
+
const map7 = this._map;
|
|
354
354
|
let removed = null;
|
|
355
|
-
if (
|
|
355
|
+
if (map7[key] == null) {
|
|
356
356
|
const len2 = list.len();
|
|
357
357
|
let entry = this._lastRemovedEntry;
|
|
358
358
|
if (len2 >= this._maxSize && len2 > 0) {
|
|
359
359
|
const leastUsedEntry = list.head;
|
|
360
360
|
list.remove(leastUsedEntry);
|
|
361
|
-
delete
|
|
361
|
+
delete map7[leastUsedEntry.key];
|
|
362
362
|
removed = leastUsedEntry.value;
|
|
363
363
|
this._lastRemovedEntry = leastUsedEntry;
|
|
364
364
|
}
|
|
@@ -369,7 +369,7 @@ var LRU = class {
|
|
|
369
369
|
}
|
|
370
370
|
entry.key = key;
|
|
371
371
|
list.insertEntry(entry);
|
|
372
|
-
|
|
372
|
+
map7[key] = entry;
|
|
373
373
|
}
|
|
374
374
|
return removed;
|
|
375
375
|
}
|
|
@@ -7203,7 +7203,7 @@ function getElementSSRData(el) {
|
|
|
7203
7203
|
function registerSSRDataGetter(getter) {
|
|
7204
7204
|
ssrDataGetter = getter;
|
|
7205
7205
|
}
|
|
7206
|
-
var version = "5.6.
|
|
7206
|
+
var version = "5.6.72";
|
|
7207
7207
|
|
|
7208
7208
|
// src/util/number.ts
|
|
7209
7209
|
var RADIAN_EPSILON = 1e-4;
|
|
@@ -7837,7 +7837,7 @@ function compressBatches(batchA, batchB) {
|
|
|
7837
7837
|
makeMap(batchA || [], mapA);
|
|
7838
7838
|
makeMap(batchB || [], mapB, mapA);
|
|
7839
7839
|
return [mapToArray(mapA), mapToArray(mapB)];
|
|
7840
|
-
function makeMap(sourceBatch,
|
|
7840
|
+
function makeMap(sourceBatch, map7, otherMap) {
|
|
7841
7841
|
for (let i = 0, len2 = sourceBatch.length; i < len2; i++) {
|
|
7842
7842
|
const seriesId = convertOptionIdName(sourceBatch[i].seriesId, null);
|
|
7843
7843
|
if (seriesId == null) {
|
|
@@ -7850,19 +7850,19 @@ function compressBatches(batchA, batchB) {
|
|
|
7850
7850
|
if (otherDataIndices && otherDataIndices[dataIndex]) {
|
|
7851
7851
|
otherDataIndices[dataIndex] = null;
|
|
7852
7852
|
} else {
|
|
7853
|
-
(
|
|
7853
|
+
(map7[seriesId] || (map7[seriesId] = {}))[dataIndex] = 1;
|
|
7854
7854
|
}
|
|
7855
7855
|
}
|
|
7856
7856
|
}
|
|
7857
7857
|
}
|
|
7858
|
-
function mapToArray(
|
|
7858
|
+
function mapToArray(map7, isData) {
|
|
7859
7859
|
const result = [];
|
|
7860
|
-
for (const i in
|
|
7861
|
-
if (
|
|
7860
|
+
for (const i in map7) {
|
|
7861
|
+
if (map7.hasOwnProperty(i) && map7[i] != null) {
|
|
7862
7862
|
if (isData) {
|
|
7863
7863
|
result.push(+i);
|
|
7864
7864
|
} else {
|
|
7865
|
-
const dataIndices = mapToArray(
|
|
7865
|
+
const dataIndices = mapToArray(map7[i], true);
|
|
7866
7866
|
dataIndices.length && result.push({seriesId: i, dataIndex: dataIndices});
|
|
7867
7867
|
}
|
|
7868
7868
|
}
|
|
@@ -16306,6 +16306,7 @@ var BUILTIN_CHARTS_MAP = {
|
|
|
16306
16306
|
linesPlot: "LinesPlotChart",
|
|
16307
16307
|
strategy: "StrategyChart",
|
|
16308
16308
|
mineLines: "MineLinesChart",
|
|
16309
|
+
minePolyLines: "MinePolyLinesChart",
|
|
16309
16310
|
lineFills: "LineFillsChart",
|
|
16310
16311
|
charPlot: "CharPlotChart",
|
|
16311
16312
|
boxes: "BoxesChart",
|
|
@@ -26242,25 +26243,25 @@ var DataDiffer = class {
|
|
|
26242
26243
|
newDataIndexMap[newKey] = null;
|
|
26243
26244
|
}
|
|
26244
26245
|
}
|
|
26245
|
-
_initIndexMap(arr,
|
|
26246
|
+
_initIndexMap(arr, map7, keyArr, keyGetterName) {
|
|
26246
26247
|
const cbModeMultiple = this._diffModeMultiple;
|
|
26247
26248
|
for (let i = 0; i < arr.length; i++) {
|
|
26248
26249
|
const key = "_ec_" + this[keyGetterName](arr[i], i);
|
|
26249
26250
|
if (!cbModeMultiple) {
|
|
26250
26251
|
keyArr[i] = key;
|
|
26251
26252
|
}
|
|
26252
|
-
if (!
|
|
26253
|
+
if (!map7) {
|
|
26253
26254
|
continue;
|
|
26254
26255
|
}
|
|
26255
|
-
const idxMapVal =
|
|
26256
|
+
const idxMapVal = map7[key];
|
|
26256
26257
|
const idxMapValLen = dataIndexMapValueLength(idxMapVal);
|
|
26257
26258
|
if (idxMapValLen === 0) {
|
|
26258
|
-
|
|
26259
|
+
map7[key] = i;
|
|
26259
26260
|
if (cbModeMultiple) {
|
|
26260
26261
|
keyArr.push(key);
|
|
26261
26262
|
}
|
|
26262
26263
|
} else if (idxMapValLen === 1) {
|
|
26263
|
-
|
|
26264
|
+
map7[key] = [idxMapVal, i];
|
|
26264
26265
|
} else {
|
|
26265
26266
|
idxMapVal.push(i);
|
|
26266
26267
|
}
|
|
@@ -27390,15 +27391,15 @@ function getDimCount(source, sysDims, dimsDef, optDimCount) {
|
|
|
27390
27391
|
});
|
|
27391
27392
|
return dimCount;
|
|
27392
27393
|
}
|
|
27393
|
-
function genCoordDimName(name,
|
|
27394
|
-
if (fromZero ||
|
|
27394
|
+
function genCoordDimName(name, map7, fromZero) {
|
|
27395
|
+
if (fromZero || map7.hasKey(name)) {
|
|
27395
27396
|
let i = 0;
|
|
27396
|
-
while (
|
|
27397
|
+
while (map7.hasKey(name + i)) {
|
|
27397
27398
|
i++;
|
|
27398
27399
|
}
|
|
27399
27400
|
name += i;
|
|
27400
27401
|
}
|
|
27401
|
-
|
|
27402
|
+
map7.set(name, true);
|
|
27402
27403
|
return name;
|
|
27403
27404
|
}
|
|
27404
27405
|
|
|
@@ -27984,13 +27985,13 @@ var OrdinalMeta = class {
|
|
|
27984
27985
|
this.categories[index] = category;
|
|
27985
27986
|
return index;
|
|
27986
27987
|
}
|
|
27987
|
-
const
|
|
27988
|
-
index =
|
|
27988
|
+
const map7 = this._getOrCreateMap();
|
|
27989
|
+
index = map7.get(category);
|
|
27989
27990
|
if (index == null) {
|
|
27990
27991
|
if (needCollect) {
|
|
27991
27992
|
index = this.categories.length;
|
|
27992
27993
|
this.categories[index] = category;
|
|
27993
|
-
|
|
27994
|
+
map7.set(category, index);
|
|
27994
27995
|
} else {
|
|
27995
27996
|
index = NaN;
|
|
27996
27997
|
}
|
|
@@ -32759,19 +32760,19 @@ function isDef(s) {
|
|
|
32759
32760
|
return s !== void 0;
|
|
32760
32761
|
}
|
|
32761
32762
|
function createKeyToOldIdx(children, beginIdx, endIdx) {
|
|
32762
|
-
const
|
|
32763
|
+
const map7 = {};
|
|
32763
32764
|
for (let i = beginIdx; i <= endIdx; ++i) {
|
|
32764
32765
|
const key = children[i].key;
|
|
32765
32766
|
if (key !== void 0) {
|
|
32766
32767
|
if (true) {
|
|
32767
|
-
if (
|
|
32768
|
+
if (map7[key] != null) {
|
|
32768
32769
|
console.error(`Duplicate key ${key}`);
|
|
32769
32770
|
}
|
|
32770
32771
|
}
|
|
32771
|
-
|
|
32772
|
+
map7[key] = i;
|
|
32772
32773
|
}
|
|
32773
32774
|
}
|
|
32774
|
-
return
|
|
32775
|
+
return map7;
|
|
32775
32776
|
}
|
|
32776
32777
|
function sameVnode(vnode1, vnode2) {
|
|
32777
32778
|
const isSameKey = vnode1.key === vnode2.key;
|
|
@@ -34067,7 +34068,6 @@ var CanvasPainter = class {
|
|
|
34067
34068
|
changeDPR(width, height) {
|
|
34068
34069
|
const horizontalPixelRatio = width / this._width;
|
|
34069
34070
|
const verticalPixelRatio = height / this._height;
|
|
34070
|
-
console.log("%c [ horizontalPixelRatio ]-908", "font-size:13px; background:pink; color:#bf2c9f;", horizontalPixelRatio, verticalPixelRatio);
|
|
34071
34071
|
if (this.horizontalPixelRatio !== horizontalPixelRatio || this.verticalPixelRatio !== verticalPixelRatio) {
|
|
34072
34072
|
this.horizontalPixelRatio = horizontalPixelRatio;
|
|
34073
34073
|
this.verticalPixelRatio = verticalPixelRatio;
|
|
@@ -40288,20 +40288,23 @@ function fixValue(axisModel) {
|
|
|
40288
40288
|
const option = axisPointerModel.option;
|
|
40289
40289
|
const status = axisPointerModel.get("status");
|
|
40290
40290
|
let value = axisPointerModel.get("value");
|
|
40291
|
-
|
|
40291
|
+
const isPercentage = scale4.type === "percentage";
|
|
40292
|
+
if (value != null && !isPercentage) {
|
|
40292
40293
|
value = scale4.parse(value);
|
|
40293
40294
|
}
|
|
40294
40295
|
const useHandle = isHandleTrigger(axisPointerModel);
|
|
40295
40296
|
if (status == null) {
|
|
40296
40297
|
option.status = useHandle ? "show" : "hide";
|
|
40297
40298
|
}
|
|
40298
|
-
|
|
40299
|
-
|
|
40300
|
-
|
|
40301
|
-
value
|
|
40302
|
-
|
|
40303
|
-
|
|
40304
|
-
value
|
|
40299
|
+
if (!isPercentage) {
|
|
40300
|
+
const extent3 = scale4.getExtent().slice();
|
|
40301
|
+
extent3[0] > extent3[1] && extent3.reverse();
|
|
40302
|
+
if (value == null || value > extent3[1]) {
|
|
40303
|
+
value = extent3[1];
|
|
40304
|
+
}
|
|
40305
|
+
if (value < extent3[0]) {
|
|
40306
|
+
value = extent3[0];
|
|
40307
|
+
}
|
|
40305
40308
|
}
|
|
40306
40309
|
option.value = value;
|
|
40307
40310
|
if (useHandle) {
|
|
@@ -43692,15 +43695,15 @@ var GEO_DEFAULT_PARAMS = {
|
|
|
43692
43695
|
};
|
|
43693
43696
|
var geo2DDimensions = ["lng", "lat"];
|
|
43694
43697
|
var Geo = class extends View_default {
|
|
43695
|
-
constructor(name,
|
|
43698
|
+
constructor(name, map7, opt) {
|
|
43696
43699
|
super(name);
|
|
43697
43700
|
this.dimensions = geo2DDimensions;
|
|
43698
43701
|
this.type = "geo";
|
|
43699
43702
|
this._nameCoordMap = createHashMap();
|
|
43700
|
-
this.map =
|
|
43703
|
+
this.map = map7;
|
|
43701
43704
|
let projection = opt.projection;
|
|
43702
|
-
const source = geoSourceManager_default.load(
|
|
43703
|
-
const resource = geoSourceManager_default.getGeoResource(
|
|
43705
|
+
const source = geoSourceManager_default.load(map7, opt.nameMap, opt.nameProperty);
|
|
43706
|
+
const resource = geoSourceManager_default.getGeoResource(map7);
|
|
43704
43707
|
const resourceType = this.resourceType = resource ? resource.type : null;
|
|
43705
43708
|
const regions = this.regions = source.regions;
|
|
43706
43709
|
const defaultParams = GEO_DEFAULT_PARAMS[resource.type];
|
|
@@ -43709,7 +43712,7 @@ var Geo = class extends View_default {
|
|
|
43709
43712
|
if (projection) {
|
|
43710
43713
|
if (resourceType === "geoSVG") {
|
|
43711
43714
|
if (true) {
|
|
43712
|
-
warn(`Map ${
|
|
43715
|
+
warn(`Map ${map7} with SVG source can't use projection. Only GeoJSON source supports projection.`);
|
|
43713
43716
|
}
|
|
43714
43717
|
projection = null;
|
|
43715
43718
|
}
|
|
@@ -51990,9 +51993,9 @@ function getTransform2(controller) {
|
|
|
51990
51993
|
return getTransform(controller.group);
|
|
51991
51994
|
}
|
|
51992
51995
|
function getGlobalDirection1(controller, localDirName) {
|
|
51993
|
-
const
|
|
51996
|
+
const map7 = {w: "left", e: "right", n: "top", s: "bottom"};
|
|
51994
51997
|
const inverseMap = {left: "w", right: "e", top: "n", bottom: "s"};
|
|
51995
|
-
const dir3 = transformDirection(
|
|
51998
|
+
const dir3 = transformDirection(map7[localDirName], getTransform2(controller));
|
|
51996
51999
|
return inverseMap[dir3];
|
|
51997
52000
|
}
|
|
51998
52001
|
function getGlobalDirection2(controller, localDirNameSeq) {
|
|
@@ -56965,6 +56968,234 @@ function install26(registers) {
|
|
|
56965
56968
|
registers.registerLayout(MineLinesLayout_default);
|
|
56966
56969
|
}
|
|
56967
56970
|
|
|
56971
|
+
// src/chart/minePolyLines/PolyLinesPath.ts
|
|
56972
|
+
var PolyLinesPathShape = class {
|
|
56973
|
+
};
|
|
56974
|
+
var PolyLinesPath = class extends Path_default {
|
|
56975
|
+
constructor(opts) {
|
|
56976
|
+
super(opts);
|
|
56977
|
+
}
|
|
56978
|
+
getDefaultShape() {
|
|
56979
|
+
return new PolyLinesPathShape();
|
|
56980
|
+
}
|
|
56981
|
+
buildPath(ctx2, shape) {
|
|
56982
|
+
const {points: points4, closed, curved} = shape;
|
|
56983
|
+
for (let index = 0; index < points4.length; index++) {
|
|
56984
|
+
const polyPoints = points4[index];
|
|
56985
|
+
if (curved) {
|
|
56986
|
+
const controlPoints = smoothBezier(polyPoints, 0.8, closed);
|
|
56987
|
+
ctx2.moveTo(polyPoints[0][0], polyPoints[0][1]);
|
|
56988
|
+
const len2 = polyPoints.length;
|
|
56989
|
+
for (let i = 0; i < (closed ? len2 : len2 - 1); i++) {
|
|
56990
|
+
const cp1 = controlPoints[i * 2];
|
|
56991
|
+
const cp2 = controlPoints[i * 2 + 1];
|
|
56992
|
+
const p = polyPoints[(i + 1) % len2];
|
|
56993
|
+
ctx2.bezierCurveTo(cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]);
|
|
56994
|
+
}
|
|
56995
|
+
} else {
|
|
56996
|
+
ctx2.moveTo(polyPoints[0][0], polyPoints[0][1]);
|
|
56997
|
+
for (let i = 1, l = polyPoints.length; i < l; i++) {
|
|
56998
|
+
ctx2.lineTo(polyPoints[i][0], polyPoints[i][1]);
|
|
56999
|
+
}
|
|
57000
|
+
}
|
|
57001
|
+
closed && ctx2.closePath();
|
|
57002
|
+
}
|
|
57003
|
+
}
|
|
57004
|
+
};
|
|
57005
|
+
var PolyLinesPath_default = PolyLinesPath;
|
|
57006
|
+
|
|
57007
|
+
// src/chart/minePolyLines/MinePolyLinesView.ts
|
|
57008
|
+
function getLineDashByLineStyle2(lineStyle) {
|
|
57009
|
+
if (lineStyle === "style_dashed") {
|
|
57010
|
+
return [8, 8];
|
|
57011
|
+
} else if (lineStyle === "style_dotted") {
|
|
57012
|
+
return [4, 4];
|
|
57013
|
+
}
|
|
57014
|
+
return "solid";
|
|
57015
|
+
}
|
|
57016
|
+
var MinePolyLinesView2 = class extends Chart_default {
|
|
57017
|
+
constructor() {
|
|
57018
|
+
super(...arguments);
|
|
57019
|
+
this.type = MinePolyLinesView2.type;
|
|
57020
|
+
}
|
|
57021
|
+
init() {
|
|
57022
|
+
}
|
|
57023
|
+
render(seriesModel, ecModel, api2) {
|
|
57024
|
+
const data = seriesModel.getData();
|
|
57025
|
+
this._renderLines(data, seriesModel, api2);
|
|
57026
|
+
const clipPath = seriesModel.get("clip", true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
|
|
57027
|
+
if (clipPath) {
|
|
57028
|
+
this.group.setClipPath(clipPath);
|
|
57029
|
+
} else {
|
|
57030
|
+
this.group.removeClipPath();
|
|
57031
|
+
}
|
|
57032
|
+
}
|
|
57033
|
+
_getClipShape(seriesModel) {
|
|
57034
|
+
if (!seriesModel.get("clip", true)) {
|
|
57035
|
+
return;
|
|
57036
|
+
}
|
|
57037
|
+
const coordSys = seriesModel.coordinateSystem;
|
|
57038
|
+
return coordSys && coordSys.getArea && coordSys.getArea(0.1);
|
|
57039
|
+
}
|
|
57040
|
+
_renderLines(data, seriesModel, api2) {
|
|
57041
|
+
if (!this._linesGroup) {
|
|
57042
|
+
this._linesGroup = new Group_default();
|
|
57043
|
+
this.group.add(this._linesGroup);
|
|
57044
|
+
} else {
|
|
57045
|
+
this._linesGroup.removeAll();
|
|
57046
|
+
}
|
|
57047
|
+
const linesGroup = this._linesGroup;
|
|
57048
|
+
const z2 = seriesModel.get("z2");
|
|
57049
|
+
const linesPointById = data.getLayout("linesPointById");
|
|
57050
|
+
each(linesPointById, function(item, key) {
|
|
57051
|
+
const [color2, width, lineStyle, fill, closed, curved] = key.split(":");
|
|
57052
|
+
const el = new PolyLinesPath_default({
|
|
57053
|
+
shape: {
|
|
57054
|
+
points: item,
|
|
57055
|
+
closed: closed === "true",
|
|
57056
|
+
curved: curved === "true"
|
|
57057
|
+
},
|
|
57058
|
+
style: {
|
|
57059
|
+
fill,
|
|
57060
|
+
stroke: color2,
|
|
57061
|
+
lineWidth: +width,
|
|
57062
|
+
lineDash: getLineDashByLineStyle2(lineStyle)
|
|
57063
|
+
},
|
|
57064
|
+
z2
|
|
57065
|
+
});
|
|
57066
|
+
linesGroup.add(el);
|
|
57067
|
+
});
|
|
57068
|
+
}
|
|
57069
|
+
remove(ecModel, api2) {
|
|
57070
|
+
this._linesGroup && this._linesGroup.removeAll();
|
|
57071
|
+
this._linesGroup = null;
|
|
57072
|
+
}
|
|
57073
|
+
dispose(ecModel, api2) {
|
|
57074
|
+
this.remove(ecModel, api2);
|
|
57075
|
+
}
|
|
57076
|
+
};
|
|
57077
|
+
var MinePolyLinesView = MinePolyLinesView2;
|
|
57078
|
+
MinePolyLinesView.type = "minePolyLines";
|
|
57079
|
+
var MinePolyLinesView_default = MinePolyLinesView;
|
|
57080
|
+
|
|
57081
|
+
// src/chart/minePolyLines/MinePolyLinesSeries.ts
|
|
57082
|
+
var MinePolyLinesSeriesModel2 = class extends Series_default {
|
|
57083
|
+
constructor() {
|
|
57084
|
+
super(...arguments);
|
|
57085
|
+
this.type = MinePolyLinesSeriesModel2.type;
|
|
57086
|
+
this.xFilterMode = "weakFilter";
|
|
57087
|
+
this.dataIndexById = {};
|
|
57088
|
+
}
|
|
57089
|
+
getInitialData(option) {
|
|
57090
|
+
if (true) {
|
|
57091
|
+
const coordSys = option.coordinateSystem;
|
|
57092
|
+
if (coordSys !== "polar" && coordSys !== "cartesian2d") {
|
|
57093
|
+
throw new Error("MinePolyLines not support coordinateSystem besides cartesian and polar");
|
|
57094
|
+
}
|
|
57095
|
+
}
|
|
57096
|
+
this.computedDataIndexById(option);
|
|
57097
|
+
return createSeriesData_default(null, this, {
|
|
57098
|
+
useEncodeDefaulter: true
|
|
57099
|
+
});
|
|
57100
|
+
}
|
|
57101
|
+
getZLevelKey() {
|
|
57102
|
+
return this.getData().count() > this.getProgressiveThreshold() ? this.id : "";
|
|
57103
|
+
}
|
|
57104
|
+
computedDataIndexById(option) {
|
|
57105
|
+
const dataIndexById = {};
|
|
57106
|
+
each(option.data, function(item, index) {
|
|
57107
|
+
dataIndexById[item.id] = index;
|
|
57108
|
+
});
|
|
57109
|
+
this.dataIndexById = dataIndexById;
|
|
57110
|
+
}
|
|
57111
|
+
getResetData(data) {
|
|
57112
|
+
const dataIndexById = this.dataIndexById;
|
|
57113
|
+
const that = this;
|
|
57114
|
+
each(data, function(item) {
|
|
57115
|
+
const index = dataIndexById[item.id];
|
|
57116
|
+
if (typeof index === "number") {
|
|
57117
|
+
that.option.data[index] = item;
|
|
57118
|
+
} else {
|
|
57119
|
+
that.option.data.push(item);
|
|
57120
|
+
}
|
|
57121
|
+
});
|
|
57122
|
+
this.option.data = this.option.data.filter((item) => !item.isDelete).slice(-this.option.limit);
|
|
57123
|
+
this.computedDataIndexById(this.option);
|
|
57124
|
+
return this.option.data;
|
|
57125
|
+
}
|
|
57126
|
+
};
|
|
57127
|
+
var MinePolyLinesSeriesModel = MinePolyLinesSeriesModel2;
|
|
57128
|
+
MinePolyLinesSeriesModel.type = "series.minePolyLines";
|
|
57129
|
+
MinePolyLinesSeriesModel.dependencies = ["grid", "polar"];
|
|
57130
|
+
MinePolyLinesSeriesModel.defaultOption = {
|
|
57131
|
+
coordinateSystem: "cartesian2d",
|
|
57132
|
+
z: 2,
|
|
57133
|
+
z2: 0,
|
|
57134
|
+
legendHoverLink: true,
|
|
57135
|
+
xAxisIndex: 0,
|
|
57136
|
+
yAxisIndex: 0,
|
|
57137
|
+
dimensions: ["x1", "x2", "y1", "y2"],
|
|
57138
|
+
encode: {
|
|
57139
|
+
x: ["x1", "x2"],
|
|
57140
|
+
y: ["y1", "y2"]
|
|
57141
|
+
},
|
|
57142
|
+
large: true,
|
|
57143
|
+
largeThreshold: 600,
|
|
57144
|
+
clip: true,
|
|
57145
|
+
statusLineInvisible: true,
|
|
57146
|
+
limit: 50
|
|
57147
|
+
};
|
|
57148
|
+
var MinePolyLinesSeries_default = MinePolyLinesSeriesModel;
|
|
57149
|
+
|
|
57150
|
+
// src/chart/minePolyLines/MinePolyLinesLayout.ts
|
|
57151
|
+
var MinePolyLinesLayout = {
|
|
57152
|
+
seriesType: "minePolyLines",
|
|
57153
|
+
plan: createRenderPlanner(),
|
|
57154
|
+
reset: function(seriesModel) {
|
|
57155
|
+
const coordSys = seriesModel.coordinateSystem;
|
|
57156
|
+
if (!coordSys) {
|
|
57157
|
+
if (true) {
|
|
57158
|
+
error("The lines series must have a coordinate system.");
|
|
57159
|
+
}
|
|
57160
|
+
return;
|
|
57161
|
+
}
|
|
57162
|
+
const data = seriesModel.getData();
|
|
57163
|
+
return {
|
|
57164
|
+
progress(params, minePolyLinesData) {
|
|
57165
|
+
const linesPointById = {};
|
|
57166
|
+
for (let i = params.start; i < params.end; i++) {
|
|
57167
|
+
const itemModel = data.getItemModel(i);
|
|
57168
|
+
const {width, color: color2, lineStyle, fill = "none", closed = false, curved = false} = itemModel.get("itemStyle");
|
|
57169
|
+
if (!color2) {
|
|
57170
|
+
continue;
|
|
57171
|
+
}
|
|
57172
|
+
const key = `${color2}:${width}:${lineStyle}:${fill}:${closed}:${curved}`;
|
|
57173
|
+
const linePoints = linesPointById[key] || [];
|
|
57174
|
+
const points4 = itemModel.get("points");
|
|
57175
|
+
const itemPoints = [];
|
|
57176
|
+
each(points4, function(item) {
|
|
57177
|
+
const point = coordSys.dataToPoint(item);
|
|
57178
|
+
itemPoints.push(point);
|
|
57179
|
+
});
|
|
57180
|
+
linePoints.push(itemPoints);
|
|
57181
|
+
linesPointById[key] = linePoints;
|
|
57182
|
+
}
|
|
57183
|
+
data.setLayout({
|
|
57184
|
+
linesPointById
|
|
57185
|
+
});
|
|
57186
|
+
}
|
|
57187
|
+
};
|
|
57188
|
+
}
|
|
57189
|
+
};
|
|
57190
|
+
var MinePolyLinesLayout_default = MinePolyLinesLayout;
|
|
57191
|
+
|
|
57192
|
+
// src/chart/minePolyLines/install.ts
|
|
57193
|
+
function install27(registers) {
|
|
57194
|
+
registers.registerChartView(MinePolyLinesView_default);
|
|
57195
|
+
registers.registerSeriesModel(MinePolyLinesSeries_default);
|
|
57196
|
+
registers.registerLayout(MinePolyLinesLayout_default);
|
|
57197
|
+
}
|
|
57198
|
+
|
|
56968
57199
|
// src/chart/lineFills/LineFillsPath.ts
|
|
56969
57200
|
var LineFillsPathShape = class {
|
|
56970
57201
|
};
|
|
@@ -57192,7 +57423,7 @@ var LineFillsLayout = {
|
|
|
57192
57423
|
var LineFillsLayout_default = LineFillsLayout;
|
|
57193
57424
|
|
|
57194
57425
|
// src/chart/lineFills/install.ts
|
|
57195
|
-
function
|
|
57426
|
+
function install28(registers) {
|
|
57196
57427
|
registers.registerChartView(LineFillsView_default);
|
|
57197
57428
|
registers.registerSeriesModel(LineFillsSeries_default);
|
|
57198
57429
|
registers.registerLayout(LineFillsLayout_default);
|
|
@@ -57226,7 +57457,7 @@ var BoxesPath = class extends Path_default {
|
|
|
57226
57457
|
var BoxesPath_default = BoxesPath;
|
|
57227
57458
|
|
|
57228
57459
|
// src/chart/boxes/BoxesView.ts
|
|
57229
|
-
function
|
|
57460
|
+
function getLineDashByLineStyle3(lineStyle) {
|
|
57230
57461
|
if (lineStyle === "style_dashed") {
|
|
57231
57462
|
return [8, 8];
|
|
57232
57463
|
} else if (lineStyle === "style_dotted") {
|
|
@@ -57278,7 +57509,7 @@ var BoxesView2 = class extends Chart_default {
|
|
|
57278
57509
|
fill: fill || "none",
|
|
57279
57510
|
stroke: color2,
|
|
57280
57511
|
lineWidth: +width,
|
|
57281
|
-
lineDash:
|
|
57512
|
+
lineDash: getLineDashByLineStyle3(lineStyle)
|
|
57282
57513
|
},
|
|
57283
57514
|
z2
|
|
57284
57515
|
});
|
|
@@ -57563,7 +57794,7 @@ var BoxesLayout = {
|
|
|
57563
57794
|
var BoxesLayout_default = BoxesLayout;
|
|
57564
57795
|
|
|
57565
57796
|
// src/chart/boxes/install.ts
|
|
57566
|
-
function
|
|
57797
|
+
function install29(registers) {
|
|
57567
57798
|
registers.registerChartView(BoxesView_default);
|
|
57568
57799
|
registers.registerSeriesModel(BoxesSeries_default);
|
|
57569
57800
|
registers.registerLayout(BoxesLayout_default);
|
|
@@ -57799,7 +58030,7 @@ var CharPlotLayout = {
|
|
|
57799
58030
|
var CharPlotLayout_default = CharPlotLayout;
|
|
57800
58031
|
|
|
57801
58032
|
// src/chart/charPlot/install.ts
|
|
57802
|
-
function
|
|
58033
|
+
function install30(registers) {
|
|
57803
58034
|
registers.registerSeriesModel(CharPlotSeries_default);
|
|
57804
58035
|
registers.registerChartView(CharPlotView_default);
|
|
57805
58036
|
registers.registerLayout(CharPlotLayout_default);
|
|
@@ -57978,7 +58209,8 @@ CandlePlotSeriesModel.defaultOption = {
|
|
|
57978
58209
|
progressiveThreshold: 1e4,
|
|
57979
58210
|
progressiveChunkMode: "mod",
|
|
57980
58211
|
animationEasing: "linear",
|
|
57981
|
-
animationDuration: 300
|
|
58212
|
+
animationDuration: 300,
|
|
58213
|
+
ignoreParentColor: false
|
|
57982
58214
|
};
|
|
57983
58215
|
mixin(CandlePlotSeriesModel, WhiskerBoxCommonMixin, true);
|
|
57984
58216
|
var CandlePlotSeries_default = CandlePlotSeriesModel;
|
|
@@ -57991,14 +58223,14 @@ var positiveColorQuery2 = ["itemStyle", "color"];
|
|
|
57991
58223
|
var negativeColorQuery2 = ["itemStyle", "color0"];
|
|
57992
58224
|
var positiveWickColorQuery = ["itemStyle", "wickColor"];
|
|
57993
58225
|
var negativeWickColorQuery = ["itemStyle", "wickColor0"];
|
|
57994
|
-
function getColor(sign, model) {
|
|
57995
|
-
return model.get(sign > 0 ? positiveColorQuery2 : negativeColorQuery2);
|
|
58226
|
+
function getColor(sign, model, ignoreParentColor) {
|
|
58227
|
+
return model.get(sign > 0 ? positiveColorQuery2 : negativeColorQuery2, ignoreParentColor);
|
|
57996
58228
|
}
|
|
57997
|
-
function getBorderColor(sign, model) {
|
|
57998
|
-
return model.get(sign === 0 ? dojiBorderColorQuery2 : sign > 0 ? positiveBorderColorQuery2 : negativeBorderColorQuery2);
|
|
58229
|
+
function getBorderColor(sign, model, ignoreParentColor) {
|
|
58230
|
+
return model.get(sign === 0 ? dojiBorderColorQuery2 : sign > 0 ? positiveBorderColorQuery2 : negativeBorderColorQuery2, ignoreParentColor);
|
|
57999
58231
|
}
|
|
58000
|
-
function getWickColor(sign, model) {
|
|
58001
|
-
return model.get(sign > 0 ? positiveWickColorQuery : negativeWickColorQuery);
|
|
58232
|
+
function getWickColor(sign, model, ignoreParentColor) {
|
|
58233
|
+
return model.get(sign > 0 ? positiveWickColorQuery : negativeWickColorQuery, ignoreParentColor);
|
|
58002
58234
|
}
|
|
58003
58235
|
var candlePlotLayout = {
|
|
58004
58236
|
seriesType: "candlePlot",
|
|
@@ -58021,6 +58253,7 @@ var candlePlotLayout = {
|
|
|
58021
58253
|
return;
|
|
58022
58254
|
}
|
|
58023
58255
|
const showLast = seriesModel.get("showLast");
|
|
58256
|
+
const ignoreParentColor = seriesModel.get("ignoreParentColor");
|
|
58024
58257
|
return {
|
|
58025
58258
|
progress: normalProgress
|
|
58026
58259
|
};
|
|
@@ -58047,12 +58280,13 @@ var candlePlotLayout = {
|
|
|
58047
58280
|
const itemModel = candleData.getItemModel(dataIndex);
|
|
58048
58281
|
const hasDojiColor = !!itemModel.get(["itemStyle", "borderColorDoji"]);
|
|
58049
58282
|
const sign = getSign2(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor);
|
|
58050
|
-
const key = `${getColor(sign, itemModel
|
|
58283
|
+
const key = `${getColor(sign, itemModel, ignoreParentColor) || "none"}:
|
|
58284
|
+
${getBorderColor(sign, itemModel, ignoreParentColor) || "none"}`;
|
|
58051
58285
|
const bodyPoints = bodyPointsByColor[key] || [];
|
|
58052
58286
|
addBodyEnd(bodyPoints, ocHighPoint, 0);
|
|
58053
58287
|
addBodyEnd(bodyPoints, ocLowPoint, 1);
|
|
58054
58288
|
bodyPointsByColor[key] = bodyPoints;
|
|
58055
|
-
const wickKey = getWickColor(sign, itemModel);
|
|
58289
|
+
const wickKey = getWickColor(sign, itemModel, ignoreParentColor);
|
|
58056
58290
|
if (wickKey) {
|
|
58057
58291
|
const wickPoint = wickPointsByColor[wickKey] || [];
|
|
58058
58292
|
wickPoint.push(subPixelOptimizePoint(highestPoint), subPixelOptimizePoint(ocHighPoint), subPixelOptimizePoint(lowestPoint), subPixelOptimizePoint(ocLowPoint));
|
|
@@ -58117,7 +58351,7 @@ function calculateCandleWidth2(seriesModel, data) {
|
|
|
58117
58351
|
var candlePlotLayout_default = candlePlotLayout;
|
|
58118
58352
|
|
|
58119
58353
|
// src/chart/candlePlot/install.ts
|
|
58120
|
-
function
|
|
58354
|
+
function install31(registers) {
|
|
58121
58355
|
registers.registerChartView(CandlePlotView_default);
|
|
58122
58356
|
registers.registerSeriesModel(CandlePlotSeries_default);
|
|
58123
58357
|
registers.registerLayout(candlePlotLayout_default);
|
|
@@ -58257,7 +58491,8 @@ BarPlotSeriesModel.defaultOption = {
|
|
|
58257
58491
|
progressiveThreshold: 1e4,
|
|
58258
58492
|
progressiveChunkMode: "mod",
|
|
58259
58493
|
animationEasing: "linear",
|
|
58260
|
-
animationDuration: 300
|
|
58494
|
+
animationDuration: 300,
|
|
58495
|
+
ignoreParentColor: false
|
|
58261
58496
|
};
|
|
58262
58497
|
mixin(BarPlotSeriesModel, WhiskerBoxCommonMixin, true);
|
|
58263
58498
|
var BarPlotSeries_default = BarPlotSeriesModel;
|
|
@@ -58358,7 +58593,7 @@ function calculateCandleWidth3(seriesModel, data) {
|
|
|
58358
58593
|
var barPlotLayout_default = barPlotLayout;
|
|
58359
58594
|
|
|
58360
58595
|
// src/chart/barPlot/install.ts
|
|
58361
|
-
function
|
|
58596
|
+
function install32(registers) {
|
|
58362
58597
|
registers.registerChartView(BarPlotView_default);
|
|
58363
58598
|
registers.registerSeriesModel(BarPlotSeries_default);
|
|
58364
58599
|
registers.registerLayout(barPlotLayout_default);
|
|
@@ -58571,7 +58806,7 @@ var ArrowsPlotLayout = {
|
|
|
58571
58806
|
var ArrowsPlotLayout_default = ArrowsPlotLayout;
|
|
58572
58807
|
|
|
58573
58808
|
// src/chart/arrowsPlot/install.ts
|
|
58574
|
-
function
|
|
58809
|
+
function install33(registers) {
|
|
58575
58810
|
registers.registerSeriesModel(ArrowsPlotSeries_default);
|
|
58576
58811
|
registers.registerChartView(ArrowPlotView_default);
|
|
58577
58812
|
registers.registerLayout(ArrowsPlotLayout_default);
|
|
@@ -59215,7 +59450,7 @@ var labelsLayout = {
|
|
|
59215
59450
|
var labelsLayout_default = labelsLayout;
|
|
59216
59451
|
|
|
59217
59452
|
// src/chart/labels/install.ts
|
|
59218
|
-
function
|
|
59453
|
+
function install34(registers) {
|
|
59219
59454
|
registers.registerSeriesModel(LabelsSeries_default);
|
|
59220
59455
|
registers.registerChartView(LabelsView_default);
|
|
59221
59456
|
registers.registerLayout(labelsLayout_default);
|
|
@@ -59350,7 +59585,7 @@ var hLinesLayout = {
|
|
|
59350
59585
|
var hLinesLayout_default = hLinesLayout;
|
|
59351
59586
|
|
|
59352
59587
|
// src/chart/hlines/install.ts
|
|
59353
|
-
function
|
|
59588
|
+
function install35(registers) {
|
|
59354
59589
|
registers.registerChartView(HLinesView_default);
|
|
59355
59590
|
registers.registerSeriesModel(HLinesSeries_default);
|
|
59356
59591
|
registers.registerLayout(hLinesLayout_default);
|
|
@@ -59634,7 +59869,7 @@ var fillsLayout = {
|
|
|
59634
59869
|
var fillsLayout_default = fillsLayout;
|
|
59635
59870
|
|
|
59636
59871
|
// src/chart/fills/install.ts
|
|
59637
|
-
function
|
|
59872
|
+
function install36(registers) {
|
|
59638
59873
|
registers.registerChartView(FillsView_default);
|
|
59639
59874
|
registers.registerSeriesModel(FillsSeries_default);
|
|
59640
59875
|
registers.registerLayout(fillsLayout_default);
|
|
@@ -59682,6 +59917,8 @@ var BgColorShape = class {
|
|
|
59682
59917
|
constructor() {
|
|
59683
59918
|
this.points = [];
|
|
59684
59919
|
this.isLine = false;
|
|
59920
|
+
this.width = 2;
|
|
59921
|
+
this.height = 2;
|
|
59685
59922
|
}
|
|
59686
59923
|
};
|
|
59687
59924
|
var BgColorPath = class extends Path_default {
|
|
@@ -59699,18 +59936,18 @@ var BgColorPath = class extends Path_default {
|
|
|
59699
59936
|
return new BgColorShape();
|
|
59700
59937
|
}
|
|
59701
59938
|
buildPath(ctx2, shape) {
|
|
59702
|
-
const {points: points4, isLine} = shape;
|
|
59939
|
+
const {points: points4, isLine, width, height} = shape;
|
|
59703
59940
|
if (isLine) {
|
|
59704
59941
|
for (let index = 0; index < points4.length; index++) {
|
|
59705
59942
|
const point = points4[index];
|
|
59706
|
-
const {x, y
|
|
59943
|
+
const {x, y} = point;
|
|
59707
59944
|
ctx2.moveTo(x, y);
|
|
59708
59945
|
ctx2.lineTo(x, y + height);
|
|
59709
59946
|
}
|
|
59710
59947
|
} else {
|
|
59711
59948
|
for (let index = 0; index < points4.length; index++) {
|
|
59712
59949
|
const point = points4[index];
|
|
59713
|
-
const {x, y
|
|
59950
|
+
const {x, y} = point;
|
|
59714
59951
|
ctx2.rect(x, y, width, height);
|
|
59715
59952
|
}
|
|
59716
59953
|
}
|
|
@@ -59727,6 +59964,7 @@ var BgColorView2 = class extends Chart_default {
|
|
|
59727
59964
|
render(seriesModel, ecModel, api2) {
|
|
59728
59965
|
const data = seriesModel.getData();
|
|
59729
59966
|
const rectsByColor = data.getLayout("rectsByColor");
|
|
59967
|
+
const height = data.getLayout("height");
|
|
59730
59968
|
if (!this._bgColorGroup) {
|
|
59731
59969
|
this._bgColorGroup = new Group_default();
|
|
59732
59970
|
this.group.add(this._bgColorGroup);
|
|
@@ -59734,13 +59972,15 @@ var BgColorView2 = class extends Chart_default {
|
|
|
59734
59972
|
this._bgColorGroup.removeAll();
|
|
59735
59973
|
}
|
|
59736
59974
|
const bgColorGroup = this._bgColorGroup;
|
|
59737
|
-
const width = Math.ceil(seriesModel.coordinateSystem.getBaseAxis().scale.barSpace);
|
|
59738
|
-
const isLine = width <=
|
|
59975
|
+
const width = Math.ceil(seriesModel.coordinateSystem.getBaseAxis().scale.barSpace) || 5;
|
|
59976
|
+
const isLine = width <= 2;
|
|
59739
59977
|
each(rectsByColor, function(rects, color2) {
|
|
59740
59978
|
const el = new BgColorPath_default({
|
|
59741
59979
|
shape: {
|
|
59742
59980
|
points: rects,
|
|
59743
|
-
isLine
|
|
59981
|
+
isLine,
|
|
59982
|
+
width,
|
|
59983
|
+
height
|
|
59744
59984
|
},
|
|
59745
59985
|
style: {
|
|
59746
59986
|
fill: isLine ? null : color2,
|
|
@@ -59824,13 +60064,14 @@ var bgColorLayout = {
|
|
|
59824
60064
|
const rects = rectsByColor[color2] || [];
|
|
59825
60065
|
rects.push({
|
|
59826
60066
|
x: Math.floor(xPx - leftOffset),
|
|
59827
|
-
y: startY
|
|
59828
|
-
width,
|
|
59829
|
-
height
|
|
60067
|
+
y: startY
|
|
59830
60068
|
});
|
|
59831
60069
|
rectsByColor[color2] = rects;
|
|
59832
60070
|
}
|
|
59833
|
-
bgColorData.setLayout(
|
|
60071
|
+
bgColorData.setLayout({
|
|
60072
|
+
rectsByColor,
|
|
60073
|
+
height
|
|
60074
|
+
});
|
|
59834
60075
|
}
|
|
59835
60076
|
};
|
|
59836
60077
|
}
|
|
@@ -59838,7 +60079,7 @@ var bgColorLayout = {
|
|
|
59838
60079
|
var BgColorLayout_default = bgColorLayout;
|
|
59839
60080
|
|
|
59840
60081
|
// src/chart/bgColor/install.ts
|
|
59841
|
-
function
|
|
60082
|
+
function install37(registers) {
|
|
59842
60083
|
registers.registerChartView(BgColorView_default);
|
|
59843
60084
|
registers.registerSeriesModel(BgColorSeries_default);
|
|
59844
60085
|
registers.registerLayout(BgColorLayout_default);
|
|
@@ -60236,7 +60477,7 @@ HeatmapSeriesModel.defaultOption = {
|
|
|
60236
60477
|
var HeatmapSeries_default = HeatmapSeriesModel;
|
|
60237
60478
|
|
|
60238
60479
|
// src/chart/heatmap/install.ts
|
|
60239
|
-
function
|
|
60480
|
+
function install38(registers) {
|
|
60240
60481
|
registers.registerChartView(HeatmapView_default);
|
|
60241
60482
|
registers.registerSeriesModel(HeatmapSeries_default);
|
|
60242
60483
|
}
|
|
@@ -60799,7 +61040,7 @@ PictorialBarSeriesModel.defaultOption = inheritDefaultOption(BaseBarSeries_defau
|
|
|
60799
61040
|
var PictorialBarSeries_default = PictorialBarSeriesModel;
|
|
60800
61041
|
|
|
60801
61042
|
// src/chart/bar/installPictorialBar.ts
|
|
60802
|
-
function
|
|
61043
|
+
function install39(registers) {
|
|
60803
61044
|
registers.registerChartView(PictorialBarView_default);
|
|
60804
61045
|
registers.registerSeriesModel(PictorialBarSeries_default);
|
|
60805
61046
|
registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, curry(layout2, "pictorialBar"));
|
|
@@ -61200,7 +61441,7 @@ function computeBaseline(data) {
|
|
|
61200
61441
|
}
|
|
61201
61442
|
|
|
61202
61443
|
// src/chart/themeRiver/install.ts
|
|
61203
|
-
function
|
|
61444
|
+
function install40(registers) {
|
|
61204
61445
|
registers.registerChartView(ThemeRiverView_default);
|
|
61205
61446
|
registers.registerSeriesModel(ThemeRiverSeries_default);
|
|
61206
61447
|
registers.registerLayout(themeRiverLayout);
|
|
@@ -61838,7 +62079,7 @@ function sunburstVisual(ecModel) {
|
|
|
61838
62079
|
}
|
|
61839
62080
|
|
|
61840
62081
|
// src/chart/sunburst/install.ts
|
|
61841
|
-
function
|
|
62082
|
+
function install41(registers) {
|
|
61842
62083
|
registers.registerChartView(SunburstView_default);
|
|
61843
62084
|
registers.registerSeriesModel(SunburstSeries_default);
|
|
61844
62085
|
registers.registerLayout(curry(sunburstLayout, "sunburst"));
|
|
@@ -63286,7 +63527,7 @@ function hasOwnPathData(shape) {
|
|
|
63286
63527
|
}
|
|
63287
63528
|
|
|
63288
63529
|
// src/chart/custom/install.ts
|
|
63289
|
-
function
|
|
63530
|
+
function install42(registers) {
|
|
63290
63531
|
registers.registerChartView(CustomView_default);
|
|
63291
63532
|
registers.registerSeriesModel(CustomSeries_default);
|
|
63292
63533
|
}
|
|
@@ -64516,7 +64757,7 @@ function illegalPoint(point) {
|
|
|
64516
64757
|
}
|
|
64517
64758
|
|
|
64518
64759
|
// src/component/axisPointer/install.ts
|
|
64519
|
-
function
|
|
64760
|
+
function install43(registers) {
|
|
64520
64761
|
AxisView_default.registerAxisPointerClass("CartesianAxisPointer", CartesianAxisPointer_default);
|
|
64521
64762
|
registers.registerComponentModel(AxisPointerModel_default);
|
|
64522
64763
|
registers.registerComponentView(AxisPointerView_default);
|
|
@@ -64545,9 +64786,9 @@ function install42(registers) {
|
|
|
64545
64786
|
}
|
|
64546
64787
|
|
|
64547
64788
|
// src/component/grid/install.ts
|
|
64548
|
-
function
|
|
64789
|
+
function install44(registers) {
|
|
64549
64790
|
use(install6);
|
|
64550
|
-
use(
|
|
64791
|
+
use(install43);
|
|
64551
64792
|
}
|
|
64552
64793
|
|
|
64553
64794
|
// src/component/axisPointer/PolarAxisPointer.ts
|
|
@@ -65601,8 +65842,8 @@ var PolarView2 = class extends Component_default2 {
|
|
|
65601
65842
|
};
|
|
65602
65843
|
var PolarView = PolarView2;
|
|
65603
65844
|
PolarView.type = "polar";
|
|
65604
|
-
function
|
|
65605
|
-
use(
|
|
65845
|
+
function install45(registers) {
|
|
65846
|
+
use(install43);
|
|
65606
65847
|
AxisView_default.registerAxisPointerClass("PolarAxisPointer", PolarAxisPointer_default);
|
|
65607
65848
|
registers.registerCoordinateSystem("polar", polarCreator_default);
|
|
65608
65849
|
registers.registerComponentModel(PolarModel_default);
|
|
@@ -66065,8 +66306,8 @@ var SingleView2 = class extends Component_default2 {
|
|
|
66065
66306
|
};
|
|
66066
66307
|
var SingleView = SingleView2;
|
|
66067
66308
|
SingleView.type = "single";
|
|
66068
|
-
function
|
|
66069
|
-
use(
|
|
66309
|
+
function install46(registers) {
|
|
66310
|
+
use(install43);
|
|
66070
66311
|
AxisView_default.registerAxisPointerClass("SingleAxisPointer", SingleAxisPointer_default);
|
|
66071
66312
|
registers.registerComponentView(SingleView);
|
|
66072
66313
|
registers.registerComponentView(SingleAxisView_default);
|
|
@@ -66756,7 +66997,7 @@ function getCoordSys5(finder) {
|
|
|
66756
66997
|
var Calendar_default = Calendar;
|
|
66757
66998
|
|
|
66758
66999
|
// src/component/calendar/install.ts
|
|
66759
|
-
function
|
|
67000
|
+
function install47(registers) {
|
|
66760
67001
|
registers.registerComponentModel(CalendarModel_default);
|
|
66761
67002
|
registers.registerComponentView(CalendarView_default);
|
|
66762
67003
|
registers.registerCoordinateSystem("calendar", Calendar_default);
|
|
@@ -67148,7 +67389,7 @@ function setEventData(el, graphicModel, elOption) {
|
|
|
67148
67389
|
}
|
|
67149
67390
|
|
|
67150
67391
|
// src/component/graphic/install.ts
|
|
67151
|
-
function
|
|
67392
|
+
function install48(registers) {
|
|
67152
67393
|
registers.registerComponentModel(GraphicComponentModel);
|
|
67153
67394
|
registers.registerComponentView(GraphicComponentView);
|
|
67154
67395
|
registers.registerPreprocessor(function(option) {
|
|
@@ -68064,7 +68305,7 @@ function installCommon(registers) {
|
|
|
68064
68305
|
}
|
|
68065
68306
|
|
|
68066
68307
|
// src/component/dataZoom/installDataZoomSelect.ts
|
|
68067
|
-
function
|
|
68308
|
+
function install49(registers) {
|
|
68068
68309
|
registers.registerComponentModel(SelectZoomModel_default);
|
|
68069
68310
|
registers.registerComponentView(SelectZoomView_default);
|
|
68070
68311
|
installCommon(registers);
|
|
@@ -69464,7 +69705,7 @@ registerInternalOptionCreator("dataZoom", function(ecModel) {
|
|
|
69464
69705
|
var DataZoom_default = DataZoomFeature;
|
|
69465
69706
|
|
|
69466
69707
|
// src/component/toolbox/install.ts
|
|
69467
|
-
function
|
|
69708
|
+
function install50(registers) {
|
|
69468
69709
|
registers.registerComponentModel(ToolboxModel_default);
|
|
69469
69710
|
registers.registerComponentView(ToolboxView_default);
|
|
69470
69711
|
registerFeature("saveAsImage", SaveAsImage_default);
|
|
@@ -69472,7 +69713,7 @@ function install49(registers) {
|
|
|
69472
69713
|
registerFeature("dataView", DataView_default);
|
|
69473
69714
|
registerFeature("dataZoom", DataZoom_default);
|
|
69474
69715
|
registerFeature("restore", Restore_default);
|
|
69475
|
-
use(
|
|
69716
|
+
use(install49);
|
|
69476
69717
|
}
|
|
69477
69718
|
|
|
69478
69719
|
// src/component/tooltip/TooltipModel.ts
|
|
@@ -70640,8 +70881,8 @@ function findComponentReference(payload, ecModel, api2) {
|
|
|
70640
70881
|
var TooltipView_default = TooltipView;
|
|
70641
70882
|
|
|
70642
70883
|
// src/component/tooltip/install.ts
|
|
70643
|
-
function
|
|
70644
|
-
use(
|
|
70884
|
+
function install51(registers) {
|
|
70885
|
+
use(install43);
|
|
70645
70886
|
registers.registerComponentModel(TooltipModel_default);
|
|
70646
70887
|
registers.registerComponentView(TooltipView_default);
|
|
70647
70888
|
registers.registerAction({
|
|
@@ -70688,12 +70929,12 @@ function brushPreprocessor(option, isNew) {
|
|
|
70688
70929
|
}
|
|
70689
70930
|
}
|
|
70690
70931
|
function removeDuplicate(arr) {
|
|
70691
|
-
const
|
|
70932
|
+
const map7 = {};
|
|
70692
70933
|
each(arr, function(val) {
|
|
70693
|
-
|
|
70934
|
+
map7[val] = 1;
|
|
70694
70935
|
});
|
|
70695
70936
|
arr.length = 0;
|
|
70696
|
-
each(
|
|
70937
|
+
each(map7, function(flag, val) {
|
|
70697
70938
|
arr.push(val);
|
|
70698
70939
|
});
|
|
70699
70940
|
}
|
|
@@ -71257,7 +71498,7 @@ var BrushFeature = class extends ToolboxFeature {
|
|
|
71257
71498
|
var Brush_default = BrushFeature;
|
|
71258
71499
|
|
|
71259
71500
|
// src/component/brush/install.ts
|
|
71260
|
-
function
|
|
71501
|
+
function install52(registers) {
|
|
71261
71502
|
registers.registerComponentView(BrushView_default);
|
|
71262
71503
|
registers.registerComponentModel(BrushModel_default);
|
|
71263
71504
|
registers.registerPreprocessor(brushPreprocessor);
|
|
@@ -71404,7 +71645,7 @@ var TitleView2 = class extends Component_default2 {
|
|
|
71404
71645
|
};
|
|
71405
71646
|
var TitleView = TitleView2;
|
|
71406
71647
|
TitleView.type = "title";
|
|
71407
|
-
function
|
|
71648
|
+
function install53(registers) {
|
|
71408
71649
|
registers.registerComponentModel(TitleModel);
|
|
71409
71650
|
registers.registerComponentView(TitleView);
|
|
71410
71651
|
}
|
|
@@ -71769,7 +72010,7 @@ TableView.type = "table";
|
|
|
71769
72010
|
var TableView_default = TableView;
|
|
71770
72011
|
|
|
71771
72012
|
// src/component/table/install.ts
|
|
71772
|
-
function
|
|
72013
|
+
function install54(registers) {
|
|
71773
72014
|
registers.registerComponentModel(TableModel_default);
|
|
71774
72015
|
registers.registerComponentView(TableView_default);
|
|
71775
72016
|
}
|
|
@@ -71842,7 +72083,7 @@ var BgRectView2 = class extends Component_default2 {
|
|
|
71842
72083
|
};
|
|
71843
72084
|
var BgRectView = BgRectView2;
|
|
71844
72085
|
BgRectView.type = "bgRect";
|
|
71845
|
-
function
|
|
72086
|
+
function install55(registers) {
|
|
71846
72087
|
registers.registerComponentModel(BgRectModel);
|
|
71847
72088
|
registers.registerComponentView(BgRectView);
|
|
71848
72089
|
}
|
|
@@ -71903,7 +72144,7 @@ var LogoView2 = class extends Component_default2 {
|
|
|
71903
72144
|
};
|
|
71904
72145
|
var LogoView = LogoView2;
|
|
71905
72146
|
LogoView.type = "logo";
|
|
71906
|
-
function
|
|
72147
|
+
function install56(registers) {
|
|
71907
72148
|
registers.registerComponentModel(LogoModel);
|
|
71908
72149
|
registers.registerComponentView(LogoView);
|
|
71909
72150
|
}
|
|
@@ -72757,7 +72998,7 @@ function has(obj, attr) {
|
|
|
72757
72998
|
}
|
|
72758
72999
|
|
|
72759
73000
|
// src/component/timeline/install.ts
|
|
72760
|
-
function
|
|
73001
|
+
function install57(registers) {
|
|
72761
73002
|
registers.registerComponentModel(SliderTimelineModel_default);
|
|
72762
73003
|
registers.registerComponentView(SliderTimelineView_default);
|
|
72763
73004
|
registers.registerSubTypeDefaulter("timeline", function() {
|
|
@@ -73198,7 +73439,7 @@ function createData(coordSys, seriesModel, mpModel) {
|
|
|
73198
73439
|
var MarkPointView_default = MarkPointView;
|
|
73199
73440
|
|
|
73200
73441
|
// src/component/marker/installMarkPoint.ts
|
|
73201
|
-
function
|
|
73442
|
+
function install58(registers) {
|
|
73202
73443
|
registers.registerComponentModel(MarkPointModel_default);
|
|
73203
73444
|
registers.registerComponentView(MarkPointView_default);
|
|
73204
73445
|
registers.registerPreprocessor(function(opt) {
|
|
@@ -73516,7 +73757,7 @@ function createList2(coordSys, seriesModel, mlModel) {
|
|
|
73516
73757
|
var MarkLineView_default = MarkLineView;
|
|
73517
73758
|
|
|
73518
73759
|
// src/component/marker/installMarkLine.ts
|
|
73519
|
-
function
|
|
73760
|
+
function install59(registers) {
|
|
73520
73761
|
registers.registerComponentModel(MarkLineModel_default);
|
|
73521
73762
|
registers.registerComponentView(MarkLineView_default);
|
|
73522
73763
|
registers.registerPreprocessor(function(opt) {
|
|
@@ -73830,7 +74071,7 @@ function createList3(coordSys, seriesModel, maModel) {
|
|
|
73830
74071
|
var MarkAreaView_default = MarkAreaView;
|
|
73831
74072
|
|
|
73832
74073
|
// src/component/marker/installMarkArea.ts
|
|
73833
|
-
function
|
|
74074
|
+
function install60(registers) {
|
|
73834
74075
|
registers.registerComponentModel(MarkAreaModel_default);
|
|
73835
74076
|
registers.registerComponentView(MarkAreaView_default);
|
|
73836
74077
|
registers.registerPreprocessor(function(opt) {
|
|
@@ -74480,7 +74721,7 @@ function updateLabel({x, y, labelData, markerModel, gridRect, position: position
|
|
|
74480
74721
|
var MarkLabelView_default = MarkLabelView;
|
|
74481
74722
|
|
|
74482
74723
|
// src/component/marker/installMarkLabel.ts
|
|
74483
|
-
function
|
|
74724
|
+
function install61(registers) {
|
|
74484
74725
|
registers.registerComponentModel(MarkLabelModal_default);
|
|
74485
74726
|
registers.registerComponentView(MarkLabelView_default);
|
|
74486
74727
|
registers.registerPreprocessor(function(opt) {
|
|
@@ -75162,7 +75403,7 @@ function installLegendAction(registers) {
|
|
|
75162
75403
|
}
|
|
75163
75404
|
|
|
75164
75405
|
// src/component/legend/installLegendPlain.ts
|
|
75165
|
-
function
|
|
75406
|
+
function install62(registers) {
|
|
75166
75407
|
registers.registerComponentModel(LegendModel_default);
|
|
75167
75408
|
registers.registerComponentView(LegendView_default);
|
|
75168
75409
|
registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);
|
|
@@ -75492,17 +75733,17 @@ function installScrollableLegendAction(registers) {
|
|
|
75492
75733
|
}
|
|
75493
75734
|
|
|
75494
75735
|
// src/component/legend/installLegendScroll.ts
|
|
75495
|
-
function
|
|
75496
|
-
use(
|
|
75736
|
+
function install63(registers) {
|
|
75737
|
+
use(install62);
|
|
75497
75738
|
registers.registerComponentModel(ScrollableLegendModel_default);
|
|
75498
75739
|
registers.registerComponentView(ScrollableLegendView_default);
|
|
75499
75740
|
installScrollableLegendAction(registers);
|
|
75500
75741
|
}
|
|
75501
75742
|
|
|
75502
75743
|
// src/component/legend/install.ts
|
|
75503
|
-
function
|
|
75504
|
-
use(install61);
|
|
75744
|
+
function install64(registers) {
|
|
75505
75745
|
use(install62);
|
|
75746
|
+
use(install63);
|
|
75506
75747
|
}
|
|
75507
75748
|
|
|
75508
75749
|
// src/component/dataZoom/InsideZoomModel.ts
|
|
@@ -75931,7 +76172,7 @@ var getDirectionInfo = {
|
|
|
75931
76172
|
var InsideZoomView_default = InsideZoomView;
|
|
75932
76173
|
|
|
75933
76174
|
// src/component/dataZoom/installDataZoomInside.ts
|
|
75934
|
-
function
|
|
76175
|
+
function install65(registers) {
|
|
75935
76176
|
installCommon(registers);
|
|
75936
76177
|
registers.registerComponentModel(InsideZoomModel_default);
|
|
75937
76178
|
registers.registerComponentView(InsideZoomView_default);
|
|
@@ -76678,8 +76919,8 @@ var SliderZoomView2 = class extends DataZoomView_default {
|
|
|
76678
76919
|
var SliderZoomView = SliderZoomView2;
|
|
76679
76920
|
SliderZoomView.type = "dataZoom.slider";
|
|
76680
76921
|
function getOtherDim(thisDim) {
|
|
76681
|
-
const
|
|
76682
|
-
return
|
|
76922
|
+
const map7 = {x: "y", y: "x", radius: "angle", angle: "radius"};
|
|
76923
|
+
return map7[thisDim];
|
|
76683
76924
|
}
|
|
76684
76925
|
function getCursor(orient) {
|
|
76685
76926
|
return orient === "vertical" ? "ns-resize" : "ew-resize";
|
|
@@ -76687,16 +76928,16 @@ function getCursor(orient) {
|
|
|
76687
76928
|
var SliderZoomView_default = SliderZoomView;
|
|
76688
76929
|
|
|
76689
76930
|
// src/component/dataZoom/installDataZoomSlider.ts
|
|
76690
|
-
function
|
|
76931
|
+
function install66(registers) {
|
|
76691
76932
|
registers.registerComponentModel(SliderZoomModel_default);
|
|
76692
76933
|
registers.registerComponentView(SliderZoomView_default);
|
|
76693
76934
|
installCommon(registers);
|
|
76694
76935
|
}
|
|
76695
76936
|
|
|
76696
76937
|
// src/component/dataZoom/install.ts
|
|
76697
|
-
function
|
|
76698
|
-
use(install64);
|
|
76938
|
+
function install67(registers) {
|
|
76699
76939
|
use(install65);
|
|
76940
|
+
use(install66);
|
|
76700
76941
|
}
|
|
76701
76942
|
|
|
76702
76943
|
// src/visual/visualDefault.ts
|
|
@@ -77961,7 +78202,7 @@ function installCommon2(registers) {
|
|
|
77961
78202
|
}
|
|
77962
78203
|
|
|
77963
78204
|
// src/component/visualMap/installVisualMapContinuous.ts
|
|
77964
|
-
function
|
|
78205
|
+
function install68(registers) {
|
|
77965
78206
|
registers.registerComponentModel(ContinuousModel_default);
|
|
77966
78207
|
registers.registerComponentView(ContinuousView_default);
|
|
77967
78208
|
installCommon2(registers);
|
|
@@ -78401,16 +78642,16 @@ PiecewiseVisualMapView.type = "visualMap.piecewise";
|
|
|
78401
78642
|
var PiecewiseView_default = PiecewiseVisualMapView;
|
|
78402
78643
|
|
|
78403
78644
|
// src/component/visualMap/installVisualMapPiecewise.ts
|
|
78404
|
-
function
|
|
78645
|
+
function install69(registers) {
|
|
78405
78646
|
registers.registerComponentModel(PiecewiseModel_default);
|
|
78406
78647
|
registers.registerComponentView(PiecewiseView_default);
|
|
78407
78648
|
installCommon2(registers);
|
|
78408
78649
|
}
|
|
78409
78650
|
|
|
78410
78651
|
// src/component/visualMap/install.ts
|
|
78411
|
-
function
|
|
78412
|
-
use(install67);
|
|
78652
|
+
function install70(registers) {
|
|
78413
78653
|
use(install68);
|
|
78654
|
+
use(install69);
|
|
78414
78655
|
}
|
|
78415
78656
|
|
|
78416
78657
|
// src/visual/aria.ts
|
|
@@ -78606,7 +78847,7 @@ function ariaPreprocessor(option) {
|
|
|
78606
78847
|
}
|
|
78607
78848
|
|
|
78608
78849
|
// src/component/aria/install.ts
|
|
78609
|
-
function
|
|
78850
|
+
function install71(registers) {
|
|
78610
78851
|
registers.registerPreprocessor(ariaPreprocessor);
|
|
78611
78852
|
registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, ariaVisual);
|
|
78612
78853
|
}
|
|
@@ -78944,7 +79185,7 @@ var sortTransform = {
|
|
|
78944
79185
|
};
|
|
78945
79186
|
|
|
78946
79187
|
// src/component/transform/install.ts
|
|
78947
|
-
function
|
|
79188
|
+
function install72(registers) {
|
|
78948
79189
|
registers.registerTransform(filterTransform);
|
|
78949
79190
|
registers.registerTransform(sortTransform);
|
|
78950
79191
|
}
|
|
@@ -78982,7 +79223,7 @@ var DatasetView = class extends Component_default2 {
|
|
|
78982
79223
|
}
|
|
78983
79224
|
};
|
|
78984
79225
|
DatasetView.type = "dataset";
|
|
78985
|
-
function
|
|
79226
|
+
function install73(registers) {
|
|
78986
79227
|
registers.registerComponentModel(DatasetModel);
|
|
78987
79228
|
registers.registerComponentView(DatasetView);
|
|
78988
79229
|
}
|
|
@@ -80700,7 +80941,7 @@ use([
|
|
|
80700
80941
|
install18,
|
|
80701
80942
|
install19,
|
|
80702
80943
|
install20,
|
|
80703
|
-
|
|
80944
|
+
install30,
|
|
80704
80945
|
install21,
|
|
80705
80946
|
install22,
|
|
80706
80947
|
install23,
|
|
@@ -80709,30 +80950,30 @@ use([
|
|
|
80709
80950
|
install26,
|
|
80710
80951
|
install27,
|
|
80711
80952
|
install28,
|
|
80953
|
+
install29,
|
|
80954
|
+
install34,
|
|
80712
80955
|
install33,
|
|
80713
|
-
install32,
|
|
80714
|
-
install30,
|
|
80715
80956
|
install31,
|
|
80716
|
-
|
|
80717
|
-
install36,
|
|
80957
|
+
install32,
|
|
80718
80958
|
install35,
|
|
80719
80959
|
install37,
|
|
80960
|
+
install36,
|
|
80720
80961
|
install38,
|
|
80721
80962
|
install39,
|
|
80722
80963
|
install40,
|
|
80723
|
-
install41
|
|
80964
|
+
install41,
|
|
80965
|
+
install42
|
|
80724
80966
|
]);
|
|
80725
|
-
use(install43);
|
|
80726
80967
|
use(install44);
|
|
80727
|
-
use(install10);
|
|
80728
80968
|
use(install45);
|
|
80729
|
-
use(
|
|
80969
|
+
use(install10);
|
|
80730
80970
|
use(install46);
|
|
80971
|
+
use(install17);
|
|
80731
80972
|
use(install47);
|
|
80732
|
-
use(
|
|
80973
|
+
use(install48);
|
|
80733
80974
|
use(install50);
|
|
80734
|
-
use(install42);
|
|
80735
80975
|
use(install51);
|
|
80976
|
+
use(install43);
|
|
80736
80977
|
use(install52);
|
|
80737
80978
|
use(install53);
|
|
80738
80979
|
use(install54);
|
|
@@ -80742,16 +80983,17 @@ use(install57);
|
|
|
80742
80983
|
use(install58);
|
|
80743
80984
|
use(install59);
|
|
80744
80985
|
use(install60);
|
|
80745
|
-
use(
|
|
80746
|
-
use(install66);
|
|
80986
|
+
use(install61);
|
|
80747
80987
|
use(install64);
|
|
80748
|
-
use(install65);
|
|
80749
|
-
use(install69);
|
|
80750
80988
|
use(install67);
|
|
80751
|
-
use(
|
|
80989
|
+
use(install65);
|
|
80990
|
+
use(install66);
|
|
80752
80991
|
use(install70);
|
|
80992
|
+
use(install68);
|
|
80993
|
+
use(install69);
|
|
80753
80994
|
use(install71);
|
|
80754
80995
|
use(install72);
|
|
80996
|
+
use(install73);
|
|
80755
80997
|
use(installUniversalTransition);
|
|
80756
80998
|
use(installLabelLayout);
|
|
80757
80999
|
|