weasel API - v0.8.0
    Preparing search index...

    Function drawLayers

    • Walk visible layers and concatenate their emitted DrawCommand arrays into one flat list, ready to feed to WeaselRenderer.render(commands).

      Visibility resolution order:

      1. alwaysOn — always drawn, ignores visibility map.
      2. Explicit entry in visibility map — overrides default.
      3. layer.defaultVisible — falls back to true when absent.

      Transform composition: world-space layers (the default; space unset or 'world') have their commands wrapped in a kind: 'group' with viewToMat3(view) before they reach the renderer. Screen-space layers (space: 'screen') pass through unchanged.

      Type Parameters

      • TData

      Parameters

      Returns DrawCommand[]