UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

23 lines 751 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var util_1 = require("../util"); var path_1 = tslib_1.__importDefault(require("./path")); /** * Smooth path mask * @ignore */ var SmoothPathMask = /** @class */ (function (_super) { tslib_1.__extends(SmoothPathMask, _super); function SmoothPathMask() { return _super !== null && _super.apply(this, arguments) || this; } // 生成 mask 的路径 SmoothPathMask.prototype.getMaskPath = function () { var points = this.points; return (0, util_1.getSpline)(points, true); }; return SmoothPathMask; }(path_1.default)); exports.default = SmoothPathMask; //# sourceMappingURL=smooth-path.js.map