"use strict";
/*---------------------------------------------------------------------------------------------
* 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
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.TileUser = void 0;
const Viewport_1 = require("../Viewport");
let nextUserId = 1;
/** @public */
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_1.Viewport)
                yield user;
    }
    TileUser.viewportsFromUsers = viewportsFromUsers;
})(TileUser || (exports.TileUser = TileUser = {}));
//# sourceMappingURL=TileUser.js.map