Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
delas committed Nov 7, 2023
1 parent afc4e27 commit e3fc691
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
3 changes: 3 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@showBackdrop="this.showBackdrop= $event"
@showActivities="this.showActivities= $event"
@showActivityLabels="this.showActivityLabels= $event"
@showActivityShadows="this.showActivityShadows= $event"
@showEdges="this.showEdges= $event"
/>
</div>
Expand All @@ -18,6 +19,7 @@
:show-backdrop="showBackdrop"
:show-activities="showActivities"
:show-activity-labels="showActivityLabels"
:show-activity-shadows="showActivityShadows"
:show-edges="showEdges"
/>
</div>
Expand All @@ -44,6 +46,7 @@ export default {
showBackdrop: true,
showActivities: true,
showActivityLabels: true,
showActivityShadows: true,
showEdges: true
}),
};
Expand Down
5 changes: 3 additions & 2 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item"><a class="nav-link" href="#">Configure visibility</a></li>
<li class="nav-item"><a class="nav-link" data-bs-toggle="offcanvas" href="#ConfigureData">Configure data</a></li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="offcanvas" href="#ConfigureData">Configure data</a>
</li>
</ul>
</div>
</div>
Expand Down
13 changes: 10 additions & 3 deletions src/components/SidebarVisibility.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,25 @@
<li class="list-group-item">
<label class="form-check-label form-check form-switch">
<input class="form-check-input" type="checkbox" v-model="showActivities" @click="$emit('showActivities', !this.showActivities)">
Activity pictograms layer
Activity pictograms
</label>
</li>
<li class="list-group-item">
<label class="form-check-label form-check form-switch">
<input class="form-check-input" :disabled="!this.showActivities" type="checkbox" v-model="showActivityShadows" @click="$emit('showActivityShadows', !this.showActivityShadows)">
Activity shadows
</label>
</li>
<li class="list-group-item">
<label class="form-check-label form-check form-switch">
<input class="form-check-input" type="checkbox" v-model="showActivityLabels" @click="$emit('showActivityLabels', !this.showActivityLabels)">
Activity labels layer
Activity labels
</label>
</li>
<li class="list-group-item">
<label class="form-check-label form-check form-switch">
<input class="form-check-input" type="checkbox" v-model="showEdges" @click="$emit('showEdges', !this.showEdges)">
Edges layer
Edges
</label>
</li>
</ul>
Expand All @@ -40,6 +46,7 @@ export default {
showBackdrop: true,
showActivities: true,
showActivityLabels: true,
showActivityShadows: true,
showEdges: true
}),
};
Expand Down
7 changes: 4 additions & 3 deletions src/components/Tiramisu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/>
</g>

<!-- activities -->
<!-- activity labels -->
<g v-for="(action, name, index) in images.actions" :key="name">
<text
v-if="showActivityLabels && name in model.actions"
Expand All @@ -62,7 +62,8 @@ export default {
showBackdrop: true,
showActivities: true,
showActivityLabels: true,
showEdges: true
showActivityShadows: true,
showEdges: true,
},
data: () => ({
dimensions: {
Expand Down Expand Up @@ -155,7 +156,7 @@ export default {
}
},
intensityActivity(intensity) {
if (!Number.isNaN(intensity))
if ((!Number.isNaN(intensity)) && this.showActivityShadows)
return 'filter: drop-shadow(0px 0px '+ (intensity*20) +'px green)';
},
getCoordinates(x1, y1, x2, y2) {
Expand Down

0 comments on commit e3fc691

Please sign in to comment.