Taos API Reference
    Preparing search index...

    Class Subtree

    Parsed availability bitstreams of one subtree file. Construct it from the subtree JSON plus the resolved bytes of each buffer it declares — buffers[i] is the internal binary chunk for a buffer with no uri, or the fetched bytes for an external one (see parseSubtree for the internal-only convenience and parseSubtreeHeader + the traversal for the external path).

    Index

    Constructors

    • schema is the tileset-level structural-metadata schema (from the root tileset.json schema / schemaUri); pass it to decode subtree property metadata.

      Parameters

      • json: any
      • buffers: (Uint8Array<ArrayBufferLike> | undefined)[]
      • Optionalschema: any

      Returns Subtree

    Accessors

    • get hasMetadata(): boolean

      True if this subtree decoded any per-tile or per-content property metadata.

      Returns boolean

    Methods

    • Parameters

      • index: number

      Returns boolean

    • Property bag for the tile at availability bit index, or null when the subtree has no tile metadata / the tile is unavailable.

      Parameters

      • index: number

      Returns Record<string, FeaturePropertyValue> | null

    • Property bag for the content at availability bit index, or null when the subtree has no content metadata / the content is unavailable.

      Parameters

      • index: number

      Returns Record<string, FeaturePropertyValue> | null