-
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.
MINOR: Feature: Photopshere Viewer (#461)
* feat(models): add support for photosphere models (wip) * feat(photosphere): add photosphere and photosphere building support * feat(photosphere): photosphere-building-maker integration * fix(models): use viewer alpha version with photsphere features * fix(photosphere): show sturcture button for photosphere buildings * fix(photosphere): restore 'Images' tab in models manager * Update src/state/models.js Co-authored-by: Gaëtan LAGIER <[email protected]> * fix: update api-client to v10.18.0 --------- Co-authored-by: Gaëtan LAGIER <[email protected]>
- Loading branch information
1 parent
81b6837
commit aa19c10
Showing
23 changed files
with
894 additions
and
425 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
70 changes: 70 additions & 0 deletions
70
...ents/specific/models/models-manager/photosphere-manager/PhotosphereBuildingMakerPanel.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,70 @@ | ||
<script setup> | ||
import apiClient from "../../../../../services/api-client.js"; | ||
import { useModels } from "../../../../../state/models.js"; | ||
const { loadProjectModels } = useModels(); | ||
defineProps({ | ||
space: { | ||
type: Object, | ||
required: true | ||
}, | ||
project: { | ||
type: Object, | ||
required: true | ||
}, | ||
model: { | ||
type: Object, | ||
default: null | ||
}, | ||
}); | ||
defineEmits(["close"]); | ||
</script> | ||
|
||
<template> | ||
<div class="photosphere-building-maker-panel"> | ||
<BIMDataButton | ||
class="close" | ||
ghost | ||
rounded | ||
icon | ||
@click="$emit('close')" | ||
> | ||
<BIMDataIconClose size="xxs" fill color="granite-light" /> | ||
</BIMDataButton> | ||
<div class="content"> | ||
<BIMDataPhotosphereBuildingMaker | ||
:apiClient="apiClient" | ||
:space="space" | ||
:project="project" | ||
:model="model" | ||
@metaBuilding-created="loadProjectModels(project)" | ||
@metaBuilding-updated="loadProjectModels(project)" | ||
@metaBuilding-deleted="loadProjectModels(project)" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.photosphere-building-maker-panel { | ||
position: absolute; | ||
z-index: 0; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
.close { | ||
position: absolute; | ||
z-index: 1; | ||
top: calc(var(--spacing-unit) / 2); | ||
right: var(--spacing-unit); | ||
} | ||
.content { | ||
height: 100%; | ||
} | ||
} | ||
</style> |
65 changes: 65 additions & 0 deletions
65
...omponents/specific/models/models-manager/photosphere-manager/PhotosphereBuildingPanel.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,65 @@ | ||
<script setup> | ||
import apiClient from "../../../../../services/api-client.js"; | ||
defineProps({ | ||
space: { | ||
type: Object, | ||
required: true | ||
}, | ||
project: { | ||
type: Object, | ||
required: true | ||
}, | ||
model: { | ||
type: Object, | ||
required: true | ||
}, | ||
}); | ||
defineEmits(["close"]); | ||
</script> | ||
|
||
<template> | ||
<div class="photosphere-building-panel"> | ||
<BIMDataButton | ||
class="close" | ||
ghost | ||
rounded | ||
icon | ||
@click="$emit('close')" | ||
> | ||
<BIMDataIconClose size="xxs" fill color="granite-light" /> | ||
</BIMDataButton> | ||
<div class="content"> | ||
<BIMDataPhotosphereBuilding | ||
:apiClient="apiClient" | ||
:space="space" | ||
:project="project" | ||
:model="model" | ||
:selectable="false" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.photosphere-building-panel { | ||
position: absolute; | ||
z-index: 0; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
.close { | ||
position: absolute; | ||
z-index: 1; | ||
top: calc(var(--spacing-unit) / 2); | ||
right: var(--spacing-unit); | ||
} | ||
.content { | ||
height: 100%; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.