mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
style: format camera panel component modules
This commit is contained in:
1 parent
f45f399c31
commit
1a7e4d51d9
7 files changed
+736
-506
No files matched your search
+67
-19
@@ -1,6 +1,21 @@
|
||||
import { _clearCctvFrame, _queueCctvFrame, _settleCctvFrame, _syncCctvSourceBadge } from './cctvFrames.js';
|
||||
import { _activeCctvCameraId, _resetCctvCalibration, _beginCctvCalValueEdit, _syncCctvCalReadout } from './cctvCalibration.js';
|
||||
import { _calBadgeLabel, _renderCctvState, _typeCctvSummary, _updateCctvSyncChip } from './cctvPresentation.js';
|
||||
import {
|
||||
_clearCctvFrame,
|
||||
_queueCctvFrame,
|
||||
_settleCctvFrame,
|
||||
_syncCctvSourceBadge,
|
||||
} from './cctvFrames.js';
|
||||
import {
|
||||
_activeCctvCameraId,
|
||||
_resetCctvCalibration,
|
||||
_beginCctvCalValueEdit,
|
||||
_syncCctvCalReadout,
|
||||
} from './cctvCalibration.js';
|
||||
import {
|
||||
_calBadgeLabel,
|
||||
_renderCctvState,
|
||||
_typeCctvSummary,
|
||||
_updateCctvSyncChip,
|
||||
} from './cctvPresentation.js';
|
||||
import { _initCctvPanel } from './cctvBindings.js';
|
||||
|
||||
/** Own camera-panel interaction and presentation; receive the camera port and application actions. */
|
||||
@@ -25,29 +40,62 @@ export class CctvControls {
|
||||
this._initCctvPanel();
|
||||
}
|
||||
listen(target, type, handler, options = {}) {
|
||||
target?.addEventListener(type, handler, { ...options, signal: this.listeners.signal });
|
||||
target?.addEventListener(type, handler, {
|
||||
...options,
|
||||
signal: this.listeners.signal,
|
||||
});
|
||||
}
|
||||
getState() {
|
||||
return this._cctvState;
|
||||
}
|
||||
getState() { return this._cctvState; }
|
||||
connect() {
|
||||
this._cctvUnsubscribe?.();
|
||||
this._cctvUnsubscribe = null;
|
||||
if (this.destroyed) return;
|
||||
this._cctvUnsubscribe = this.cctv.subscribe?.((state) => this._renderCctvState(state));
|
||||
this._cctvUnsubscribe = this.cctv.subscribe?.((state) =>
|
||||
this._renderCctvState(state),
|
||||
);
|
||||
if (this.cctv.getUIState) this._renderCctvState(this.cctv.getUIState());
|
||||
}
|
||||
_clearCctvFrame(...args) { return _clearCctvFrame.call(this, ...args); }
|
||||
_queueCctvFrame(...args) { return _queueCctvFrame.call(this, ...args); }
|
||||
_settleCctvFrame(...args) { return _settleCctvFrame.call(this, ...args); }
|
||||
_syncCctvSourceBadge(...args) { return _syncCctvSourceBadge.call(this, ...args); }
|
||||
_activeCctvCameraId(...args) { return _activeCctvCameraId.call(this, ...args); }
|
||||
_resetCctvCalibration(...args) { return _resetCctvCalibration.call(this, ...args); }
|
||||
_beginCctvCalValueEdit(...args) { return _beginCctvCalValueEdit.call(this, ...args); }
|
||||
_syncCctvCalReadout(...args) { return _syncCctvCalReadout.call(this, ...args); }
|
||||
_calBadgeLabel(...args) { return _calBadgeLabel.call(this, ...args); }
|
||||
_renderCctvState(...args) { return _renderCctvState.call(this, ...args); }
|
||||
_typeCctvSummary(...args) { return _typeCctvSummary.call(this, ...args); }
|
||||
_updateCctvSyncChip(...args) { return _updateCctvSyncChip.call(this, ...args); }
|
||||
_initCctvPanel(...args) { return _initCctvPanel.call(this, ...args); }
|
||||
_clearCctvFrame(...args) {
|
||||
return _clearCctvFrame.call(this, ...args);
|
||||
}
|
||||
_queueCctvFrame(...args) {
|
||||
return _queueCctvFrame.call(this, ...args);
|
||||
}
|
||||
_settleCctvFrame(...args) {
|
||||
return _settleCctvFrame.call(this, ...args);
|
||||
}
|
||||
_syncCctvSourceBadge(...args) {
|
||||
return _syncCctvSourceBadge.call(this, ...args);
|
||||
}
|
||||
_activeCctvCameraId(...args) {
|
||||
return _activeCctvCameraId.call(this, ...args);
|
||||
}
|
||||
_resetCctvCalibration(...args) {
|
||||
return _resetCctvCalibration.call(this, ...args);
|
||||
}
|
||||
_beginCctvCalValueEdit(...args) {
|
||||
return _beginCctvCalValueEdit.call(this, ...args);
|
||||
}
|
||||
_syncCctvCalReadout(...args) {
|
||||
return _syncCctvCalReadout.call(this, ...args);
|
||||
}
|
||||
_calBadgeLabel(...args) {
|
||||
return _calBadgeLabel.call(this, ...args);
|
||||
}
|
||||
_renderCctvState(...args) {
|
||||
return _renderCctvState.call(this, ...args);
|
||||
}
|
||||
_typeCctvSummary(...args) {
|
||||
return _typeCctvSummary.call(this, ...args);
|
||||
}
|
||||
_updateCctvSyncChip(...args) {
|
||||
return _updateCctvSyncChip.call(this, ...args);
|
||||
}
|
||||
_initCctvPanel(...args) {
|
||||
return _initCctvPanel.call(this, ...args);
|
||||
}
|
||||
destroy() {
|
||||
if (this.destroyed) return;
|
||||
this.destroyed = true;
|
||||
|
||||
Reference in new issue
Block a user