Skip to main content

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.

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

Index

Constructors

Methods

Constructors

constructor

Methods

publicgetPropertySets

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

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

    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

Page Options