This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch fix-svg-export
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 5e07fa7d27699f431ff1119e492898e9ccab2127
Author: plainheart <[email protected]>
AuthorDate: Fri Nov 20 21:47:18 2020 +0800

    fix(lint): fix some format and unused var issues checked by eslint.
---
 src/chart/funnel/FunnelView.ts                | 3 +--
 src/chart/gauge/GaugeView.ts                  | 4 +++-
 src/component/marker/MarkLineModel.ts         | 5 ++---
 src/component/marker/MarkerView.ts            | 5 +++--
 src/component/timeline/SliderTimelineModel.ts | 6 +++---
 src/component/toolbox/feature/MagicType.ts    | 2 +-
 src/model/Series.ts                           | 2 +-
 src/model/mixin/palette.ts                    | 1 -
 8 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/chart/funnel/FunnelView.ts b/src/chart/funnel/FunnelView.ts
index 63895ad..99a6e0a 100644
--- a/src/chart/funnel/FunnelView.ts
+++ b/src/chart/funnel/FunnelView.ts
@@ -27,7 +27,6 @@ import List from '../../data/List';
 import { ColorString } from '../../util/types';
 import { setLabelLineStyle, getLabelLineStatesModels } from 
'../../label/labelGuideHelper';
 import { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';
-import { retrieveVisualColorForTooltipMarker } from 
'../../component/tooltip/tooltipMarkup';
 
 const opacityAccessPath = ['itemStyle', 'opacity'] as const;
 
@@ -212,4 +211,4 @@ class FunnelView extends ChartView {
 ChartView.registerClass(FunnelView);
 
 
-export default FunnelView;
\ No newline at end of file
+export default FunnelView;
diff --git a/src/chart/gauge/GaugeView.ts b/src/chart/gauge/GaugeView.ts
index 0560361..4a8584b 100644
--- a/src/chart/gauge/GaugeView.ts
+++ b/src/chart/gauge/GaugeView.ts
@@ -583,7 +583,9 @@ class GaugeView extends ChartView {
                     }, {inheritColor: autoColor})
                 });
                 setLabelValueAnimation(
-                    labelEl, {normal: itemTitleModel}, 
seriesModel.getRawValue(idx) as ParsedValue, () => data.getName(idx)
+                    labelEl, {normal: itemTitleModel},
+                    seriesModel.getRawValue(idx) as ParsedValue,
+                    () => data.getName(idx)
                 );
                 hasAnimation && animateLabelValue(labelEl, idx, data, 
seriesModel);
 
diff --git a/src/component/marker/MarkLineModel.ts 
b/src/component/marker/MarkLineModel.ts
index bd81c5d..f6d1faa 100644
--- a/src/component/marker/MarkLineModel.ts
+++ b/src/component/marker/MarkLineModel.ts
@@ -25,8 +25,7 @@ import {
     SeriesLineLabelOption,
     SymbolOptionMixin,
     ItemStyleOption,
-    StatesOptionMixin,
-    CallbackDataParams
+    StatesOptionMixin
 } from '../../util/types';
 
 interface MarkLineStateOption {
@@ -140,4 +139,4 @@ class MarkLineModel extends MarkerModel<MarkLineOption> {
 
 ComponentModel.registerClass(MarkLineModel);
 
-export default MarkLineModel;
\ No newline at end of file
+export default MarkLineModel;
diff --git a/src/component/marker/MarkerView.ts 
b/src/component/marker/MarkerView.ts
index 56b8a04..9f07441 100644
--- a/src/component/marker/MarkerView.ts
+++ b/src/component/marker/MarkerView.ts
@@ -73,7 +73,8 @@ abstract class MarkerView extends ComponentView {
 
     blurSeries(seriesModelList: SeriesModel[]) {
         each(seriesModelList, seriesModel => {
-            const markerModel = 
MarkerModel.getMarkerModelFromSeries(seriesModel, this.type as 'markPoint' | 
'markLine' | 'markArea');
+            const markerModel = 
MarkerModel.getMarkerModelFromSeries(seriesModel,
+                this.type as 'markPoint' | 'markLine' | 'markArea');
             if (markerModel) {
                 const data = markerModel.getData();
                 data.eachItemGraphicEl(function (el) {
@@ -93,4 +94,4 @@ abstract class MarkerView extends ComponentView {
     ): void;
 }
 
-export default MarkerView;
\ No newline at end of file
+export default MarkerView;
diff --git a/src/component/timeline/SliderTimelineModel.ts 
b/src/component/timeline/SliderTimelineModel.ts
index a5cc4e4..a6df59b 100644
--- a/src/component/timeline/SliderTimelineModel.ts
+++ b/src/component/timeline/SliderTimelineModel.ts
@@ -100,8 +100,8 @@ class SliderTimelineModel extends TimelineModel {
 
             position: 'left',  // 'left' 'right' 'top' 'bottom'
 
-            playIcon: 
'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z
 M31.6,3.3 
C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z
 M24.9,21.3 
c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z',
 // jshint ignore:line
-            stopIcon: 
'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z
 
M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z
 
M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z
 M27.8,35.8 
c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z',
 // j [...]
+            playIcon: /* eslint-disable 
*/'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z
 M31.6,3.3 
C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z
 M24.9,21.3 
c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z',/*
 eslint-disable */ // jshint ignore:line
+            stopIcon: /* eslint-disable 
*/'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z
 
M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z
 
M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z
 M27.8,35.8 
c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35
 [...]
             nextIcon: 
'M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z',
 // jshint ignore:line
             prevIcon: 
'M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z',
 // jshint ignore:line
 
@@ -155,4 +155,4 @@ mixin(SliderTimelineModel, DataFormatMixin.prototype);
 
 ComponentModel.registerClass(SliderTimelineModel);
 
-export default SliderTimelineModel;
\ No newline at end of file
+export default SliderTimelineModel;
diff --git a/src/component/toolbox/feature/MagicType.ts 
b/src/component/toolbox/feature/MagicType.ts
index cc2bd60..c56dc16 100644
--- a/src/component/toolbox/feature/MagicType.ts
+++ b/src/component/toolbox/feature/MagicType.ts
@@ -163,7 +163,7 @@ class MagicType extends 
ToolboxFeature<ToolboxMagicTypeFeatureOption> {
             newTitle = zrUtil.merge({
                 stack: model.option.title.tiled,
                 tiled: model.option.title.stack
-            }, model.option.title)
+            }, model.option.title);
         }
 
         api.dispatchAction({
diff --git a/src/model/Series.ts b/src/model/Series.ts
index 47b9782..af4ed53 100644
--- a/src/model/Series.ts
+++ b/src/model/Series.ts
@@ -24,7 +24,7 @@ import * as modelUtil from '../util/model';
 import {
     DataHost, DimensionName, StageHandlerProgressParams,
     SeriesOption, ZRColor, BoxLayoutOptionMixin,
-    ScaleDataValue, Dictionary, OptionDataItemObject, SeriesDataType, 
DimensionLoose, DecalObject
+    ScaleDataValue, Dictionary, OptionDataItemObject, SeriesDataType, 
DimensionLoose
 } from '../util/types';
 import ComponentModel, { ComponentModelConstructor } from './Component';
 import {PaletteMixin} from './mixin/palette';
diff --git a/src/model/mixin/palette.ts b/src/model/mixin/palette.ts
index 0f74d7d..5215bb7 100644
--- a/src/model/mixin/palette.ts
+++ b/src/model/mixin/palette.ts
@@ -18,7 +18,6 @@
 */
 
 import {Dictionary} from 'zrender/src/core/types';
-import {isArray} from 'zrender/src/core/util';
 import {makeInner, normalizeToArray} from '../../util/model';
 import Model from '../Model';
 import {ZRColor, PaletteOptionMixin, DecalObject} from '../../util/types';


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to