From 467d3e48cdc28b5f4bb6697eaf49bbd69554bd23 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 12 Apr 2021 09:07:05 +0800 Subject: [PATCH] =?UTF-8?q?iscs=20=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/iscs_new/core/graphic.js | 2 +- src/iscs_new/core/shape/SectorShape.js | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/iscs_new/core/shape/SectorShape.js diff --git a/src/iscs_new/core/graphic.js b/src/iscs_new/core/graphic.js index a6dee3f8f..a305f9712 100644 --- a/src/iscs_new/core/graphic.js +++ b/src/iscs_new/core/graphic.js @@ -14,7 +14,7 @@ export {default as Polyline} from 'zrender/src/graphic/shape/Polyline'; export {default as Rect} from 'zrender/src/graphic/shape/Rect'; export {default as Ring} from 'zrender/src/graphic/shape/Ring'; export {default as Rose} from 'zrender/src/graphic/shape/Rose'; -export {default as Sector} from 'zrender/src/graphic/shape/Sector'; +export {default as Sector} from './shape/SectorShape'; export {default as Star} from 'zrender/src/graphic/shape/Star'; export {default as Trochoid} from 'zrender/src/graphic/shape/Trochoid'; export {default as Svg} from './shape/Svg'; diff --git a/src/iscs_new/core/shape/SectorShape.js b/src/iscs_new/core/shape/SectorShape.js new file mode 100644 index 000000000..3a502c874 --- /dev/null +++ b/src/iscs_new/core/shape/SectorShape.js @@ -0,0 +1,17 @@ + +import Sector from 'zrender/src/graphic/shape/Sector'; +export default class ArcShape extends Sector { + constructor(opts) { + opts.shape.startAngle = Math.PI / 180 * opts.shape.startAngle; + opts.shape.endAngle = Math.PI / 180 * opts.shape.endAngle; + super(opts); + } + + setStyle(style) { + super.setStyle(style); + } + + attr(key, value) { + super.attr(key, value); + } +}