cione-comp-lib
Version:
`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`
35 lines (34 loc) • 928 B
JavaScript
import { __extends } from "../../../../tslib/tslib.es6.mjs";
import Path from "../Path.mjs";
import { buildPath } from "../helper/poly.mjs";
var PolylineShape = function() {
function PolylineShape2() {
this.points = null;
this.percent = 1;
this.smooth = 0;
this.smoothConstraint = null;
}
return PolylineShape2;
}();
var Polyline = function(_super) {
__extends(Polyline2, _super);
function Polyline2(opts) {
return _super.call(this, opts) || this;
}
Polyline2.prototype.getDefaultStyle = function() {
return {
stroke: "#000",
fill: null
};
};
Polyline2.prototype.getDefaultShape = function() {
return new PolylineShape();
};
Polyline2.prototype.buildPath = function(ctx, shape) {
buildPath(ctx, shape, false);
};
return Polyline2;
}(Path);
Polyline.prototype.type = "polyline";
var Polyline$1 = Polyline;
export { PolylineShape, Polyline$1 as default };