Socket
Socket
Sign inDemoInstall

echarts

Package Overview
Dependencies
2
Maintainers
7
Versions
106
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.4.0 to 5.4.1-rc.1

build/nightly/post.js

4

dist/extension/bmap.js

@@ -272,5 +272,5 @@

zoom: 5,
// 2.0 http://lbsyun.baidu.com/custom/index.htm
// 2.0 https://lbsyun.baidu.com/custom/index.htm
mapStyle: {},
// 3.0 http://lbsyun.baidu.com/index.php?title=open/custom
// 3.0 https://lbsyun.baidu.com/index.php?title=open/custom
mapStyleV2: {},

@@ -277,0 +277,0 @@ // See https://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference.html#a0b1

@@ -51,6 +51,6 @@ /*

// 2.0 http://lbsyun.baidu.com/custom/index.htm
// 2.0 https://lbsyun.baidu.com/custom/index.htm
mapStyle: {},
// 3.0 http://lbsyun.baidu.com/index.php?title=open/custom
// 3.0 https://lbsyun.baidu.com/index.php?title=open/custom
mapStyleV2: {},

@@ -57,0 +57,0 @@

## 百度地图扩展
ECharts 百度地图扩展,可以在百度地图上展现 [点图](https://echarts.apache.org/zh/option.html#series-scatter),[线图](https://echarts.apache.org/zh/option.html#series-line),[热力图](https://echarts.apache.org/zh/option.html#series-heatmap) 等可视化。
ECharts 百度地图扩展,可以在百度地图上展现 [点图](https://echarts.apache.org/zh/option.html#series-scatter),[线图](https://echarts.apache.org/zh/option.html#series-lines),[热力图](https://echarts.apache.org/zh/option.html#series-heatmap) 等可视化。

@@ -14,7 +14,7 @@

[北京公交路线特效](https://echarts.apache.org/examples/zh/editor.html?c=lines-bmap-effect)
[杭州热门步行路线](https://echarts.apache.org/examples/zh/editor.html?c=heatmap-bmap)
[在地图上显示分箱图](https://echarts.apache.org/examples/zh/editor.html?c=map-bin)
### 引入

@@ -25,4 +25,5 @@

```html
<!--引入百度地图的jssdk,这里需要使用你在百度地图开发者平台申请的 ak-->
<script src="http://api.map.baidu.com/api?v=2.0&ak="></script>
<!-- 引入百度地图的 JS SDK,这里需要使用你在百度地图开发者平台申请的 ak -->
<!-- 如需使用百度地图 2.0 版本,请将 `v=3.0` 改为 `v=2.0` -->
<script src="https://api.map.baidu.com/api?v=3.0&ak="></script>
<!-- 引入 ECharts -->

@@ -51,10 +52,17 @@ <script src="dist/echarts.min.js"></script>

bmap: {
// 百度地图中心经纬度
// 百度地图中心经纬度。默认为 [104.114129, 37.550339]。
center: [120.13066322374, 30.240018034923],
// 百度地图缩放
// 百度地图缩放级别。默认为 5。
zoom: 14,
// 是否开启拖拽缩放,可以只设置 'scale' 或者 'move'
// 是否开启拖拽缩放,可以只设置 'scale' 或者 'move'。默认关闭。
roam: true,
// 百度地图的自定义样式,见 http://developer.baidu.com/map/jsdevelop-11.htm
mapStyle: {}
// 百度地图的旧版自定义样式,见 https://lbsyun.baidu.com/custom/index.htm
mapStyle: {},
// 百度地图 3.0 之后的新版自定义样式,见 https://lbsyun.baidu.com/index.php?title=open/custom
mapStyleV2: {},
// 百度地图的初始化配置,见 https://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference.html#a0b1
mapOptions: {
// 禁用百度地图自带的底图可点功能
enableMapClick: false
}
},

@@ -66,3 +74,7 @@ series: [{

// 数据格式跟在 geo 坐标系上一样,每一项都是 [经度,纬度,数值大小,其它维度...]
data: [ [120, 30, 1] ]
data: [ [120, 30, 1] ],
// 编码数据项中第三个元素作为 value 维度
encode: {
value: 2
}
}]

@@ -69,0 +81,0 @@ }

@@ -68,5 +68,5 @@

zoom: 5,
// 2.0 http://lbsyun.baidu.com/custom/index.htm
// 2.0 https://lbsyun.baidu.com/custom/index.htm
mapStyle: {},
// 3.0 http://lbsyun.baidu.com/index.php?title=open/custom
// 3.0 https://lbsyun.baidu.com/index.php?title=open/custom
mapStyleV2: {},

@@ -73,0 +73,0 @@ // See https://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference.html#a0b1

@@ -374,3 +374,3 @@

} // If el is remove from zr by reason like legend, during still need to called,
// becuase el will be added back to zr and the prop value should not be incorrect.
// because el will be added back to zr and the prop value should not be incorrect.

@@ -380,3 +380,3 @@

var scopeUserDuring = scope.userDuring; // Ensured a during is only called once in each animation frame.
// If a during is called multiple times in one frame, maybe some users' calulation logic
// If a during is called multiple times in one frame, maybe some users' calculation logic
// might be wrong (not sure whether this usage exists).

@@ -383,0 +383,0 @@ // The case of a during might be called twice can be: by default there is a animator for

@@ -89,2 +89,3 @@

items.push({
dataGroupId: seriesInfo.dataGroupId,
data: data,

@@ -208,3 +209,3 @@ dim: seriesInfo.dim || groupDim,

var dataGroupId = data.hostModel && data.hostModel.get('dataGroupId'); // If specified key dimension(itemGroupId by default). Use this same dimension from other data.
var dataGroupId = diffItem.dataGroupId; // If specified key dimension(itemGroupId by default). Use this same dimension from other data.
// PENDING: If only use key dimension of newData.

@@ -426,6 +427,10 @@

each(globalStore.oldSeries, function (series, idx) {
var oldDataGroupId = globalStore.oldDataGroupIds[idx];
var oldData = globalStore.oldData[idx];
var transitionKey = getSeriesTransitionKey(series);
var transitionKeyStr = convertArraySeriesKeyToString(transitionKey);
oldDataMap.set(transitionKeyStr, oldData);
oldDataMap.set(transitionKeyStr, {
dataGroupId: oldDataGroupId,
data: oldData
});

@@ -436,4 +441,5 @@ if (isArray(transitionKey)) {

oldDataMapForSplit.set(key, {
data: oldData,
key: transitionKeyStr
key: transitionKeyStr,
dataGroupId: oldDataGroupId,
data: oldData
});

@@ -452,2 +458,3 @@ });

if (series.isUniversalTransitionEnabled() && series.isAnimationEnabled()) {
var newDataGroupId = series.get('dataGroupId');
var newData = series.getData();

@@ -467,6 +474,8 @@ var transitionKey = getSeriesTransitionKey(series);

oldSeries: [{
divide: getDivideShapeFromData(oldData),
data: oldData
dataGroupId: oldData.dataGroupId,
divide: getDivideShapeFromData(oldData.data),
data: oldData.data
}],
newSeries: [{
dataGroupId: newDataGroupId,
divide: getDivideShapeFromData(newData),

@@ -487,6 +496,7 @@ data: newData

if (oldData) {
if (oldData.data) {
oldSeries_1.push({
divide: getDivideShapeFromData(oldData),
data: oldData
dataGroupId: oldData.dataGroupId,
divide: getDivideShapeFromData(oldData.data),
data: oldData.data
});

@@ -500,2 +510,3 @@ }

newSeries: [{
dataGroupId: newDataGroupId,
data: newData,

@@ -516,2 +527,3 @@ divide: getDivideShapeFromData(newData)

oldSeries: [{
dataGroupId: oldData_1.dataGroupId,
data: oldData_1.data,

@@ -526,2 +538,3 @@ divide: getDivideShapeFromData(oldData_1.data)

batch.newSeries.push({
dataGroupId: newDataGroupId,
data: newData,

@@ -556,2 +569,3 @@ divide: getDivideShapeFromData(newData)

from.push({
dataGroupId: globalStore.oldDataGroupIds[idx],
data: globalStore.oldData[idx],

@@ -570,2 +584,3 @@ // TODO can specify divideShape in transition.

to.push({
dataGroupId: globalStore.oldDataGroupIds[idx],
data: data,

@@ -630,2 +645,3 @@ divide: getDivideShapeFromData(data),

var savedSeries = globalStore.oldSeries = [];
var savedDataGroupIds = globalStore.oldDataGroupIds = [];
var savedData = globalStore.oldData = [];

@@ -639,2 +655,3 @@

savedSeries.push(allSeries[i]);
savedDataGroupIds.push(allSeries[i].get('dataGroupId'));
savedData.push(data);

@@ -641,0 +658,0 @@ }

@@ -583,3 +583,3 @@

// But we should also place the element at the edge of the coord sys bounding rect.
// Beause if data changed and the bar show again, its transition animaiton
// Because if data changed and the bar shows again, its transition animation
// will begin at this place.

@@ -586,0 +586,0 @@

@@ -47,2 +47,3 @@

import createSeriesData from '../helper/createSeriesData.js';
import { each } from 'zrender/lib/core/util.js';

@@ -67,3 +68,3 @@ var BaseBarSeriesModel =

BaseBarSeriesModel.prototype.getMarkerPosition = function (value) {
BaseBarSeriesModel.prototype.getMarkerPosition = function (value, dims, startingAtTick) {
var coordSys = this.coordinateSystem;

@@ -73,9 +74,29 @@

// PENDING if clamp ?
var pt = coordSys.dataToPoint(coordSys.clampData(value));
var data = this.getData();
var offset = data.getLayout('offset');
var size = data.getLayout('size');
var offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1;
pt[offsetIndex] += offset + size / 2;
return pt;
var pt_1 = coordSys.dataToPoint(coordSys.clampData(value));
if (startingAtTick) {
each(coordSys.getAxes(), function (axis, idx) {
// If axis type is category, use tick coords instead
if (axis.type === 'category') {
var tickCoords = axis.getTicksCoords();
var tickIdx = coordSys.clampData(value)[idx]; // The index of rightmost tick of markArea is 1 larger than x1/y1 index
if (dims && (dims[idx] === 'x1' || dims[idx] === 'y1')) {
tickIdx += 1;
}
tickIdx > tickCoords.length - 1 && (tickIdx = tickCoords.length - 1);
tickIdx < 0 && (tickIdx = 0);
tickCoords[tickIdx] && (pt_1[idx] = axis.toGlobalCoord(tickCoords[tickIdx].coord));
}
});
} else {
var data = this.getData();
var offset = data.getLayout('offset');
var size = data.getLayout('size');
var offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1;
pt_1[offsetIndex] += offset + size / 2;
}
return pt_1;
}

@@ -82,0 +103,0 @@

@@ -52,3 +52,3 @@

registers.registerSeriesModel(BarSeries);
registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, zrUtil.curry(layout, 'bar')); // Do layout after other overall layout, which can preapre some informations.
registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, zrUtil.curry(layout, 'bar')); // Do layout after other overall layout, which can prepare some information.

@@ -55,0 +55,0 @@ registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, createProgressiveLayout('bar')); // Down sample after filter

@@ -51,5 +51,5 @@

registers.registerSeriesModel(PictorialBarSeriesModel);
registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, curry(layout, 'pictorialBar')); // Do layout after other overall layout, which can preapre some informations.
registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, curry(layout, 'pictorialBar')); // Do layout after other overall layout, which can prepare some information.
registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, createProgressiveLayout('pictorialBar'));
}

@@ -46,3 +46,2 @@

import BoxplotView from './BoxplotView.js';
import boxplotVisual from './boxplotVisual.js';
import boxplotLayout from './boxplotLayout.js';

@@ -53,5 +52,4 @@ import { boxplotTransform } from './boxplotTransform.js';

registers.registerChartView(BoxplotView);
registers.registerVisual(boxplotVisual);
registers.registerLayout(boxplotLayout);
registers.registerTransform(boxplotTransform);
}

@@ -99,4 +99,6 @@

ends.push(subPixelOptimizePoint(highestPoint), subPixelOptimizePoint(ocHighPoint), subPixelOptimizePoint(lowestPoint), subPixelOptimizePoint(ocLowPoint));
var itemModel = data.getItemModel(dataIndex);
var hasDojiColor = !!itemModel.get(['itemStyle', 'borderColorDoji']);
data.setItemLayout(dataIndex, {
sign: getSign(store, dataIndex, openVal, closeVal, closeDimI),
sign: getSign(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor),
initBaseline: openVal > closeVal ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx],

@@ -151,2 +153,3 @@ ends: ends,

var store = data.getStore();
var hasDojiColor = !!seriesModel.get(['itemStyle', 'borderColorDoji']);

@@ -166,3 +169,3 @@ while ((dataIndex = params.next()) != null) {

points[offset++] = getSign(store, dataIndex, openVal, closeVal, closeDimI);
points[offset++] = getSign(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor);
tmpIn[cDimIdx] = axisDimVal;

@@ -182,4 +185,11 @@ tmpIn[vDimIdx] = lowestVal;

};
/**
* Get the sign of a single data.
*
* @returns 0 for doji with hasDojiColor: true,
* 1 for positive,
* -1 for negative.
*/
function getSign(store, dataIndex, openVal, closeVal, closeDimI) {
function getSign(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor) {
var sign;

@@ -192,3 +202,4 @@

} else {
sign = dataIndex > 0 // If close === open, compare with close of last record
sign = hasDojiColor // When doji color is set, use it instead of color/color0.
? 0 : dataIndex > 0 // If close === open, compare with close of last record
? store.get(closeDimI, dataIndex - 1) <= closeVal ? 1 : -1 : // No record of previous, set to be positive

@@ -195,0 +206,0 @@ 1;

@@ -104,2 +104,3 @@

borderColor0: '#47b262',
borderColorDoji: null,
// borderColor: '#d24040',

@@ -106,0 +107,0 @@ // borderColor0: '#398f4f',

@@ -364,4 +364,13 @@

group.add(elN);
var elDoji = new LargeBoxPath({
shape: {
points: largePoints
},
__sign: 0,
ignoreCoarsePointer: true
});
group.add(elDoji);
setLargeStyle(1, elP, seriesModel, data);
setLargeStyle(-1, elN, seriesModel, data);
setLargeStyle(0, elDoji, seriesModel, data);

@@ -380,5 +389,11 @@ if (incremental) {

// TODO put in visual?
var borderColor = seriesModel.get(['itemStyle', sign > 0 ? 'borderColor' : 'borderColor0']) || seriesModel.get(['itemStyle', sign > 0 ? 'color' : 'color0']); // Color must be excluded.
var borderColor = seriesModel.get(['itemStyle', sign > 0 ? 'borderColor' : 'borderColor0']) // Use color for border color by default.
|| seriesModel.get(['itemStyle', sign > 0 ? 'color' : 'color0']);
if (sign === 0) {
borderColor = seriesModel.get(['itemStyle', 'borderColorDoji']);
} // Color must be excluded.
// Because symbol provide setColor individually to set fill and stroke
var itemStyle = seriesModel.getModel('itemStyle').getItemStyle(SKIP_PROPS);

@@ -385,0 +400,0 @@ el.useStyle(itemStyle);

@@ -48,2 +48,3 @@

var negativeBorderColorQuery = ['itemStyle', 'borderColor0'];
var dojiBorderColorQuery = ['itemStyle', 'borderColorDoji'];
var positiveColorQuery = ['itemStyle', 'color'];

@@ -62,3 +63,3 @@ var negativeColorQuery = ['itemStyle', 'color0'];

function getBorderColor(sign, model) {
return model.get(sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery);
return model.get(sign === 0 ? dojiBorderColorQuery : sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery);
} // Only visible series has each data be visual encoded

@@ -65,0 +66,0 @@

@@ -222,3 +222,3 @@

} // Enable to give a name on a group made by `renderItem`, and listen
// events that triggerd by its descendents.
// events that are triggered by its descendents.

@@ -367,3 +367,3 @@

} else {
// style is needed to enable defaut emphasis.
// style is needed to enable default emphasis.
stateObj.style = styleOpt || null;

@@ -532,5 +532,5 @@ } // If `elOption.styleEmphasis` or `elOption.emphasis.style` is `false`,

/**
* @deprecated The orgininal intention of `api.style` is enable to set itemStyle
* like other series. But it not necessary and not easy to give a strict definition
* of what it return. And since echarts5 it needs to be make compat work. So
* @deprecated The original intention of `api.style` is enable to set itemStyle
* like other series. But it is not necessary and not easy to give a strict definition
* of what it returns. And since echarts5 it needs to be make compat work. So
* deprecates it since echarts5.

@@ -568,3 +568,3 @@ *

};
var labelModel = getLabelModel(dataIndexInside, NORMAL); // Now that the feture of "auto adjust text fill/stroke" has been migrated to zrender
var labelModel = getLabelModel(dataIndexInside, NORMAL); // Now that the feature of "auto adjust text fill/stroke" has been migrated to zrender
// since ec5, we should set `isAttached` as `false` here and make compat in

@@ -839,3 +839,3 @@ // `convertToEC4StyleForCustomSerise`.

function doCreateOrUpdateAttachedTx(el, dataIndex, elOption, seriesModel, isInit, attachedTxInfo) {
// group do not support textContent temporarily untill necessary.
// Group does not support textContent temporarily until necessary.
if (el.isGroup) {

@@ -847,3 +847,3 @@ return;

processTxInfo(elOption, null, attachedTxInfo);
processTxInfo(elOption, EMPHASIS, attachedTxInfo); // If `elOption.textConfig` or `elOption.textContent` is null/undefined, it does not make sence.
processTxInfo(elOption, EMPHASIS, attachedTxInfo); // If `elOption.textConfig` or `elOption.textContent` is null/undefined, it does not make sense.
// So for simplicity, if "elOption hasOwnProperty of them but be null/undefined", we do not

@@ -927,3 +927,3 @@ // trade them as set to null to el.

if (process.env.NODE_ENV !== 'production') {
// Do not tolerate incorret type for forward compat.
// Do not tolerate incorrcet type for forward compat.
assert(txConOptNormal_1.type === 'text', 'textContent.type must be "text"');

@@ -967,5 +967,5 @@ }

//
// For implementation simpleness, do not provide a direct way to remove sinlge
// child (otherwise the total indicies of the children array have to be modified).
// User can remove a single child by set its `ignore` as `true`.
// For implementation simpleness, do not provide a direct way to remove single
// child (otherwise the total indices of the children array have to be modified).
// User can remove a single child by setting its `ignore` to `true`.

@@ -972,0 +972,0 @@

@@ -54,3 +54,3 @@

import ZRImage from 'zrender/lib/graphic/Image.js';
import { extend, isFunction, isString, isNumber } from 'zrender/lib/core/util.js';
import { extend, isFunction, isString, isNumber, each } from 'zrender/lib/core/util.js';
import { setCommonECData } from '../../util/innerStore.js';

@@ -129,2 +129,3 @@ import { normalizeArcAngles } from 'zrender/lib/core/PathProxy.js';

var prevEndAngle = startAngle;
var sectors = [];

@@ -153,6 +154,11 @@ for (var i = 0; showAxis && i < colorList.length; i++) {

['color', 'width']));
group.add(sector);
sectors.push(sector);
prevEndAngle = endAngle;
}
sectors.reverse();
each(sectors, function (sector) {
return group.add(sector);
});
var getColor = function (percent) {

@@ -159,0 +165,0 @@ // Less than 0

@@ -46,3 +46,3 @@

/*
* A third-party license is embeded for some of the code in this file:
* A third-party license is embedded for some of the code in this file:
* Some formulas were originally copied from "d3.js" with some

@@ -49,0 +49,0 @@ * modifications made for this project.

@@ -188,3 +188,3 @@

el.setDraggable(draggable && !!forceLayout, !!itemModel.get('cursor'));
el.setDraggable(draggable, !!itemModel.get('cursor'));
var focus = itemModel.get(['emphasis', 'focus']);

@@ -191,0 +191,0 @@

@@ -99,3 +99,3 @@

function isGeoCoordSys(coordSys) {
var dimensions = coordSys.dimensions; // Not use coorSys.type === 'geo' because coordSys maybe extended
var dimensions = coordSys.dimensions; // Not use coordSys.type === 'geo' because coordSys maybe extended

@@ -218,3 +218,3 @@ return dimensions[0] === 'lng' && dimensions[1] === 'lat';

if (isNaN(data.get(dataDims[2], idx)) || dataDimX < xAxisExtent[0] || dataDimX > xAxisExtent[1] || dataDimY < yAxisExtent[0] || dataDimY > yAxisExtent[1]) {
if (isNaN(data.get(dataDims[2], idx)) || isNaN(dataDimX) || isNaN(dataDimY) || dataDimX < xAxisExtent[0] || dataDimX > xAxisExtent[1] || dataDimY < yAxisExtent[0] || dataDimY > yAxisExtent[1]) {
continue;

@@ -244,3 +244,3 @@ }

});
} // Optimization for large datset
} // Optimization for large dataset

@@ -247,0 +247,0 @@

@@ -62,3 +62,3 @@

if (isDimensionStacked(data, dims[0]
/*, dims[1]*/
/* , dims[1] */
)) {

@@ -71,3 +71,3 @@ // jshint ignore:line

if (isDimensionStacked(data, dims[1]
/*, dims[0]*/
/* , dims[0] */
)) {

@@ -74,0 +74,0 @@ // jshint ignore:line

@@ -380,3 +380,3 @@

function canShowAllSymbolForCategory(categoryAxis, data) {
// In mose cases, line is monotonous on category axis, and the label size
// In most cases, line is monotonous on category axis, and the label size
// is close with each other. So we check the symbol size and some of the

@@ -680,3 +680,3 @@ // label size alone with the category axis to estimate whether all symbol

} // Always update, or it is wrong in the case turning on legend
// because points are not changed
// because points are not changed.

@@ -691,4 +691,4 @@

}
}); // In the case data zoom triggerred refreshing frequently
// Data may not change if line has a category axis. So it should animate nothing
}); // In the case data zoom triggered refreshing frequently
// Data may not change if line has a category axis. So it should animate nothing.

@@ -826,3 +826,3 @@ if (!isPointsSame(this._stackedOnPoints, stackedOnPoints) || !isPointsSame(this._points, points)) {

return;
} // fix #11360: should't draw symbol outside clipShapeForSymbol
} // fix #11360: shouldn't draw symbol outside clipShapeForSymbol

@@ -829,0 +829,0 @@

@@ -255,3 +255,3 @@

if (!CoordSys) {
throw new Error('Unkown coordinate system ' + option.coordinateSystem);
throw new Error('Unknown coordinate system ' + option.coordinateSystem);
}

@@ -258,0 +258,0 @@ }

@@ -227,5 +227,5 @@

aspectScale: null,
///// Layout with center and size
// If you wan't to put map in a fixed size box with right aspect ratio
// This two properties may more conveninet
// Layout with center and size
// If you want to put map in a fixed size box with right aspect ratio
// This two properties may be more convenient.
// layoutCenter: [50%, 50%]

@@ -232,0 +232,0 @@ // layoutSize: 100

@@ -88,3 +88,3 @@

} else {
// Remove drawed map
// Remove drawn map
this._mapDraw && this._mapDraw.remove();

@@ -168,4 +168,4 @@ this._mapDraw = null;

// set on original data item will never get. But it has been working
// like that from the begining, and this scenario is rarely encountered.
// So it won't be fixed until have to.
// like that from the beginning, and this scenario is rarely encountered.
// So it won't be fixed until we have to.

@@ -172,0 +172,0 @@ setLabelStyle(circle, getLabelStatesModels(itemModel), {

@@ -266,6 +266,6 @@

// Temporarily set background to be null to calculate
// the bounding box without backgroud.
// the bounding box without background.
label.setStyle('backgroundColor', null); // Set constraining width
label.setStyle('width', availableWidth - paddingH); // This is the real bounding box of the text without padding
label.setStyle('width', availableWidth - paddingH); // This is the real bounding box of the text without padding.

@@ -358,4 +358,9 @@ var innerRect = label.getBoundingRect();

each(label.states, setNotShow);
each(labelLine.states, setNotShow);
label.ignore = labelLine.ignore = true;
label.ignore = true;
if (labelLine) {
each(labelLine.states, setNotShow);
labelLine.ignore = true;
}
return;

@@ -362,0 +367,0 @@ }

@@ -58,3 +58,4 @@

export function getBasicPieLayout(seriesModel, api) {
var viewRect = getViewRect(seriesModel, api);
var viewRect = getViewRect(seriesModel, api); // center can be string or number when coordinateSystem is specified
var center = seriesModel.get('center');

@@ -67,6 +68,2 @@ var radius = seriesModel.get('radius');

if (!zrUtil.isArray(center)) {
center = [center, center];
}
var width = parsePercent(viewRect.width, api.getWidth());

@@ -87,2 +84,6 @@ var height = parsePercent(viewRect.height, api.getHeight());

} else {
if (!zrUtil.isArray(center)) {
center = [center, center];
}
cx = parsePercent(center[0], width) + viewRect.x;

@@ -89,0 +90,0 @@ cy = parsePercent(center[1], height) + viewRect.y;

@@ -52,2 +52,3 @@

import SeriesModel from '../../model/Series.js';
var innerData = modelUtil.makeInner();

@@ -90,12 +91,6 @@ var PieSeriesModel =

PieSeriesModel.prototype.getInitialData = function () {
var data = createSeriesDataSimply(this, {
return createSeriesDataSimply(this, {
coordDimensions: ['value'],
encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)
});
var valueList = [];
data.each(data.mapDimension('value'), function (value) {
valueList.push(value);
});
this.seats = getPercentSeats(valueList, data.hostModel.get('percentPrecision'));
return data;
};

@@ -108,5 +103,19 @@ /**

PieSeriesModel.prototype.getDataParams = function (dataIndex) {
var params = _super.prototype.getDataParams.call(this, dataIndex);
var data = this.getData(); // update seats when data is changed
params.percent = this.seats[dataIndex];
var dataInner = innerData(data);
var seats = dataInner.seats;
if (!seats) {
var valueList_1 = [];
data.each(data.mapDimension('value'), function (value) {
valueList_1.push(value);
});
seats = dataInner.seats = getPercentSeats(valueList_1, data.hostModel.get('percentPrecision'));
}
var params = _super.prototype.getDataParams.call(this, dataIndex); // seats may be empty when sum is 0
params.percent = seats[dataIndex] || 0;
params.$vars.push('percent');

@@ -175,4 +184,4 @@ return params;

// Distance between text and label line.
distanceToLabelLine: 5 // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
// 默认使用全局文本样式,详见TEXTSTYLE
distanceToLabelLine: 5 // formatter: 标签文本格式器,同 tooltip.formatter,不支持异步回调
// 默认使用全局文本样式,详见 textStyle
// distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数

@@ -179,0 +188,0 @@

@@ -113,3 +113,3 @@

var indegreeArr = []; //Used to storage the node with indegree is equal to 0.
var indegreeArr = []; // Used to storage the node with indegree is equal to 0.

@@ -116,0 +116,0 @@ var zeroIndegrees = [];

@@ -213,2 +213,6 @@

},
edgeLabel: {
show: false,
fontSize: 12
},
levels: [],

@@ -215,0 +219,0 @@ nodeAlign: 'justify',

@@ -228,2 +228,10 @@

setLabelStyle(curve, getLabelStatesModels(edgeModel, 'edgeLabel'), {
labelFetcher: seriesModel,
labelDataIndex: edge.dataIndex,
defaultText: "" + edgeModel.get('value')
});
curve.setTextConfig({
position: 'inside'
});
var emphasisModel = edgeModel.getModel('emphasis');

@@ -230,0 +238,0 @@ setStatesStylesFromModel(curve, edgeModel, 'lineStyle', function (model) {

@@ -50,2 +50,3 @@

var nodes = graph.nodes;
var edges = graph.edges;

@@ -89,3 +90,10 @@ if (nodes.length) {

}
if (edges.length) {
zrUtil.each(edges, function (edge) {
var edgeStyle = edge.getModel().get('lineStyle');
edge.setVisual('style', edgeStyle);
});
}
});
}

@@ -151,3 +151,3 @@

opacity: 1,
// 'left' is for inner side of inside, and 'right' is for outter
// 'left' is for inner side of inside, and 'right' is for outer
// side for inside

@@ -180,3 +180,3 @@ align: 'center',

},
// Animation type canbe expansion, scale
// Animation type can be expansion, scale.
animationType: 'expansion',

@@ -183,0 +183,0 @@ animationDuration: 1000,

@@ -137,3 +137,3 @@

* @override
* @param option the initial option that user gived
* @param option the initial option that user gave
* @param ecModel the model object for themeRiver option

@@ -140,0 +140,0 @@ */

@@ -46,3 +46,3 @@

/*
* A third-party license is embeded for some of the code in this file:
* A third-party license is embedded for some of the code in this file:
* The tree layoutHelper implementation was originally copied from

@@ -49,0 +49,0 @@ * "d3.js"(https://github.com/d3/d3-hierarchy) with

@@ -70,3 +70,3 @@

TreeSeriesModel.prototype.getInitialData = function (option) {
//create an virtual root
// create a virtual root
var root = {

@@ -73,0 +73,0 @@ name: option.name,

@@ -46,3 +46,3 @@

/*
* A third-party license is embeded for some of the code in this file:
* A third-party license is embedded for some of the code in this file:
* The treemap layout implementation was originally copied from

@@ -452,3 +452,3 @@ * "d3.js" with some modifications made for this project.

// If targetInfo.node exists, we zoom to the node,
// so estimate whold width and heigth by target node.
// so estimate whole width and height by target node.
var currNode = (targetInfo || {}).node;

@@ -493,3 +493,3 @@ var defaultSize = [containerWidth, containerHeight];

return [containerWidth * scale, containerHeight * scale];
} // Root postion base on coord of containerGroup
} // Root position based on coord of containerGroup

@@ -496,0 +496,0 @@

@@ -260,3 +260,3 @@

itemStyle: {
color: 'rgba(0,0,0,0.9)' //'#5793f3',
color: 'rgba(0,0,0,0.9)' // '#5793f3',

@@ -263,0 +263,0 @@ }

@@ -174,5 +174,5 @@

return renderNode(seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth);
} // Notice: when thisTree and oldTree are the same tree (see list.cloneShallow),
// the oldTree is actually losted, so we can not find all of the old graphic
// elements from tree. So we use this stragegy: make element storage, move
} // Notice: When thisTree and oldTree are the same tree (see list.cloneShallow),
// the oldTree is actually losted, so we cannot find all of the old graphic
// elements from tree. So we use this strategy: make element storage, move
// from old storage to new storage, clear old storage.

@@ -587,3 +587,3 @@

var point = bgEl.transformCoordToLocal(x, y);
var shape = bgEl.shape; // For performance consideration, dont use 'getBoundingRect'.
var shape = bgEl.shape; // For performance consideration, don't use 'getBoundingRect'.

@@ -955,5 +955,5 @@ if (shape.x <= point[0] && point[0] <= shape.x + shape.width && shape.y <= point[1] && point[1] <= shape.y + shape.height) {

}
} // We can not set all backgroud with the same z, Because the behaviour of
} // We cannot set all background with the same z, because the behaviour of
// drill down and roll up differ background creation sequence from tree
// hierarchy sequence, which cause that lowser background element overlap
// hierarchy sequence, which cause lower background elements to overlap
// upper ones. So we calculate z based on depth.

@@ -960,0 +960,0 @@ // Moreover, we try to shrink down z interval to [0, 1] to avoid that

@@ -186,8 +186,8 @@

return mapping;
} // Notice: If we dont have the attribute 'colorRange', but only use
} // Notice: If we don't have the attribute 'colorRange', but only use
// attribute 'color' to represent both concepts of 'colorRange' and 'color',
// (It means 'colorRange' when 'color' is Array, means 'color' when not array),
// this problem will be encountered:
// If a level-1 node dont have children, and its siblings has children,
// and colorRange is set on level-1, then the node can not be colored.
// If a level-1 node doesn't have children, and its siblings have children,
// and colorRange is set on level-1, then the node cannot be colored.
// So we separate 'colorRange' and 'color' to different attributes.

@@ -198,3 +198,3 @@

// 'colorRange', 'colorARange', 'colorSRange'.
// If not exsits on this node, fetch from levels and series.
// If not exists on this node, fetch from levels and series.
var range = nodeModel.get(name);

@@ -201,0 +201,0 @@ return isArray(range) && range.length ? {

@@ -166,10 +166,11 @@

// percentWindow[idx] = round(boundPercent);
// fallback to extent start/end when parsed value or percent is invalid
valueWindow[idx] = boundValue;
percentWindow[idx] = boundPercent;
valueWindow[idx] = boundValue == null || isNaN(boundValue) ? dataExtent[idx] : boundValue;
percentWindow[idx] = boundPercent == null || isNaN(boundPercent) ? percentExtent[idx] : boundPercent;
});
asc(valueWindow);
asc(percentWindow); // The windows from user calling of `dispatchAction` might be out of the extent,
// or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we dont restrict window
// or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we don't restrict window
// by `zoomLock` here, because we see `zoomLock` just as a interaction constraint,

@@ -198,4 +199,4 @@ // where API is able to initialize/modify the window size even though `zoomLock`

/**
* Notice: reset should not be called before series.restoreData() called,
* so it is recommanded to be called in "process stage" but not "model init
* Notice: reset should not be called before series.restoreData() is called,
* so it is recommended to be called in "process stage" but not "model init
* stage".

@@ -202,0 +203,0 @@ */

@@ -132,3 +132,3 @@

DataZoomModel.prototype.mergeOption = function (newOption) {
var inputRawOption = retrieveRawOption(newOption); //FIX #2591
var inputRawOption = retrieveRawOption(newOption); // FIX #2591

@@ -189,3 +189,3 @@ merge(this.option, newOption, true);

// but do not want use auto mode. Because empty array may be encountered when
// some error occured.
// some error occurred.

@@ -495,4 +495,4 @@ if (!refering.specified) {

/**
* Retrieve the those raw params from option, which will be cached separately.
* becasue they will be overwritten by normalized/calculated values in the main
* Retrieve those raw params from option, which will be cached separately,
* because they will be overwritten by normalized/calculated values in the main
* process.

@@ -499,0 +499,0 @@ */

@@ -200,3 +200,3 @@

coordSysRecordMap.each(function (coordSysRecord) {
// `coordSysRecordMap` always exists (becuase it hold the `roam controller`, which should
// `coordSysRecordMap` always exists (because it holds the `roam controller`, which should
// better not re-create each time), but clear `dataZoomInfoMap` each round of the workflow.

@@ -203,0 +203,0 @@ coordSysRecord.dataZoomInfoMap = null;

@@ -155,4 +155,4 @@

existItem.hv = newElOption.hv = [// Rigid body, dont care `width`.
isSetLoc(newElOption, ['left', 'right']), // Rigid body, dont care `height`.
existItem.hv = newElOption.hv = [// Rigid body, don't care about `width`.
isSetLoc(newElOption, ['left', 'right']), // Rigid body, don't care about `height`.
isSetLoc(newElOption, ['top', 'bottom'])]; // Give default group size. Otherwise layout error may occur.

@@ -159,0 +159,0 @@

@@ -64,4 +64,4 @@

} else {
// Only one graphic instance can be instantiated. (We dont
// want that too many views are created in echarts._viewMap)
// Only one graphic instance can be instantiated. (We don't
// want that too many views are created in echarts._viewMap.)
option.graphic = [option.graphic[0]];

@@ -68,0 +68,0 @@ }

@@ -518,3 +518,3 @@

* props will have no chance to be restored.
* Note: this reset should be after `clearStates` in `renderSeries` becuase `useStates` in
* Note: This reset should be after `clearStates` in `renderSeries` because `useStates` in
* `renderSeries` will cache the modified `ignore` to `el._normalState`.

@@ -561,3 +561,3 @@ * TODO:

function applyOptionStyleForRegion(viewBuildCtx, el, dataIndex, regionModel) {
// All of the path are using `itemStyle`, becuase
// All of the path are using `itemStyle`, because
// (1) Some SVG also use fill on polyline (The different between

@@ -564,0 +564,0 @@ // polyline and polygon is "open" or "close" but not fill or not).

@@ -76,3 +76,3 @@

// legend.width/height are maxWidth/maxHeight actually,
// whereas realy width/height is calculated by its content.
// whereas real width/height is calculated by its content.
// (Setting {left: 10, right: 10} does not make sense).

@@ -177,6 +177,7 @@ // So consider the case:

this._availableNames = availableNames; // If legend.data not specified in option, use availableNames as data,
// which is convinient for user preparing option.
this._availableNames = availableNames; // If legend.data is not specified in option, use availableNames as data,
// which is convenient for user preparing option.
var rawData = this.get('data') || potentialData;
var legendNameMap = zrUtil.createHashMap();
var legendData = zrUtil.map(rawData, function (dataItem) {

@@ -190,2 +191,8 @@ // Can be string or number

if (legendNameMap.get(dataItem.name)) {
// remove legend name duplicate
return null;
}
legendNameMap.set(dataItem.name, true);
return new Model(dataItem, this, this.ecModel);

@@ -198,3 +205,5 @@ }, this);

this._data = legendData;
this._data = zrUtil.filter(legendData, function (item) {
return !!item;
});
};

@@ -201,0 +210,0 @@

@@ -173,3 +173,3 @@

if (legendDrawnMap.get(name)) {
// Have been drawed
// Have been drawn
return;

@@ -391,3 +391,3 @@ } // Legend to control series.

contentPos[orientIdx] += selectorRect[wh] + selectorButtonGap;
} //Always align selector to content as 'middle'
} // Always align selector to content as 'middle'

@@ -529,3 +529,3 @@

}); // highlight after select
// TODO higlight immediately may cause animation loss.
// TODO highlight immediately may cause animation loss.

@@ -532,0 +532,0 @@ dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId);

@@ -64,5 +64,13 @@

var markAreaTransform = function (seriesModel, coordSys, maModel, item) {
var lt = markerHelper.dataTransform(seriesModel, item[0]);
var rb = markerHelper.dataTransform(seriesModel, item[1]); // FIXME make sure lt is less than rb
// item may be null
var item0 = item[0];
var item1 = item[1];
if (!item0 || !item1) {
return;
}
var lt = markerHelper.dataTransform(seriesModel, item0);
var rb = markerHelper.dataTransform(seriesModel, item1); // FIXME make sure lt is less than rb
var ltCoord = lt.coord;

@@ -117,7 +125,7 @@ var rbCoord = rb.coord;

return true;
} //Directly returning true may also do the work,
//because markArea will not be shown automatically
//when it's not included in coordinate system.
//But filtering ahead can avoid keeping rendering markArea
//when there are too many of them.
} // Directly returning true may also do the work,
// because markArea will not be shown automatically
// when it's not included in coordinate system.
// But filtering ahead can avoid keeping rendering markArea
// when there are too many of them.

@@ -144,4 +152,24 @@

if (seriesModel.getMarkerPosition) {
// Use the getMarkerPosition
point = seriesModel.getMarkerPosition(data.getValues(dims, idx));
// Consider the case that user input the right-bottom point first
// Pick the larger x and y as 'x1' and 'y1'
var pointValue0 = data.getValues(['x0', 'y0'], idx);
var pointValue1 = data.getValues(['x1', 'y1'], idx);
var clampPointValue0 = coordSys.clampData(pointValue0);
var clampPointValue1 = coordSys.clampData(pointValue1);
var pointValue = [];
if (dims[0] === 'x0') {
pointValue[0] = clampPointValue0[0] > clampPointValue1[0] ? pointValue1[0] : pointValue0[0];
} else {
pointValue[0] = clampPointValue0[0] > clampPointValue1[0] ? pointValue0[0] : pointValue1[0];
}
if (dims[1] === 'y0') {
pointValue[1] = clampPointValue0[1] > clampPointValue1[1] ? pointValue1[1] : pointValue0[1];
} else {
pointValue[1] = clampPointValue0[1] > clampPointValue1[1] ? pointValue0[1] : pointValue1[1];
} // Use the getMarkerPosition
point = seriesModel.getMarkerPosition(pointValue, dims, true);
} else {

@@ -182,3 +210,3 @@ var x = data.get(dims[0], idx);

var dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']];
export var dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']];

@@ -185,0 +213,0 @@ var MarkAreaView =

@@ -60,3 +60,3 @@

var stacked = isDimensionStacked(data, targetDataDim
/*, otherDataDim*/
/* , otherDataDim */
);

@@ -94,4 +94,9 @@ var calcDataDim = stacked ? data.getCalculationInfo('stackResultDimension') : targetDataDim;

export function dataTransform(seriesModel, item) {
if (!item) {
return;
}
var data = seriesModel.getData();
var coordSys = seriesModel.coordinateSystem; // 1. If not specify the position with pixel directly
var coordSys = seriesModel.coordinateSystem;
var dims = coordSys.dimensions; // 1. If not specify the position with pixel directly
// 2. If `coord` is not a data array. Which uses `xAxis`,

@@ -101,4 +106,3 @@ // `yAxis` to specify the coord on each dimension

if (item && !hasXAndY(item) && !isArray(item.coord) && coordSys) {
var dims = coordSys.dimensions;
if (!hasXAndY(item) && !isArray(item.coord) && coordSys) {
var axisInfo = getAxisInfo(item, data, coordSys, seriesModel); // Clone the option

@@ -119,11 +123,17 @@ // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value

// FIXME Only has one of xAxis and yAxis.
var coord = [item.xAxis != null ? item.xAxis : item.radiusAxis, item.yAxis != null ? item.yAxis : item.angleAxis]; // Each coord support max, min, average
item.coord = [item.xAxis != null ? item.xAxis : item.radiusAxis, item.yAxis != null ? item.yAxis : item.angleAxis];
}
} // x y is provided
for (var i = 0; i < 2; i++) {
if (markerTypeCalculator[coord[i]]) {
coord[i] = numCalculate(data, data.mapDimension(dims[i]), coord[i]);
}
if (item.coord == null) {
item.coord = [];
} else {
// Each coord support max, min, average
var coord = item.coord;
for (var i = 0; i < 2; i++) {
if (markerTypeCalculator[coord[i]]) {
coord[i] = numCalculate(data, data.mapDimension(dims[i]), coord[i]);
}
item.coord = coord;
}

@@ -130,0 +140,0 @@ }

@@ -69,3 +69,3 @@

symbolSize: [8, 16],
//symbolRotate: 0,
// symbolRotate: 0,
symbolOffset: 0,

@@ -72,0 +72,0 @@ precision: 2,

@@ -69,4 +69,4 @@

symbolSize: 50,
//symbolRotate: 0,
//symbolOffset: [0, 0]
// symbolRotate: 0,
// symbolOffset: [0, 0]
tooltip: {

@@ -73,0 +73,0 @@ trigger: 'item'

@@ -85,3 +85,3 @@

* @internal
* @param {Object} [opt] If null, cancle the last action triggering for debounce.
* @param {Object} [opt] If null, cancel the last action triggering for debounce.
*/

@@ -145,3 +145,3 @@

this._throttledDispatchExpand(behavior === 'none' ? null // Cancle the last trigger, in case that mouse slide out of the area quickly.
this._throttledDispatchExpand(behavior === 'none' ? null // Cancel the last trigger, in case that mouse slide out of the area quickly.
: {

@@ -148,0 +148,0 @@ axisExpandWindow: result.axisExpandWindow,

@@ -369,3 +369,3 @@

var ticks = axis.scale.getTicks();
this._tickSymbols = []; // The value is dataIndex, see the costomized scale.
this._tickSymbols = []; // The value is dataIndex, see the customized scale.

@@ -413,3 +413,3 @@ each(ticks, function (tick) {

each(labels, function (labelItem) {
// The tickValue is dataIndex, see the costomized scale.
// The tickValue is dataIndex, see the customized scale.
var dataIndex = labelItem.tickValue;

@@ -528,5 +528,8 @@ var itemModel = data.getItemModel(dataIndex);

this._progressLine.shape.x2 = toCoord;
var progressLine = this._progressLine;
this._progressLine.dirty();
if (progressLine) {
progressLine.shape.x2 = toCoord;
progressLine.dirty();
}

@@ -533,0 +536,0 @@ var targetDataIndex = this._findNearestTick(toCoord);

@@ -91,3 +91,3 @@

var borderStyle = borderColor + " solid " + borderWidth + "px;";
var styleCss = ["position:absolute;width:" + arrowSize + "px;height:" + arrowSize + "px;", positionStyle + ";" + transformStyle + ";", "border-bottom:" + borderStyle, "border-right:" + borderStyle, "background-color:" + backgroundColor + ";"];
var styleCss = ["position:absolute;width:" + arrowSize + "px;height:" + arrowSize + "px;z-index:-1;", positionStyle + ";" + transformStyle + ";", "border-bottom:" + borderStyle, "border-right:" + borderStyle, "background-color:" + backgroundColor + ";"];
return "<div style=\"" + styleCss.join('') + "\"></div>";

@@ -94,0 +94,0 @@ }

@@ -213,3 +213,3 @@

* manually when calling `getTicksCoords`.
* In GL, this method may be overrided to:
* In GL, this method may be overridden to:
* `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`

@@ -238,3 +238,3 @@ */

* Only be called in category axis.
* Can be overrided, consider other axes like in 3D.
* Can be overridden, consider other axes like in 3D.
* @return Auto interval for cateogry axis tick and label

@@ -322,3 +322,3 @@ */

// Avoid rounding error cause calculated tick coord different with extent.
// It may cause an extra unecessary tick added.
// It may cause an extra unnecessary tick added.
a = round(a);

@@ -325,0 +325,0 @@ b = round(b);

@@ -163,3 +163,3 @@

splitNumber: 5,
// Lenght of minor tick
// Length of minor tick
length: 3,

@@ -166,0 +166,0 @@ // Line style

@@ -82,3 +82,3 @@

if (ecModel && scaleType === 'time'
/*|| scaleType === 'interval' */
/* || scaleType === 'interval' */
) {

@@ -148,3 +148,3 @@ var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);

} // Precondition of calling this method:
// The scale extent has been initailized using series data extent via
// The scale extent has been initialized using series data extent via
// `scale.setExtent` or `scale.unionExtentFromData`;

@@ -347,3 +347,3 @@

* Set `categoryInterval` as 0 implicitly indicates that
* show all labels reguardless of overlap.
* show all labels regardless of overlap.
* @param {Object} axis axisModel.axis

@@ -350,0 +350,0 @@ */

@@ -97,3 +97,3 @@

labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval);
} // Cache to avoid calling interval function repeatly.
} // Cache to avoid calling interval function repeatedly.

@@ -138,3 +138,3 @@

ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true);
} // Cache to avoid calling interval function repeatly.
} // Cache to avoid calling interval function repeatedly.

@@ -164,3 +164,3 @@

function getListCache(axis, prop) {
// Because key can be funciton, and cache size always be small, we use array cache.
// Because key can be a function, and cache size always is small, we use array cache.
return inner(axis)[prop] || (inner(axis)[prop] = []);

@@ -260,3 +260,3 @@ }

&& lastAutoInterval > interval // If the axis change is caused by chart resize, the cache should not
// be used. Otherwise some hiden labels might not be shown again.
// be used. Otherwise some hidden labels might not be shown again.
&& cache.axisExtent0 === axisExtent[0] && cache.axisExtent1 === axisExtent[1]) {

@@ -263,0 +263,0 @@ interval = lastAutoInterval;

@@ -127,3 +127,3 @@

function addCondition(axis, axisRecord) {
// But for simplicity and safty and performance, we only adopt this
// But for simplicity and safety and performance, we only adopt this
// feature on category axis at present.

@@ -130,0 +130,0 @@ var condExtent = axisRecord.condExtent;

@@ -322,3 +322,3 @@

y: 0
}; /// Create axis
}; // Create axis

@@ -335,3 +335,3 @@ ecModel.eachComponent('xAxis', createAxisCreator('x'), this);

this._axesMap = axesMap; /// Create cartesian2d
this._axesMap = axesMap; // Create cartesian2d

@@ -338,0 +338,0 @@ each(axesMap.x, function (xAxis, xAxisIndex) {

@@ -50,3 +50,3 @@

'澳门': [-10, 10],
//'北京': [-10, 0],
// '北京': [-10, 0],
'天津': [5, 5]

@@ -53,0 +53,0 @@ };

@@ -123,3 +123,3 @@

_this.aspectScale = projection ? 1 : zrUtil.retrieve2(opt.aspectScale, defaultParams.aspectScale); // Not invert longitute if projection exits.
_this.aspectScale = projection ? 1 : zrUtil.retrieve2(opt.aspectScale, defaultParams.aspectScale); // Not invert longitude if projection exits.

@@ -136,3 +136,3 @@ _this._invertLongitute = projection ? false : defaultParams.invertLongitute;

if (invertLongitute) {
// Longitute is inverted
// Longitude is inverted.
rect.y = -rect.y - rect.height;

@@ -184,3 +184,3 @@ }

Geo.prototype.getGeoCoord = function (name) {
var region = this._regionsMap.get(name); // calcualte center only on demand.
var region = this._regionsMap.get(name); // Calculate center only on demand.

@@ -187,0 +187,0 @@

@@ -188,5 +188,5 @@

aspectScale: null,
///// Layout with center and size
// If you wan't to put map in a fixed size box with right aspect ratio
// This two properties may more conveninet
// /// Layout with center and size
// If you want to put map in a fixed size box with right aspect ratio
// This two properties may be more convenient
// layoutCenter: [50%, 50%]

@@ -193,0 +193,0 @@ // layoutSize: 100

@@ -72,3 +72,3 @@

var REGION_AVAILABLE_SVG_TAG_MAP = createHashMap(['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path', // <text> <tspan> are also enabled becuase some SVG might paint text itself,
var REGION_AVAILABLE_SVG_TAG_MAP = createHashMap(['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path', // <text> <tspan> are also enabled because some SVG might paint text itself,
// but still need to trigger events or tooltip.

@@ -168,3 +168,3 @@ 'text', 'tspan', // <g> is also enabled because this case: if multiple tags share one name

// 1. Make a transform from `viewBox` to `boundingRect`.
// Note: only suport `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve
// Note: only support `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve
// the aspect ratio.

@@ -272,3 +272,3 @@ // 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect'])

GeoSVGResource.prototype.useGraphic = function (hostKey
/*, nameMap: NameMap */
/* , nameMap: NameMap */
) {

@@ -275,0 +275,0 @@ var usedRootMap = this._usedGraphicMap;

@@ -381,3 +381,3 @@

};
} // Conver the point from global to expand coordinates.
} // Convert the point from global to expand coordinates.

@@ -384,0 +384,0 @@

@@ -55,3 +55,3 @@

/**
* Parameters depending on ouside (like model, user callback)
* Parameters depending on outside (like model, user callback)
* are prepared and fixed here.

@@ -74,3 +74,3 @@ */

if (isFunction(modelMinRaw)) {
// This callback alway provide users the full data extent (before data filtered).
// This callback always provides users the full data extent (before data is filtered).
this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({

@@ -87,3 +87,3 @@ min: dataExtent[0],

if (isFunction(modelMaxRaw)) {
// This callback alway provide users the full data extent (before data filtered).
// This callback always provides users the full data extent (before data is filtered).
this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw({

@@ -249,3 +249,3 @@ min: dataExtent[0],

* The code below should not be implemented repeatedly either.
* So we cache the result in the scale instance, which will be recreated at the begining
* So we cache the result in the scale instance, which will be recreated at the beginning
* of the workflow (because `scale` instance will be recreated each round of the workflow).

@@ -252,0 +252,0 @@ */

@@ -218,5 +218,5 @@

var rawTransformable = this._rawTransformable;
var roamTransformable = this._roamTransformable; // Becuase roamTransformabel has `originX/originY` modified,
var roamTransformable = this._roamTransformable; // Because roamTransformabel has `originX/originY` modified,
// but the caller of `getTransformInfo` can not handle `originX/originY`,
// so need to recalcualte them.
// so need to recalculate them.

@@ -223,0 +223,0 @@ var dummyTransformable = new Transformable();

@@ -56,4 +56,4 @@

var coordinateSystems = [];
zrUtil.each(coordinateSystemCreators, function (creater, type) {
var list = creater.create(ecModel, api);
zrUtil.each(coordinateSystemCreators, function (creator, type) {
var list = creator.create(ecModel, api);
coordinateSystems = coordinateSystems.concat(list || []);

@@ -60,0 +60,0 @@ });

@@ -45,3 +45,3 @@

import { error } from '../util/log.js'; // Implementation of exported APIs. For example registerMap, getMap.
// The implentations will be registered when installing the component.
// The implementations will be registered when installing the component.
// Avoid these code being bundled to the core module.

@@ -48,0 +48,0 @@

@@ -261,8 +261,8 @@

var performArgs = scheduler.getPerformArgs(task, opt.block); // FIXME
// if intending to decalare `performRawSeries` in handlers, only
// if intending to declare `performRawSeries` in handlers, only
// stream-independent (specifically, data item independent) operations can be
// performed. Because is a series is filtered, most of the tasks will not
// performed. Because if a series is filtered, most of the tasks will not
// be performed. A stream-dependent operation probably cause wrong biz logic.
// Perhaps we should not provide a separate callback for this case instead
// of providing the config `performRawSeries`. The stream-dependent operaions
// of providing the config `performRawSeries`. The stream-dependent operations
// and stream-independent operations should better not be mixed.

@@ -388,3 +388,3 @@

if (process.env.NODE_ENV !== 'production') {
errMsg = '"createOnAllSeries" do not supported for "overallReset", ' + 'becuase it will block all streams.';
errMsg = '"createOnAllSeries" is not supported for "overallReset", ' + 'because it will block all streams.';
}

@@ -398,6 +398,6 @@

getTargetSeries(ecModel, api).each(createStub);
} // Otherwise, (usually it is legancy case), the overall task will only be
// executed when upstream dirty. Otherwise the progressive rendering of all
} // Otherwise, (usually it is legacy case), the overall task will only be
// executed when upstream is dirty. Otherwise the progressive rendering of all
// pipelines will be disabled unexpectedly. But it still needs stubs to receive
// dirty info from upsteam.
// dirty info from upstream.
else {

@@ -404,0 +404,0 @@ overallProgress = false;

@@ -264,7 +264,7 @@

Task.prototype.setOutputEnd = function (end) {
// This only happend in dataTask, dataZoom, map, currently.
// This only happens in dataTask, dataZoom, map, currently.
// where dataZoom do not set end each time, but only set
// when reset. So we should record the setted end, in case
// when reset. So we should record the set end, in case
// that the stub of dataZoom perform again and earse the
// setted end by upstream.
// set end by upstream.
this._outputDueEnd = this._settedOutputEnd = end;

@@ -308,3 +308,3 @@ };

}
}(); ///////////////////////////////////////////////////////////
}(); // -----------------------------------------------------------------------------
// For stream debug (Should be commented out after used!)

@@ -311,0 +311,0 @@ // @usage: printTask(this, 'begin');

@@ -463,3 +463,3 @@

/**
* Retreive the index with given raw data index
* Retrieve the index with given raw data index.
*/

@@ -504,7 +504,7 @@

/**
* Retreive the index of nearest value
* Retrieve the index of nearest value.
* @param dim
* @param value
* @param [maxDistance=Infinity]
* @return If and only if multiple indices has
* @return If and only if multiple indices have
* the same value, they are put to the result.

@@ -511,0 +511,0 @@ */

@@ -83,3 +83,3 @@

var resultList = [];
var dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount); // Try to ignore unsed dimensions if sharing a high dimension datastore
var dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount); // Try to ignore unused dimensions if sharing a high dimension datastore
// 30 is an experience value.

@@ -116,3 +116,3 @@

// Only if `series.dimensions` is defined in option
// displayName, will be set, and dimension will be diplayed vertically in
// displayName, will be set, and dimension will be displayed vertically in
// tooltip by default.

@@ -161,3 +161,3 @@ resultItem.name = resultItem.displayName = userDimName;

});
}); // Apply templetes and default order from `sysDims`.
}); // Apply templates and default order from `sysDims`.

@@ -283,4 +283,4 @@ var availDimIdx = 0;

// }
// The first colum should better be treated as a "ordinal" although it
// might not able to be detected as an "ordinal" by `guessOrdinal`.
// The first column should better be treated as a "ordinal" although it
// might not be detected as an "ordinal" by `guessOrdinal`.
|| resultItem.isExtraCoord && (resultItem.otherDims.itemName != null || resultItem.otherDims.seriesName != null))) {

@@ -334,3 +334,3 @@ resultItem.type = 'ordinal';

// may be visited.
// (2) sometimes user need to calcualte bubble size or use visualMap
// (2) sometimes user need to calculate bubble size or use visualMap
// on other dimensions besides coordSys needed.

@@ -355,8 +355,6 @@ // So, dims that is not used by system, should be shared in data store?

function genCoordDimName(name, map, fromZero) {
var mapData = map.data;
if (fromZero || mapData.hasOwnProperty(name)) {
if (fromZero || map.hasKey(name)) {
var i = 0;
while (mapData.hasOwnProperty(name + i)) {
while (map.hasKey(name + i)) {
i++;

@@ -363,0 +361,0 @@ }

@@ -304,3 +304,3 @@

if (process.env.NODE_ENV !== 'production') {
assert(method, 'Do not suppport count on "' + sourceFormat + '", "' + seriesLayoutBy + '".');
assert(method, 'Do not support count on "' + sourceFormat + '", "' + seriesLayoutBy + '".');
}

@@ -327,3 +327,3 @@

if (process.env.NODE_ENV !== 'production') {
assert(method, 'Do not suppport get value on "' + sourceFormat + '".');
assert(method, 'Do not support get value on "' + sourceFormat + '".');
}

@@ -330,0 +330,0 @@

@@ -53,3 +53,3 @@

* [Caution]: this is the key logic of user value parser.
* For backward compatibiliy, do not modify it until have to!
* For backward compatibility, do not modify it until you have to!
*/

@@ -84,3 +84,3 @@

'number': function (val) {
// Do not use `numericToNumber` here. We have by defualt `numericToNumber`.
// Do not use `numericToNumber` here. We have `numericToNumber` by default.
// Here the number parser can have loose rule:

@@ -147,6 +147,6 @@ // enable to cut suffix: "120px" => 120, "14%" => 14.

/**
* @param order by defualt: 'asc'
* @param incomparable by defualt: Always on the tail.
* @param order by default: 'asc'
* @param incomparable by default: Always on the tail.
* That is, if 'asc' => 'max', if 'desc' => 'min'
* See the definition of "incomparable" in [SORT_COMPARISON_RULE]
* See the definition of "incomparable" in [SORT_COMPARISON_RULE].
*/

@@ -254,3 +254,3 @@ function SortOrderComparator(order, incomparable) {

* MEMO:
* non-numeric string sort make sence when need to put the items with the same tag together.
* Non-numeric string sort makes sense when we need to put the items with the same tag together.
* But if we support string sort, we still need to avoid the misleading like `'2' > '12'`,

@@ -262,3 +262,3 @@ * So we treat "numeric-string" sorted by number order rather than string comparison.

* + Do not support string comparison until required. And also need to
* void the misleading of "2" > "12".
* avoid the misleading of "2" > "12".
* + Should avoid the misleading case:

@@ -265,0 +265,0 @@ * `" 22 " gte "22"` is `true` but `" 22 " eq "22"` is `false`.

@@ -145,4 +145,4 @@

summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra;
var encodeLabel = encode.label; // FIXME `encode.label` is not recommanded, because formatter can not be set
// in this way. Use label.formatter instead. May be remove this approach someday.
var encodeLabel = encode.label; // FIXME `encode.label` is not recommended, because formatter cannot be set
// in this way. Use label.formatter instead. Maybe remove this approach someday.

@@ -149,0 +149,0 @@ if (encodeLabel && encodeLabel.length) {

@@ -156,4 +156,4 @@

// use <index, type, ordinalMeta> to determine whether data can be shared.
// (Becuase in this case there might be no dimension name defined in dataset, but indices always exists).
// (indices are always 0, 1, 2, ..., so we can ignore them to shorten the hash).
// (Because in this case there might be no dimension name defined in dataset, but indices always exists).
// (Indices are always 0, 1, 2, ..., so we can ignore them to shorten the hash).
// Otherwise if retrieving data by property name (like `data: [{aa: 123, bb: 765}, ...]`),

@@ -160,0 +160,0 @@ // use <property, type, ordinalMeta> in hash.

@@ -123,5 +123,5 @@

// especially when encode x y specified.
// consider: when mutiple series share one dimension
// consider: when multiple series share one dimension
// category axis, series name should better use
// the other dimsion name. On the other hand, use
// the other dimension name. On the other hand, use
// both dimensions name.

@@ -233,4 +233,4 @@ } // In category way, the first category axis.

var nameDimIndex = potentialNameDimIndex != null ? potentialNameDimIndex : idxResult.n; // By default, label use itemName in charts.
// So we dont set encodeLabel here.
var nameDimIndex = potentialNameDimIndex != null ? potentialNameDimIndex : idxResult.n; // By default, label uses itemName in charts.
// So we don't set encodeLabel here.

@@ -237,0 +237,0 @@ encode.itemName = [nameDimIndex];

@@ -63,3 +63,3 @@

* (4) At present only support visit source in `SERIES_LAYOUT_BY_COLUMN` in transforms.
* That is for reducing complexity in transfroms.
* That is for reducing complexity in transforms.
* PENDING: Whether to provide transposition transform?

@@ -241,3 +241,3 @@ *

var dimensions = retrieve2(newMetaRawOption.dimensions, upMetaRawOption.dimensions); // We share source with dataset as much as possible
// to avoid extra memroy cost of high dimensional data.
// to avoid extra memory cost of high dimensional data.

@@ -331,3 +331,3 @@ var needsCreateSource = seriesLayoutBy !== upMetaRawOption.seriesLayoutBy || !!sourceHeader !== !!upMetaRawOption.sourceHeader || dimensions;

return true;
} // All sourceList is from the some upsteam.
} // All sourceList is from the some upstream.

@@ -348,4 +348,4 @@

/**
* @param sourceIndex By defualt 0, means "main source".
* Most cases there is only one source.
* @param sourceIndex By default 0, means "main source".
* In most cases there is only one source.
*/

@@ -415,3 +415,3 @@

/**
* PEDING: Is it fast enough?
* PENDING: Is it fast enough?
* If no upstream, return empty array.

@@ -424,3 +424,3 @@ */

// Do not cache the link of the dependency graph, so that
// no need to update them when change happen.
// there is no need to update them when change happens.
var sourceHost = this._sourceHost;

@@ -467,3 +467,3 @@

export { SourceManager }; // Call this method after `super.init` and `super.mergeOption` to
// disable the transform merge, but do not disable transfrom clone from rawOption.
// disable the transform merge, but do not disable transform clone from rawOption.

@@ -470,0 +470,0 @@ export function disableTransformOptionMerge(datasetModel) {

@@ -103,3 +103,3 @@

* No need to support by dimension name in transform function,
* becuase transform function is not case-specific, no need to use name literally.
* because transform function is not case-specific, no need to use name literally.
*/

@@ -144,4 +144,4 @@

// Do not expose all dimension info to users directly.
// Becuase the dimension is probably auto detected from data and not might reliable.
// Should not lead the transformers to think that is relialbe and return it.
// Because the dimension is probably auto detected from data and not might reliable.
// Should not lead the transformers to think that is reliable and return it.
// See [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.

@@ -162,8 +162,8 @@

};
dimensions.push(dimDefExt); // Users probably not sepcify dimension name. For simplicity, data transform
// do not generate dimension name.
dimensions.push(dimDefExt); // Users probably do not specify dimension name. For simplicity, data transform
// does not generate dimension name.
if (name != null) {
// Dimension name should not be duplicated.
// For simplicity, data transform forbid name duplication, do not generate
// For simplicity, data transform forbids name duplication, do not generate
// new name like module `completeDimensions.ts` did, but just tell users.

@@ -472,3 +472,3 @@ var errMsg_1 = '';

&& !result.dimensions) {
var startIndex = firstUpSource.startIndex; // We copy the header of upstream to the result becuase:
var startIndex = firstUpSource.startIndex; // We copy the header of upstream to the result, because:
// (1) The returned data always does not contain header line and can not be used

@@ -475,0 +475,0 @@ // as dimension-detection. In this case we can not use "detected dimensions" of

@@ -61,3 +61,3 @@

var CtorInt32Array = typeof Int32Array === 'undefined' ? Array : Int32Array; // Use prefix to avoid index to be the same as otherIdList[idx],
// which will cause weird udpate animation.
// which will cause weird update animation.

@@ -97,3 +97,3 @@ var ID_PREFIX = 'e\0\0';

this._visual = {}; // Globel layout properties.
this._visual = {}; // Global layout properties.

@@ -104,3 +104,3 @@ this._layout = {}; // Item visual properties after visual coding

this._itemLayouts = []; // Graphic elemnents
this._itemLayouts = []; // Graphic elements

@@ -209,3 +209,3 @@ this._graphicEls = []; // key: dim, value: extent

*
* @notice Becuause of this reason, should better use `getDimensionIndex` instead, for examples:
* @notice Because of this reason, should better use `getDimensionIndex` instead, for examples:
* ```js

@@ -230,3 +230,3 @@ * const val = data.getStore().get(data.getDimensionIndex(dim), dataIdx);

return this.dimensions[dimIdx];
} // Retrieve from series dimension definition becuase it probably contains
} // Retrieve from series dimension definition because it probably contains
// generated dimension name (like 'x', 'y').

@@ -277,3 +277,3 @@

* + If not, it will be converted to a number, which means the index of the dimension.
* (why? because of the backward compatbility. We have been tolerating number-like string in
* (why? because of the backward compatibility. We have been tolerating number-like string in
* dimension setting, although now it seems that it is not a good idea.)

@@ -286,3 +286,3 @@ * For example, `visualMap[i].dimension: "1"` is the same meaning as `visualMap[i].dimension: 1`,

*
* @return recogonized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`).
* @return recognized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`).
*/

@@ -303,3 +303,3 @@

if (dimIdx == null) {
throw new Error('Unkown dimension ' + dim);
throw new Error('Unknown dimension ' + dim);
}

@@ -429,3 +429,3 @@ }

* ]
* Each item is exaclty cooresponding to a dimension.
* Each item is exactly corresponding to a dimension.
*/

@@ -552,3 +552,3 @@

* Calculate extent on a filtered data might be time consuming.
* Approximate extent is only used for: calculte extent of filtered data outside.
* Approximate extent is only used for: calculate extent of filtered data outside.
*/

@@ -570,3 +570,3 @@

/**
* @return Never be null/undefined. `number` will be converted to string. Becuase:
* @return Never be null/undefined. `number` will be converted to string. Because:
* In most cases, name is used in display, where returning a string is more convenient.

@@ -605,3 +605,3 @@ * In other cases, name is used in query (see `indexOfName`), where we can keep the

/**
* @return Never null/undefined. `number` will be converted to string. Becuase:
* @return Never null/undefined. `number` will be converted to string. Because:
* In all cases having encountered at present, id is used in making diff comparison, which

@@ -674,3 +674,3 @@ * are usually based on hash map. We can keep the rule that the internal id are always string

/**
* If value is NaN. Inlcuding '-'
* If value is NaN. Including '-'
* Only check the coord dimensions.

@@ -695,3 +695,3 @@ */

/**
* Retreive the index with given name
* Retrieve the index with given name
*/

@@ -744,3 +744,3 @@

/**
* Retreive the index of nearest value
* Retrieve the index of nearest value
* @param dim

@@ -860,4 +860,4 @@ * @param value

var dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); // If do shallow clone here, if there are too many stacked series,
// it still cost lots of memory, becuase `_store.dimensions` are not shared.
// We should consider there probably be shallow clone happen in each sereis
// it still cost lots of memory, because `_store.dimensions` are not shared.
// We should consider there probably be shallow clone happen in each series
// in consequent filter/map.

@@ -1166,3 +1166,3 @@

/**
* Data in excludeDimensions is copied, otherwise transfered.
* Data in excludeDimensions is copied, otherwise transferred.
*/

@@ -1169,0 +1169,0 @@

@@ -178,3 +178,3 @@

var dimensionsDetectedCount;
var startIndex; // PEDING: could data be null/undefined here?
var startIndex; // PENDING: Could data be null/undefined here?
// currently, if `dataset.source` not specified, error thrown.

@@ -265,3 +265,3 @@ // if `series.data` not specified, nothing rendered without error thrown.

// which is reasonable. But dimension name is duplicated.
// Returns undefined or an array contains only object without null/undefiend or string.
// Returns undefined or an array contains only object without null/undefined or string.

@@ -286,4 +286,4 @@

}; // User can set null in dimensions.
// We dont auto specify name, othewise a given name may
// cause it be refered unexpectedly.
// We don't auto specify name, otherwise a given name may
// cause it to be referred unexpectedly.

@@ -290,0 +290,0 @@ if (item.name == null) {

@@ -65,3 +65,3 @@

export { use } from '../extension.js';
export { setPlatformAPI } from 'zrender/lib/core/platform.js'; //////////////// Helper Methods /////////////////////
export { setPlatformAPI } from 'zrender/lib/core/platform.js'; // --------------------- Helper Methods ---------------------

@@ -80,3 +80,3 @@ export { default as parseGeoJSON } from '../coord/geo/parseGeoJson.js';

export { util_1 as util };
export { default as env } from 'zrender/lib/core/env.js'; //////////////// Export for Exension Usage ////////////////
export { default as env } from 'zrender/lib/core/env.js'; // --------------------- Export for Extension Usage ---------------------
// export {SeriesData};

@@ -90,7 +90,7 @@

export { brushSingle as innerDrawElementOnCanvas } from 'zrender/lib/canvas/graphic.js'; //////////////// Deprecated Extension Methods ////////////////
export { brushSingle as innerDrawElementOnCanvas } from 'zrender/lib/canvas/graphic.js'; // --------------------- Deprecated Extension Methods ---------------------
// Should use `ComponentModel.extend` or `class XXXX extend ComponentModel` to create class.
// Then use `registerComponentModel` in `install` parameter when `use` this extension. For example:
// class Bar3DModel extends ComponentModel {}
// export function install(registers) { regsiters.registerComponentModel(Bar3DModel); }
// export function install(registers) { registers.registerComponentModel(Bar3DModel); }
// echarts.use(install);

@@ -97,0 +97,0 @@

@@ -59,3 +59,3 @@

/**
* Create a muti dimension List structure from seriesModel.
* Create a multi dimension List structure from seriesModel.
*/

@@ -103,5 +103,5 @@

// the requirements of `axisHelper.createScaleByModel`. For
// example the method `getCategories` and `getOrdinalMeta`
// are required for `'category'` axis, and ecModel are required
// for `'time'` axis. But occationally echarts-gl happened
// example the methods `getCategories` and `getOrdinalMeta`
// are required for `'category'` axis, and ecModel is required
// for `'time'` axis. But occasionally echarts-gl happened
// to only use `'value'` axis.

@@ -119,3 +119,3 @@ // zrUtil.mixin(axisModel, AxisModelCommonMixin);

*
* Inlcude methods
* Include methods
* `getFormattedLabels() => Array.<string>`

@@ -122,0 +122,0 @@ * `getCategories() => Array.<string>`

@@ -299,3 +299,3 @@

return minDist;
} // Temporal varible for intermediate usage.
} // Temporal variable for intermediate usage.

@@ -302,0 +302,0 @@

@@ -162,3 +162,3 @@

// need to be different from normal position, we might consider
// auto slient is those cases.
// auto silent is those cases.

@@ -165,0 +165,0 @@

@@ -300,3 +300,3 @@

finalWidth = Math.min(maxWidth, remainedWidth);
} // `minWidth` has higher priority. `minWidth` decide that wheter the
} // `minWidth` has higher priority. `minWidth` decide that whether the
// bar is able to be visible. So `minWidth` should not be restricted

@@ -319,3 +319,3 @@ // by `maxWidth` or `remainedWidth` (which is from `bandWidth`). In

// `barMinWidth/barMaxWidth` has higher priority than `barWidth`, as
// CSS does. Becuase barWidth can be a percent value, where
// CSS does. Because barWidth can be a percent value, where
// `barMaxWidth` can be used to restrict the final width.

@@ -322,0 +322,0 @@ var finalWidth = column.width;

@@ -84,3 +84,3 @@

var stacked = isDimensionStacked(data, valueDim
/*, baseDim*/
/* , baseDim */
);

@@ -87,0 +87,0 @@ var clampLayout = baseAxis.dim !== 'radius' || !seriesModel.get('roundCap', true);

@@ -213,3 +213,3 @@

// it should better not have the same props with `MediaUnit['option']`.
// Becuase either `option2` or `MediaUnit['option']` will be always merged to "current option"
// Because either `option2` or `MediaUnit['option']` will be always merged to "current option"
// rather than original "baseOption". If they both override a prop, the result might be

@@ -340,3 +340,3 @@ // unexpected when media state changed after `setOption` called.

} else {
error("Unkown series " + subType);
error("Unknown series " + subType);
}

@@ -647,3 +647,3 @@ }

* After filtering, series may be different
* frome raw series.
* from raw series.
*/

@@ -675,3 +675,3 @@

* After filtering, series may be different.
* frome raw series.
* from raw series.
*/

@@ -759,4 +759,4 @@

initBase = function (ecModel, baseOption) {
// Using OPTION_INNER_KEY to mark that this option can not be used outside,
// i.e. `chart.setOption(chart.getModel().option);` is forbiden.
// Using OPTION_INNER_KEY to mark that this option cannot be used outside,
// i.e. `chart.setOption(chart.getModel().option);` is forbidden.
ecModel.option = {};

@@ -763,0 +763,0 @@ ecModel.option[OPTION_INNER_KEY] = OPTION_INNER_VALUE; // Init with series: [], in case of calling findSeries method

@@ -189,4 +189,4 @@

// // `html` means the markup language text, either in 'html' or 'richText'.
// // The name `html` is not appropriate becuase in 'richText' it is not a HTML
// // string. But still support it for backward compat.
// // The name `html` is not appropriate because in 'richText' it is not a HTML
// // string. But still support it for backward compatibility.
// html: string;

@@ -193,0 +193,0 @@ // markers: Dictionary<ColorString>;

@@ -107,3 +107,3 @@

// potential bug!
// The first merge is delayed, becuase in most cases, users do not call `setOption` twice.
// The first merge is delayed, because in most cases, users do not call `setOption` twice.
// let fakeCmptsMap = this._fakeCmptsMap;

@@ -119,3 +119,3 @@ // if (!fakeCmptsMap) {

// that is, if you `setOption` twice and both has timeline options, the latter
// timeline opitons will not be merged to the formers, but just substitude them.
// timeline options will not be merged to the former, but just substitute them.
if (newParsedOption.timelineOptions.length) {

@@ -361,6 +361,6 @@ optionBackup.timelineOptions = newParsedOption.timelineOptions;

height: ecHeight,
aspectratio: ecWidth / ecHeight // lowser case for convenientce.
aspectratio: ecWidth / ecHeight // lower case for convenience.
};
var applicatable = true;
var applicable = true;
each(query, function (value, attr) {

@@ -377,6 +377,6 @@ var matched = attr.match(QUERY_REG);

if (!compare(realMap[realAttr], value, operator)) {
applicatable = false;
applicable = false;
}
});
return applicatable;
return applicable;
}

@@ -416,5 +416,5 @@

* MEMO: We've considered some other approaches:
* 1. Each model handle its self restoration but not uniform treatment.
* 1. Each model handles its self restoration but not uniform treatment.
* (Too complex in logic and error-prone)
* 2. Use a shadow ecModel. (Performace expensive)
* 2. Use a shadow ecModel. (Performance expensive)
*

@@ -421,0 +421,0 @@ * FIXME: A possible solution:

@@ -70,3 +70,3 @@

function SeriesModel() {
// [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,
// [Caution]: Because this class or desecendants can be used as `XXX.extend(subProto)`,
// the class members must not be initialized in constructor or declaration place.

@@ -192,3 +192,3 @@ // Otherwise there is bad case:

* Init a data structure from data related option in series
* Must be overriden.
* Must be overridden.
*/

@@ -304,3 +304,3 @@

* By default use coordSys.getBaseAxis();
* Can be overrided for some chart.
* Can be overridden for some chart.
* @return {type} description

@@ -508,3 +508,3 @@ */

for (var i = 0; i < len; i++) {
var dataIndex = innerDataIndices[i]; // TODO diffrent types of data share same object.
var dataIndex = innerDataIndices[i]; // TODO different types of data share same object.

@@ -511,0 +511,0 @@ var nameOrId = getSelectionKey(data, dataIndex);

@@ -107,4 +107,4 @@

IntervalScale.prototype.setInterval = function (interval) {
this._interval = interval; // Dropped auto calculated niceExtent and use user setted extent
// We assume user wan't to set both interval, min, max to get a better result
this._interval = interval; // Dropped auto calculated niceExtent and use user-set extent.
// We assume user wants to set both interval, min, max to get a better result.

@@ -111,0 +111,0 @@ this._niceExtent = this._extent.slice();

@@ -46,3 +46,3 @@

/*
* A third-party license is embeded for some of the code in this file:
* A third-party license is embedded for some of the code in this file:
* The "scaleLevels" was originally copied from "d3.js" with some

@@ -58,5 +58,5 @@ * modifications made for this project.

// (except time zone is specified in time string). And `format.formateTime` returns
// local time by default. option.useUTC is false by default. This design have
// concidered these common case:
// (1) Time that is persistent in server is in UTC, but it is needed to be diplayed
// local time by default. option.useUTC is false by default. This design has
// considered these common cases:
// (1) Time that is persistent in server is in UTC, but it is needed to be displayed
// in local time by default.

@@ -329,3 +329,3 @@ // (2) By default, the input data string (e.g., '2011-01-02') should be displayed

approxInterval /= ONE_DAY;
return approxInterval > 16 ? 16 // Math.floor(daysInMonth / 2) + 1 // In this case we only want one tick betwen two month.
return approxInterval > 16 ? 16 // Math.floor(daysInMonth / 2) + 1 // In this case we only want one tick between two months.
: approxInterval > 7.5 ? 7 // TODO week 7 or day 8?

@@ -332,0 +332,0 @@ : approxInterval > 3.5 ? 4 : approxInterval > 1.5 ? 2 : 1;

@@ -191,8 +191,8 @@

};
} // superCall should have class info, which can not be fetch from 'this'.
} // superCall should have class info, which can not be fetched from 'this'.
// Consider this case:
// class A has method f,
// class B inherits class A, overrides method f, f call superApply('f'),
// class C inherits class B, do not overrides method f,
// then when method of class C is called, dead loop occured.
// class C inherits class B, does not override method f,
// then when method of class C is called, dead loop occurred.

@@ -235,7 +235,7 @@ function superCall(context, methodName) {

target.registerClass = function (clz) {
// `type` should not be a "instance memeber".
// `type` should not be a "instance member".
// If using TS class, should better declared as `static type = 'series.pie'`.
// otherwise users have to mount `type` on prototype manually.
// For backward compat and enable instance visit type via `this.type`,
// we stil support fetch `type` from prototype.
// we still support fetch `type` from prototype.
var componentFullType = clz.type || clz.prototype.type;

@@ -242,0 +242,0 @@

@@ -57,4 +57,4 @@

'!=': 'ne',
'<>': 'ne' // Might mileading for sake of the different between '==' and '===',
// So dont support them.
'<>': 'ne' // Might be misleading for sake of the difference between '==' and '===',
// so don't support them.
// '==': 'eq',

@@ -61,0 +61,0 @@ // '===': 'seq',

@@ -165,3 +165,3 @@

/**
* Get minumum length that can make a repeatable pattern.
* Get minimum length that can make a repeatable pattern.
*

@@ -178,3 +178,3 @@ * @return {Object} pattern width and height

* |-- -- -- -- -- -- -- -- ...
* So the minumum length of X is 15,
* So the minimum length of X is 15,
* which is the least common multiple of `3 + 2` and `2 + 1`

@@ -447,3 +447,3 @@ * |--- --- --- |--- --- ...

*
* @param {number[][]} dash dash arrary of X or Y
* @param {number[][]} dash dash array of X or Y
* @return {number[]} block length of each line

@@ -450,0 +450,0 @@ */

@@ -152,3 +152,3 @@

ECEventProcessor.prototype.afterTrigger = function () {
// Make sure the eventInfo wont be used in next trigger.
// Make sure the eventInfo won't be used in next trigger.
this.eventInfo = null;

@@ -155,0 +155,0 @@ };

@@ -183,3 +183,3 @@

// Because this util is usually called in tooltip formatter, which is probably
// called repeatly when mouse move and the auto-increment number increases fast.
// called repeatedly when mouse move and the auto-increment number increases fast.
// Users can make their own style name by theirselves, make it unique and readable.

@@ -186,0 +186,0 @@ var markerId = opt.markerId || 'markerX';

@@ -129,6 +129,6 @@

* elements like `'group'`, `'text'`, `'image'` or event `'path'`. Those names
* are reserved names, that is, if some user register a shape named `'image'`,
* are reserved names, that is, if some user registers a shape named `'image'`,
* the shape will not be used. If we intending to add some more reserved names
* in feature, that might bring break changes (disable some existing user shape
* names). But that case probably rearly happen. So we dont make more mechanism
* names). But that case probably rarely happens. So we don't make more mechanism
* to resolve this issue here.

@@ -381,4 +381,4 @@ *

export function clipPointsByRect(points, rect) {
// FIXME: this way migth be incorrect when grpahic clipped by a corner.
// and when element have border.
// FIXME: This way might be incorrect when graphic clipped by a corner
// and when element has a border.
return map(points, function (point) {

@@ -464,3 +464,3 @@ var x = point[0];

var ny = b2y - b1y; // `vec_m` and `vec_n` are parallel iff
// exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
// existing `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.

@@ -566,3 +566,3 @@ var nmCrossProduct = crossProduct2d(nx, ny, mx, my);

}
} // Register built-in shapes. These shapes might be overwirtten
} // Register built-in shapes. These shapes might be overwritten
// by users, although we do not recommend that.

@@ -569,0 +569,0 @@

@@ -60,6 +60,6 @@

* @param {Array} points List of points.
* each point needs an array property to repesent the actual data
* each point needs an array property to represent the actual data
* @param {Number} [dimension]
* Point dimension.
* Default will use the first point's length as dimensiont
* Default will use the first point's length as dimension.
*/

@@ -91,3 +91,3 @@

/**
* Resursively build the tree
* Recursively build the tree.
*/

@@ -94,0 +94,0 @@

@@ -282,9 +282,9 @@

* 2. Rotate (against origin point in parent coord)
* 3. Traslate (with el.position by this method)
* So this method only fixes the last step 'Traslate', which does not affect
* 3. Translate (with el.position by this method)
* So this method only fixes the last step 'Translate', which does not affect
* scaling and rotating.
*
* If be called repeatly with the same input el, the same result will be gotten.
* If be called repeatedly with the same input el, the same result will be gotten.
*
* Return true if the layout happend.
* Return true if the layout happened.
*

@@ -291,0 +291,0 @@ * @param el Should have `getBoundingRect` method.

@@ -107,5 +107,5 @@

/**
* The method do not ensure performance.
* The method does not ensure performance.
* data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
* This helper method retieves value from data.
* This helper method retrieves value from data.
*/

@@ -138,5 +138,5 @@

* (1) Only the id mapped components will be merged.
* (2) Other existing components (except internal compoonets) will be removed.
* (2) Other existing components (except internal components) will be removed.
* (3) Other new options will be used to create new component.
* (4) The index of the existing compoents will not be modified.
* (4) The index of the existing components will not be modified.
* That means their might be "hole" after the removal.

@@ -148,4 +148,4 @@ * The new components are created first at those available index.

* echarts instance (via `getOption`) in some simple cases.
* In this senario, the `result` index are exactly the consistent with the `newCmptOptions`,
* which ensures the compoennt index referring (like `xAxisIndex: ?`) corrent. That is,
* In this scenario, the `result` index are exactly the consistent with the `newCmptOptions`,
* which ensures the component index referring (like `xAxisIndex: ?`) corrent. That is,
* the "hole" in `newCmptOptions` will also be kept.

@@ -201,3 +201,3 @@ * On the contrary, other modes try best to eliminate holes.

makeIdAndName(result); // The array `result` MUST NOT contain elided items, otherwise the
// forEach will ommit those items and result in incorrect result.
// forEach will omit those items and result in incorrect result.

@@ -213,3 +213,3 @@ return result;

} // Do not use native `map` to in case that the array `existings`
// contains elided items, which will be ommited.
// contains elided items, which will be omitted.

@@ -324,3 +324,3 @@

// The feature "reproduce" requires "hole" will also reproduced
// in case that compoennt index referring are broken.
// in case that component index referring are broken.
result.push({

@@ -370,3 +370,3 @@ newOption: cmptOption,

return;
} // name can be overwitten. Consider case: axis.name = '20km'.
} // Name can be overwritten. Consider case: axis.name = '20km'.
// But id generated by name will not be changed, which affect

@@ -377,3 +377,3 @@ // only in that case: setOption with 'not merge mode' and view

keyInfo.name = opt.name != null ? makeComparableKey(opt.name) : existing ? existing.name // Avoid diffferent series has the same name,
keyInfo.name = opt.name != null ? makeComparableKey(opt.name) : existing ? existing.name // Avoid that different series has the same name,
// because name may be used like in color pallet.

@@ -380,0 +380,0 @@ : DUMMY_COMPONENT_NAME_PREFIX + index;

@@ -46,3 +46,3 @@

/*
* A third-party license is embeded for some of the code in this file:
* A third-party license is embedded for some of the code in this file:
* The method "quantile" was copied from "d3.js".

@@ -233,3 +233,3 @@ * (See more details in the comment of the method below.)

* in valueList is 1.
* The largest remainer method is used.
* The largest remainder method is used.
* https://en.wikipedia.org/wiki/Largest_remainder_method

@@ -254,3 +254,3 @@ *

* in valueList is 1.
* The largest remainer method is used.
* The largest remainder method is used.
* https://en.wikipedia.org/wiki/Largest_remainder_method

@@ -354,3 +354,3 @@ *

* (see <https://momentjs.com/>).
* + Or other string format, including (all of which will be treated as loacal time):
* + Or other string format, including (all of which will be treated as local time):
* '2012', '2012-3-1', '2012/3/1', '2012/03/01',

@@ -376,3 +376,3 @@ * '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123'

return new Date(NaN);
} // Use local time when no timezone offset specifed.
} // Use local time when no timezone offset is specified.

@@ -564,3 +564,3 @@

/**
* [Numberic is defined as]:
* [Numeric is defined as]:
* `parseFloat(val) == val`

@@ -604,3 +604,3 @@ * For example:

/**
* Get the greatest common dividor
* Get the greatest common divisor.
*

@@ -619,3 +619,3 @@ * @param {number} a one number

/**
* Get the least common multiple
* Get the least common multiple.
*

@@ -622,0 +622,0 @@ * @param {number} a one number

@@ -172,3 +172,3 @@

* If we reuse elements when rerender.
* DONT forget to clearStates before we update the style and shape.
* DON'T forget to clearStates before we update the style and shape.
* Or we may update on the wrong state instead of normal state.

@@ -200,3 +200,3 @@ */

if (animator.__fromStateTransition // Dont consider the animation to emphasis state.
if (animator.__fromStateTransition // Don't consider the animation to emphasis state.
&& animator.__fromStateTransition.indexOf(toStateName) < 0 && animator.targetName === 'style') {

@@ -316,3 +316,3 @@ animator.saveTo(fromState, props);

}
/**FI
/**
* Set hover style (namely "emphasis style") of element.

@@ -737,3 +737,3 @@ * @param el Should not be `zrender/graphic/Group`.

* Set element as highlight / downplay dispatcher.
* It will be checked when element recieved mouseover event or from highlight action.
* It will be checked when element received mouseover event or from highlight action.
* It's in change of all highlight/downplay behavior of it's children.

@@ -790,5 +790,5 @@ *

/**
* Support hightlight/downplay record on each elements.
* Support highlight/downplay record on each elements.
* For the case: hover highlight/downplay (legend, visualMap, ...) and
* user triggerred hightlight/downplay should not conflict.
* user triggered highlight/downplay should not conflict.
* Only all of the highlightDigit cleared, return to normal.

@@ -795,0 +795,0 @@ * @param {string} highlightKey

@@ -56,3 +56,3 @@

// `legacy: false`, force do not compat.
// `legacy` not set: auto detect wheter legacy.
// `legacy` not set: auto detect whether legacy.
// But in this case we do not compat (difficult to detect and rare case):

@@ -67,3 +67,3 @@ // Becuse custom series and graphic component support "merge", users may firstly

* @param hostStyle The properties might be modified.
* @return If be text el, `textContentStyle` and `textConfig` will not be retured.
* @return If be text el, `textContentStyle` and `textConfig` will not be returned.
* Otherwise a `textContentStyle` and `textConfig` will be created, whose props area

@@ -94,7 +94,7 @@ * retried from the `hostStyle`.

style: textContentStyle,
// ec4 do not support rectText trigger.
// And when text postion is different in normal and emphasis
// ec4 does not support rectText trigger.
// And when text position is different in normal and emphasis
// => hover text trigger emphasis;
// => text position changed, leave mouse pointer immediately;
// That might cause state incorrect.
// That might cause incorrect state.
silent: true

@@ -138,3 +138,3 @@ };

// (2) `out === richItem` if and only if `out` is text el or rich item.
// So we can overwite existing props in `out` since textXXX has higher priority.
// So we can overwrite existing props in `out` since textXXX has higher priority.

@@ -141,0 +141,0 @@

@@ -165,3 +165,3 @@

/**
* Map of path contructors
* Map of path constructors
*/

@@ -168,0 +168,0 @@ // TODO Use function to build symbol path.

@@ -76,3 +76,3 @@

// Each type of series use one scope.
// Pie and funnel are using diferrent scopes
// Pie and funnel are using different scopes.
var paletteScopeGroupByType_1 = zrUtil.createHashMap();

@@ -79,0 +79,0 @@ ecModel.eachSeries(function (seriesModel) {

@@ -64,3 +64,3 @@

if (!styleMapper) {
console.warn("Unkown style type '" + stylePath + "'.");
console.warn("Unknown style type '" + stylePath + "'.");
return defaultStyleMappers.itemStyle;

@@ -77,3 +77,3 @@ }

if (!colorKey) {
console.warn("Unkown style type '" + stylePath + "'.");
console.warn("Unknown style type '" + stylePath + "'.");
return 'fill';

@@ -110,4 +110,4 @@ }

if (!globalStyle[colorKey] || colorCallback || hasAutoColor) {
// Note: if some series has color specified (e.g., by itemStyle.color), we DO NOT
// make it effect palette. Bacause some scenarios users need to make some series
// Note: If some series has color specified (e.g., by itemStyle.color), we DO NOT
// make it effect palette. Because some scenarios users need to make some series
// transparent or as background, which should better not effect the palette.

@@ -185,4 +185,4 @@ var colorPalette = seriesModel.getColorFromPalette( // TODO series count changed.

overallReset: function (ecModel) {
// Each type of series use one scope.
// Pie and funnel are using diferrent scopes
// Each type of series uses one scope.
// Pie and funnel are using different scopes.
var paletteScopeGroupByType = createHashMap();

@@ -189,0 +189,0 @@ ecModel.eachSeries(function (seriesModel) {

@@ -116,3 +116,3 @@

/**
* Convinent method.
* Convenient method.
* Visual can be Object or Array or primary type.

@@ -119,0 +119,0 @@ */

{
"name": "echarts",
"version": "5.4.0",
"version": "5.4.1-rc.1",
"description": "Apache ECharts is a powerful, interactive charting and data visualization library for browser",

@@ -49,3 +49,3 @@ "license": "Apache-2.0",

"dev:fast": "node build/build-i18n.js && node build/dev-fast.js",
"dev": "npm run dev:fast",
"dev": "npx -y concurrently -n build,server \"npm run dev:fast\" \"npx -y http-server -c-1 -s -o test\"",
"prepublish": "npm run build:lib",

@@ -68,3 +68,3 @@ "release": "npm run build:lib && npm run build:i18n && npm run build && npm run build:esm && npm run build:extension",

"tslib": "2.3.0",
"zrender": "5.4.0"
"zrender": "5.4.1"
},

@@ -78,3 +78,3 @@ "devDependencies": {

"@lang/rollup-plugin-dts": "2.0.2",
"@microsoft/api-extractor": "7.7.2",
"@microsoft/api-extractor": "7.31.2",
"@rollup/plugin-commonjs": "^17.0.0",

@@ -98,3 +98,3 @@ "@rollup/plugin-node-resolve": "^11.0.0",

"jest-canvas-mock": "^2.2.0",
"jshint": "2.10.2",
"jshint": "2.13.5",
"magic-string": "^0.25.7",

@@ -101,0 +101,0 @@ "open": "6.4.0",

@@ -48,2 +48,5 @@ # Apache ECharts

# Rebuild source code immediately in watch mode when changing the source code.
# It opens the `./test` directory and you may open `-cases.html` to get the list
# of all test cases.
# If you wish to create a test case, run `npm run mktest:help` to learn more.
npm run dev

@@ -50,0 +53,0 @@

@@ -1,1 +0,1 @@

export { Axis, ChartView, ZRColor as Color, ComponentModel, ComponentView, ComposeOption, EChartsType as ECharts, ECBasicOption as EChartsCoreOption, EChartsType, ElementEvent, ImagePatternObject, LinearGradientObject, SeriesData as List, Model, PRIORITY, PatternObject, Payload, RadialGradientObject, ResizeOpts, SVGPatternObject, SeriesModel, SetOptionOpts, SetOptionTransitionOpt, SetOptionTransitionOptItem, color_d as color, connect, dataTool, dependencies, disConnect, disconnect, dispose, env, extendChartView, extendComponentModel, extendComponentView, extendSeriesModel, format_d as format, getCoordinateSystemDimensions, getInstanceByDom, getInstanceById, getMap, graphic_d as graphic, helper_d as helper, init, brushSingle as innerDrawElementOnCanvas, matrix_d as matrix, number_d as number, parseGeoJSON, parseGeoJSON as parseGeoJson, registerAction, registerCoordinateSystem, registerLayout, registerLoading, registerLocale, registerMap, registerPostInit, registerPostUpdate, registerPreprocessor, registerProcessor, registerTheme, registerTransform, registerUpdateLifecycle, registerVisual, setCanvasCreator, setPlatformAPI, throttle, time_d as time, use, util_d$1 as util, vector_d as vector, version, util_d as zrUtil, zrender_d as zrender } from './shared';
export { Axis, ChartView, ZRColor as Color, ComponentModel, ComponentView, ComposeOption, ECElementEvent, EChartsType as ECharts, ECBasicOption as EChartsCoreOption, EChartsType, ElementEvent, ImagePatternObject, LinearGradientObject, SeriesData as List, Model, PRIORITY, PatternObject, Payload, RadialGradientObject, ResizeOpts, SVGPatternObject, SeriesModel, SetOptionOpts, SetOptionTransitionOpt, SetOptionTransitionOptItem, color_d as color, connect, dataTool, dependencies, disConnect, disconnect, dispose, env, extendChartView, extendComponentModel, extendComponentView, extendSeriesModel, format_d as format, getCoordinateSystemDimensions, getInstanceByDom, getInstanceById, getMap, graphic_d as graphic, helper_d as helper, init, brushSingle as innerDrawElementOnCanvas, matrix_d as matrix, number_d as number, parseGeoJSON, parseGeoJSON as parseGeoJson, registerAction, registerCoordinateSystem, registerLayout, registerLoading, registerLocale, registerMap, registerPostInit, registerPostUpdate, registerPreprocessor, registerProcessor, registerTheme, registerTransform, registerUpdateLifecycle, registerVisual, setCanvasCreator, setPlatformAPI, throttle, time_d as time, use, util_d$1 as util, vector_d as vector, version, util_d as zrUtil, zrender_d as zrender } from './shared';

@@ -5,2 +5,3 @@ import SeriesModel from '../../model/Series.js';

import SeriesData from '../../data/SeriesData.js';
import { dimPermutations } from '../../component/marker/MarkAreaView.js';
export interface BaseBarSeriesOption<StateOption, ExtraStateOption extends StatesMixinBase = DefaultStatesMixin> extends SeriesOption<StateOption, ExtraStateOption>, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin {

@@ -12,7 +13,7 @@ /**

/**
* Min angle of bar. Avaiable on polar coordinate system
* Min angle of bar. Available on polar coordinate system.
*/
barMinAngle?: number;
/**
* Max width of bar. Default to be 1 on cartesian coordinate system. Otherwise it's null
* Max width of bar. Defaults to 1 on cartesian coordinate system. Otherwise it's null.
*/

@@ -41,5 +42,5 @@ barMaxWidth?: number;

getInitialData(option: Opts, ecModel: GlobalModel): SeriesData;
getMarkerPosition(value: ScaleDataValue[]): number[];
getMarkerPosition(value: ScaleDataValue[], dims?: typeof dimPermutations[number], startingAtTick?: boolean): number[];
static defaultOption: BaseBarSeriesOption<unknown, unknown>;
}
export default BaseBarSeriesModel;

@@ -10,2 +10,3 @@ import SeriesModel from '../../model/Series.js';

borderColor0?: ColorString;
borderColorDoji?: ZRColor;
}

@@ -12,0 +13,0 @@ export interface CandlestickStateOption {

@@ -9,3 +9,3 @@ import * as graphic from '../../util/graphic.js';

import { StageHandlerProgressParams } from '../../util/types.js';
import Element from 'zrender/lib/Element.js';
import type Element from 'zrender/lib/Element.js';
interface GeoLikeCoordSys extends CoordinateSystem {

@@ -12,0 +12,0 @@ dimensions: ['lng', 'lat'];

@@ -18,3 +18,3 @@ import SeriesModel from '../../model/Series.js';

}
export interface LinesDataItemOption extends LinesStateOption<CallbackDataParams>, StatesOptionMixin<LinesStateOption<CallbackDataParams>, LinesStatesMixin> {
export interface LinesDataItemOption extends LinesStateOption, StatesOptionMixin<LinesStateOption, LinesStatesMixin> {
name?: string;

@@ -29,3 +29,3 @@ fromName?: string;

}
export interface LinesSeriesOption extends SeriesOption<LinesStateOption, LinesStatesMixin>, LinesStateOption, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesLargeOptionMixin {
export interface LinesSeriesOption extends SeriesOption<LinesStateOption, LinesStatesMixin>, LinesStateOption<CallbackDataParams>, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesLargeOptionMixin {
type?: 'lines';

@@ -32,0 +32,0 @@ coordinateSystem?: string;

import SeriesModel from '../../model/Series.js';
import { SeriesOption, CallbackDataParams, CircleLayoutOptionMixin, LabelLineOption, ItemStyleOption, BoxLayoutOptionMixin, OptionDataValueNumeric, SeriesEncodeOptionMixin, OptionDataItemObject, StatesOptionMixin, SeriesLabelOption, DefaultEmphasisFocus } from '../../util/types.js';
import SeriesData from '../../data/SeriesData.js';
import type SeriesData from '../../data/SeriesData.js';
interface PieItemStyleOption<TCbParams = never> extends ItemStyleOption<TCbParams> {

@@ -44,5 +44,6 @@ borderRadius?: (number | string)[] | number | string;

}
export interface PieSeriesOption extends Omit<SeriesOption<PieStateOption<PieCallbackDataParams>, ExtraStateOption>, 'labelLine'>, PieStateOption<PieCallbackDataParams>, CircleLayoutOptionMixin, BoxLayoutOptionMixin, SeriesEncodeOptionMixin {
export interface PieSeriesOption extends Omit<SeriesOption<PieStateOption<PieCallbackDataParams>, ExtraStateOption>, 'labelLine'>, PieStateOption<PieCallbackDataParams>, Omit<CircleLayoutOptionMixin, 'center'>, BoxLayoutOptionMixin, SeriesEncodeOptionMixin {
type?: 'pie';
roseType?: 'radius' | 'area';
center?: string | number | (string | number)[];
clockwise?: boolean;

@@ -64,3 +65,2 @@ startAngle?: number;

static type: "series.pie";
seats: number[];
/**

@@ -67,0 +67,0 @@ * @overwrite

@@ -35,2 +35,3 @@ import SeriesModel from '../../model/Series.js';

focusNodeAdjacency?: FocusNodeAdjacency;
edgeLabel?: SeriesLabelOption;
}

@@ -75,2 +76,5 @@ export interface SankeyLevelOption extends SankeyNodeStateOption, SankeyEdgeStateOption {

levels?: SankeyLevelOption[];
edgeLabel?: SeriesLabelOption & {
position?: 'inside';
};
}

@@ -77,0 +81,0 @@ declare class SankeySeriesModel extends SeriesModel<SankeySeriesOption> {

@@ -51,3 +51,3 @@ import SeriesModel from '../../model/Series.js';

* @override
* @param option the initial option that user gived
* @param option the initial option that user gave
* @param ecModel the model object for themeRiver option

@@ -54,0 +54,0 @@ */

@@ -110,3 +110,3 @@ import SeriesModel from '../../model/Series.js';

* be on left depth, the behaviour would be changing root. Otherwise
* use behavious defined above.
* use behaviour defined above.
*/

@@ -113,0 +113,0 @@ nodeClick?: 'zoomToNode' | 'link' | false;

@@ -58,4 +58,4 @@ import GlobalModel from '../../model/Global.js';

/**
* Notice: reset should not be called before series.restoreData() called,
* so it is recommanded to be called in "process stage" but not "model init
* Notice: reset should not be called before series.restoreData() is called,
* so it is recommended to be called in "process stage" but not "model init
* stage".

@@ -62,0 +62,0 @@ */

@@ -19,3 +19,3 @@ import * as zrUtil from 'zrender/lib/core/util.js';

* left/right/top/bottom: (like 12, '22%', 'center', default undefined)
* If left/rigth is set, shape.x/shape.cx/position will not be used.
* If left/right is set, shape.x/shape.cx/position will not be used.
* If top/bottom is set, shape.y/shape.cy/position will not be used.

@@ -72,4 +72,4 @@ * This mechanism is useful when you want to position a group/element

* width/height: (can only be pixel value, default 0)
* Only be used to specify contianer(group) size, if needed. And
* can not be percentage value (like '33%'). See the reason in the
* Is only used to specify container (group) size, if needed. And
* cannot be a percentage value (like '33%'). See the reason in the
* layout algorithm below.

@@ -92,3 +92,3 @@ */

}
interface GraphicComponentTextOption extends Omit<GraphicComponentDisplayableOption, 'textContent' | 'textConfig'>, TransitionOptionMixin<TextProps> {
export interface GraphicComponentTextOption extends Omit<GraphicComponentDisplayableOption, 'textContent' | 'textConfig'>, TransitionOptionMixin<TextProps> {
type?: 'text';

@@ -95,0 +95,0 @@ style?: TextStyleProps & TransitionOptionMixin<TextStyleProps>;

@@ -44,3 +44,3 @@ import * as graphic from '../../util/graphic.js';

* props will have no chance to be restored.
* Note: this reset should be after `clearStates` in `renderSeries` becuase `useStates` in
* Note: This reset should be after `clearStates` in `renderSeries` because `useStates` in
* `renderSeries` will cache the modified `ignore` to `el._normalState`.

@@ -47,0 +47,0 @@ * TODO:

@@ -16,3 +16,3 @@ import * as graphic from '../../util/graphic.js';

* If first rendering, `contentGroup.position` is [0, 0], which
* does not make sense and may cause unexepcted animation if adopted.
* does not make sense and may cause unexpected animation if adopted.
*/

@@ -19,0 +19,0 @@ private _isFirstRender;

@@ -11,2 +11,3 @@ import * as graphic from '../../util/graphic.js';

}
export declare const dimPermutations: readonly [readonly ["x0", "y0"], readonly ["x1", "y0"], readonly ["x1", "y1"], readonly ["x0", "y1"]];
declare class MarkAreaView extends MarkerView {

@@ -13,0 +14,0 @@ static type: string;

@@ -17,3 +17,3 @@ import GlobalModel from '../../model/Global.js';

* @internal
* @param {Object} [opt] If null, cancle the last action triggering for debounce.
* @param {Object} [opt] If null, cancel the last action triggering for debounce.
*/

@@ -20,0 +20,0 @@ _throttledDispatchExpand(this: ParallelView, opt: Omit<ParallelAxisExpandPayload, 'type'>): void;

@@ -82,3 +82,3 @@ import { createAxisLabels, calculateCategoryInterval } from './axisTickLabelBuilder.js';

* manually when calling `getTicksCoords`.
* In GL, this method may be overrided to:
* In GL, this method may be overridden to:
* `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`

@@ -97,3 +97,3 @@ */

* Only be called in category axis.
* Can be overrided, consider other axes like in 3D.
* Can be overridden, consider other axes like in 3D.
* @return Auto interval for cateogry axis tick and label

@@ -100,0 +100,0 @@ */

import { TextCommonOption, LineStyleOption, OrdinalRawValue, ZRColor, AreaStyleOption, ComponentOption, ColorString, AnimationOptionMixin, Dictionary, ScaleDataValue, CommonAxisPointerOption } from '../util/types.js';
import { TextStyleProps } from 'zrender/lib/graphic/Text.js';
export declare const AXIS_TYPES: {

@@ -60,3 +61,3 @@ readonly value: 1;

/**
* AxisTick and axisLabel and splitLine are caculated based on splitNumber.
* AxisTick and axisLabel and splitLine are calculated based on splitNumber.
*/

@@ -172,2 +173,3 @@ splitNumber?: number;

color?: ColorString | ((value?: string | number, index?: number) => ColorString);
overflow?: TextStyleProps['overflow'];
}

@@ -174,0 +176,0 @@ interface AxisLabelOption<TType extends OptionAxisType> extends AxisLabelBaseOption {

@@ -54,3 +54,3 @@ import Scale from '../scale/Scale.js';

* Set `categoryInterval` as 0 implicitly indicates that
* show all labels reguardless of overlap.
* show all labels regardless of overlap.
* @param {Object} axis axisModel.axis

@@ -57,0 +57,0 @@ */

@@ -66,2 +66,3 @@ import GlobalModel from '../model/Global.js';

containPoint(point: number[]): boolean;
getAxes?: () => Axis[];
getAxis?: (dim?: DimensionName) => Axis;

@@ -68,0 +69,0 @@ getBaseAxis?: () => Axis;

@@ -32,3 +32,3 @@ import ComponentModel from '../../model/Component.js';

/**
* Coresponding to dimensions.
* Corresponding to dimensions.
*/

@@ -35,0 +35,0 @@ parallelAxisIndex: number[];

@@ -27,3 +27,3 @@ import Scale from '../scale/Scale.js';

/**
* Parameters depending on ouside (like model, user callback)
* Parameters depending on outside (like model, user callback)
* are prepared and fixed here.

@@ -55,3 +55,3 @@ */

* The code below should not be implemented repeatedly either.
* So we cache the result in the scale instance, which will be recreated at the begining
* So we cache the result in the scale instance, which will be recreated at the beginning
* of the workflow (because `scale` instance will be recreated each round of the workflow).

@@ -58,0 +58,0 @@ */

@@ -12,3 +12,3 @@ import * as zrender from 'zrender/lib/zrender.js';

declare type ModelFinder = modelUtil.ModelFinder;
export declare const version = "5.4.0";
export declare const version = "5.4.1";
export declare const dependencies: {

@@ -77,4 +77,4 @@ zrender: string;

ssr?: boolean;
width?: number;
height?: number;
width?: number | string;
height?: number | string;
};

@@ -291,3 +291,3 @@ declare class ECharts extends Eventful<ECEventDefinition> {

/**
* Alias and backword compat
* Alias and backward compatibility
*/

@@ -294,0 +294,0 @@ export declare const disconnect: typeof disConnect;

@@ -35,3 +35,3 @@ import { DimensionIndex, DimensionName, OptionDataItem, ParsedValue, ParsedValueNumeric } from '../util/types.js';

* Deliberately name it as "property" rather than "name" to prevent it from been used in
* SOURCE_FORMAT_ARRAY_ROWS, becuase if it comes from series, it probably
* SOURCE_FORMAT_ARRAY_ROWS, because if it comes from series, it probably
* can not be shared by different series.

@@ -115,11 +115,11 @@ */

/**
* Retreive the index with given raw data index
* Retrieve the index with given raw data index.
*/
indexOfRawIndex(rawIndex: number): number;
/**
* Retreive the index of nearest value
* Retrieve the index of nearest value.
* @param dim
* @param value
* @param [maxDistance=Infinity]
* @return If and only if multiple indices has
* @return If and only if multiple indices have
* the same value, they are put to the result.

@@ -126,0 +126,0 @@ */

@@ -8,3 +8,3 @@ import { ParsedValue, DimensionType } from '../../util/types.js';

* [Caution]: this is the key logic of user value parser.
* For backward compatibiliy, do not modify it until have to!
* For backward compatibility, do not modify it until you have to!
*/

@@ -24,6 +24,6 @@ export declare function parseDataValue(value: any, opt: {

/**
* @param order by defualt: 'asc'
* @param incomparable by defualt: Always on the tail.
* @param order by default: 'asc'
* @param incomparable by default: Always on the tail.
* That is, if 'asc' => 'max', if 'desc' => 'min'
* See the definition of "incomparable" in [SORT_COMPARISON_RULE]
* See the definition of "incomparable" in [SORT_COMPARISON_RULE].
*/

@@ -60,3 +60,3 @@ constructor(order: 'asc' | 'desc', incomparable: 'min' | 'max');

* MEMO:
* non-numeric string sort make sence when need to put the items with the same tag together.
* Non-numeric string sort makes sense when we need to put the items with the same tag together.
* But if we support string sort, we still need to avoid the misleading like `'2' > '12'`,

@@ -68,3 +68,3 @@ * So we treat "numeric-string" sorted by number order rather than string comparison.

* + Do not support string comparison until required. And also need to
* void the misleading of "2" > "12".
* avoid the misleading of "2" > "12".
* + Should avoid the misleading case:

@@ -71,0 +71,0 @@ * `" 22 " gte "22"` is `true` but `" 22 " eq "22"` is `false`.

@@ -18,3 +18,3 @@ import { DatasetModel } from '../../component/dataset/install.js';

* (4) At present only support visit source in `SERIES_LAYOUT_BY_COLUMN` in transforms.
* That is for reducing complexity in transfroms.
* That is for reducing complexity in transforms.
* PENDING: Whether to provide transposition transform?

@@ -123,4 +123,4 @@ *

/**
* @param sourceIndex By defualt 0, means "main source".
* Most cases there is only one source.
* @param sourceIndex By default 0, means "main source".
* In most cases there is only one source.
*/

@@ -139,3 +139,3 @@ getSource(sourceIndex?: number): Source;

/**
* PEDING: Is it fast enough?
* PENDING: Is it fast enough?
* If no upstream, return empty array.

@@ -142,0 +142,0 @@ */

@@ -51,4 +51,4 @@ import { DimensionDefinitionLoose, SourceFormat, DimensionDefinition, DimensionIndex, OptionDataValue, DimensionLoose, ParsedValue, OptionSourceDataObjectRows, OptionSourceDataArrayRows } from '../../util/types.js';

* If we have to use private members, we can make them in closure or use `makeInner`.
* (2) "soruce header count" is not provided to transform, because it's complicated to manage
* header and dimensions definition in each transfrom. Source header are all normalized to
* (2) "source header count" is not provided to transform, because it's complicated to manage
* header and dimensions definition in each transform. Source headers are all normalized to
* dimensions definitions in transforms and their downstreams.

@@ -78,3 +78,3 @@ */

* No need to support by dimension name in transform function,
* becuase transform function is not case-specific, no need to use name literally.
* because transform function is not case-specific, no need to use name literally.
*/

@@ -81,0 +81,0 @@ retrieveValue(dataIndex: number, dimIndex: DimensionIndex): OptionDataValue;

@@ -65,3 +65,3 @@ import { PathStyleProps } from 'zrender/lib/graphic/Path.js';

* @caution Carefully use the index of this array.
* Becuase when DataStore is an extra high dimension(>30) dataset. We will only pick
* Because when DataStore is an extra high dimension(>30) dataset. We will only pick
* the used dimensions from DataStore to avoid performance issue.

@@ -92,3 +92,3 @@ */

* @readonly
* Host tree if List is used to store tree ndoes.
* Host tree if List is used to store tree nodes.
*/

@@ -133,3 +133,3 @@ tree?: Tree;

*
* @notice Becuause of this reason, should better use `getDimensionIndex` instead, for examples:
* @notice Because of this reason, should better use `getDimensionIndex` instead, for examples:
* ```js

@@ -156,3 +156,3 @@ * const val = data.getStore().get(data.getDimensionIndex(dim), dataIdx);

* + If not, it will be converted to a number, which means the index of the dimension.
* (why? because of the backward compatbility. We have been tolerating number-like string in
* (why? because of the backward compatibility. We have been tolerating number-like string in
* dimension setting, although now it seems that it is not a good idea.)

@@ -165,3 +165,3 @@ * For example, `visualMap[i].dimension: "1"` is the same meaning as `visualMap[i].dimension: 1`,

*
* @return recogonized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`).
* @return recognized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`).
*/

@@ -224,3 +224,3 @@ private _recognizeDimIndex;

* ]
* Each item is exaclty cooresponding to a dimension.
* Each item is exactly corresponding to a dimension.
*/

@@ -248,3 +248,3 @@ appendValues(values: any[][], names?: string[]): void;

* Calculate extent on a filtered data might be time consuming.
* Approximate extent is only used for: calculte extent of filtered data outside.
* Approximate extent is only used for: calculate extent of filtered data outside.
*/

@@ -259,3 +259,3 @@ setApproximateExtent(extent: [number, number], dim: SeriesDimensionLoose): void;

/**
* @return Never be null/undefined. `number` will be converted to string. Becuase:
* @return Never be null/undefined. `number` will be converted to string. Because:
* In most cases, name is used in display, where returning a string is more convenient.

@@ -268,3 +268,3 @@ * In other cases, name is used in query (see `indexOfName`), where we can keep the

/**
* @return Never null/undefined. `number` will be converted to string. Becuase:
* @return Never null/undefined. `number` will be converted to string. Because:
* In all cases having encountered at present, id is used in making diff comparison, which

@@ -297,3 +297,3 @@ * are usually based on hash map. We can keep the rule that the internal id are always string

/**
* If value is NaN. Inlcuding '-'
* If value is NaN. Including '-'
* Only check the coord dimensions.

@@ -303,3 +303,3 @@ */

/**
* Retreive the index with given name
* Retrieve the index with given name
*/

@@ -318,3 +318,3 @@ indexOfName(name: string): number;

/**
* Retreive the index of nearest value
* Retrieve the index of nearest value
* @param dim

@@ -321,0 +321,0 @@ * @param value

@@ -9,3 +9,3 @@ import Model from '../../model/Model.js';

/**
* Create a muti dimension List structure from seriesModel.
* Create a multi dimension List structure from seriesModel.
*/

@@ -40,3 +40,3 @@ export declare function createList(seriesModel: SeriesModel): import("../../data/SeriesData").default<Model<any>, import("../../data/SeriesData").DefaultDataVisual>;

*
* Inlcude methods
* Include methods
* `getFormattedLabels() => Array.<string>`

@@ -43,0 +43,0 @@ * `getCategories() => Array.<string>`

export * from '../core/echarts.js';
export * from './api.js';
export { ZRColor as Color, Payload } from '../util/types.js';
export { ZRColor as Color, Payload, ECElementEvent } from '../util/types.js';
export { LinearGradientObject } from 'zrender/lib/graphic/LinearGradient.js';

@@ -5,0 +5,0 @@ export { RadialGradientObject } from 'zrender/lib/graphic/RadialGradient.js';

@@ -18,6 +18,6 @@ import Model from './Model.js';

* Because simplified concept is probably better, series.name (or component.name)
* has been having too many resposibilities:
* has been having too many responsibilities:
* (1) Generating id (which requires name in option should not be modified).
* (2) As an index to mapping series when merging option or calling API (a name
* can refer to more then one components, which is convinient is some case).
* can refer to more than one component, which is convenient is some cases).
* (3) Display.

@@ -24,0 +24,0 @@ * @readOnly But injected

@@ -37,3 +37,3 @@ /**

/**
* `_componentsMap` might have "hole" becuase of remove.
* `_componentsMap` might have "hole" because of remove.
* So save components count for a certain mainType here.

@@ -154,3 +154,3 @@ */

* After filtering, series may be different
* frome raw series.
* from raw series.
*/

@@ -167,3 +167,3 @@ eachSeries<T>(cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void, context?: T): void;

* After filtering, series may be different.
* frome raw series.
* from raw series.
*/

@@ -170,0 +170,0 @@ eachSeriesByType<T>(subType: ComponentSubType, cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void, context?: T): void;

@@ -46,5 +46,5 @@ /**

* MEMO: We've considered some other approaches:
* 1. Each model handle its self restoration but not uniform treatment.
* 1. Each model handles its self restoration but not uniform treatment.
* (Too complex in logic and error-prone)
* 2. Use a shadow ecModel. (Performace expensive)
* 2. Use a shadow ecModel. (Performance expensive)
*

@@ -51,0 +51,0 @@ * FIXME: A possible solution:

@@ -21,6 +21,7 @@ import * as zrUtil from 'zrender/lib/core/util.js';

import { LegendIconParams } from '../component/legend/LegendModel.js';
import { dimPermutations } from '../component/marker/MarkAreaView.js';
export declare const SERIES_UNIVERSAL_TRANSITION_PROP = "__universalTransitionEnabled";
interface SeriesModel {
/**
* Convinient for override in extended class.
* Convenient for override in extended class.
* Implement it if needed.

@@ -46,3 +47,3 @@ */

*/
getMarkerPosition(value: ScaleDataValue[]): number[];
getMarkerPosition(value: ScaleDataValue[], dims?: typeof dimPermutations[number], startingAtTick?: boolean): number[];
/**

@@ -87,3 +88,3 @@ * Get legend icon symbol according to each series type

* Init a data structure from data related option in series
* Must be overriden.
* Must be overridden.
*/

@@ -121,3 +122,3 @@ getInitialData(option: Opt, ecModel: GlobalModel): SeriesData;

* By default use coordSys.getBaseAxis();
* Can be overrided for some chart.
* Can be overridden for some chart.
* @return {type} description

@@ -124,0 +125,0 @@ */

@@ -7,5 +7,5 @@ import { OptionDataValue, DimensionLoose, Dictionary } from './types.js';

* (1) Literal simplicity
* (2) Sementic displayed clearly
* (2) Semantic displayed clearly
*
* Sementic supports:
* Semantic supports:
* (1) relational expression

@@ -12,0 +12,0 @@ * (2) logical expression

@@ -84,6 +84,6 @@ import * as pathTool from 'zrender/lib/tool/path.js';

* elements like `'group'`, `'text'`, `'image'` or event `'path'`. Those names
* are reserved names, that is, if some user register a shape named `'image'`,
* are reserved names, that is, if some user registers a shape named `'image'`,
* the shape will not be used. If we intending to add some more reserved names
* in feature, that might bring break changes (disable some existing user shape
* names). But that case probably rearly happen. So we dont make more mechanism
* names). But that case probably rarely happens. So we don't make more mechanism
* to resolve this issue here.

@@ -90,0 +90,0 @@ *

@@ -16,6 +16,6 @@ import { VectorArray } from 'zrender/lib/core/vector.js';

* @param {Array} points List of points.
* each point needs an array property to repesent the actual data
* each point needs an array property to represent the actual data
* @param {Number} [dimension]
* Point dimension.
* Default will use the first point's length as dimensiont
* Default will use the first point's length as dimension.
*/

@@ -29,3 +29,3 @@ declare class KDTree<T extends KDTreePoint> {

/**
* Resursively build the tree
* Recursively build the tree.
*/

@@ -32,0 +32,0 @@ private _buildTree;

@@ -81,9 +81,9 @@ import BoundingRect from 'zrender/lib/core/BoundingRect.js';

* 2. Rotate (against origin point in parent coord)
* 3. Traslate (with el.position by this method)
* So this method only fixes the last step 'Traslate', which does not affect
* 3. Translate (with el.position by this method)
* So this method only fixes the last step 'Translate', which does not affect
* scaling and rotating.
*
* If be called repeatly with the same input el, the same result will be gotten.
* If be called repeatedly with the same input el, the same result will be gotten.
*
* Return true if the layout happend.
* Return true if the layout happened.
*

@@ -90,0 +90,0 @@ * @param el Should have `getBoundingRect` method.

@@ -30,5 +30,5 @@ import { HashMap } from 'zrender/lib/core/util.js';

/**
* The method do not ensure performance.
* The method does not ensure performance.
* data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
* This helper method retieves value from data.
* This helper method retrieves value from data.
*/

@@ -76,5 +76,5 @@ export declare function getDataItemValue(dataItem: OptionDataItem): OptionDataValue | OptionDataValue[];

* (1) Only the id mapped components will be merged.
* (2) Other existing components (except internal compoonets) will be removed.
* (2) Other existing components (except internal components) will be removed.
* (3) Other new options will be used to create new component.
* (4) The index of the existing compoents will not be modified.
* (4) The index of the existing components will not be modified.
* That means their might be "hole" after the removal.

@@ -86,4 +86,4 @@ * The new components are created first at those available index.

* echarts instance (via `getOption`) in some simple cases.
* In this senario, the `result` index are exactly the consistent with the `newCmptOptions`,
* which ensures the compoennt index referring (like `xAxisIndex: ?`) corrent. That is,
* In this scenario, the `result` index are exactly the consistent with the `newCmptOptions`,
* which ensures the component index referring (like `xAxisIndex: ?`) corrent. That is,
* the "hole" in `newCmptOptions` will also be kept.

@@ -90,0 +90,0 @@ * On the contrary, other modes try best to eliminate holes.

@@ -41,3 +41,3 @@ /**

* in valueList is 1.
* The largest remainer method is used.
* The largest remainder method is used.
* https://en.wikipedia.org/wiki/Largest_remainder_method

@@ -54,3 +54,3 @@ *

* in valueList is 1.
* The largest remainer method is used.
* The largest remainder method is used.
* https://en.wikipedia.org/wiki/Largest_remainder_method

@@ -88,3 +88,3 @@ *

* (see <https://momentjs.com/>).
* + Or other string format, including (all of which will be treated as loacal time):
* + Or other string format, including (all of which will be treated as local time):
* '2012', '2012-3-1', '2012/3/1', '2012/03/01',

@@ -158,3 +158,3 @@ * '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123'

/**
* [Numberic is defined as]:
* [Numeric is defined as]:
* `parseFloat(val) == val`

@@ -186,3 +186,3 @@ * For example:

/**
* Get the greatest common dividor
* Get the greatest common divisor.
*

@@ -194,3 +194,3 @@ * @param {number} a one number

/**
* Get the least common multiple
* Get the least common multiple.
*

@@ -197,0 +197,0 @@ * @param {number} a one number

@@ -26,7 +26,7 @@ import { Dictionary } from 'zrender/lib/core/types.js';

* If we reuse elements when rerender.
* DONT forget to clearStates before we update the style and shape.
* DON'T forget to clearStates before we update the style and shape.
* Or we may update on the wrong state instead of normal state.
*/
export declare function clearStates(el: Element): void;
/**FI
/**
* Set hover style (namely "emphasis style") of element.

@@ -81,3 +81,3 @@ * @param el Should not be `zrender/graphic/Group`.

* Set element as highlight / downplay dispatcher.
* It will be checked when element recieved mouseover event or from highlight action.
* It will be checked when element received mouseover event or from highlight action.
* It's in change of all highlight/downplay behavior of it's children.

@@ -107,5 +107,5 @@ *

/**
* Support hightlight/downplay record on each elements.
* Support highlight/downplay record on each elements.
* For the case: hover highlight/downplay (legend, visualMap, ...) and
* user triggerred hightlight/downplay should not conflict.
* user triggered highlight/downplay should not conflict.
* Only all of the highlightDigit cleared, return to normal.

@@ -112,0 +112,0 @@ * @param {string} highlightKey

@@ -15,3 +15,3 @@ import { ZRStyleProps } from './types.js';

* @param hostStyle The properties might be modified.
* @return If be text el, `textContentStyle` and `textConfig` will not be retured.
* @return If be text el, `textContentStyle` and `textConfig` will not be returned.
* Otherwise a `textContentStyle` and `textConfig` will be created, whose props area

@@ -18,0 +18,0 @@ * retried from the `hostStyle`.

@@ -258,3 +258,3 @@ /**

* ```
* means that ordinal 2 should be diplayed on tick 0,
* means that ordinal 2 should be displayed on tick 0,
* ordinal 5 should be displayed on tick 1, ...

@@ -310,3 +310,3 @@ */

* Why place the tick value here rather than the raw ordinal value (like LogScale did)?
* Becuase ordinal scale sort is the different case from LogScale, where
* Because ordinal scale sort is the different case from LogScale, where
* axis tick, splitArea should better not to be sorted, especially in

@@ -549,3 +549,2 @@ * anid(animation id) when `boundaryGap: true`.

};
/******************* Mixins for Common Option Properties ********************** */
export declare type PaletteOptionMixin = ColorPaletteOptionMixin;

@@ -842,3 +841,3 @@ export interface ColorPaletteOptionMixin {

* Index of data which the label represents.
* It can be null if label does't represent any data.
* It can be null if label doesn't represent any data.
*/

@@ -848,3 +847,3 @@ dataIndex?: number;

* Type of data which the label represents.
* It can be null if label does't represent any data.
* It can be null if label doesn't represent any data.
*/

@@ -1047,3 +1046,3 @@ dataType?: SeriesDataType;

/**
* current value. When using axisPointer.handle, value can be set to define the initail position of axisPointer.
* current value. When using axisPointer.handle, value can be set to define the initial position of axisPointer.
*/

@@ -1050,0 +1049,0 @@ value?: ScaleDataValue;

/**
* A mapping of visual provided to deverloper and visual stored in the List module.
* A mapping of visual provided to developer and visual stored in the List module.
* To developer:

@@ -4,0 +4,0 @@ * 'color', 'opacity', 'symbol', 'symbolSize'...

@@ -124,3 +124,3 @@ import * as zrUtil from 'zrender/lib/core/util.js';

/**
* Convinent method.
* Convenient method.
* Visual can be Object or Array or primary type.

@@ -127,0 +127,0 @@ */

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc