1 | import { __extends } from "tslib";
|
2 | import Path from '../Path.js';
|
3 | import * as polyHelper from '../helper/poly.js';
|
4 | var 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 | }());
|
13 | export { PolylineShape };
|
14 | var 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));
|
33 | Polyline.prototype.type = 'polyline';
|
34 | export default Polyline;
|