This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,23 @@
import type { PointData } from '../../../../maths/point/PointData';
import type { ShapePath } from './ShapePath';
/**
* Typed and cleaned up version of:
* https://stackoverflow.com/questions/44855794/html5-canvas-triangle-with-rounded-corners/44856925#44856925
* @param g - Graphics to be drawn on.
* @param points - Corners of the shape to draw. Minimum length is 3.
* @param radius - Corners default radius.
* @ignore
*/
export declare function roundedShapeArc(g: ShapePath, points: RoundedPoint[], radius: number): void;
export type RoundedPoint = PointData & {
radius?: number;
};
/**
* Typed and cleaned up version of:
* https://stackoverflow.com/questions/44855794/html5-canvas-triangle-with-rounded-corners/56214413#56214413
* @param g - Graphics to be drawn on.
* @param points - Corners of the shape to draw. Minimum length is 3.
* @param radius - Corners default radius.
* @ignore
*/
export declare function roundedShapeQuadraticCurve(g: ShapePath, points: RoundedPoint[], radius: number, smoothness?: number): void;