-
Notifications
You must be signed in to change notification settings - Fork 0
/
jviz-coverviewer.html
102 lines (93 loc) · 3.03 KB
/
jviz-coverviewer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!--
@license
Copyright (c) 2016 The Jviz Project Authors. All rights reserved.
The Jviz Project is under the MIT License. See https://github.com/jviz/jviz/blob/dev/LICENSE
-->
<!-- Import components -->
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../jviz/jviz.html">
<link rel="import" href="../jviz-styles/jviz-styles.html">
<link rel="import" href="../jviz-panel/jviz-panel.html">
<link rel="import" href="../jviz-canvas/jviz-canvas.html">
<!-- Coverviewer template -->
<dom-module id="jviz-coverviewer">
<template>
<style>
/* Host style */
:host
{
display: block;
width: 100%;
}
/* Table content */
:host ::content .table
{
display: block;
width: 100%;
height: 100px;
overflow: auto;
margin-top: 5px;
margin-bottom: 0px;
}
/* Table row */
:host ::content .table .table-row
{
display: block;
width: 100%;
}
/* Table cell */
:host ::content .table .table-cell
{
display: inline-block;
width: calc(25% - 30px);
height: 20px;
transition: all 0.3s;
background-color: var(--jviz-navy-4);
font-size: 14px;
font-weight: bold;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
color: var(--jviz-white);
line-height: 20px;
border-radius: 5px;
padding: 10px;
margin: 5px;
cursor: pointer;
}
</style>
<!-- Panel -->
<jviz-panel id="panel" panel-title="CoverViewer" panel-detail="">
<jviz-panel-head id="panel_head">
<jviz-btn id="zoom_in" btn-color="navy">Zoom in</jviz-btn>
<jviz-btn id="zoom_out" btn-color="navy">Zoom out</jviz-btn>
<jviz-btn id="selection" btn-color="navy">Selection</jviz-btn>
</jviz-panel-head>
<jviz-panel-body id="panel_body">
<!-- Canvas multilayer -->
<jviz-canvas id="canvas" canvas-width="100%" canvas-height="{{ coverviewerHeight }}"></jviz-canvas>
<!-- Table content -->
<div id="table" class="table"></div>
</jviz-panel-body>
<jviz-panel-foot id="panel_foot">Coverviewer footer</jviz-panel-foot>
</jviz-panel>
</template>
</dom-module>
<!-- Import logic -->
<link rel="import" href="src/coverviewer.html">
<link rel="import" href="src/axis.html">
<link rel="import" href="src/background.html">
<link rel="import" href="src/cover.html">
<link rel="import" href="src/dimensions.html">
<link rel="import" href="src/draw.html">
<link rel="import" href="src/events.html">
<link rel="import" href="src/label.html">
<link rel="import" href="src/marks.html">
<link rel="import" href="src/options.html">
<link rel="import" href="src/points.html">
<link rel="import" href="src/samples.html">
<link rel="import" href="src/selection.html">
<link rel="import" href="src/table.html">
<link rel="import" href="src/zoom.html">
<!-- Initialize the coverviewer component -->
<script> Polymer(jviz.components.coverviewer); </script>