Remove some console.logs
This commit is contained in:
parent
e54deeb4f7
commit
fd9fbc32a8
@ -5,7 +5,7 @@
|
||||
v-if="!triggerZoneEditorVisible"
|
||||
>
|
||||
<div
|
||||
class="spawn-container uw-ui-trigger debug-2"
|
||||
class="spawn-container uw-ui-trigger"
|
||||
:style="triggerZoneStyles"
|
||||
>
|
||||
|
||||
@ -169,7 +169,7 @@
|
||||
<div
|
||||
v-if="triggerZoneEditorVisible"
|
||||
class="context-spawn uw-ui-area"
|
||||
style="z-index: 1000; border: 2px dashed red; overflow: hidden;"
|
||||
style="z-index: 1000;"
|
||||
>
|
||||
<TriggerZoneEditor
|
||||
:settings="settings"
|
||||
@ -335,7 +335,6 @@ export default {
|
||||
this.statusFlags.aardErrors = data.aardErrors;
|
||||
break;
|
||||
case 'player-dimensions':
|
||||
console.log('player dimensions response received.', data);
|
||||
this.playerDimensionsUpdate(data.data);
|
||||
break;
|
||||
}
|
||||
@ -451,7 +450,6 @@ export default {
|
||||
* Handles trigger zone
|
||||
*/
|
||||
handleTriggerZone(mouseInside) {
|
||||
console.log('handing trigger zone!', mouseInside);
|
||||
// this.triggerZoneActive = mouseInside;
|
||||
},
|
||||
|
||||
|
@ -268,7 +268,6 @@ export default {
|
||||
}
|
||||
},
|
||||
siteDefaultCrop() {
|
||||
// console.log('Getting default site crop:', this.siteSettings.raw?.defaults?.crop ? 'yay' : '{useDefault}', this.siteSettings.raw?.defaults?.crop)
|
||||
return this.siteSettings.raw?.defaults?.crop ? JSON.stringify(this.siteSettings.raw?.defaults?.crop) : JSON.stringify({useDefault: true});
|
||||
},
|
||||
siteDefaultStretch() {
|
||||
@ -402,7 +401,6 @@ export default {
|
||||
commandArguments = undefined;
|
||||
}
|
||||
|
||||
// console.log('setting option', option, 'to cmd:', commandArguments, 'event data in:', value);
|
||||
await this.siteSettings.set(option, commandArguments);
|
||||
this.$nextTick( () => this.$forceUpdate() );
|
||||
},
|
||||
|
@ -43,7 +43,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
showContextMenu() {
|
||||
console.log('will show context menu.')
|
||||
this.contextMenuVisible = true;
|
||||
},
|
||||
hideContextMenu() {
|
||||
|
@ -210,8 +210,6 @@ export default {
|
||||
y: event.clientY
|
||||
};
|
||||
this.dragStartConfiguration = JSON.parse(JSON.stringify(this.settings.active.ui.inPlayer.triggerZoneDimensions));
|
||||
|
||||
console.log(`Mousedown on ${corner}`);
|
||||
},
|
||||
handleMouseUp(event) {
|
||||
if (!this.activeCornerDrag) {
|
||||
@ -305,7 +303,6 @@ export default {
|
||||
return value.replaceAll(',', '.').split('.', 2).join('.').replace(/[^0-9.\-]/g, '');
|
||||
},
|
||||
setTriggerZoneSize(key, value, instantUpdate) {
|
||||
console.log('setting trigger zone size:', key, value);
|
||||
let size = (+this.forceNumber(value) / 100);
|
||||
|
||||
if (isNaN(+size)) {
|
||||
|
@ -287,7 +287,6 @@ export default {
|
||||
|
||||
const observer = new IntersectionObserver(
|
||||
([e]) => {
|
||||
// console.log('observer triggered. intersection ratio?', e.intersectionRatio)
|
||||
saveButton.classList.toggle('floating', e.intersectionRatio < 0.95);
|
||||
},
|
||||
{threshold: [0, 0.5, 0.9, 0.95, 1]}
|
||||
|
@ -33,25 +33,18 @@ export default {
|
||||
if (!dimensions.width || !dimensions.height) {
|
||||
this.playerDimensions = undefined;
|
||||
}
|
||||
console.log('player dimensions update received:', dimensions);
|
||||
if (dimensions?.width !== this.playerDimensions?.width || dimensions?.height !== this.playerDimensions?.height) {
|
||||
console.log('Player dimensions changed!', dimensions);
|
||||
|
||||
this.playerDimensions = dimensions;
|
||||
this.updateTriggerZones();
|
||||
}
|
||||
},
|
||||
updateTriggerZones() {
|
||||
console.log('triggered zone style recheck. player dims:', this.playerDimensions, 'in player settings:', this.settings.active.ui);
|
||||
if (this.playerDimensions && this.settings) {
|
||||
this.triggerZoneStyles = {
|
||||
width: `${Math.round(this.playerDimensions.width * this.settings.active.ui.inPlayer.triggerZoneDimensions.width)}px`,
|
||||
height: `${Math.round(this.playerDimensions.height * this.settings.active.ui.inPlayer.triggerZoneDimensions.height)}px`,
|
||||
transform: `translate(${(this.settings.active.ui.inPlayer.triggerZoneDimensions.offsetX)}%, ${this.settings.active.ui.inPlayer.triggerZoneDimensions.offsetY}%)`,
|
||||
};
|
||||
console.log(
|
||||
'player trigger zone css:', this.triggerZoneStyles
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
@ -113,7 +106,6 @@ export default {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
// console.log('[UI] hiding UI because conditions were not met. canShowUI:', eventData.canShowUI, 'isOverTriggerZone', isOverTriggerZone);
|
||||
// this.uwTriggerZoneVisible = false;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ export class FallbackCanvas extends GlCanvas {
|
||||
protected initWebgl() { }
|
||||
|
||||
drawVideoFrame(video: HTMLVideoElement) {
|
||||
console.log('context:', this.context, 'canvas:', this.canvas );
|
||||
this.context.drawImage(video, this.context.canvas.width, this.context.canvas.height);
|
||||
}
|
||||
|
||||
|
@ -122,11 +122,8 @@ export class SiteSettings {
|
||||
|
||||
this.compileSettingsObject();
|
||||
|
||||
console.log('changes:', parsedSettings);
|
||||
|
||||
// trigger any subscriptions on change
|
||||
if (parsedSettings._updateFlags) {
|
||||
console.log('update flags yay!')
|
||||
if (parsedSettings._updateFlags?.forSite === this.site) {
|
||||
if (parsedSettings._updateFlags?.requireReload === true) {
|
||||
for (const key in this.storageChangeSubscriptions) {
|
||||
@ -140,9 +137,9 @@ export class SiteSettings {
|
||||
}
|
||||
else if (parsedSettings._updateFlags?.requireReload) {
|
||||
for (const key of parsedSettings._updateFlags?.requireReload) {
|
||||
console.log('reload required for:', key, this.storageChangeSubscriptions);
|
||||
|
||||
if (! this.storageChangeSubscriptions[key]) continue;
|
||||
if (! this.storageChangeSubscriptions[key]) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (const fn of this.storageChangeSubscriptions[key]) {
|
||||
fn(this, changes, area);
|
||||
|
@ -99,8 +99,6 @@ class PlayerData {
|
||||
}],
|
||||
'get-player-dimensions': [{
|
||||
function: () => {
|
||||
console.log('received get player dimensions! -- returning:', this.dimensions)
|
||||
|
||||
this.eventBus.send('uw-config-broadcast', {
|
||||
type: 'player-dimensions',
|
||||
data: this.dimensions
|
||||
|
Loading…
Reference in New Issue
Block a user