/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Tiles
 */
import { Viewport } from "../Viewport";
let nextUserId = 1;
/** @public */
export var TileUser;
(function (TileUser) {
    function generateId() {
        return nextUserId++;
    }
    TileUser.generateId = generateId;
    /** Iterate the subset of `users` that are [[Viewport]]s. */
    function* viewportsFromUsers(users) {
        for (const user of users)
            if (user instanceof Viewport)
                yield user;
    }
    TileUser.viewportsFromUsers = viewportsFromUsers;
})(TileUser || (TileUser = {}));
//# sourceMappingURL=TileUser.js.map