Initial commit of 001code-html Scratch frontend project.
Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
37
scratch-render/src/RenderConstants.js
Normal file
37
scratch-render/src/RenderConstants.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/** @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'
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user