Files
nothoughts/node_modules/pixi.js/lib/utils/utils.d.ts
2025-08-04 18:57:35 +02:00

19 lines
631 B
TypeScript

/**
* A high performance event emitter
* @see {@link https://github.com/primus/eventemitter3}
* @class EventEmitter
* @memberof utils
*/
export { default as EventEmitter } from 'eventemitter3';
/**
* A polygon triangulation library
* @see {@link https://github.com/mapbox/earcut}
* @method earcut
* @param {number[]} vertices - A flat array of vertex coordinates
* @param {number[]} [holes] - An array of hole indices
* @param {number} [dimensions=2] - The number of coordinates per vertex in the input array
* @returns {number[]} Triangulated polygon
* @memberof utils
*/
export { default as earcut } from 'earcut';