Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.6.0
    Preparing search index...

    Function getZIndexForLayer

    • 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.

      Parameters

      • layer: HtmlOverlayLayer

        Html overlay layer category

      • offset: number = 0

        Optional offset to add to base z-index (default: 0)

      Returns ZIndexValue

      Z-index value for the layer

      const zIndex = getZIndexForLayer('hud'); // Returns 40
      const zIndexWithOffset = getZIndexForLayer('hud', 5); // Returns 45

      Z인덱스가져오기