You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
600 B

4 months ago
import { type PathArray } from '@antv/util';
import type { Point } from '../../types';
/**
* <zh/> Hull
*
* <en/> Compute Hull Path
* @param points - <zh/> | <en/> Vertices of Hull
* @param padding - <zh/> | <en/> padding
* @param corner - <zh/> 'sharp''rounded' 'smooth' | <en/> Corner type, currently supports 'sharp', 'rounded' and 'smooth'
* @returns <zh/> Hull | <en/> Hull Path
*/
export declare function computeHullPath(points: Point[], padding: number, corner: 'rounded' | 'smooth' | 'sharp'): PathArray;