UNPKG

761 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4var util_1 = require("../util");
5var path_1 = (0, tslib_1.__importDefault)(require("./path"));
6/**
7 * Smooth path mask
8 * @ignore
9 */
10var SmoothPathMask = /** @class */ (function (_super) {
11 (0, tslib_1.__extends)(SmoothPathMask, _super);
12 function SmoothPathMask() {
13 return _super !== null && _super.apply(this, arguments) || this;
14 }
15 // 生成 mask 的路径
16 SmoothPathMask.prototype.getMaskPath = function () {
17 var points = this.points;
18 return (0, util_1.getSpline)(points, true);
19 };
20 return SmoothPathMask;
21}(path_1.default));
22exports.default = SmoothPathMask;
23//# sourceMappingURL=smooth-path.js.map
\No newline at end of file