remove debugging code and extraneous classes

This commit is contained in:
Scott Bell 2024-12-16 10:31:47 +01:00
parent 96d8870f22
commit 64bd625d0b
3 changed files with 4 additions and 8 deletions

View File

@ -21,9 +21,7 @@
-->
<template>
<div ref="events" class="c-events-tsv c-timeline-holder">
<div ref="eventsHolder" class="c-events-tsv__contents u-contents"></div>
</div>
<div ref="events" class="c-events-tsv c-timeline-holder c-events-tsv__contents" />
</template>
<script>
@ -138,14 +136,12 @@ export default {
},
enableExtendEventLines(keyStringToEnable) {
if (this.keyString === keyStringToEnable) {
console.debug('🚄 enabling extending event lines');
this.extendLines = true;
this.emitExtendedLines();
}
},
disableExtendEventLines(keyStringToDisable) {
if (this.keyString === keyStringToDisable) {
console.debug('🚄 disabling extended event lines');
this.extendLines = false;
// emit an empty array to clear the lines
this.emitExtendedLines();
@ -308,7 +304,7 @@ export default {
this.destroyEventsContainer = destroy;
const component = vNode.componentInstance;
this.$refs.eventsHolder.appendChild(component.$el);
this.$refs.events.appendChild(component.$el);
eventContainer = component.$el.querySelector(`.${CONTAINER_CLASS}`);
eventContainer.style.maxWidth = `${containerWidth}px`;

View File

@ -23,7 +23,6 @@
import { EventEmitter } from 'eventemitter3';
export default class ExtendedLinesBus extends EventEmitter {
updateExtendedLines(keyString, lineData) {
console.debug('🍯 ExtendedLines#updateExtendedLines');
this.emit('update-extended-lines', { lineData, keyString });
}
disableExtendEventLines(keyString) {

View File

@ -103,7 +103,8 @@ export default {
useIndependentTime: this.domainObject.configuration.useIndependentTime === true,
timeOptions: this.domainObject.configuration.timeOptions,
extendedLinesPerKey: {},
additionalLeftOffset: 0
additionalLeftOffset: 0,
extendedLeftOffset: 0
};
},
watch: {