mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-10 21:39:42 -04:00
34 lines
857 B
JavaScript
34 lines
857 B
JavaScript
/** @module RenderConstants */
|
|
|
|
/**
|
|
* Various constants meant for use throughout the renderer.
|
|
* @enum
|
|
*/
|
|
module.exports = {
|
|
/**
|
|
* The ID value to use for "no item" or when an object has been disposed.
|
|
* @const {int}
|
|
*/
|
|
ID_NONE: -1,
|
|
|
|
/**
|
|
* Optimize for fewer than this number of Drawables sharing the same Skin.
|
|
* Going above this may cause middleware warnings or a performance penalty but should otherwise behave correctly.
|
|
* @const {int}
|
|
*/
|
|
SKIN_SHARE_SOFT_LIMIT: 301,
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
Events: {
|
|
/**
|
|
* NativeSizeChanged event
|
|
*
|
|
* @event RenderWebGL#event:NativeSizeChanged
|
|
* @type {object}
|
|
* @property {Array<int>} newSize - the new size of the renderer
|
|
*/
|
|
NativeSizeChanged: 'NativeSizeChanged'
|
|
}
|
|
};
|