Optional dropProtocol mode. Always BackendMode.Shadow in this protocol.
Optional addOptional addOptional addInsert a style sheet item whose content comes from the specified path.
styleScope is an optional scope identifier. Returns the new style sheet index.
If styleScope is not a positive integer, it is treated as empty (globally effective).
Optional styleScope: numberOptional createCreate a fragment node. Used to represent a node array for batch insertion and removal.
Optional createOptional elementOptional getOptional getOptional getOptional modifySet the global event callback. This callback is the only one.
Shadow Mode only; for Composed Mode see the other onEvent signature.
Creates an event object from the given type, detail, and options.
Called when an event occurs.
Optional onOptional onOptional performanceOptional performanceRegister a style sheet.
path is the style sheet path, content is the corresponding CSS style sheet
in a format the backend can interpret.
If the CSS contains @import or similar references, the referenced content
may also be registered via another registerStyleSheetContent call,
either before or after this one.
Optional removeOptional removeWait for the next render to complete (align with the backend vsync). The backend must ensure the callback is asynchronous. Setting new properties inside the callback should trigger CSS transitions.
Optional replaceOptional replaceOptional resetOptional setOptional setOptional startOptional stop
A backend-provided object. Each Context instance can display a node tree on the screen.
In Shadow Mode,
Contextprovides the core rendering context for glass-easel.