Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Look up the descriptor for a node type that came from the store.

      SceneNode.type is an unvalidated string (build-scene-graph.ts takes attrs.type verbatim), so a plain GEOMETRY_DESCRIPTORS[type] would reach Object.prototype for values like constructor or toString and return a truthy non-descriptor. Object.hasOwn keeps the lookup to the table's own keys. Callers holding a GeometryKind from a trusted source (the loader registry, a literal) can index the table directly.

      Parameters

      • type: string

      Returns GeometryDescriptor | undefined