UNPKG

cione-comp-lib

Version:

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

28 lines (27 loc) 772 B
import { __extends } from "../../../../tslib/tslib.es6.mjs"; import Path from "../Path.mjs"; import { buildPath } from "../helper/poly.mjs"; var PolygonShape = function() { function PolygonShape2() { this.points = null; this.smooth = 0; this.smoothConstraint = null; } return PolygonShape2; }(); var Polygon = function(_super) { __extends(Polygon2, _super); function Polygon2(opts) { return _super.call(this, opts) || this; } Polygon2.prototype.getDefaultShape = function() { return new PolygonShape(); }; Polygon2.prototype.buildPath = function(ctx, shape) { buildPath(ctx, shape, true); }; return Polygon2; }(Path); Polygon.prototype.type = "polygon"; var Polygon$1 = Polygon; export { PolygonShape, Polygon$1 as default };