LogoPixi’VN
pixi-jsFunctions

Function: calculatePathArea()

> calculatePathArea(pathData): number

Defined in: node_modules/pixi.js/lib/scene/graphics/shared/svg/utils/pathOperations.d.ts:15

Internal

Calculates the area of a path using bounding box estimation.

Parameters

pathData

string

The SVG path data string

Returns

number

The estimated area of the path