interface ModelListener {
    addModels: ((newVersions, allVersions) => void | Promise<unknown>);
    modelsHidden?: ((versionUuids) => void);
    modelsShown?: ((versionUuids) => void);
    removeModels: ((versions) => void | Promise<unknown>);
}

Implemented by

    Properties

    addModels: ((newVersions, allVersions) => void | Promise<unknown>)

    Type declaration

      • (newVersions, allVersions): void | Promise<unknown>
      • TODO: write description

        Parameters

        • newVersions: Iterable<Model>
        • allVersions: Iterable<Model>

          TODO: currently is used for "camera.fitOnLoad" behaviour. Looks strange - better idea is neded to handle this.

        Returns void | Promise<unknown>

    modelsHidden?: ((versionUuids) => void)

    Type declaration

      • (versionUuids): void
      • Parameters

        • versionUuids: Iterable<string>

        Returns void

    modelsShown?: ((versionUuids) => void)

    Type declaration

      • (versionUuids): void
      • Parameters

        • versionUuids: Iterable<string>

        Returns void

    removeModels: ((versions) => void | Promise<unknown>)

    Type declaration

      • (versions): void | Promise<unknown>
      • TODO: write description

        Parameters

        • versions: Iterable<Model>

        Returns void | Promise<unknown>