|
3654 | 3654 | markTouch(event = normalizeEvent(this.dom, event)), this.handler.processGesture(event, 'change'), localDOMHandlers.mousemove.call(this, event);
|
3655 | 3655 | },
|
3656 | 3656 | touchend: function(event) {
|
3657 |
| - markTouch(event = normalizeEvent(this.dom, event)), this.handler.processGesture(event, 'end'), localDOMHandlers.mouseup.call(this, event), +new Date() - +this.__lastTouchMoment < 300 && localDOMHandlers.click.call(this, event); |
| 3657 | + markTouch(event = normalizeEvent(this.dom, event)), this.handler.processGesture(event, 'end'), localDOMHandlers.mouseup.call(this, event), new Date() - this.__lastTouchMoment < 300 && localDOMHandlers.click.call(this, event); |
3658 | 3658 | },
|
3659 | 3659 | pointerdown: function(event) {
|
3660 | 3660 | localDOMHandlers.mousedown.call(this, event);
|
|
3727 | 3727 | }, HandlerDomProxy.prototype.setCursor = function(cursorStyle) {
|
3728 | 3728 | this.dom.style && (this.dom.style.cursor = cursorStyle || 'default');
|
3729 | 3729 | }, HandlerDomProxy.prototype.__togglePointerCapture = function(isPointerCapturing) {
|
3730 |
| - if (this.__mayPointerCapture = null, globalEventSupported && +this.__pointerCapturing ^ +isPointerCapturing) { |
| 3730 | + if (this.__mayPointerCapture = null, globalEventSupported && this.__pointerCapturing ^ isPointerCapturing) { |
3731 | 3731 | this.__pointerCapturing = isPointerCapturing;
|
3732 | 3732 | var globalHandlerScope = this._globalHandlerScope;
|
3733 | 3733 | isPointerCapturing ? function(instance, scope) {
|
|
4099 | 4099 | // Use local time when no timezone offset specifed.
|
4100 | 4100 | if (!match[8]) // match[n] can only be string or undefined.
|
4101 | 4101 | // But take care of '12' + 1 => '121'.
|
4102 |
| - return new Date(+match[1], +(match[2] || 1) - 1, +match[3] || 1, +match[4] || 0, +(match[5] || 0), +match[6] || 0, +match[7] || 0); |
| 4102 | + return new Date(+match[1], (match[2] || 1) - 1, +match[3] || 1, +match[4] || 0, +(match[5] || 0), +match[6] || 0, +match[7] || 0); |
4103 | 4103 | var hour = +match[4] || 0;
|
4104 |
| - return 'Z' !== match[8].toUpperCase() && (hour -= +match[8].slice(0, 3)), new Date(Date.UTC(+match[1], +(match[2] || 1) - 1, +match[3] || 1, hour, +(match[5] || 0), +match[6] || 0, +match[7] || 0)); |
| 4104 | + return 'Z' !== match[8].toUpperCase() && (hour -= match[8].slice(0, 3)), new Date(Date.UTC(+match[1], (match[2] || 1) - 1, +match[3] || 1, hour, +(match[5] || 0), +match[6] || 0, +match[7] || 0)); |
4105 | 4105 | }
|
4106 | 4106 | return new Date(null == value ? NaN : Math.round(value));
|
4107 | 4107 | }
|
|
13570 | 13570 | el.beforeBrush && el.beforeBrush(), el.innerBeforeBrush();
|
13571 | 13571 | var prevEl = scope.prevEl;
|
13572 | 13572 | prevEl || (forceSetStyle = forceSetTransform = !0);
|
13573 |
| - var canBatchPath = el instanceof Path && el.autoBatch && (hasFill = styleHasFill(style = el.style), hasStroke = styleHasStroke(style), !(style.lineDash || !(+hasFill ^ +hasStroke) || hasFill && 'string' != typeof style.fill || hasStroke && 'string' != typeof style.stroke || style.strokePercent < 1 || style.strokeOpacity < 1 || style.fillOpacity < 1)); |
| 13573 | + var canBatchPath = el instanceof Path && el.autoBatch && (hasFill = styleHasFill(style = el.style), hasStroke = styleHasStroke(style), !(style.lineDash || !(hasFill ^ hasStroke) || hasFill && 'string' != typeof style.fill || hasStroke && 'string' != typeof style.stroke || style.strokePercent < 1 || style.strokeOpacity < 1 || style.fillOpacity < 1)); |
13574 | 13574 | !forceSetTransform && (m1 = prevEl.transform, m && m1 ? m[0] === m1[0] && m[1] === m1[1] && m[2] === m1[2] && m[3] === m1[3] && m[4] === m1[4] && m[5] === m1[5] : +(!m && !m1)) ? canBatchPath || flushPathDrawn(ctx, scope) : (flushPathDrawn(ctx, scope), setContextTransform(ctx, el));
|
13575 | 13575 | var style1 = getStyle(el, scope.inHover);
|
13576 | 13576 | el instanceof Path ? (1 !== scope.lastDrawType && (forceSetStyle = !0, scope.lastDrawType = 1), bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetStyle, scope), canBatchPath && (scope.batchFill || scope.batchStroke) || ctx.beginPath(), function(ctx, el, style, inBatch) {
|
|
15145 | 15145 | // frame is executed immedietely after task reset.
|
15146 | 15146 | // this._coordSysMgr.update(ecModel, api);
|
15147 | 15147 | // console.log('--- ec frame visual ---', remainTime);
|
15148 |
| - scheduler.performVisualTasks(ecModel), renderSeries(this, this._model, api, 'remain'), remainTime -= +new Date() - startTime; |
| 15148 | + scheduler.performVisualTasks(ecModel), renderSeries(this, this._model, api, 'remain'), remainTime -= new Date() - startTime; |
15149 | 15149 | }while (remainTime > 0 && scheduler.unfinished) // Call flush explicitly for trigger finished event.
|
15150 | 15150 | scheduler.unfinished || this._zr.flush(); // Else, zr flushing be ensue within the same frame,
|
15151 | 15151 | // because zr flushing is after onframe event.
|
|
15970 | 15970 | function disposedWarning(id) {
|
15971 | 15971 | console.warn('Instance ' + id + ' has been disposed');
|
15972 | 15972 | }
|
15973 |
| - var actions = {}, eventActionMap = {}, dataProcessorFuncs = [], optionPreprocessorFuncs = [], postInitFuncs = [], postUpdateFuncs = [], visualFuncs = [], themeStorage = {}, loadingEffects = {}, instances$1 = {}, connectedGroups = {}, idBase = +new Date() - 0, groupIdBase = +new Date() - 0, DOM_ATTRIBUTE_KEY = '_echarts_instance_'; |
| 15973 | + var actions = {}, eventActionMap = {}, dataProcessorFuncs = [], optionPreprocessorFuncs = [], postInitFuncs = [], postUpdateFuncs = [], visualFuncs = [], themeStorage = {}, loadingEffects = {}, instances$1 = {}, connectedGroups = {}, idBase = new Date() - 0, groupIdBase = new Date() - 0, DOM_ATTRIBUTE_KEY = '_echarts_instance_'; |
15974 | 15974 | /**
|
15975 | 15975 | * @deprecated
|
15976 | 15976 | */ function disConnect(groupId) {
|
|
23335 | 23335 | layout.position = [
|
23336 | 23336 | 'y' === axisDim ? posBound[idx[axisPosition]] : rectBound[0],
|
23337 | 23337 | 'x' === axisDim ? posBound[idx[axisPosition]] : rectBound[3]
|
23338 |
| - ], layout.rotation = Math.PI / 2 * +('x' !== axisDim), layout.labelDirection = layout.tickDirection = layout.nameDirection = ({ |
| 23338 | + ], layout.rotation = Math.PI / 2 * ('x' !== axisDim), layout.labelDirection = layout.tickDirection = layout.nameDirection = ({ |
23339 | 23339 | top: -1,
|
23340 | 23340 | bottom: 1,
|
23341 | 23341 | left: -1,
|
|
29080 | 29080 | ];
|
29081 | 29081 | symbolOffsetArr[0] = parsePercent$1(symbolOffsetArr[0], symbolSizeArr[0]), symbolOffsetArr[1] = parsePercent$1(retrieve2(symbolOffsetArr[1], symbolOffsetArr[0]), symbolSizeArr[1]);
|
29082 | 29082 | var symbolPath = createSymbol(symbolType, -symbolSizeArr[0] / 2 + symbolOffsetArr[0], -symbolSizeArr[1] / 2 + symbolOffsetArr[1], symbolSizeArr[0], symbolSizeArr[1], null, symbolKeepAspect);
|
29083 |
| - return symbolPath.__specifiedRotation = null == symbolRotate || isNaN(symbolRotate) ? void 0 : +symbolRotate * Math.PI / 180 || 0, symbolPath.name = name, symbolPath; |
| 29083 | + return symbolPath.__specifiedRotation = null == symbolRotate || isNaN(symbolRotate) ? void 0 : symbolRotate * Math.PI / 180 || 0, symbolPath.name = name, symbolPath; |
29084 | 29084 | }
|
29085 | 29085 | }
|
29086 | 29086 | function setLinePoints(targetShape, points) {
|
|
32503 | 32503 | }, !0));
|
32504 | 32504 | });
|
32505 | 32505 | }), each(edges, function(edge) {
|
32506 |
| - var edgeDy = +edge.getValue() * minKy; |
| 32506 | + var edgeDy = edge.getValue() * minKy; |
32507 | 32507 | edge.setLayout({
|
32508 | 32508 | dy: edgeDy
|
32509 | 32509 | }, !0);
|
|
34347 | 34347 | ],
|
34348 | 34348 | isHorizontal: isHorizontal,
|
34349 | 34349 | valueDim: LAYOUT_ATTRS[+isHorizontal],
|
34350 |
| - categoryDim: LAYOUT_ATTRS[1 - +isHorizontal] |
| 34350 | + categoryDim: LAYOUT_ATTRS[1 - isHorizontal] |
34351 | 34351 | };
|
34352 | 34352 | return data.diff(oldData).add(function(dataIndex) {
|
34353 | 34353 | if (data.hasValue(dataIndex)) {
|
|
34393 | 34393 | z2: itemModel.getShallow('z', !0) || 0
|
34394 | 34394 | };
|
34395 | 34395 | (function(itemModel, symbolRepeat, layout, opt, outputSymbolMeta) {
|
34396 |
| - var boundingLength, valueDim = opt.valueDim, symbolBoundingData = itemModel.get('symbolBoundingData'), valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis()), zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0)), pxSignIdx = 1 - +(layout[valueDim.wh] <= 0); |
| 34396 | + var boundingLength, valueDim = opt.valueDim, symbolBoundingData = itemModel.get('symbolBoundingData'), valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis()), zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0)), pxSignIdx = 1 - (layout[valueDim.wh] <= 0); |
34397 | 34397 | if (isArray(symbolBoundingData)) {
|
34398 | 34398 | var symbolBoundingExtent = [
|
34399 | 34399 | convertToCoordOnAxis(valueAxis, symbolBoundingData[0]) - zeroPx,
|
|
39339 | 39339 | var firstDayPoints = this._firstDayPoints[i];
|
39340 | 39340 | tmp[axis] = (firstDayPoints[axis] + termPoints[0][i + 1][axis]) / 2;
|
39341 | 39341 | }
|
39342 |
| - var formatter = monthLabel.get('formatter'), name_1 = nameMap[+firstDay.m - 1], params = { |
| 39342 | + var formatter = monthLabel.get('formatter'), name_1 = nameMap[firstDay.m - 1], params = { |
39343 | 39343 | yyyy: firstDay.y,
|
39344 | 39344 | yy: (firstDay.y + '').slice(2),
|
39345 | 39345 | MM: firstDay.m,
|
|
46007 | 46007 | if (this._brushing = !1, brushRect) {
|
46008 | 46008 | brushRect.attr('ignore', !0);
|
46009 | 46009 | var brushShape = brushRect.shape;
|
46010 |
| - if (!(+new Date() - this._brushStartTime < 200 && 5 > Math.abs(brushShape.width))) { |
| 46010 | + if (!(new Date() - this._brushStartTime < 200 && 5 > Math.abs(brushShape.width))) { |
46011 | 46011 | var viewExtend = this._getViewExtent(), percentExtent = [
|
46012 | 46012 | 0,
|
46013 | 46013 | 100
|
|
0 commit comments