@antv/g2
Version:
the Grammar of Graphics in Javascript
17 lines (14 loc) • 309 B
text/typescript
import { getSpline } from '../util';
import PathMask from './path';
/**
* Smooth path mask
* @ignore
*/
class SmoothPathMask extends PathMask {
// 生成 mask 的路径
protected getMaskPath() {
const points = this.points;
return getSpline(points, true);
}
}
export default SmoothPathMask;