pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
19 lines (18 loc) • 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';