Skip to content

Commit

Permalink
Removed old files
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianlinkflink committed Feb 27, 2025
1 parent c974645 commit 980a934
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 126 deletions.
17 changes: 11 additions & 6 deletions src/components/Graphs/GraphContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
:dropdownName="dropdownName"
@selectedItem="handleResultListSelection"
/>
<component :is="leftModule" v-bind="graphProps" class="mt-0"/>
<div :v-if="leftModule">
<component :is="leftModule" v-bind="graphProps" class="mt-0"/>
</div>
</div>
</template>

Expand All @@ -18,7 +20,8 @@ import {
watch,
ref,
computed,
defineProps
defineProps,
defineComponent
} from 'vue'
// Store imports
Expand All @@ -27,7 +30,6 @@ import { useResultStore } from '@/stores/result'
import { useProjectStore } from '@/stores/main'
// Components imports
import ViewerControls from '@/components/ModelViewer/ViewerControls.vue'
import SelectablePieChart from '@/components/Graphs/SelectablePieChart.vue'
import DivergingStackedBar from '@/components/Graphs/DivergingStackedBar.vue'
import Dropdown from '@/components/Misc/Dropdown.vue'
Expand All @@ -52,6 +54,9 @@ const props = defineProps<{
resultItem?: ResultItem
}>()
const EmptyComponent = defineComponent({
template: "<div></div>", // Renders nothing if leftModule is empty
})
// Dropdown items from resultList
const graphParameters = ref<dropdownItem[]>(
Expand Down Expand Up @@ -90,7 +95,7 @@ const leftModule = computed(() => {
switch (navigationStore.activePage) {
case 'Overview':
case 'Mapping':
return ViewerControls
return EmptyComponent
case 'Results':
if (navigationStore.sideBarShow) {
updateGraphProps("SelectablePieChart")
Expand All @@ -107,13 +112,13 @@ const leftModule = computed(() => {
updateGraphProps("SelectablePieChart")
return SelectablePieChart
default:
return null
return EmptyComponent
}
})
// We remap these so we can get the name of the component
const componentNames = new Map([
[ViewerControls, 'ViewerControls'],
[EmptyComponent, 'EmptyComponent'],
[SelectablePieChart, 'SelectablePieChart'],
[DivergingStackedBar, 'DivergingStackedBar']
])
Expand Down
2 changes: 1 addition & 1 deletion src/components/ModelViewer/SpeckleViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ import {
CameraController,
FilteringExtension,
ViewerEvent,
SelectionEvent,
} from '@speckle/viewer'
import type { SelectionEvent } from '@speckle/viewer'
import {
onMounted,
watch,
Expand Down
119 changes: 0 additions & 119 deletions src/components/ModelViewer/ViewerControls.vue

This file was deleted.

0 comments on commit 980a934

Please sign in to comment.