iscs 代码调整
This commit is contained in:
parent
45f9b1d9e2
commit
467d3e48cd
@ -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 Rect} from 'zrender/src/graphic/shape/Rect';
|
||||||
export {default as Ring} from 'zrender/src/graphic/shape/Ring';
|
export {default as Ring} from 'zrender/src/graphic/shape/Ring';
|
||||||
export {default as Rose} from 'zrender/src/graphic/shape/Rose';
|
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 Star} from 'zrender/src/graphic/shape/Star';
|
||||||
export {default as Trochoid} from 'zrender/src/graphic/shape/Trochoid';
|
export {default as Trochoid} from 'zrender/src/graphic/shape/Trochoid';
|
||||||
export {default as Svg} from './shape/Svg';
|
export {default as Svg} from './shape/Svg';
|
||||||
|
17
src/iscs_new/core/shape/SectorShape.js
Normal file
17
src/iscs_new/core/shape/SectorShape.js
Normal file
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user