From da024251de1b95493a6599bd7bc1895f818a75b7 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 9 Apr 2021 18:36:09 +0800 Subject: [PATCH] =?UTF-8?q?=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/shape/ArcShape.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/iscs_new/core/shape/ArcShape.js diff --git a/src/iscs_new/core/shape/ArcShape.js b/src/iscs_new/core/shape/ArcShape.js new file mode 100644 index 000000000..672e15c58 --- /dev/null +++ b/src/iscs_new/core/shape/ArcShape.js @@ -0,0 +1,17 @@ + +import Arc from 'zrender/src/graphic/shape/Arc'; +export default class ArcShape extends Arc { + 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); + } +}