Working 1 st version
This commit is contained in:
1 parent
06500d5399
commit
f06b948c0f
6 files changed
+1762
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
|
||||
<rect width="32" height="32" rx="6" fill="#1e1e2e"/>
|
||||
<polyline points="2,16 7,16 9,8 11,24 14,6 17,26 20,12 23,20 25,16 30,16"
|
||||
fill="none" stroke="#89b4fa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 329 B |
@@ -0,0 +1,309 @@
|
||||
/* ── Catppuccin Mocha palette ──────────────────────────────── */
|
||||
:root {
|
||||
--bg: #1e1e2e; --mantle: #181825; --crust: #11111b;
|
||||
--surface0: #313244; --surface1: #45475a; --surface2: #585b70;
|
||||
--overlay0: #6c7086; --overlay1: #7f849c; --text: #cdd6f4;
|
||||
--subtext0: #a6adc8; --subtext1: #bac2de;
|
||||
--accent: #89b4fa; --green: #a6e3a1; --red: #f38ba8;
|
||||
--yellow: #f9e2af; --peach: #fab387; --mauve: #cba6f7;
|
||||
--teal: #94e2d5; --sky: #89dceb; --lavender: #b4befe;
|
||||
--pink: #f5c2e7;
|
||||
--radius: 8px; --sidebar-w: 280px; --topbar-h: 52px;
|
||||
--trigbar-h: 0px; --statusbar-h: 20px; --transition: 0.18s ease;
|
||||
}
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height:100%; background:var(--bg); color:var(--text);
|
||||
font-family:'Segoe UI',system-ui,sans-serif; font-size:14px; overflow:hidden; }
|
||||
::-webkit-scrollbar { width:6px; }
|
||||
::-webkit-scrollbar-track { background:var(--mantle); }
|
||||
::-webkit-scrollbar-thumb { background:var(--surface1); border-radius:3px; }
|
||||
|
||||
/* ── uPlot overrides ─────────────────────────────────────────── */
|
||||
.uplot { background:transparent !important; }
|
||||
.uplot .u-over { cursor: crosshair; }
|
||||
.uplot .u-cursor-x, .uplot .u-cursor-y { border-color: #585b70 !important; }
|
||||
.uplot .u-select { background: rgba(137,180,250,0.1) !important; border: 1px solid rgba(137,180,250,0.4) !important; }
|
||||
|
||||
/* ── Top bar ─────────────────────────────────────────────────── */
|
||||
#topbar {
|
||||
position:fixed; top:0; left:0; right:0; height:var(--topbar-h);
|
||||
background:var(--mantle); border-bottom:1px solid var(--surface0);
|
||||
display:flex; align-items:center; gap:10px; padding:0 14px;
|
||||
z-index:100; box-shadow:0 2px 8px rgba(0,0,0,0.4); overflow:hidden;
|
||||
}
|
||||
#app-title { font-weight:700; font-size:15px; color:var(--accent);
|
||||
white-space:nowrap; letter-spacing:0.3px; flex-shrink:0; }
|
||||
.topbar-sep { flex:1; min-width:4px; }
|
||||
#status-led { width:8px; height:8px; border-radius:50%;
|
||||
background:var(--red); flex-shrink:0; transition:background var(--transition); }
|
||||
#status-led.green { background:var(--green); animation:pulse-green 2s infinite; }
|
||||
#status-led.orange { background:var(--yellow); animation:pulse-orange 1.5s infinite; }
|
||||
@keyframes pulse-green { 0%,100%{box-shadow:0 0 0 0 rgba(166,227,161,0.4)} 50%{box-shadow:0 0 0 4px rgba(166,227,161,0)} }
|
||||
@keyframes pulse-orange { 0%,100%{box-shadow:0 0 0 0 rgba(249,226,175,0.4)} 50%{box-shadow:0 0 0 4px rgba(249,226,175,0)} }
|
||||
#status-text { font-size:11px; color:var(--subtext0); white-space:nowrap; }
|
||||
#sb-tsage { font-size:11px; color:var(--overlay0); white-space:nowrap; font-family:monospace; }
|
||||
|
||||
#cursor-readout {
|
||||
display:none; align-items:center; gap:8px;
|
||||
font-size:11px; font-family:monospace;
|
||||
background:var(--surface0); border:1px solid var(--surface1);
|
||||
border-radius:5px; padding:3px 8px; white-space:nowrap; flex-shrink:0;
|
||||
}
|
||||
#cursor-readout.visible { display:flex; }
|
||||
#cur-ta { color:var(--sky); } #cur-tb { color:var(--yellow); }
|
||||
#cur-dt { color:var(--subtext1); } .cur-sep { color:var(--surface2); }
|
||||
|
||||
.topbar-vsep { width:1px; height:22px; background:var(--surface0); flex-shrink:0; margin:0 2px; }
|
||||
#layout-btns { display:flex; gap:2px; align-items:center; flex-shrink:0; }
|
||||
.ctrl-label { font-size:12px; color:var(--subtext0); white-space:nowrap; flex-shrink:0; }
|
||||
select.ctrl-select {
|
||||
background:var(--surface0); color:var(--text);
|
||||
border:1px solid var(--surface1); border-radius:var(--radius);
|
||||
padding:4px 6px; font-size:12px; cursor:pointer; outline:none; flex-shrink:0;
|
||||
}
|
||||
select.ctrl-select:hover { border-color:var(--accent); }
|
||||
button.ctrl-btn {
|
||||
background:var(--surface0); color:var(--text);
|
||||
border:1px solid var(--surface1); border-radius:var(--radius);
|
||||
padding:4px 12px; font-size:12px; cursor:pointer; white-space:nowrap; flex-shrink:0;
|
||||
transition:background var(--transition),border-color var(--transition);
|
||||
}
|
||||
button.ctrl-btn:hover { background:var(--surface1); border-color:var(--accent); }
|
||||
button.ctrl-btn.active { background:var(--surface1); border-color:var(--accent); color:var(--accent); }
|
||||
button.ctrl-btn.trig-active { background:rgba(203,166,247,0.15); border-color:var(--mauve); color:var(--mauve); }
|
||||
button.ctrl-btn.cursor-a { border-color:var(--sky); color:var(--sky); }
|
||||
button.ctrl-btn.cursor-b { border-color:var(--yellow); color:var(--yellow); }
|
||||
button.ctrl-btn.resume-btn { border-color:var(--teal); color:var(--teal); }
|
||||
|
||||
/* ── Trigger bar ──────────────────────────────────────────────── */
|
||||
#trigbar {
|
||||
position:fixed; top:var(--topbar-h); left:0; right:0;
|
||||
background:var(--crust); border-bottom:1px solid var(--surface0);
|
||||
display:flex; align-items:center; flex-wrap:wrap; gap:10px;
|
||||
padding:0 16px; z-index:99;
|
||||
height:0; overflow:hidden;
|
||||
transition:height var(--transition),padding var(--transition);
|
||||
}
|
||||
#trigbar.open { height:48px; padding:0 16px; }
|
||||
.trig-group { display:flex; align-items:center; gap:6px; }
|
||||
.trig-sep { width:1px; height:24px; background:var(--surface0); flex-shrink:0; }
|
||||
.trig-label { font-size:11px; color:var(--subtext0); white-space:nowrap; }
|
||||
select.trig-select {
|
||||
background:var(--surface0); color:var(--text);
|
||||
border:1px solid var(--surface1); border-radius:5px;
|
||||
padding:3px 6px; font-size:12px; cursor:pointer; outline:none;
|
||||
}
|
||||
select.trig-select:hover { border-color:var(--mauve); }
|
||||
input.trig-input {
|
||||
background:var(--surface0); color:var(--text);
|
||||
border:1px solid var(--surface1); border-radius:5px;
|
||||
padding:3px 6px; font-size:12px; outline:none; width:80px;
|
||||
}
|
||||
input.trig-input:focus { border-color:var(--mauve); }
|
||||
input[type=range].trig-range {
|
||||
-webkit-appearance:none; width:90px; height:4px;
|
||||
background:var(--surface1); border-radius:2px; outline:none; cursor:pointer;
|
||||
}
|
||||
input[type=range].trig-range::-webkit-slider-thumb {
|
||||
-webkit-appearance:none; width:12px; height:12px;
|
||||
border-radius:50%; background:var(--mauve); cursor:pointer;
|
||||
}
|
||||
.trig-range-val { font-size:11px; color:var(--mauve); min-width:28px; }
|
||||
#trig-status-badge {
|
||||
font-size:11px; font-weight:700; letter-spacing:0.8px;
|
||||
padding:3px 10px; border-radius:12px;
|
||||
border:1px solid var(--surface1); background:var(--surface0); color:var(--subtext0);
|
||||
min-width:80px; text-align:center; white-space:nowrap;
|
||||
}
|
||||
#trig-status-badge.armed { background:rgba(166,227,161,0.12); border-color:var(--green); color:var(--green); }
|
||||
#trig-status-badge.waiting { background:rgba(249,226,175,0.12); border-color:var(--yellow); color:var(--yellow); }
|
||||
#trig-status-badge.triggered { background:rgba(203,166,247,0.15); border-color:var(--mauve); color:var(--mauve); }
|
||||
#btn-trig-rearm, #btn-trig-stop {
|
||||
border:none; border-radius:5px;
|
||||
padding:4px 12px; font-size:12px; font-weight:600; cursor:pointer; display:none;
|
||||
}
|
||||
#btn-trig-rearm { background:var(--mauve); color:var(--crust); }
|
||||
#btn-trig-stop { background:var(--surface1); color:var(--yellow); border:1px solid var(--yellow); }
|
||||
#btn-trig-rearm:hover, #btn-trig-stop:hover { opacity:0.85; }
|
||||
|
||||
/* ── Status bar ───────────────────────────────────────────────── */
|
||||
#statusbar {
|
||||
position:fixed; bottom:0; left:0; right:0; height:var(--statusbar-h);
|
||||
background:var(--crust); border-top:1px solid var(--surface0);
|
||||
display:flex; align-items:center; justify-content:space-between;
|
||||
padding:0 10px; z-index:100;
|
||||
}
|
||||
#sb-left { display:flex; align-items:center; gap:6px; }
|
||||
#build-version { font-size:10px; color:var(--overlay0); font-family:monospace; white-space:nowrap; }
|
||||
|
||||
/* ── Body ─────────────────────────────────────────────────────── */
|
||||
#body {
|
||||
position:fixed; top:calc(var(--topbar-h) + var(--trigbar-h));
|
||||
left:0; right:0; bottom:var(--statusbar-h); display:flex; overflow:hidden;
|
||||
transition:top var(--transition);
|
||||
}
|
||||
|
||||
/* ── Sidebar ──────────────────────────────────────────────────── */
|
||||
#sidebar {
|
||||
width:var(--sidebar-w); min-width:var(--sidebar-w);
|
||||
background:var(--mantle); border-right:1px solid var(--surface0);
|
||||
display:flex; flex-direction:column;
|
||||
transition:width var(--transition),min-width var(--transition); overflow:hidden;
|
||||
}
|
||||
#sidebar.collapsed { width:0; min-width:0; }
|
||||
#sidebar-header {
|
||||
display:flex; align-items:center; justify-content:space-between;
|
||||
padding:10px 14px; border-bottom:1px solid var(--surface0);
|
||||
font-weight:600; color:var(--subtext1); font-size:12px;
|
||||
text-transform:uppercase; letter-spacing:0.8px; flex-shrink:0;
|
||||
}
|
||||
#signal-list { flex:1; overflow-y:auto; padding:8px 0; }
|
||||
.sig-item {
|
||||
padding:6px 14px; cursor:grab; border-radius:6px; margin:1px 6px;
|
||||
transition:background var(--transition); display:flex; align-items:center; gap:8px;
|
||||
user-select:none;
|
||||
}
|
||||
.sig-item:hover { background:var(--surface0); }
|
||||
.sig-item:active { cursor:grabbing; }
|
||||
.sig-item.dragging { opacity:0.4; }
|
||||
.sig-name { flex:1; font-size:13px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
||||
.sig-unit { font-size:11px; color:var(--subtext0); font-style:italic; }
|
||||
.type-badge { font-size:10px; background:var(--surface1); color:var(--subtext1); padding:1px 5px; border-radius:3px; white-space:nowrap; }
|
||||
.array-group {}
|
||||
.array-header {
|
||||
padding:6px 14px 6px 10px; cursor:pointer; border-radius:6px; margin:1px 6px;
|
||||
transition:background var(--transition); display:flex; align-items:center; gap:6px; user-select:none;
|
||||
}
|
||||
.array-header:hover { background:var(--surface0); }
|
||||
.array-arrow { font-size:10px; color:var(--subtext0); transition:transform var(--transition); display:inline-block; }
|
||||
.array-header.open .array-arrow { transform:rotate(90deg); }
|
||||
.array-children { display:none; padding-left:16px; }
|
||||
.array-header.open + .array-children { display:block; }
|
||||
.array-child {
|
||||
padding:4px 14px 4px 8px; cursor:grab; border-radius:6px; margin:1px 6px;
|
||||
transition:background var(--transition); display:flex; align-items:center; gap:8px;
|
||||
user-select:none; color:var(--subtext1); font-size:12px;
|
||||
}
|
||||
.array-child:hover { background:var(--surface0); }
|
||||
.array-child:active { cursor:grabbing; }
|
||||
|
||||
/* ── Main area ────────────────────────────────────────────────── */
|
||||
#main { flex:1; display:flex; flex-direction:column; overflow:hidden; min-width:0; }
|
||||
/* Layout toggle button in topbar */
|
||||
#btn-layout {
|
||||
display:flex; align-items:center; gap:6px;
|
||||
font-size:12px; padding:4px 10px;
|
||||
}
|
||||
#btn-layout svg { flex-shrink:0; }
|
||||
#btn-layout span { flex-shrink:0; }
|
||||
|
||||
/* Layout dropdown menu */
|
||||
#layout-menu {
|
||||
position:fixed; z-index:200;
|
||||
background:var(--mantle); border:1px solid var(--surface1); border-radius:var(--radius);
|
||||
box-shadow:0 6px 20px rgba(0,0,0,0.5);
|
||||
display:none; grid-template-columns:1fr 1fr; gap:4px; padding:6px;
|
||||
}
|
||||
#layout-menu.open { display:grid; }
|
||||
.layout-menu-item {
|
||||
display:flex; flex-direction:column; align-items:center; gap:5px;
|
||||
padding:8px 14px; cursor:pointer;
|
||||
background:var(--surface0); border:1px solid var(--surface1); border-radius:6px;
|
||||
color:var(--subtext1); font-size:11px; font-family:monospace;
|
||||
transition:background var(--transition),border-color var(--transition),color var(--transition);
|
||||
}
|
||||
.layout-menu-item:hover { background:var(--surface1); border-color:var(--accent); color:var(--accent); }
|
||||
.layout-menu-item.active { background:var(--surface1); border-color:var(--accent); color:var(--accent); }
|
||||
|
||||
/* ── Plot grid ────────────────────────────────────────────────── */
|
||||
#plot-grid {
|
||||
flex:1; min-height:0; display:grid; gap:8px; padding:8px; overflow:hidden;
|
||||
}
|
||||
#plot-grid.l1x1 { grid-template-columns:1fr; grid-template-rows:1fr; }
|
||||
#plot-grid.l2x1 { grid-template-columns:1fr 1fr; grid-template-rows:1fr; }
|
||||
#plot-grid.l1x2 { grid-template-columns:1fr; grid-template-rows:1fr 1fr; }
|
||||
#plot-grid.l2x2 { grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
|
||||
#plot-grid.l3x1 { grid-template-columns:1fr 1fr 1fr; grid-template-rows:1fr; }
|
||||
#plot-grid.l1x3 { grid-template-columns:1fr; grid-template-rows:1fr 1fr 1fr; }
|
||||
#plot-grid.l3x2 { grid-template-columns:1fr 1fr 1fr; grid-template-rows:1fr 1fr; }
|
||||
#plot-grid.l2x3 { grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr 1fr; }
|
||||
#plot-grid.l1x4 { grid-template-columns:1fr; grid-template-rows:1fr 1fr 1fr 1fr; }
|
||||
#plot-grid.l4x1 { grid-template-columns:1fr 1fr 1fr 1fr; grid-template-rows:1fr; }
|
||||
|
||||
/* ── Plot card ────────────────────────────────────────────────── */
|
||||
.plot-card {
|
||||
background:var(--surface0); border:1px solid var(--surface1);
|
||||
border-radius:var(--radius); display:flex; flex-direction:column;
|
||||
min-height:0; position:relative; overflow:hidden;
|
||||
transition:border-color var(--transition);
|
||||
}
|
||||
.plot-card.drag-over { border-color:var(--accent); box-shadow:0 0 0 2px rgba(137,180,250,0.25); }
|
||||
.plot-card-header {
|
||||
display:flex; align-items:center; gap:5px;
|
||||
padding:4px 8px; border-bottom:1px solid var(--surface1);
|
||||
flex-shrink:0; min-height:30px; max-height:30px; overflow:hidden;
|
||||
}
|
||||
.plot-title {
|
||||
font-size:11px; color:var(--subtext1); font-weight:600;
|
||||
cursor:text; outline:none; border:1px solid transparent; border-radius:3px;
|
||||
padding:1px 3px; background:transparent; white-space:nowrap;
|
||||
flex-shrink:0; max-width:80px; overflow:hidden; text-overflow:ellipsis;
|
||||
}
|
||||
.plot-title:focus { border-color:var(--accent); background:var(--surface1); color:var(--text); }
|
||||
.sig-badges { display:flex; flex-wrap:nowrap; gap:3px; flex:1; overflow:hidden; min-width:0; }
|
||||
.sig-badge {
|
||||
display:inline-flex; align-items:center; gap:3px;
|
||||
background:rgba(69,71,90,0.6); color:var(--subtext1);
|
||||
border-radius:10px; padding:1px 6px 1px 4px;
|
||||
font-size:10px; white-space:nowrap; flex-shrink:0;
|
||||
}
|
||||
.trace-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; display:inline-block; }
|
||||
.sig-badge-x {
|
||||
cursor:pointer; color:var(--overlay0); font-size:11px; line-height:1; margin-left:1px;
|
||||
transition:color var(--transition);
|
||||
}
|
||||
.sig-badge-x:hover { color:var(--red); }
|
||||
.plot-icons { display:flex; gap:2px; flex-shrink:0; }
|
||||
.plot-icon-btn {
|
||||
background:none; border:none; cursor:pointer; color:var(--subtext0);
|
||||
font-size:13px; line-height:1; padding:2px 4px; border-radius:4px;
|
||||
transition:color var(--transition),background var(--transition);
|
||||
}
|
||||
.plot-icon-btn:hover { color:var(--accent); background:var(--surface1); }
|
||||
.plot-icon-btn.danger:hover { color:var(--red); }
|
||||
.plot-body { flex:1; position:relative; min-height:0; overflow:hidden; }
|
||||
.drop-hint {
|
||||
position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
|
||||
color:var(--overlay0); font-size:13px; pointer-events:none;
|
||||
}
|
||||
.pause-overlay {
|
||||
position:absolute; inset:0; display:none;
|
||||
align-items:center; justify-content:center; pointer-events:none; z-index:10;
|
||||
}
|
||||
.plot-card.paused .pause-overlay { display:flex; }
|
||||
.pause-overlay-text {
|
||||
background:rgba(49,50,68,0.82); color:var(--yellow);
|
||||
font-size:11px; font-weight:600; padding:4px 12px; border-radius:20px;
|
||||
border:1px solid var(--yellow);
|
||||
}
|
||||
.trig-collect-overlay {
|
||||
position:absolute; inset:0; display:none;
|
||||
align-items:center; justify-content:center; pointer-events:none; z-index:10;
|
||||
}
|
||||
.plot-card.trig-collecting .trig-collect-overlay { display:flex; }
|
||||
.trig-collect-text {
|
||||
background:rgba(49,50,68,0.82); color:var(--mauve);
|
||||
font-size:11px; font-weight:600; padding:4px 12px; border-radius:20px;
|
||||
border:1px solid var(--mauve);
|
||||
}
|
||||
|
||||
/* ── Empty state ──────────────────────────────────────────────── */
|
||||
#empty-state {
|
||||
position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
|
||||
text-align:center; color:var(--subtext0); pointer-events:none; display:none;
|
||||
}
|
||||
#empty-state.visible { display:block; }
|
||||
#empty-state h2 { font-size:20px; margin-bottom:8px; color:var(--surface2); }
|
||||
#empty-state p { font-size:13px; }
|
||||
|
||||
@media (max-width:700px) { #sidebar { width:0; min-width:0; } :root { --sidebar-w:240px; } }
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
/*! https://github.com/leeoniya/uPlot (v1.6.31) */
|
||||
var uPlot=function(){"use strict";const e="u-off",l="u-label",t="width",n="height",i="top",o="bottom",s="left",r="right",u="#000",a=u+"0",f="mousemove",c="mousedown",h="mouseup",d="mouseenter",p="mouseleave",m="dblclick",g="change",x="dppxchange",w="--",_="undefined"!=typeof window,b=_?document:null,v=_?window:null,k=_?navigator:null;let y,M;function S(e,l){if(null!=l){let t=e.classList;!t.contains(l)&&t.add(l)}}function E(e,l){let t=e.classList;t.contains(l)&&t.remove(l)}function T(e,l,t){e.style[l]=t+"px"}function z(e,l,t,n){let i=b.createElement(e);return null!=l&&S(i,l),null!=t&&t.insertBefore(i,n),i}function D(e,l){return z("div",e,l)}const P=new WeakMap;function A(l,t,n,i,o){let s="translate("+t+"px,"+n+"px)";s!=P.get(l)&&(l.style.transform=s,P.set(l,s),0>t||0>n||t>i||n>o?S(l,e):E(l,e))}const W=new WeakMap;function Y(e,l,t){let n=l+t;n!=W.get(e)&&(W.set(e,n),e.style.background=l,e.style.borderColor=t)}const C=new WeakMap;function F(e,l,t,n){let i=l+""+t;i!=C.get(e)&&(C.set(e,i),e.style.height=t+"px",e.style.width=l+"px",e.style.marginLeft=n?-l/2+"px":0,e.style.marginTop=n?-t/2+"px":0)}const H={passive:!0},R={...H,capture:!0};function G(e,l,t,n){l.addEventListener(e,t,n?R:H)}function I(e,l,t){l.removeEventListener(e,t,H)}function O(e,l,t,n){let i;t=t||0;let o=2147483647>=(n=n||l.length-1);for(;n-t>1;)i=o?t+n>>1:te((t+n)/2),e>l[i]?t=i:n=i;return e-l[t]>l[n]-e?n:t}function L(e,l,t,n){for(let i=1==n?l:t;i>=l&&t>=i;i+=n)if(null!=e[i])return i;return-1}function N(e,l,t,n){let i=ue(e),o=ue(l);e==l&&(-1==i?(e*=t,l/=t):(e/=t,l*=t));let s=10==t?ae:fe,r=1==o?ie:te,u=(1==i?te:ie)(s(le(e))),a=r(s(le(l))),f=re(t,u),c=re(t,a);return 10==t&&(0>u&&(f=Ee(f,-u)),0>a&&(c=Ee(c,-a))),n||2==t?(e=f*i,l=c*o):(e=Se(e,f),l=Me(l,c)),[e,l]}function j(e,l,t,n){let i=N(e,l,t,n);return 0==e&&(i[0]=0),0==l&&(i[1]=0),i}_&&function e(){let l=devicePixelRatio;y!=l&&(y=l,M&&I(g,M,e),M=matchMedia(`(min-resolution: ${y-.001}dppx) and (max-resolution: ${y+.001}dppx)`),G(g,M,e),v.dispatchEvent(new CustomEvent(x)))}();const U=.1,B={mode:3,pad:U},V={pad:0,soft:null,mode:0},$={min:V,max:V};function J(e,l,t,n){return He(t)?K(e,l,t):(V.pad=t,V.soft=n?0:null,V.mode=n?3:0,K(e,l,$))}function q(e,l){return null==e?l:e}function K(e,l,t){let n=t.min,i=t.max,o=q(n.pad,0),s=q(i.pad,0),r=q(n.hard,-he),u=q(i.hard,he),a=q(n.soft,he),f=q(i.soft,-he),c=q(n.mode,0),h=q(i.mode,0),d=l-e,p=ae(d),m=se(le(e),le(l)),g=ae(m),x=le(g-p);(1e-24>d||x>10)&&(d=0,0!=e&&0!=l||(d=1e-24,2==c&&a!=he&&(o=0),2==h&&f!=-he&&(s=0)));let w=d||m||1e3,_=ae(w),b=re(10,te(_)),v=Ee(Se(e-w*(0==d?0==e?.1:1:o),b/10),24),k=a>e||1!=c&&(3!=c||v>a)&&(2!=c||a>v)?he:a,y=se(r,k>v&&e>=k?k:oe(k,v)),M=Ee(Me(l+w*(0==d?0==l?.1:1:s),b/10),24),S=l>f||1!=h&&(3!=h||f>M)&&(2!=h||M>f)?-he:f,E=oe(u,M>S&&S>=l?S:se(S,M));return y==E&&0==y&&(E=100),[y,E]}const X=new Intl.NumberFormat(_?k.language:"en-US"),Z=e=>X.format(e),Q=Math,ee=Q.PI,le=Q.abs,te=Q.floor,ne=Q.round,ie=Q.ceil,oe=Q.min,se=Q.max,re=Q.pow,ue=Q.sign,ae=Q.log10,fe=Q.log2,ce=(e,l=1)=>Q.asinh(e/l),he=1/0;function de(e){return 1+(0|ae((e^e>>31)-(e>>31)))}function pe(e,l,t){return oe(se(e,l),t)}function me(e){return"function"==typeof e?e:()=>e}const ge=e=>e,xe=(e,l)=>l,we=()=>null,_e=()=>!0,be=(e,l)=>e==l,ve=/\.\d*?(?=9{6,}|0{6,})/gm,ke=e=>{if(Ce(e)||Te.has(e))return e;const l=""+e,t=l.match(ve);if(null==t)return e;let n=t[0].length-1;if(-1!=l.indexOf("e-")){let[e,t]=l.split("e");return+`${ke(e)}e${t}`}return Ee(e,n)};function ye(e,l){return ke(Ee(ke(e/l))*l)}function Me(e,l){return ke(ie(ke(e/l))*l)}function Se(e,l){return ke(te(ke(e/l))*l)}function Ee(e,l=0){if(Ce(e))return e;let t=10**l;return ne(e*t*(1+Number.EPSILON))/t}const Te=new Map;function ze(e){return((""+e).split(".")[1]||"").length}function De(e,l,t,n){let i=[],o=n.map(ze);for(let s=l;t>s;s++){let l=le(s),t=Ee(re(e,s),l);for(let r=0;n.length>r;r++){let u=10==e?+`${n[r]}e${s}`:n[r]*t,a=(0>s?l:0)+(o[r]>s?o[r]:0),f=10==e?u:Ee(u,a);i.push(f),Te.set(f,a)}}return i}const Pe={},Ae=[],We=[null,null],Ye=Array.isArray,Ce=Number.isInteger;function Fe(e){return"string"==typeof e}function He(e){let l=!1;if(null!=e){let t=e.constructor;l=null==t||t==Object}return l}function Re(e){return null!=e&&"object"==typeof e}const Ge=Object.getPrototypeOf(Uint8Array),Ie="__proto__";function Oe(e,l=He){let t;if(Ye(e)){let n=e.find((e=>null!=e));if(Ye(n)||l(n)){t=Array(e.length);for(let n=0;e.length>n;n++)t[n]=Oe(e[n],l)}else t=e.slice()}else if(e instanceof Ge)t=e.slice();else if(l(e)){t={};for(let n in e)n!=Ie&&(t[n]=Oe(e[n],l))}else t=e;return t}function Le(e){let l=arguments;for(let t=1;l.length>t;t++){let n=l[t];for(let l in n)l!=Ie&&(He(e[l])?Le(e[l],Oe(n[l])):e[l]=Oe(n[l]))}return e}function Ne(e,l,t){for(let n,i=0,o=-1;l.length>i;i++){let s=l[i];if(s>o){for(n=s-1;n>=0&&null==e[n];)e[n--]=null;for(n=s+1;t>n&&null==e[n];)e[o=n++]=null}}}const je="undefined"==typeof queueMicrotask?e=>Promise.resolve().then(e):queueMicrotask,Ue=["January","February","March","April","May","June","July","August","September","OctobLine truncated
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
.uplot, .uplot *, .uplot *::before, .uplot *::after {box-sizing: border-box;}.uplot {font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height: 1.5;width: min-content;}.u-title {text-align: center;font-size: 18px;font-weight: bold;}.u-wrap {position: relative;user-select: none;}.u-over, .u-under {position: absolute;}.u-under {overflow: hidden;}.uplot canvas {display: block;position: relative;width: 100%;height: 100%;}.u-axis {position: absolute;}.u-legend {font-size: 14px;margin: auto;text-align: center;}.u-inline {display: block;}.u-inline * {display: inline-block;}.u-inline tr {margin-right: 16px;}.u-legend th {font-weight: 600;}.u-legend th > * {vertical-align: middle;display: inline-block;}.u-legend .u-marker {width: 1em;height: 1em;margin-right: 4px;background-clip: padding-box !important;}.u-inline.u-live th::after {content: ":";vertical-align: middle;}.u-inline:not(.u-live) .u-value {display: none;}.u-series > * {padding: 4px;}.u-series th {cursor: pointer;}.u-legend .u-off > * {opacity: 0.3;}.u-select {background: rgba(0,0,0,0.07);position: absolute;pointer-events: none;}.u-cursor-x, .u-cursor-y {position: absolute;left: 0;top: 0;pointer-events: none;will-change: transform;}.u-hz .u-cursor-x, .u-vt .u-cursor-y {height: 100%;border-right: 1px dashed #607D8B;}.u-hz .u-cursor-y, .u-vt .u-cursor-x {width: 100%;border-bottom: 1px dashed #607D8B;}.u-cursor-pt {position: absolute;top: 0;left: 0;border-radius: 50%;border: 0 solid;pointer-events: none;will-change: transform;/*this has to be !important since we set inline "background" shorthand */background-clip: padding-box !important;}.u-axis.u-off, .u-select.u-off, .u-cursor-x.u-off, .u-cursor-y.u-off, .u-cursor-pt.u-off {display: none;}
|
||||
Reference in new issue
Block a user