提交 3e721e12 编写于 作者: S sushuang

add dev declarations.

上级 71b5d2b2
......@@ -65,7 +65,6 @@
"white": false,
"predef": [
"__DEV__",
"global"
]
}
\ No newline at end of file
......@@ -15,9 +15,7 @@ function getPathBasedOnECharts(path) {
* @param {boolean} [addBundleVersion=false]
*/
function getPlugins(min, lang, addBundleVersion) {
let plugins = [
ecDevPlugin()
];
let plugins = [];
lang && plugins.push(
ecLangPlugin({lang})
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import * as zrUtil from 'zrender/src/core/util';
import * as graphic from '../../util/graphic';
......
import {__DEV__} from '../config';
import * as echarts from '../echarts';
import * as zrUtil from 'zrender/src/core/util';
import * as graphicUtil from '../util/graphic';
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import * as graphic from '../../util/graphic';
import HeatmapLayer from './HeatmapLayer';
......
import {__DEV__} from '../../config';
import * as zrUtil from 'zrender/src/core/util';
import List from '../../data/List';
import completeDimensions from '../../data/helper/completeDimensions';
......
import {__DEV__} from '../../config';
import createListFromArray from '../helper/createListFromArray';
import SeriesModel from '../../model/Series';
......
// FIXME step not support polar
import {__DEV__} from '../../config';
import * as zrUtil from 'zrender/src/core/util';
import SymbolDraw from '../helper/SymbolDraw';
import SymbolClz from '../helper/Symbol';
......
import {__DEV__} from '../../config';
import SeriesModel from '../../model/Series';
import List from '../../data/List';
import * as zrUtil from 'zrender/src/core/util';
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import LineDraw from '../helper/LineDraw';
import EffectLine from '../helper/EffectLine';
......
import {__DEV__} from '../../config';
export default function (ecModel) {
ecModel.eachSeriesByType('lines', function (seriesModel) {
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import * as axisPointerModelHelper from '../axisPointer/modelHelper';
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import * as zrUtil from 'zrender/src/core/util';
import * as visualSolution from '../../visual/visualSolution';
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import * as zrUtil from 'zrender/src/core/util';
import env from 'zrender/src/core/env';
......
import {__DEV__} from '../config';
import * as echarts from '../echarts';
import * as zrUtil from 'zrender/src/core/util';
......
import {__DEV__} from '../../config';
import * as zrUtil from 'zrender/src/core/util';
import Eventful from 'zrender/src/mixin/Eventful';
import * as graphic from '../../util/graphic';
......
import {__DEV__} from '../../config';
import * as zrUtil from 'zrender/src/core/util';
import * as graphic from '../../util/graphic';
import * as modelUtil from '../../util/model';
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import * as zrUtil from 'zrender/src/core/util';
import {createSymbol} from '../../util/symbol';
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import * as zrUtil from 'zrender/src/core/util';
import env from 'zrender/src/core/env';
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import * as zrUtil from 'zrender/src/core/util';
import AxisBuilder from '../axis/AxisBuilder';
......
import {__DEV__} from '../../config';
import * as zrUtil from 'zrender/src/core/util';
import VisualMapModel from './VisualMapModel';
import VisualMapping from '../../visual/VisualMapping';
......
......@@ -2,13 +2,16 @@
// Enable DEV mode when using source code without build. which has no __DEV__ variable
// In build process 'typeof __DEV__' will be replace with 'boolean'
// So this code will be removed or disabled anyway after built.
if (typeof __DEV__ === 'undefined') {
// In browser
if (typeof window !== 'undefined') {
window.__DEV__ = true;
}
// In node
else if (typeof global !== 'undefined') {
global.__DEV__ = true;
}
}
// if (typeof __DEV__ === 'undefined') {
// // In browser
// if (typeof window !== 'undefined') {
// window.__DEV__ = true;
// }
// // In node
// else if (typeof global !== 'undefined') {
// global.__DEV__ = true;
// }
// }
export var __DEV__ = true;
import {__DEV__} from '../config';
import * as zrUtil from 'zrender/src/core/util';
import * as textContain from 'zrender/src/contain/text';
import OrdinalScale from '../scale/Ordinal';
......
......@@ -4,6 +4,7 @@
* TODO Default cartesian
*/
import {__DEV__} from '../../config';
import * as zrUtil from 'zrender/src/core/util';
import BoundingRect from 'zrender/src/core/BoundingRect';
import {getLayoutRect} from '../../util/layout';
......
import {__DEV__} from '../../config';
import * as echarts from '../../echarts';
import * as zrUtil from 'zrender/src/core/util';
import Geo from './Geo';
......
// TODO Axis scale
import {__DEV__} from '../../config';
import * as zrUtil from 'zrender/src/core/util';
import Polar from './Polar';
import {parsePercent} from '../../util/number';
......
......@@ -5,6 +5,7 @@
* @author Yi Shen(https://www.github.com/pissang)
*/
import {__DEV__} from '../config';
import * as zrUtil from 'zrender/src/core/util';
// id may be function name of Object, add a prefix to avoid this problem.
......
......@@ -3,6 +3,7 @@
* @module echarts/data/List
*/
import {__DEV__} from '../config';
import * as zrUtil from 'zrender/src/core/util';
import Model from '../model/Model';
import DataDiffer from './DataDiffer';
......
......@@ -9,6 +9,7 @@
* https://github.com/ecomfe/echarts/blob/master/LICENSE.txt
*/
import {__DEV__} from './config';
import * as zrender from 'zrender/src/zrender';
import * as zrUtil from 'zrender/src/core/util';
import * as colorTool from 'zrender/src/tool/color';
......
......@@ -18,6 +18,7 @@
* `mergeOption` in module:echarts/model/OptionManager.
*/
import {__DEV__} from '../config';
import * as zrUtil from 'zrender/src/core/util';
import * as modelUtil from '../util/model';
import Model from './Model';
......
import {__DEV__} from '../config';
import * as zrUtil from 'zrender/src/core/util';
import env from 'zrender/src/core/env';
import {
......
import {__DEV__} from '../config';
import * as zrUtil from 'zrender/src/core/util';
var TYPE_DELIMITER = '.';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册