Files
001code-html--cocos/scratch-render/src/RenderConstants.js
刘宇飞 6e0a1fbcbb 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>
2026-06-16 15:37:45 +08:00

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'
}
};