Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function collectAncestorNodes

    • Walk from root toward the node whose path equals targetPath, returning the chain of SceneNodes in root-to-leaf order. The scene-root node is included iff its own type is not 'scene' — scene roots are carriers-only and should contribute no rendering attrs.

      This implementation is path-format-agnostic: it matches children by direct prefix comparison on the already-stored path field, so it works for both the leading-slash format produced by the real scene loader ('/', '/group/pts') and the plain format used in unit tests ('', 'group/pts').

      Parameters

      Returns SceneNode[]