UNPKG

cione-comp-lib

Version:

`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`

31 lines (30 loc) 950 B
import { __extends } from "../../../../tslib/tslib.es6.mjs"; import ComponentModel from "../../model/Component.mjs"; var PolarModel = function(_super) { __extends(PolarModel2, _super); function PolarModel2() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = PolarModel2.type; return _this; } PolarModel2.prototype.findAxisModel = function(axisType) { var foundAxisModel; var ecModel = this.ecModel; ecModel.eachComponent(axisType, function(axisModel) { if (axisModel.getCoordSysModel() === this) { foundAxisModel = axisModel; } }, this); return foundAxisModel; }; PolarModel2.type = "polar"; PolarModel2.dependencies = ["radiusAxis", "angleAxis"]; PolarModel2.defaultOption = { z: 0, center: ["50%", "50%"], radius: "80%" }; return PolarModel2; }(ComponentModel); var PolarModel$1 = PolarModel; export { PolarModel$1 as default };