-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Report v2 (#201) * assessment page saves in new v2 object * mostly working I think * child objects properly appear on server * includes materials and transport colours in report parent object now * removed comment * moved around a load of functions to (hopefully) make things a little cleaner * clean up * model object id now saved to report object to be more certain that correct model being displayed on view assessment page * child objects actually contain total carbon * wrote main parameter update function, don't know if it works yet * almost working * attempted to make things work * adding param function works (kinda) * cleaned up addParams method a little bit, should more reliably work now * model with new params being correctly uploaded * carbon heatmap inside Act! * started adding some controls for the viewer on the report viewer page * continued work on the viewer controls on the report viewing page * can change model views on the view report page * report viewer can load both v1 and v2 reports * updated v1 report to v2 works * added key to report viewer page (it's rubbish, but gets the job done) * removed most of the console.log's * added message to the final loading spinner on the assessment page * object parameter grouping now properly works * updated version number * cleaned things up * updated speckle viewer * almost working * working (as far as I know) * clean up * clean up * text update * text update 2 * added links (#215)
- Loading branch information
Showing
25 changed files
with
1,216 additions
and
357 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<template> | ||
<v-card class="card pa-4" flat outlined> | ||
<v-card-title class="pt-0 px-0"> | ||
<span class="text-h7">Viewer controls</span> | ||
</v-card-title> | ||
<v-card-text> | ||
Model showing: | ||
<v-select | ||
v-model="select" | ||
:items="displayOptions" | ||
item-text="name" | ||
item-value="value" | ||
/> | ||
<div v-if="showHeatmapKey"> | ||
<div class="d-flex align-center"> | ||
<div | ||
style="width: 1rem; height: 1rem; background-color: #3f5efb" | ||
class="mr-2" | ||
></div> | ||
= low | ||
</div> | ||
<div class="d-flex align-center"> | ||
<div | ||
style="width: 1rem; height: 1rem; background-color: #f9466d" | ||
class="mr-2" | ||
></div> | ||
= high | ||
</div> | ||
</div> | ||
</v-card-text> | ||
</v-card> | ||
</template> | ||
<script lang="ts"> | ||
import { Vue, Component, Emit, Watch } from "vue-property-decorator"; | ||
interface DisplayOption { | ||
name: string; | ||
value: string; | ||
} | ||
@Component | ||
export default class RendererControlsCard extends Vue { | ||
displayOptions: DisplayOption[] = [ | ||
{ | ||
name: "Materials", | ||
value: "materials", | ||
}, | ||
{ | ||
name: "Total Carbon", | ||
value: "parameters.Total Carbon.value", | ||
}, | ||
{ | ||
name: "Product Stage Carbon A1-A3", | ||
value: "parameters.Product Stage Carbon A1-A3.value", | ||
}, | ||
{ | ||
name: "Transport Carbon A4", | ||
value: "parameters.Transport Carbon A4.value", | ||
}, | ||
{ | ||
name: "Construction Carbon A5", | ||
value: "parameters.Construction Carbon A5.value", | ||
}, | ||
{ | ||
name: "None", | ||
value: "none", | ||
}, | ||
]; | ||
select = "materials"; | ||
get showHeatmapKey() { | ||
if ( | ||
this.select === "parameters.Total Carbon.value" || | ||
this.select === "parameters.Product Stage Carbon A1-A3.value" || | ||
this.select === "parameters.Transport Carbon A4.value" || | ||
this.select === "parameters.Construction Carbon A5.value" | ||
) { | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
} | ||
@Watch("select") | ||
@Emit("selectChanged") | ||
selectChanged() { | ||
return this.select; | ||
} | ||
} | ||
</script> |
Oops, something went wrong.