Internal Renderer Properties
⚠️ Warning: Internal APIs
These properties are internal to the renderer implementation and may change in future versions. Use with caution and always check for existence before accessing.
renderer._allSkins
Array of all skin objects managed by the renderer.
Access Pattern
const renderer = util.runtime.renderer;
const skin = renderer._allSkins[skinId];
if (!skin) {
console.warn('Skin not found');
return;
}
Common Skin Properties
All Skins:
size-[width, height]array with skin dimensions_id- The skin's unique ID
SVG Skins Only:
_svgImageLoaded- Boolean indicating if SVG has finished loading_svgImage- The underlying SVG image element
Example: Query Skin Dimensions
getSkinWidth(skinId) {
const renderer = this.runtime.renderer;
const skin = renderer._allSkins[skinId];
if (!skin || !skin.size) return 0;
return Math.ceil(skin.size[0]);
}
renderer._allDrawables
Array of all drawable objects in the scene.
Access Pattern
const renderer = util.runtime.renderer;
const drawable = renderer._allDrawables[drawableId];
if (!drawable) {
console.warn('Drawable not found');
return;
}
Drawable Properties
skin- Reference to the current skin object_visible- Boolean visibility state- Other internal properties (position, scale, effects, etc.)