-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(models): add point-cloud tab to models manager (#304)
* feat(models): add point-cloud tab to models manager * fix(config): enable 'tileset-viewer-parameters' viewer plugin
- Loading branch information
1 parent
a761b87
commit e801149
Showing
8 changed files
with
92 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/components/specific/models/models-manager/pdf-manager/PDFManager.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/components/specific/models/models-manager/point-cloud-manager/PointCloudManager.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script setup> | ||
import { ref, watch } from "vue"; | ||
import { segregateBySource } from "../../../../../utils/models.js"; | ||
// Components | ||
import GenericModelsManager from "../generic-models-manager/GenericModelsManager.vue"; | ||
const props = defineProps({ | ||
project: { | ||
type: Object, | ||
required: true | ||
}, | ||
models: { | ||
type: Array, | ||
required: true | ||
} | ||
}); | ||
const tabsDef = [{ id: "upload" }, { id: "archive" }]; | ||
const tabs = ref([]); | ||
watch( | ||
() => props.models, | ||
models => { | ||
const modelsBySource = segregateBySource(models); | ||
tabs.value = tabsDef.map(tab => ({ | ||
...tab, | ||
label: tab.label || tab.id, | ||
models: modelsBySource[tab.id] | ||
})); | ||
}, | ||
{ immediate: true } | ||
); | ||
</script> | ||
|
||
<template> | ||
<GenericModelsManager :project="project" :tabs="tabs" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters