UNPKG

963 BJavaScriptView Raw
1import { __extends } from "tslib";
2import Path from '../Path.js';
3import * as polyHelper from '../helper/poly.js';
4var PolylineShape = (function () {
5 function PolylineShape() {
6 this.points = null;
7 this.percent = 1;
8 this.smooth = 0;
9 this.smoothConstraint = null;
10 }
11 return PolylineShape;
12}());
13export { PolylineShape };
14var Polyline = (function (_super) {
15 __extends(Polyline, _super);
16 function Polyline(opts) {
17 return _super.call(this, opts) || this;
18 }
19 Polyline.prototype.getDefaultStyle = function () {
20 return {
21 stroke: '#000',
22 fill: null
23 };
24 };
25 Polyline.prototype.getDefaultShape = function () {
26 return new PolylineShape();
27 };
28 Polyline.prototype.buildPath = function (ctx, shape) {
29 polyHelper.buildPath(ctx, shape, false);
30 };
31 return Polyline;
32}(Path));
33Polyline.prototype.type = 'polyline';
34export default Polyline;