Skip to content

Commit 518ced6

Browse files
authored
Merge pull request #52 from akhuoa/feature/remove-zoom-controls
Remove zoom controls
2 parents 4c19159 + c64fc94 commit 518ced6

File tree

3 files changed

+1
-156
lines changed

3 files changed

+1
-156
lines changed

src/components/HeatmapPlot.vue

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,20 @@
3535
<el-button class="view-heatmap-button" @click="logToggle">Toggle log</el-button>
3636
</span>
3737
</div>
38-
<plot-controls :parent-element="{element: $refs.plotlyplot}" :controls-enabled="!loading" />
3938
</div>
4039
</template>
4140

4241
<script>
4342
import { markRaw } from 'vue'
4443
import DataManager from '@/js/data_manager'
4544
import PlotCommon from '@/mixins/plot_common'
46-
import PlotControls from '@/components/PlotControls.vue'
4745
import Plotly from '@/js/custom_plotly'
4846
4947
import { ElSelect, ElOption, ElCollapse, ElCollapseItem, ElButton, ElPopover } from 'element-plus';
5048
5149
export default {
5250
name: 'HeatmapPlot',
5351
components: {
54-
PlotControls,
5552
ElSelect,
5653
ElOption,
5754
ElCollapse,
@@ -231,49 +228,6 @@ export default {
231228
</script>
232229

233230
<style scoped>
234-
.controls {
235-
padding-left: 55px;
236-
padding-top: 5px;
237-
align-items: left;
238-
text-align: left;
239-
}
240-
241-
@media only screen and (max-width: 48em) {
242-
.ui-controls {
243-
position: absolute;
244-
height: 100%;
245-
width: 40px;
246-
right: 0px;
247-
top: 160px;
248-
pointer-events: none;
249-
z-index: 5;
250-
}
251-
}
252-
253-
.title {
254-
width: 572px;
255-
height: 17px;
256-
font-family: Helvetica;
257-
font-size: 14px;
258-
font-weight: 500;
259-
font-stretch: normal;
260-
font-style: normal;
261-
line-height: normal;
262-
letter-spacing: normal;
263-
color: #606266;
264-
padding-top: 8px;
265-
padding-bottom: 8px;
266-
}
267-
.options {
268-
position: absolute;
269-
z-index: 11000;
270-
height: calc(100% - 20px);
271-
text-align: right;
272-
overflow: auto;
273-
padding-top: 8px;
274-
padding-bottom: 8px;
275-
}
276-
277231
.channel-select {
278232
min-width: 220px;
279233
margin: 8px;
@@ -299,37 +253,8 @@ export default {
299253
letter-spacing: normal;
300254
color: white;
301255
}
302-
.input-div {
303-
display: flex;
304-
justify-content: space-between;
305-
}
306-
307-
.icon-button {
308-
background-color: #ffffff;
309-
margin-left: 8px;
310-
height: 24px !important;
311-
width: 24px !important;
312-
}
313-
314-
.icon-button:hover {
315-
cursor: pointer;
316-
}
317256
318257
.el-select-dropdown__item {
319258
font-family: Arial, Helvetica, sans-serif;
320259
}
321-
322-
.zoomSelect :deep( .el-input__inner ){
323-
padding: 0px;
324-
height: 24px;
325-
padding-left: 4px;
326-
width: 60px;
327-
margin-left: 8px;
328-
}
329-
330-
.zoomSelect :deep( .el-select__caret ){
331-
width: 8px;
332-
margin-right: 2px;
333-
margin-top: 2px;
334-
}
335260
</style>

src/components/TimeseriesPlot.vue

Lines changed: 1 addition & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,20 @@
2222
<el-button class="view-heatmap-button" @click="filterPlot">Filter plot</el-button>
2323
</span>
2424
</div>
25-
<plot-controls ref="controls" :parent-element="{element: $refs.plotlyplot}" :controls-enabled="!loading" />
2625
</div>
2726
</template>
2827

2928
<script>
3029
import { markRaw, toRaw } from 'vue'
3130
import Plotly from '@/js/custom_plotly'
3231
import DataManager from '@/js/data_manager'
33-
import PlotControls from '@/components/PlotControls.vue'
3432
import PlotCommon from '@/mixins/plot_common'
3533
import { ElSelect, ElButton, ElOption } from 'element-plus';
3634
3735
3836
export default {
3937
name: 'TimeseriesPlot',
40-
components: {PlotControls, ElSelect, ElButton, ElOption},
38+
components: { ElSelect, ElButton, ElOption},
4139
mixins: [PlotCommon],
4240
data: function () {
4341
return {
@@ -231,49 +229,6 @@ export default {
231229
height: 100%;
232230
}
233231
234-
.controls {
235-
padding-left: 55px;
236-
padding-top: 5px;
237-
align-items: left;
238-
text-align: left;
239-
}
240-
241-
@media only screen and (max-width: 48em) {
242-
.ui-controls {
243-
position: absolute;
244-
height: 100%;
245-
width: 40px;
246-
right: 0px;
247-
top: 160px;
248-
pointer-events: none;
249-
z-index: 5;
250-
}
251-
}
252-
253-
.title {
254-
width: 572px;
255-
height: 17px;
256-
font-family: Helvetica;
257-
font-size: 14px;
258-
font-weight: 500;
259-
font-stretch: normal;
260-
font-style: normal;
261-
line-height: normal;
262-
letter-spacing: normal;
263-
color: #606266;
264-
padding-top: 8px;
265-
padding-bottom: 8px;
266-
}
267-
.options {
268-
position: absolute;
269-
z-index: 11000;
270-
height: calc(100% - 20px);
271-
text-align: right;
272-
overflow: auto;
273-
padding-top: 8px;
274-
padding-bottom: 8px;
275-
}
276-
277232
.channel-select {
278233
max-width: 320px;
279234
margin: 8px;
@@ -299,37 +254,8 @@ export default {
299254
letter-spacing: normal;
300255
color: white;
301256
}
302-
.input-div {
303-
display: flex;
304-
justify-content: space-between;
305-
}
306-
307-
.icon-button {
308-
background-color: #ffffff;
309-
margin-left: 8px;
310-
height: 24px !important;
311-
width: 24px !important;
312-
}
313-
314-
.icon-button:hover {
315-
cursor: pointer;
316-
}
317257
318258
.el-select-dropdown__item {
319259
font-family: Arial, Helvetica, sans-serif;
320260
}
321-
322-
.zoomSelect :deep( .el-input__inner ){
323-
padding: 0px;
324-
height: 24px;
325-
padding-left: 4px;
326-
width: 60px;
327-
margin-left: 8px;
328-
}
329-
330-
.zoomSelect :deep( .el-select__caret ){
331-
width: 8px;
332-
margin-right: 2px;
333-
margin-top: 2px;
334-
}
335261
</style>

src/components/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@
33
import PlotVuer from './PlotVuer.vue'
44

55
export {PlotVuer}
6-
7-
import HeatmapPlot from './HeatmapPlot.vue'
8-
import TimeseriesPlot from './TimeseriesPlot.vue'
9-
if (HeatmapPlot || TimeseriesPlot) {
10-
// Are these things hidden?
11-
}

0 commit comments

Comments
 (0)