@twinfinity/core
    Preparing search index...

    Class T8PropertySetRepository<TUnit>

    Repository for managing and retrieving property sets from a T8 Client Model. Handles property set resolution, nested property sets, and conflict merging when multiple property sets with the same name exist.

    const repository = new T8PropertySetRepository(dto, units);
    const propertySets = repository.getPropertySets(collectionId, indices, hasConflict);

    Type Parameters

    • TUnit

      The type used to represent units of measurement

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Retrieves property sets for a specific collection by ID. Results are cached for performance.

      Parameters

      • Optionalindices: TypedArray

        Optional array of indices into the property sets array

      • OptionalhasConflict: boolean

        If true, property sets with duplicate names will be merged

      Returns Record<string, T8PropertySet<TUnit>>

      Record of property sets keyed by their names, or empty record if no indices provided

      const propertySets = repository.getPropertySets(123, new Uint16Array([0, 1, 2]), false);
      const wallProps = propertySets['Pset_WallCommon'];