Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config. Co-authored-by: Cursor <cursoragent@cursor.com>
38 lines
921 B
JavaScript
38 lines
921 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,
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
Events: {
|
|
/**
|
|
* Event emitted when the high quality render option changes.
|
|
*/
|
|
UseHighQualityRenderChanged: 'UseHighQualityRenderChanged',
|
|
|
|
/**
|
|
* Event emitted when the private skin access option changes.
|
|
*/
|
|
AllowPrivateSkinAccessChanged: 'AllowPrivateSkinAccessChanged',
|
|
|
|
/**
|
|
* NativeSizeChanged event
|
|
*
|
|
* @event RenderWebGL#event:NativeSizeChanged
|
|
* @type {object}
|
|
* @property {Array<int>} newSize - the new size of the renderer
|
|
*/
|
|
NativeSizeChanged: 'NativeSizeChanged'
|
|
}
|
|
};
|