app/data/ct.release/camera.js
/**
     * Realigns all the copies in a room so that they distribute proportionally
     * to a new camera size based on their `xstart` and `ystart` coordinates.
     * Will throw an error if the given room is not in UI space (if `room.isUi` is not `true`).
     * You can skip the realignment for some copies if you set their `skipRealign` parameter to `true`.
     * @param {Room} room The room which copies will be realigned.
     * @returns {void}
     */
Realigns all the copies in a room so that they distribute proportionally
to a new camera size based on their `xstart` and `ystart` coordinates.
Will throw an error if the given room is not in UI space (if `room.isUi` is not `true`).
You can skip the realignment for some copies if you set their `skipRealign` parameter to `true`.
@param {Room} room The room which copies will be realigned.
@returns {void}
Realigns all the copies in a room so that they distribute proportionally to a new camera size based on their ` xstart ` and ` ystart ` coordinates . Will throw an error if the given room is not in UI space ( if ` room . isUi ` is not ` true ` ) . You can skip the realignment for some copies if you set their ` skipRealign ` parameter to ` true ` . @param { Room } room The room which copies will be realigned . @returns { void }
realign(room) {
        if (!room.isUi) {
            throw new Error('[ct.camera] An attempt to realing a room that is not in UI space. The room in question is', room);
        }
        const w = (ct.rooms.templates[room.name].width || 1),
              h = (ct.rooms.templates[room.name].height || 1);
        for (const copy of room.children) {
            if (!('xstart' in copy) || copy.skipRealign) {
                continue;
            }
            copy.x = copy.xstart / w * this.width;
            copy.y = copy.ystart / h * this.height;
        }
    }
realign ( room ) { if ( ! room . isUi ) { throw new Error ( '[ct.camera] An attempt to realing a room that is not in UI space. The room in question is' , room ) ; } const w = ( ct . rooms . templates [ room . name ] . width || 1 ) , h = ( ct . rooms . templates [ room . name ] . height || 1 ) ; for ( const copy of room . children ) { if ( ! ( 'xstart' in copy ) || copy . skipRealign ) { continue ; } copy . x = copy . xstart / w * this . width ; copy . y = copy . ystart / h * this . height ; } }
Realigns all the copies in a room so that they distribute proportionally
 to a new camera size based on their `xstart` and `ystart` coordinates.
Realigns all the copies in a room so that they distribute proportionally to a new camera size based on their ` xstart ` and ` ystart ` coordinates .