2020-06-29 19:21:56 +00:00
|
|
|
<!-- Copyright 2020 the V8 project authors. All rights reserved.
|
|
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
|
|
found in the LICENSE file. -->
|
|
|
|
|
|
|
|
<style>
|
2020-07-13 18:02:52 +00:00
|
|
|
@import "./index.css";
|
2020-06-29 19:21:56 +00:00
|
|
|
#timeline {
|
|
|
|
position: relative;
|
|
|
|
height: 300px;
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: scroll;
|
|
|
|
user-select: none;
|
2020-07-15 03:26:53 +00:00
|
|
|
background-color: var(--timeline-background-color);
|
2020-07-13 18:02:52 +00:00
|
|
|
box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
|
2020-06-29 19:21:56 +00:00
|
|
|
}
|
|
|
|
#timelineLabel {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
transform-origin: left bottom 0;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
width: 250px;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 10px;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
#timelineChunks {
|
|
|
|
height: 250px;
|
|
|
|
position: absolute;
|
|
|
|
margin-right: 100px;
|
|
|
|
}
|
|
|
|
#timelineCanvas {
|
|
|
|
height: 250px;
|
|
|
|
position: relative;
|
|
|
|
overflow: visible;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
.chunk {
|
|
|
|
width: 6px;
|
2020-07-28 09:02:26 +00:00
|
|
|
border: 0px var(--timeline-background-color) solid;
|
2020-06-29 19:21:56 +00:00
|
|
|
border-width: 0 2px 0 2px;
|
|
|
|
position: absolute;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
image-rendering: pixelated;
|
|
|
|
bottom: 0px;
|
|
|
|
}
|
|
|
|
.timestamp {
|
|
|
|
height: 250px;
|
|
|
|
width: 100px;
|
2020-07-15 03:26:53 +00:00
|
|
|
border-left: 1px var(--surface-color) dashed;
|
2020-06-29 19:21:56 +00:00
|
|
|
padding-left: 4px;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
font-size: 10px;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
#timelineOverview {
|
|
|
|
width: 100%;
|
|
|
|
height: 50px;
|
|
|
|
position: relative;
|
|
|
|
margin-top: -50px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
background-size: 100% 100%;
|
2020-07-15 03:26:53 +00:00
|
|
|
border: 1px var(--surface-color) solid;
|
2020-06-29 19:21:56 +00:00
|
|
|
border-width: 1px 0 1px 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
#timelineOverviewIndicator {
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
2020-07-15 03:26:53 +00:00
|
|
|
box-shadow: 0px 2px 20px -5px var(--surface-color) inset;
|
2020-06-29 19:21:56 +00:00
|
|
|
top: 0px;
|
|
|
|
cursor: ew-resize;
|
|
|
|
}
|
|
|
|
#timelineOverviewIndicator .leftMask,
|
|
|
|
#timelineOverviewIndicator .rightMask {
|
|
|
|
background-color: rgba(200, 200, 200, 0.5);
|
|
|
|
width: 10000px;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
}
|
|
|
|
#timelineOverviewIndicator .leftMask {
|
|
|
|
right: 100%;
|
|
|
|
}
|
|
|
|
#timelineOverviewIndicator .rightMask {
|
|
|
|
left: 100%;
|
|
|
|
}
|
|
|
|
</style>
|
2020-07-13 18:02:52 +00:00
|
|
|
<div class="panel">
|
|
|
|
<h2>Timeline Panel</h2>
|
|
|
|
<h3>Timeline</h3>
|
|
|
|
<div id="timeline">
|
|
|
|
<div id="timelineLabel">Frequency</div>
|
|
|
|
<div id="timelineChunks"></div>
|
|
|
|
<canvas id="timelineCanvas"></canvas>
|
|
|
|
</div>
|
|
|
|
<div id="timelineOverview">
|
|
|
|
<div id="timelineOverviewIndicator">
|
|
|
|
<div class="leftMask"></div>
|
|
|
|
<div class="rightMask"></div>
|
2020-06-29 19:21:56 +00:00
|
|
|
</div>
|
2020-07-13 18:02:52 +00:00
|
|
|
</div>
|
2020-06-29 19:21:56 +00:00
|
|
|
</div>
|