提交 af2f4391 编写于 作者: S sushuang

tweak.

上级 9c4a004d
......@@ -173,7 +173,7 @@ rules:
no-this-before-super: 1
no-var: 0
no-duplicate-imports: 1
prefer-rest-params: 2
prefer-rest-params: 0
unicode-bom: 1
max-statements-per-line: 2
......
......@@ -34,7 +34,7 @@ var AxisPointerModel = echarts.extendComponentModel({
zlevel: 0,
z: 50,
type: 'line',
type: 'line', // 'line' 'shadow' 'cross' 'none'.
// axispointer triggered by tootip determine snap automatically,
// see `modelHelper`.
snap: false,
......
......@@ -59,8 +59,8 @@ function assembleFont(textStyleModel) {
cssText.push('font:' + textStyleModel.getFont());
fontSize &&
cssText.push('line-height:' + Math.round(fontSize * 3 / 2) + 'px');
fontSize
&& cssText.push('line-height:' + Math.round(fontSize * 3 / 2) + 'px');
each(['decoration', 'align'], function (name) {
var val = textStyleModel.get(name);
......@@ -85,8 +85,8 @@ function assembleCssText(tooltipModel) {
var padding = tooltipModel.get('padding');
// Animation transition. Do not animate when transitionDuration is 0.
transitionDuration &&
cssText.push(assembleTransition(transitionDuration));
transitionDuration
&& cssText.push(assembleTransition(transitionDuration));
if (backgroundColor) {
if (env.canvasSupported) {
......@@ -106,8 +106,8 @@ function assembleCssText(tooltipModel) {
var borderName = 'border-' + name;
var camelCase = toCamelCase(borderName);
var val = tooltipModel.get(camelCase);
val != null &&
cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px'));
val != null
&& cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px'));
});
// Text style
......@@ -215,7 +215,7 @@ TooltipContent.prototype = {
+ ';left:' + this._x + 'px;top:' + this._y + 'px;'
+ (tooltipModel.get('extraCssText') || '');
el.style.display = el.innerHTML ? 'block' : 'none';
el.style.display = el.innerHTML ? 'block' : 'none';
// If mouse occsionally move over the tooltip, a mouseout event will be
// triggered by canvas, and cuase some unexpectable result like dragging
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册