Get z-index value for Html overlay layer
Maps layer names to Z_INDEX constants for consistent stacking order. Prevents z-fighting by maintaining clear hierarchy.
Html overlay layer category
Optional offset to add to base z-index (default: 0)
Z-index value for the layer
const zIndex = getZIndexForLayer('hud'); // Returns 40const zIndexWithOffset = getZIndexForLayer('hud', 5); // Returns 45 Copy
const zIndex = getZIndexForLayer('hud'); // Returns 40const zIndexWithOffset = getZIndexForLayer('hud', 5); // Returns 45
Z인덱스가져오기
Get z-index value for Html overlay layer
Maps layer names to Z_INDEX constants for consistent stacking order. Prevents z-fighting by maintaining clear hierarchy.