Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | 1x 1x 2x 2x 1x 1x 1x 1x 2x 2x 1x 1x 1x 1x 2x 2x 1x 1x 1x 1x 3x 4x 2x 2x 2x 2x 11x 11x 11x 11x 11x 1x 1x 1x 1x 1x | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SurfaceSettings = void 0;
class SurfaceSettings extends EventTarget {
get frameRate() {
return this._frameRate;
}
set frameRate(value) {
if (this._frameRate === value)
return;
this._frameRate = value;
const event = new Event(SurfaceSettings.frameRateChangeEvent);
this.dispatchEvent(event);
}
get frameLimit() {
return this._frameLimit;
}
set frameLimit(value) {
if (this._frameLimit === value)
return;
this._frameLimit = value;
const event = new Event(SurfaceSettings.frameLimitChangeEvent);
this.dispatchEvent(event);
}
get targetResolution() {
return this._targetResolution;
}
set targetResolution(value) {
if (this._targetResolution.x === value.x &&
this._targetResolution.y === value.y)
return;
this._targetResolution = value;
const event = new Event(SurfaceSettings.targetResolutionChangeEvent);
this.dispatchEvent(event);
}
get maxResolution() {
return this._maxResolution;
}
set maxResolution(value) {
var _a, _b;
if (((_a = this._maxResolution) === null || _a === void 0 ? void 0 : _a.x) === (value === null || value === void 0 ? void 0 : value.x) &&
((_b = this._maxResolution) === null || _b === void 0 ? void 0 : _b.y) === (value === null || value === void 0 ? void 0 : value.y))
return;
this._maxResolution = value;
const event = new Event(SurfaceSettings.maxResolutionChangeEvent);
this.dispatchEvent(event);
}
constructor(frameRate, frameLimit, targetResolution, maxResolution) {
super();
this._frameRate = frameRate;
this._frameLimit = frameLimit;
this._targetResolution = targetResolution;
this._maxResolution = maxResolution;
}
}
exports.SurfaceSettings = SurfaceSettings;
SurfaceSettings.frameRateChangeEvent = "frameratechange";
SurfaceSettings.frameLimitChangeEvent = "framelimitchange";
SurfaceSettings.targetResolutionChangeEvent = "targetresolutionchange";
SurfaceSettings.maxResolutionChangeEvent = "maxresolutionchange";
|