pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
12 lines (11 loc) • 618 B
TypeScript
import type { GraphicsPath } from '../path/GraphicsPath';
/**
* Computes the maximum miter ratio from polygon corner angles in a graphics path.
* The miter ratio determines how much the stroke padding must expand to contain miter joins
* at sharp angles. Returns a value >= 1, clamped by the miterLimit.
* @param path - The graphics path containing polygon shapes
* @param miterLimit - The maximum allowed miter ratio
* @returns The maximum miter ratio found in all polygon corners, clamped by miterLimit
* @internal
*/
export declare function getMaxMiterRatio(path: GraphicsPath, miterLimit: number): number;