提交 8db36cfd 编写于 作者: S sushuang

Fix zr import.

上级 e6ccb845
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
var coordinateSystemCreators = {};
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
var echartsAPIList = [
'getDom', 'getZr', 'getWidth', 'getHeight', 'getDevicePixelRatio', 'dispatchAction', 'isDisposed',
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
export default function (seriesType, actionInfos) {
zrUtil.each(actionInfos, function (actionInfo) {
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {updateCenterAndZoom} from './roamHelper';
/**
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import barLayoutGrid from '../layout/barGrid';
import '../coord/cartesian/Grid';
......
import * as echarts from '../../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import {setLabel} from './helper';
import Model from '../../model/Model';
......
import * as echarts from '../../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import {createSymbol} from '../../util/symbol';
import {parsePercent, isNumeric} from '../../util/number';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import SeriesModel from '../../model/Series';
import {seriesModelMixin} from '../helper/whiskerBoxCommon';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import ChartView from '../../view/Chart';
import * as graphic from '../../util/graphic';
import {viewMixin} from '../helper/whiskerBoxCommon';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {parsePercent} from '../../util/number';
var each = zrUtil.each;
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import SeriesModel from '../../model/Series';
import {seriesModelMixin} from '../helper/whiskerBoxCommon';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import ChartView from '../../view/Chart';
import * as graphic from '../../util/graphic';
import {viewMixin} from '../helper/whiskerBoxCommon';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {parsePercent} from '../../util/number';
import {subPixelOptimize} from '../../util/graphic';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
export default function (option) {
if (!option || !zrUtil.isArray(option.series)) {
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import './chord/ChordSeries';
import './chord/ChordView';
......
......@@ -3,7 +3,7 @@
* @module echarts/chart/chord/chordCircularLayout
* @author pissang(http://github.com/pissang)
*/
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {parsePercent} from '../../util/number';
/**
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphicUtil from '../util/graphic';
import {findLabelValueDim} from './helper/labelHelper';
import createListFromArray from './helper/createListFromArray';
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import './effectScatter/EffectScatterSeries';
import './effectScatter/EffectScatterView';
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import './funnel/FunnelSeries';
import './funnel/FunnelView';
......
import * as graphic from '../../util/graphic';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import ChartView from '../../view/Chart';
/**
......
import List from '../../data/List';
import SeriesModel from '../../model/Series';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
var GaugeSeries = SeriesModel.extend({
......
import {Path} from 'zrender';
import Path from 'zrender/graphic/Path';
export default Path.extend({
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import './graph/GraphSeries';
import './graph/GraphView';
......
import * as echarts from '../../echarts';
import List from '../../data/List';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {defaultEmphasis} from '../../util/model';
import Model from '../../model/Model';
import {encodeHTML} from '../../util/format';
......
import * as echarts from '../../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import SymbolDraw from '../helper/SymbolDraw';
import LineDraw from '../helper/LineDraw';
import RoamController from '../../component/helper/RoamController';
......
import {curve as curveTool} from 'zrender';
import {vector as vec2} from 'zrender';
import * as curveTool from 'zrender/core/curve';
import * as vec2 from 'zrender/core/vector';
var v1 = [];
var v2 = [];
......
// FIXME Where to create the simple view coordinate system
import View from '../../coord/View';
import {getLayoutRect} from '../../util/layout';
import {bbox} from 'zrender';
import * as bbox from 'zrender/core/bbox';
function getViewRect(seriesModel, api, aspect) {
var option = seriesModel.getBoxLayoutParams();
......
import {vector as vec2} from 'zrender';
import * as vec2 from 'zrender/core/vector';
var scaleAndAdd = vec2.scaleAndAdd;
......
......@@ -2,8 +2,8 @@ import {forceLayout} from './forceHelper';
import {simpleLayout} from './simpleLayoutHelper';
import {circularLayout} from './circularLayoutHelper';
import {linearMap} from '../../util/number';
import {vector as vec2} from 'zrender';
import {util as zrUtil} from 'zrender';
import * as vec2 from 'zrender/core/vector';
import * as zrUtil from 'zrender/core/util';
export default function (ecModel) {
ecModel.eachSeriesByType('graph', function (graphSeries) {
......
import {vector as vec2} from 'zrender';
import * as vec2 from 'zrender/core/vector';
export function simpleLayout(seriesModel) {
var coordSys = seriesModel.coordinateSystem;
......
......@@ -6,7 +6,7 @@
* @module
*/
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
var GRADIENT_LEVELS = 256;
......
import * as echarts from '../../echarts';
import * as graphic from '../../util/graphic';
import HeatmapLayer from './HeatmapLayer';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
function getIsInPiecewiseRange(dataExtent, pieceList, selected) {
var dataSpan = dataExtent[1] - dataExtent[0];
......
......@@ -5,10 +5,10 @@
import * as graphic from '../../util/graphic';
import Line from './Line';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {createSymbol} from '../../util/symbol';
import {vector as vec2} from 'zrender';
import {curve as curveUtil} from 'zrender';
import * as vec2 from 'zrender/core/vector';
import * as curveUtil from 'zrender/core/curve';
/**
* @constructor
......
......@@ -4,9 +4,9 @@
*/
import Polyline from './Polyline';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import EffectLine from './EffectLine';
import {vector as vec2} from 'zrender';
import * as vec2 from 'zrender/core/vector';
/**
* @constructor
......
......@@ -3,7 +3,7 @@
* @module echarts/chart/helper/EffectSymbol
*/
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {createSymbol} from '../../util/symbol';
import {Group} from '../../util/graphic';
import {parsePercent} from '../../util/number';
......
// TODO Batch by color
import * as graphic from '../../util/graphic';
import {contain} from 'zrender';
import * as lineContain from 'zrender/contain/line';
import * as quadraticContain from 'zrender/contain/quadratic';
var LargeLineShape = graphic.extendShape({
shape: {
......@@ -45,7 +46,7 @@ var LargeLineShape = graphic.extendShape({
var seg = segs[i];
if (isPolyline) {
for (var j = 1; j < seg.length; j++) {
if (contain.line.containStroke(
if (lineContain.containStroke(
seg[j - 1][0], seg[j - 1][1], seg[j][0], seg[j][1], lineWidth, x, y
)) {
return i;
......@@ -54,14 +55,14 @@ var LargeLineShape = graphic.extendShape({
}
else {
if (seg.length > 2) {
if (contain.quadratic.containStroke(
if (quadraticContain.containStroke(
seg[0][0], seg[0][1], seg[2][0], seg[2][1], seg[1][0], seg[1][1], lineWidth, x, y
)) {
return i;
}
}
else {
if (contain.line.containStroke(
if (lineContain.containStroke(
seg[0][0], seg[0][1], seg[1][0], seg[1][1], lineWidth, x, y
)) {
return i;
......
......@@ -2,7 +2,8 @@
* @module echarts/chart/helper/Line
*/
import {util as zrUtil, vector} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as vector from 'zrender/core/vector';
import * as symbolUtil from '../../util/symbol';
import LinePath from './LinePath';
import * as graphic from '../../util/graphic';
......
......@@ -3,7 +3,7 @@
*/
import * as graphic from '../../util/graphic';
import {vector as vec2} from 'zrender';
import * as vec2 from 'zrender/core/vector';
var straightLineProto = graphic.Line.prototype;
var bezierCurveProto = graphic.BezierCurve.prototype;
......
......@@ -3,7 +3,7 @@
*/
import * as graphic from '../../util/graphic';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
/**
* @constructor
......
......@@ -2,7 +2,7 @@
* @module echarts/chart/helper/Symbol
*/
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {createSymbol} from '../../util/symbol';
import * as graphic from '../../util/graphic';
import {parsePercent} from '../../util/number';
......
......@@ -2,7 +2,7 @@
* @module echarts/chart/helper/Symbol
*/
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import Path from 'zrender/graphic/Path';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import List from '../../data/List';
import Graph from '../../data/Graph';
import linkList from '../../data/helper/linkList';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import List from '../../data/List';
import Graph from '../../data/Graph';
import linkList from '../../data/helper/linkList';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import List from '../../data/List';
import completeDimensions from '../../data/helper/completeDimensions';
import {getDataItemValue, converDataValue, isDataItemOption} from '../../util/model';
......
......@@ -2,7 +2,7 @@
import List from '../../data/List';
import completeDimensions from '../../data/helper/completeDimensions';
import WhiskerBoxDraw from '../helper/WhiskerBoxDraw';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
export var seriesModelMixin = {
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import './line/LineSeries';
import './line/LineView';
......
// FIXME step not support polar
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import SymbolDraw from '../helper/SymbolDraw';
import SymbolClz from '../helper/Symbol';
import lineAnimationDiff from './lineAnimationDiff';
......
// Poly path support NaN point
import Path from 'zrender/graphic/Path';
import {vector as vec2, zrHelper} from 'zrender';
import * as vec2 from 'zrender/core/vector';
import fixClipWithShadow from 'zrender/graphic/helper/fixClipWithShadow';
var vec2Min = vec2.min;
var vec2Max = vec2.max;
......@@ -151,7 +152,7 @@ export var Polyline = Path.extend({
stroke: '#000'
},
brush: zrHelper.fixClipWithShadow(Path.prototype.brush),
brush: fixClipWithShadow(Path.prototype.brush),
buildPath: function (ctx, shape) {
var points = shape.points;
......@@ -205,7 +206,7 @@ export var Polygon = Path.extend({
connectNulls: false
},
brush: zrHelper.fixClipWithShadow(Path.prototype.brush),
brush: fixClipWithShadow(Path.prototype.brush),
buildPath: function (ctx, shape) {
var points = shape.points;
......
import SeriesModel from '../../model/Series';
import List from '../../data/List';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {encodeHTML} from '../../util/format';
import CoordinateSystem from '../../CoordinateSystem';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import List from '../../data/List';
import SeriesModel from '../../model/Series';
import completeDimensions from '../../data/helper/completeDimensions';
......
import * as echarts from '../../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import MapDraw from '../../component/helper/MapDraw';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
export default function (option) {
// Save geoCoord
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
// FIXME 公用?
/**
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
export default function (ecModel) {
......
import List from '../../data/List';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import SeriesModel from '../../model/Series';
import completeDimensions from '../../data/helper/completeDimensions';
......
import * as graphic from '../../util/graphic';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import ChartView from '../../view/Chart';
var SMOOTH = 0.3;
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import '../coord/cartesian/Grid';
import './bar/PictorialBarSeries';
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import './pie/PieSeries';
import './pie/PieView';
......
import * as echarts from '../../echarts';
import List from '../../data/List';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as modelUtil from '../../util/model';
import {getPercentWithPrecision} from '../../util/number';
import completeDimensions from '../../data/helper/completeDimensions';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import ChartView from '../../view/Chart';
......
// FIXME emphasis label position is not same with normal label position
import {contain} from 'zrender';
import * as textContain from 'zrender/contain/text';
function adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight) {
list.sort(function (a, b) {
......@@ -194,7 +194,7 @@ export default function (seriesModel, r, viewWidth, viewHeight) {
? (dx < 0 ? -midAngle + Math.PI : -midAngle) : 0;
var text = seriesModel.getFormattedLabel(idx, 'normal')
|| data.getName(idx);
var textRect = contain.text.getBoundingRect(
var textRect = textContain.getBoundingRect(
text, font, textAlign, 'top'
);
hasLabelRotate = !!labelRotate;
......
import {parsePercent, linearMap} from '../../util/number';
import labelLayout from './labelLayout';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
var PI2 = Math.PI * 2;
var RADIAN = Math.PI / 180;
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
// Must use radar component
import '../component/radar';
......
import SeriesModel from '../../model/Series';
import List from '../../data/List';
import completeDimensions from '../../data/helper/completeDimensions';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {encodeHTML} from '../../util/format';
var RadarSeries = SeriesModel.extend({
......
import * as echarts from '../../echarts';
import * as graphic from '../../util/graphic';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as symbolUtil from '../../util/symbol';
function normalizeSymbolSize(symbolSize) {
......
// Backward compat for radar chart in 2
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
export default function (option) {
var polarOptArr = option.polar;
......
......@@ -5,7 +5,7 @@
import * as layout from '../../util/layout';
import nest from '../../util/array/nest';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
export default function (ecModel, api, payload) {
......
......@@ -4,7 +4,7 @@
*/
import VisualMapping from '../../visual/VisualMapping';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
export default function (ecModel, payload) {
ecModel.eachSeriesByType('sankey', function (seriesModel) {
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import './scatter/ScatterSeries';
import './scatter/ScatterView';
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import '../component/singleAxis';
import './themeRiver/ThemeRiverSeries';
......
......@@ -6,7 +6,7 @@
import completeDimensions from '../../data/helper/completeDimensions';
import SeriesModel from '../../model/Series';
import List from '../../data/List';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {encodeHTML} from '../../util/format';
import nest from '../../util/array/nest';
......
......@@ -6,7 +6,7 @@
import * as echarts from '../../echarts';
import {Polygon} from '../line/poly';
import * as graphic from '../../util/graphic';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import DataDiffer from '../../data/DataDiffer';
export default echarts.extendChartView({
......
......@@ -3,7 +3,7 @@
* @author Deqing Li(annong035@gmail.com)
*/
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as numberUtil from '../../util/number';
export default function (ecModel, api) {
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import './tree/TreeSeries';
import './tree/TreeView';
......
......@@ -2,7 +2,7 @@
* @file This file used to draw tree view
*/
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import SymbolClz from '../helper/Symbol';
import {radialCoordinate} from './layoutHelper';
......
import * as graphic from '../../util/graphic';
import * as layout from '../../util/layout';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import {wrapTreePathInfo} from './helper';
var TEXT_PADDING = 8;
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import SeriesModel from '../../model/Series';
import Tree from '../../data/Tree';
import Model from '../../model/Model';
......
import * as echarts from '../../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import DataDiffer from '../../data/DataDiffer';
import * as helper from './helper';
import Breadcrumb from './Breadcrumb';
import RoamController from '../../component/helper/RoamController';
import {BoundingRect} from 'zrender';
import {matrix} from 'zrender';
import BoundingRect from 'zrender/core/BoundingRect';
import * as matrix from 'zrender/core/matrix';
import * as animationUtil from '../../util/animation';
import makeStyleMapper from '../../model/mixin/makeStyleMapper';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
export function retrieveTargetInfo(payload, seriesModel) {
if (payload
......
import {util as zrUtil, BoundingRect} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import BoundingRect from 'zrender/core/BoundingRect';
import {parsePercent, MAX_SAFE_INTEGER} from '../../util/number';
import * as layout from '../../util/layout';
import * as helper from './helper';
......
import VisualMapping from '../../visual/VisualMapping';
import {
color as zrColor,
util as zrUtil
} from 'zrender';
import * as zrColor from 'zrender/tool/color';
import * as zrUtil from 'zrender/core/util';
var isArray = zrUtil.isArray;
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import Model from '../../model/Model';
import AxisView from './AxisView';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as formatUtil from '../../util/format';
import * as graphic from '../../util/graphic';
import Model from '../../model/Model';
import {isRadianAroundZero, remRadian} from '../../util/number';
import {matrix as matrixUtil} from 'zrender';
import {vector as vec2} from 'zrender';
import * as matrixUtil from 'zrender/core/matrix';
import * as vec2 from 'zrender/core/vector';
var v2ApplyTransform = vec2.applyTransform;
var retrieve = zrUtil.retrieve;
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import AxisBuilder from './AxisBuilder';
import AxisView from './AxisView';
......
import * as echarts from '../../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import AxisBuilder from './AxisBuilder';
import BrushController from '../helper/BrushController';
import * as brushHelper from '../helper/brushHelper';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import AxisBuilder from './AxisBuilder';
import AxisView from './AxisView';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import AxisBuilder from './AxisBuilder';
import * as graphic from '../../util/graphic';
import * as singleAxisHelper from './singleAxisHelper';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
/**
* @param {Object} opt {labelInside}
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
/**
* @param {Object} opt {labelInside}
......
import * as echarts from '../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as axisPointerModelHelper from './axisPointer/modelHelper';
import axisTrigger from './axisPointer/axisTrigger';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as clazzUtil from '../../util/clazz';
import * as graphic from '../../util/graphic';
import * as axisPointerModelHelper from './modelHelper';
import {event as eventTool} from 'zrender';
import * as eventTool from 'zrender/core/event';
import * as throttleUtil from '../../util/throttle';
import * as modelUtil from '../../util/model';
......
......@@ -2,7 +2,7 @@ import * as formatUtil from '../../util/format';
import BaseAxisPointer from './BaseAxisPointer';
import * as graphic from '../../util/graphic';
import * as viewHelper from './viewHelper';
import {matrix} from 'zrender';
import * as matrix from 'zrender/core/matrix';
import AxisBuilder from '../axis/AxisBuilder';
import AxisView from '../axis/AxisView';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as modelUtil from '../../util/model';
import * as modelHelper from './modelHelper';
import findPointFromSeries from './findPointFromSeries';
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as modelUtil from '../../util/model';
/**
......
import {util as zrUtil} from 'zrender';
import {env} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import env from 'zrender/core/env';
import * as modelUtil from '../../util/model';
var get = modelUtil.makeGetter();
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import Model from '../../model/Model';
var each = zrUtil.each;
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as graphic from '../../util/graphic';
import {contain} from 'zrender';
import * as textContain from 'zrender/contain/text';
import * as formatUtil from '../../util/format';
import {matrix} from 'zrender';
import * as matrix from 'zrender/core/matrix';
import * as axisHelper from '../../coord/axisHelper';
import AxisBuilder from '../axis/AxisBuilder';
......@@ -43,7 +43,7 @@ export function buildLabelElOption(
var paddings = formatUtil.normalizeCssArray(labelModel.get('padding') || 0);
var font = labelModel.getFont();
var textRect = contain.text.getBoundingRect(text, font);
var textRect = textContain.getBoundingRect(text, font);
var position = labelPos.position;
var width = textRect.width + paddings[1] + paddings[3];
......
import * as echarts from '../../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import * as visualSolution from '../../visual/visualSolution';
import Model from '../../model/Model';
......
import * as echarts from '../../echarts';
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
import BrushController from '../helper/BrushController';
export default echarts.extendComponentView({
......
import {util as zrUtil} from 'zrender';
import * as zrUtil from 'zrender/core/util';
var DEFAULT_TOOLBOX_BTNS = ['rect', 'polygon', 'keep', 'clear'];
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册