|
|
|
|
|
<!DOCTYPE html> |
|
|
<html> |
|
|
<head> |
|
|
<meta HTTP-EQUIV="Access-Control-Allow-Origin" CONTENT="*"> |
|
|
<meta charset="utf-8" /> |
|
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>📈</text></svg>"> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<link rel="preconnect" href="https://fonts.googleapis.com"> |
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
|
|
<link href="https://fonts.googleapis.com/css2?family=Kanit:wght@300&display=swap" rel="stylesheet"> |
|
|
|
|
|
<title>Result on benchmarks benchmark</title> |
|
|
|
|
|
<style> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*, |
|
|
::before, |
|
|
::after { |
|
|
box-sizing: border-box; |
|
|
|
|
|
border-width: 0; |
|
|
|
|
|
border-style: solid; |
|
|
|
|
|
border-color: #e5e7eb; |
|
|
|
|
|
} |
|
|
|
|
|
::before, |
|
|
::after { |
|
|
--tw-content: ''; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
html { |
|
|
line-height: 1.5; |
|
|
|
|
|
-webkit-text-size-adjust: 100%; |
|
|
|
|
|
-moz-tab-size: 4; |
|
|
|
|
|
-o-tab-size: 4; |
|
|
tab-size: 4; |
|
|
|
|
|
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
body { |
|
|
margin: 0; |
|
|
|
|
|
line-height: inherit; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hr { |
|
|
height: 0; |
|
|
|
|
|
color: inherit; |
|
|
|
|
|
border-top-width: 1px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
abbr:where([title]) { |
|
|
-webkit-text-decoration: underline dotted; |
|
|
text-decoration: underline dotted; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h1, |
|
|
h2, |
|
|
h3, |
|
|
h4, |
|
|
h5, |
|
|
h6 { |
|
|
font-size: inherit; |
|
|
font-weight: inherit; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a { |
|
|
color: inherit; |
|
|
text-decoration: inherit; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b, |
|
|
strong { |
|
|
font-weight: bolder; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
code, |
|
|
kbd, |
|
|
samp, |
|
|
pre { |
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; |
|
|
|
|
|
font-size: 1em; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
small { |
|
|
font-size: 80%; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sub, |
|
|
sup { |
|
|
font-size: 75%; |
|
|
line-height: 0; |
|
|
position: relative; |
|
|
vertical-align: baseline; |
|
|
} |
|
|
|
|
|
sub { |
|
|
bottom: -0.25em; |
|
|
} |
|
|
|
|
|
sup { |
|
|
top: -0.5em; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
table { |
|
|
text-indent: 0; |
|
|
|
|
|
border-color: inherit; |
|
|
|
|
|
border-collapse: collapse; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
button, |
|
|
input, |
|
|
optgroup, |
|
|
select, |
|
|
textarea { |
|
|
font-family: inherit; |
|
|
|
|
|
font-size: 100%; |
|
|
|
|
|
font-weight: inherit; |
|
|
|
|
|
line-height: inherit; |
|
|
|
|
|
color: inherit; |
|
|
|
|
|
margin: 0; |
|
|
|
|
|
padding: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
button, |
|
|
select { |
|
|
text-transform: none; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
button, |
|
|
[type='button'], |
|
|
[type='reset'], |
|
|
[type='submit'] { |
|
|
-webkit-appearance: button; |
|
|
|
|
|
background-color: transparent; |
|
|
|
|
|
background-image: none; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:-moz-focusring { |
|
|
outline: auto; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:-moz-ui-invalid { |
|
|
box-shadow: none; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
progress { |
|
|
vertical-align: baseline; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-inner-spin-button, |
|
|
::-webkit-outer-spin-button { |
|
|
height: auto; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[type='search'] { |
|
|
-webkit-appearance: textfield; |
|
|
|
|
|
outline-offset: -2px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-search-decoration { |
|
|
-webkit-appearance: none; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-file-upload-button { |
|
|
-webkit-appearance: button; |
|
|
|
|
|
font: inherit; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
summary { |
|
|
display: list-item; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blockquote, |
|
|
dl, |
|
|
dd, |
|
|
h1, |
|
|
h2, |
|
|
h3, |
|
|
h4, |
|
|
h5, |
|
|
h6, |
|
|
hr, |
|
|
figure, |
|
|
p, |
|
|
pre { |
|
|
margin: 0; |
|
|
} |
|
|
|
|
|
fieldset { |
|
|
margin: 0; |
|
|
padding: 0; |
|
|
} |
|
|
|
|
|
legend { |
|
|
padding: 0; |
|
|
} |
|
|
|
|
|
ol, |
|
|
ul, |
|
|
menu { |
|
|
list-style: none; |
|
|
margin: 0; |
|
|
padding: 0; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
textarea { |
|
|
resize: vertical; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
input::-moz-placeholder, textarea::-moz-placeholder { |
|
|
opacity: 1; |
|
|
|
|
|
color: #9ca3af; |
|
|
|
|
|
} |
|
|
|
|
|
input:-ms-input-placeholder, textarea:-ms-input-placeholder { |
|
|
opacity: 1; |
|
|
|
|
|
color: #9ca3af; |
|
|
|
|
|
} |
|
|
|
|
|
input::placeholder, |
|
|
textarea::placeholder { |
|
|
opacity: 1; |
|
|
|
|
|
color: #9ca3af; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
button, |
|
|
[role="button"] { |
|
|
cursor: pointer; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:disabled { |
|
|
cursor: default; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
img, |
|
|
svg, |
|
|
video, |
|
|
canvas, |
|
|
audio, |
|
|
iframe, |
|
|
embed, |
|
|
object { |
|
|
display: block; |
|
|
|
|
|
vertical-align: middle; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
img, |
|
|
video { |
|
|
max-width: 100%; |
|
|
height: auto; |
|
|
} |
|
|
|
|
|
*, ::before, ::after { |
|
|
--tw-border-spacing-x: 0; |
|
|
--tw-border-spacing-y: 0; |
|
|
--tw-translate-x: 0; |
|
|
--tw-translate-y: 0; |
|
|
--tw-rotate: 0; |
|
|
--tw-skew-x: 0; |
|
|
--tw-skew-y: 0; |
|
|
--tw-scale-x: 1; |
|
|
--tw-scale-y: 1; |
|
|
--tw-pan-x: ; |
|
|
--tw-pan-y: ; |
|
|
--tw-pinch-zoom: ; |
|
|
--tw-scroll-snap-strictness: proximity; |
|
|
--tw-ordinal: ; |
|
|
--tw-slashed-zero: ; |
|
|
--tw-numeric-figure: ; |
|
|
--tw-numeric-spacing: ; |
|
|
--tw-numeric-fraction: ; |
|
|
--tw-ring-inset: ; |
|
|
--tw-ring-offset-width: 0px; |
|
|
--tw-ring-offset-color: #fff; |
|
|
--tw-ring-color: rgb(59 130 246 / 0.5); |
|
|
--tw-ring-offset-shadow: 0 0 #0000; |
|
|
--tw-ring-shadow: 0 0 #0000; |
|
|
--tw-shadow: 0 0 #0000; |
|
|
--tw-shadow-colored: 0 0 #0000; |
|
|
--tw-blur: ; |
|
|
--tw-brightness: ; |
|
|
--tw-contrast: ; |
|
|
--tw-grayscale: ; |
|
|
--tw-hue-rotate: ; |
|
|
--tw-invert: ; |
|
|
--tw-saturate: ; |
|
|
--tw-sepia: ; |
|
|
--tw-drop-shadow: ; |
|
|
--tw-backdrop-blur: ; |
|
|
--tw-backdrop-brightness: ; |
|
|
--tw-backdrop-contrast: ; |
|
|
--tw-backdrop-grayscale: ; |
|
|
--tw-backdrop-hue-rotate: ; |
|
|
--tw-backdrop-invert: ; |
|
|
--tw-backdrop-opacity: ; |
|
|
--tw-backdrop-saturate: ; |
|
|
--tw-backdrop-sepia: ; |
|
|
} |
|
|
|
|
|
::-webkit-backdrop { |
|
|
--tw-border-spacing-x: 0; |
|
|
--tw-border-spacing-y: 0; |
|
|
--tw-translate-x: 0; |
|
|
--tw-translate-y: 0; |
|
|
--tw-rotate: 0; |
|
|
--tw-skew-x: 0; |
|
|
--tw-skew-y: 0; |
|
|
--tw-scale-x: 1; |
|
|
--tw-scale-y: 1; |
|
|
--tw-pan-x: ; |
|
|
--tw-pan-y: ; |
|
|
--tw-pinch-zoom: ; |
|
|
--tw-scroll-snap-strictness: proximity; |
|
|
--tw-ordinal: ; |
|
|
--tw-slashed-zero: ; |
|
|
--tw-numeric-figure: ; |
|
|
--tw-numeric-spacing: ; |
|
|
--tw-numeric-fraction: ; |
|
|
--tw-ring-inset: ; |
|
|
--tw-ring-offset-width: 0px; |
|
|
--tw-ring-offset-color: #fff; |
|
|
--tw-ring-color: rgb(59 130 246 / 0.5); |
|
|
--tw-ring-offset-shadow: 0 0 #0000; |
|
|
--tw-ring-shadow: 0 0 #0000; |
|
|
--tw-shadow: 0 0 #0000; |
|
|
--tw-shadow-colored: 0 0 #0000; |
|
|
--tw-blur: ; |
|
|
--tw-brightness: ; |
|
|
--tw-contrast: ; |
|
|
--tw-grayscale: ; |
|
|
--tw-hue-rotate: ; |
|
|
--tw-invert: ; |
|
|
--tw-saturate: ; |
|
|
--tw-sepia: ; |
|
|
--tw-drop-shadow: ; |
|
|
--tw-backdrop-blur: ; |
|
|
--tw-backdrop-brightness: ; |
|
|
--tw-backdrop-contrast: ; |
|
|
--tw-backdrop-grayscale: ; |
|
|
--tw-backdrop-hue-rotate: ; |
|
|
--tw-backdrop-invert: ; |
|
|
--tw-backdrop-opacity: ; |
|
|
--tw-backdrop-saturate: ; |
|
|
--tw-backdrop-sepia: ; |
|
|
} |
|
|
|
|
|
::backdrop { |
|
|
--tw-border-spacing-x: 0; |
|
|
--tw-border-spacing-y: 0; |
|
|
--tw-translate-x: 0; |
|
|
--tw-translate-y: 0; |
|
|
--tw-rotate: 0; |
|
|
--tw-skew-x: 0; |
|
|
--tw-skew-y: 0; |
|
|
--tw-scale-x: 1; |
|
|
--tw-scale-y: 1; |
|
|
--tw-pan-x: ; |
|
|
--tw-pan-y: ; |
|
|
--tw-pinch-zoom: ; |
|
|
--tw-scroll-snap-strictness: proximity; |
|
|
--tw-ordinal: ; |
|
|
--tw-slashed-zero: ; |
|
|
--tw-numeric-figure: ; |
|
|
--tw-numeric-spacing: ; |
|
|
--tw-numeric-fraction: ; |
|
|
--tw-ring-inset: ; |
|
|
--tw-ring-offset-width: 0px; |
|
|
--tw-ring-offset-color: #fff; |
|
|
--tw-ring-color: rgb(59 130 246 / 0.5); |
|
|
--tw-ring-offset-shadow: 0 0 #0000; |
|
|
--tw-ring-shadow: 0 0 #0000; |
|
|
--tw-shadow: 0 0 #0000; |
|
|
--tw-shadow-colored: 0 0 #0000; |
|
|
--tw-blur: ; |
|
|
--tw-brightness: ; |
|
|
--tw-contrast: ; |
|
|
--tw-grayscale: ; |
|
|
--tw-hue-rotate: ; |
|
|
--tw-invert: ; |
|
|
--tw-saturate: ; |
|
|
--tw-sepia: ; |
|
|
--tw-drop-shadow: ; |
|
|
--tw-backdrop-blur: ; |
|
|
--tw-backdrop-brightness: ; |
|
|
--tw-backdrop-contrast: ; |
|
|
--tw-backdrop-grayscale: ; |
|
|
--tw-backdrop-hue-rotate: ; |
|
|
--tw-backdrop-invert: ; |
|
|
--tw-backdrop-opacity: ; |
|
|
--tw-backdrop-saturate: ; |
|
|
--tw-backdrop-sepia: ; |
|
|
} |
|
|
|
|
|
.sr-only { |
|
|
position: absolute; |
|
|
width: 1px; |
|
|
height: 1px; |
|
|
padding: 0; |
|
|
margin: -1px; |
|
|
overflow: hidden; |
|
|
clip: rect(0, 0, 0, 0); |
|
|
white-space: nowrap; |
|
|
border-width: 0; |
|
|
} |
|
|
|
|
|
.fixed { |
|
|
position: fixed; |
|
|
} |
|
|
|
|
|
.absolute { |
|
|
position: absolute; |
|
|
} |
|
|
|
|
|
.relative { |
|
|
position: relative; |
|
|
} |
|
|
|
|
|
.inset-0 { |
|
|
top: 0px; |
|
|
right: 0px; |
|
|
bottom: 0px; |
|
|
left: 0px; |
|
|
} |
|
|
|
|
|
.left-0 { |
|
|
left: 0; |
|
|
} |
|
|
|
|
|
.bottom-0 { |
|
|
bottom: 0; |
|
|
} |
|
|
|
|
|
.z-10 { |
|
|
z-index: 10; |
|
|
} |
|
|
|
|
|
.mx-auto { |
|
|
margin-left: auto; |
|
|
margin-right: auto; |
|
|
} |
|
|
|
|
|
.mt-10 { |
|
|
margin-top: 2.5rem; |
|
|
} |
|
|
|
|
|
.mt-1 { |
|
|
margin-top: 0.25rem; |
|
|
} |
|
|
|
|
|
.mt-8 { |
|
|
margin-top: 2rem; |
|
|
} |
|
|
|
|
|
.mt-2 { |
|
|
margin-top: 0.5rem; |
|
|
} |
|
|
|
|
|
.mt-5 { |
|
|
margin-top: 1.25rem; |
|
|
} |
|
|
|
|
|
.mt-3 { |
|
|
margin-top: 0.75rem; |
|
|
} |
|
|
|
|
|
.block { |
|
|
display: block; |
|
|
} |
|
|
|
|
|
.inline { |
|
|
display: inline; |
|
|
} |
|
|
|
|
|
.flex { |
|
|
display: flex; |
|
|
} |
|
|
|
|
|
.inline-flex { |
|
|
display: inline-flex; |
|
|
} |
|
|
|
|
|
.table { |
|
|
display: table; |
|
|
} |
|
|
|
|
|
.grid { |
|
|
display: grid; |
|
|
} |
|
|
|
|
|
.hidden { |
|
|
display: none; |
|
|
} |
|
|
|
|
|
.h-screen { |
|
|
height: 100vh; |
|
|
} |
|
|
|
|
|
.h-16 { |
|
|
height: 4rem; |
|
|
} |
|
|
|
|
|
.h-10 { |
|
|
height: 2.5rem; |
|
|
} |
|
|
|
|
|
.h-8 { |
|
|
height: 2rem; |
|
|
} |
|
|
|
|
|
.h-6 { |
|
|
height: 1.5rem; |
|
|
} |
|
|
|
|
|
.h-5 { |
|
|
height: 1.25rem; |
|
|
} |
|
|
|
|
|
.h-4 { |
|
|
height: 1rem; |
|
|
} |
|
|
|
|
|
.h-12 { |
|
|
height: 3rem; |
|
|
} |
|
|
|
|
|
.min-h-full { |
|
|
min-height: 100%; |
|
|
} |
|
|
|
|
|
.w-96 { |
|
|
width: 24rem; |
|
|
} |
|
|
|
|
|
.w-full { |
|
|
width: 100%; |
|
|
} |
|
|
|
|
|
.w-6 { |
|
|
width: 1.5rem; |
|
|
} |
|
|
|
|
|
.w-5 { |
|
|
width: 1.25rem; |
|
|
} |
|
|
|
|
|
.w-4 { |
|
|
width: 1rem; |
|
|
} |
|
|
|
|
|
.w-12 { |
|
|
width: 3rem; |
|
|
} |
|
|
|
|
|
.min-w-0 { |
|
|
min-width: 0px; |
|
|
} |
|
|
|
|
|
.flex-1 { |
|
|
flex: 1 1 0%; |
|
|
} |
|
|
|
|
|
.flex-shrink-0 { |
|
|
flex-shrink: 0; |
|
|
} |
|
|
|
|
|
.transform { |
|
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); |
|
|
} |
|
|
|
|
|
.flex-col { |
|
|
flex-direction: column; |
|
|
} |
|
|
|
|
|
.flex-wrap { |
|
|
flex-wrap: wrap; |
|
|
} |
|
|
|
|
|
.items-end { |
|
|
align-items: flex-end; |
|
|
} |
|
|
|
|
|
.items-center { |
|
|
align-items: center; |
|
|
} |
|
|
|
|
|
.justify-center { |
|
|
justify-content: center; |
|
|
} |
|
|
|
|
|
.justify-between { |
|
|
justify-content: space-between; |
|
|
} |
|
|
|
|
|
.space-x-4 > :not([hidden]) ~ :not([hidden]) { |
|
|
--tw-space-x-reverse: 0; |
|
|
margin-right: calc(1rem * var(--tw-space-x-reverse)); |
|
|
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))); |
|
|
} |
|
|
|
|
|
.space-x-3 > * + * { |
|
|
margin-left: 0.75rem; |
|
|
} |
|
|
|
|
|
.space-y-1 > :not([hidden]) ~ :not([hidden]) { |
|
|
--tw-space-y-reverse: 0; |
|
|
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse))); |
|
|
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse)); |
|
|
} |
|
|
|
|
|
.space-y-4 > :not([hidden]) ~ :not([hidden]) { |
|
|
--tw-space-y-reverse: 0; |
|
|
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); |
|
|
margin-bottom: calc(1rem * var(--tw-space-y-reverse)); |
|
|
} |
|
|
|
|
|
.space-x-2 > :not([hidden]) ~ :not([hidden]) { |
|
|
--tw-space-x-reverse: 0; |
|
|
margin-right: calc(0.5rem * var(--tw-space-x-reverse)); |
|
|
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); |
|
|
} |
|
|
|
|
|
.overflow-hidden { |
|
|
overflow: hidden; |
|
|
} |
|
|
|
|
|
.overflow-y-auto { |
|
|
overflow-y: auto; |
|
|
} |
|
|
|
|
|
.rounded-md { |
|
|
border-radius: 0.375rem; |
|
|
} |
|
|
|
|
|
.rounded-lg { |
|
|
border-radius: 0.5rem; |
|
|
} |
|
|
|
|
|
.rounded-full { |
|
|
border-radius: 9999px; |
|
|
} |
|
|
|
|
|
.border { |
|
|
border-width: 1px; |
|
|
} |
|
|
|
|
|
.border-gray-300 { |
|
|
--tw-border-opacity: 1; |
|
|
border-color: rgb(209 213 219 / var(--tw-border-opacity)); |
|
|
} |
|
|
|
|
|
.border-blue-600 { |
|
|
border-color: rgb(37 99 235); |
|
|
} |
|
|
|
|
|
.border-gray-800 { |
|
|
--tw-border-opacity: 1; |
|
|
border-color: rgb(31 41 55 / var(--tw-border-opacity)); |
|
|
} |
|
|
|
|
|
.hover\:border-gray-300:hover { |
|
|
--tw-border-opacity: 1; |
|
|
border-color: rgb(209 213 219 / var(--tw-border-opacity)); |
|
|
} |
|
|
|
|
|
.hover\:border-gray-700:hover { |
|
|
border-color: rgb(55 65 81); |
|
|
} |
|
|
|
|
|
.border-transparent { |
|
|
border-color: transparent; |
|
|
} |
|
|
|
|
|
.border-t { |
|
|
border-top-width: 1px; |
|
|
} |
|
|
|
|
|
.border-t-2 { |
|
|
border-top-width: 2px; |
|
|
} |
|
|
|
|
|
.border-b { |
|
|
border-bottom-width: 1px; |
|
|
} |
|
|
|
|
|
.border-b-2 { |
|
|
border-bottom-width: 2px; |
|
|
} |
|
|
|
|
|
.bg-gray-700 { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.bg-gray-800 { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.bg-blue-600 { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(37 99 235 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.bg-white { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.bg-gray-500 { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(107 114 128 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.bg-slate-200 { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(241 245 249 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.bg-blue-100 { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(219 234 254 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.bg-gray-50 { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.bg-opacity-75 { |
|
|
--tw-bg-opacity: 0.75; |
|
|
} |
|
|
|
|
|
.p-1 { |
|
|
padding: 0.25rem; |
|
|
} |
|
|
|
|
|
.p-2 { |
|
|
padding: 0.5rem; |
|
|
} |
|
|
|
|
|
.p-4 { |
|
|
padding: 1rem; |
|
|
} |
|
|
|
|
|
.p-10 { |
|
|
padding: 2.5rem; |
|
|
} |
|
|
|
|
|
.px-8 { |
|
|
padding-left: 2rem; |
|
|
padding-right: 2rem; |
|
|
} |
|
|
|
|
|
.px-4 { |
|
|
padding-left: 1rem; |
|
|
padding-right: 1rem; |
|
|
} |
|
|
|
|
|
.px-3 { |
|
|
padding-left: 0.75rem; |
|
|
padding-right: 0.75rem; |
|
|
} |
|
|
|
|
|
.py-2 { |
|
|
padding-top: 0.5rem; |
|
|
padding-bottom: 0.5rem; |
|
|
} |
|
|
|
|
|
.px-2 { |
|
|
padding-left: 0.5rem; |
|
|
padding-right: 0.5rem; |
|
|
} |
|
|
|
|
|
.py-4 { |
|
|
padding-top: 1rem; |
|
|
padding-bottom: 1rem; |
|
|
} |
|
|
|
|
|
.py-1 { |
|
|
padding-top: 0.25rem; |
|
|
padding-bottom: 0.25rem; |
|
|
} |
|
|
|
|
|
.py-3 { |
|
|
padding-top: 0.75rem; |
|
|
padding-bottom: 0.75rem; |
|
|
} |
|
|
|
|
|
.pt-2 { |
|
|
padding-top: 0.5rem; |
|
|
} |
|
|
|
|
|
.pt-4 { |
|
|
padding-top: 1rem; |
|
|
} |
|
|
|
|
|
.pb-0 { |
|
|
padding-bottom: 0; |
|
|
} |
|
|
|
|
|
.pb-1 { |
|
|
padding-bottom: 0.25rem; |
|
|
} |
|
|
|
|
|
.pb-3 { |
|
|
padding-bottom: 0.75rem; |
|
|
} |
|
|
|
|
|
.pt-5 { |
|
|
padding-top: 1.25rem; |
|
|
} |
|
|
|
|
|
.pb-4 { |
|
|
padding-bottom: 1rem; |
|
|
} |
|
|
|
|
|
.pb-10 { |
|
|
padding-bottom: 2.5rem; |
|
|
} |
|
|
|
|
|
.text-left { |
|
|
text-align: left; |
|
|
} |
|
|
|
|
|
.text-center { |
|
|
text-align: center; |
|
|
} |
|
|
|
|
|
.text-2xl { |
|
|
font-size: 1.5rem; |
|
|
line-height: 2rem; |
|
|
} |
|
|
|
|
|
.text-sm { |
|
|
font-size: 0.875rem; |
|
|
line-height: 1.25rem; |
|
|
} |
|
|
|
|
|
.text-xl { |
|
|
font-size: 1.25rem; |
|
|
line-height: 1.75rem; |
|
|
} |
|
|
|
|
|
.text-base { |
|
|
font-size: 1rem; |
|
|
line-height: 1.5rem; |
|
|
} |
|
|
|
|
|
.text-lg { |
|
|
font-size: 1.125rem; |
|
|
line-height: 1.75rem; |
|
|
} |
|
|
|
|
|
.font-medium { |
|
|
font-weight: 500; |
|
|
} |
|
|
|
|
|
.font-semibold { |
|
|
font-weight: 600; |
|
|
} |
|
|
|
|
|
.hover\:font-semibold:hover { |
|
|
font-weight: 600; |
|
|
} |
|
|
|
|
|
.font-bold { |
|
|
font-weight: 700; |
|
|
} |
|
|
|
|
|
.capitalize { |
|
|
text-transform: capitalize; |
|
|
} |
|
|
|
|
|
.leading-5 { |
|
|
line-height: 1.25rem; |
|
|
} |
|
|
|
|
|
.leading-7 { |
|
|
line-height: 1.75rem; |
|
|
} |
|
|
|
|
|
.leading-6 { |
|
|
line-height: 1.5rem; |
|
|
} |
|
|
|
|
|
.text-white { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(255 255 255 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.text-gray-100 { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(243 244 246 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.text-gray-400 { |
|
|
color: rgb(156 163 175); |
|
|
} |
|
|
|
|
|
.text-gray-500 { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(107 114 128 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.hover\:text-gray-500:hover { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(107 114 128 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.text-gray-900 { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(17 24 39 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.text-black { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(0 0 0 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.text-blue-600 { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(37 99 235 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.text-gray-700 { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(55 65 81 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.hover\:text-gray-700:hover { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(55 65 81 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.shadow-sm { |
|
|
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); |
|
|
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); |
|
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); |
|
|
} |
|
|
|
|
|
.shadow-xl { |
|
|
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); |
|
|
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); |
|
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); |
|
|
} |
|
|
|
|
|
.transition-opacity { |
|
|
transition-property: opacity; |
|
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); |
|
|
transition-duration: 150ms; |
|
|
} |
|
|
|
|
|
.transition-all { |
|
|
transition-property: all; |
|
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); |
|
|
transition-duration: 150ms; |
|
|
} |
|
|
|
|
|
.hover\:bg-blue-800:hover { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(30 64 175 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.hover\:bg-gray-100:hover { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.hover\:bg-blue-700:hover { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(29 78 216 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.hover\:bg-gray-50:hover { |
|
|
--tw-bg-opacity: 1; |
|
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity)); |
|
|
} |
|
|
|
|
|
.hover\:text-white:hover { |
|
|
--tw-text-opacity: 1; |
|
|
color: rgb(255 255 255 / var(--tw-text-opacity)); |
|
|
} |
|
|
|
|
|
.focus\:border-blue-500:focus { |
|
|
--tw-border-opacity: 1; |
|
|
border-color: rgb(59 130 246 / var(--tw-border-opacity)); |
|
|
} |
|
|
|
|
|
.focus\:outline-none:focus { |
|
|
outline: 2px solid transparent; |
|
|
outline-offset: 2px; |
|
|
} |
|
|
|
|
|
.focus\:ring-2:focus { |
|
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); |
|
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); |
|
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); |
|
|
} |
|
|
|
|
|
.focus\:ring-inset:focus { |
|
|
--tw-ring-inset: inset; |
|
|
} |
|
|
|
|
|
.focus\:ring-blue-500:focus { |
|
|
--tw-ring-opacity: 1; |
|
|
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity)); |
|
|
} |
|
|
|
|
|
.focus\:ring-white:focus { |
|
|
--tw-ring-opacity: 1; |
|
|
--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity)); |
|
|
} |
|
|
|
|
|
.focus\:ring-gray-500:focus { |
|
|
--tw-ring-opacity: 1; |
|
|
--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity)); |
|
|
} |
|
|
|
|
|
.focus\:ring-offset-2:focus { |
|
|
--tw-ring-offset-width: 2px; |
|
|
} |
|
|
|
|
|
@media (min-width: 640px) { |
|
|
.sm\:my-8 { |
|
|
margin-top: 2rem; |
|
|
margin-bottom: 2rem; |
|
|
} |
|
|
|
|
|
.sm\:mx-0 { |
|
|
margin-left: 0px; |
|
|
margin-right: 0px; |
|
|
} |
|
|
|
|
|
.sm\:mt-0 { |
|
|
margin-top: 0px; |
|
|
} |
|
|
|
|
|
.sm\:ml-3 { |
|
|
margin-left: 0.75rem; |
|
|
} |
|
|
|
|
|
.sm\:ml-4 { |
|
|
margin-left: 1rem; |
|
|
} |
|
|
|
|
|
.sm\:block { |
|
|
display: block; |
|
|
} |
|
|
|
|
|
.sm\:flex { |
|
|
display: flex; |
|
|
} |
|
|
|
|
|
.sm\:hidden { |
|
|
display: none; |
|
|
} |
|
|
|
|
|
.sm\:h-10 { |
|
|
height: 2.5rem; |
|
|
} |
|
|
|
|
|
.sm\:w-full { |
|
|
width: 100%; |
|
|
} |
|
|
|
|
|
.sm\:w-10 { |
|
|
width: 2.5rem; |
|
|
} |
|
|
|
|
|
.sm\:w-auto { |
|
|
width: auto; |
|
|
} |
|
|
|
|
|
.sm\:max-w-lg { |
|
|
max-width: 32rem; |
|
|
} |
|
|
|
|
|
.sm\:flex-row-reverse { |
|
|
flex-direction: row-reverse; |
|
|
} |
|
|
|
|
|
.sm\:items-start { |
|
|
align-items: flex-start; |
|
|
} |
|
|
|
|
|
.sm\:items-center { |
|
|
align-items: center; |
|
|
} |
|
|
|
|
|
.sm\:items-stretch { |
|
|
align-items: stretch; |
|
|
} |
|
|
|
|
|
.sm\:justify-start { |
|
|
justify-content: flex-start; |
|
|
} |
|
|
|
|
|
.sm\:space-x-6 > :not([hidden]) ~ :not([hidden]) { |
|
|
--tw-space-x-reverse: 0; |
|
|
margin-right: calc(1.5rem * var(--tw-space-x-reverse)); |
|
|
margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse))); |
|
|
} |
|
|
|
|
|
.sm\:truncate { |
|
|
overflow: hidden; |
|
|
text-overflow: ellipsis; |
|
|
white-space: nowrap; |
|
|
} |
|
|
|
|
|
.sm\:p-0 { |
|
|
padding: 0px; |
|
|
} |
|
|
|
|
|
.sm\:p-6 { |
|
|
padding: 1.5rem; |
|
|
} |
|
|
|
|
|
.sm\:px-6 { |
|
|
padding-left: 1.5rem; |
|
|
padding-right: 1.5rem; |
|
|
} |
|
|
|
|
|
.sm\:pb-4 { |
|
|
padding-bottom: 1rem; |
|
|
} |
|
|
|
|
|
.sm\:text-left { |
|
|
text-align: left; |
|
|
} |
|
|
|
|
|
.sm\:text-sm { |
|
|
font-size: 0.875rem; |
|
|
line-height: 1.25rem; |
|
|
} |
|
|
|
|
|
.sm\:text-3xl { |
|
|
font-size: 1.875rem; |
|
|
line-height: 2.25rem; |
|
|
} |
|
|
|
|
|
.sm\:mr-6 { |
|
|
margin-right: 1.5rem; |
|
|
} |
|
|
} |
|
|
|
|
|
@media (min-width: 768px) { |
|
|
.md\:inline { |
|
|
display: inline; |
|
|
} |
|
|
|
|
|
.md\:flex { |
|
|
display: flex; |
|
|
} |
|
|
|
|
|
.md\:hidden { |
|
|
display: none; |
|
|
} |
|
|
|
|
|
.md\:justify-start { |
|
|
justify-content: flex-start; |
|
|
} |
|
|
|
|
|
.md\:text-left { |
|
|
text-align: left; |
|
|
} |
|
|
|
|
|
.md\:block { |
|
|
display: block; |
|
|
} |
|
|
|
|
|
.md\:inline-block { |
|
|
display: inline-block; |
|
|
} |
|
|
} |
|
|
|
|
|
@media (min-width: 1024px) { |
|
|
.lg\:mt-0 { |
|
|
margin-top: 0px; |
|
|
} |
|
|
|
|
|
.lg\:ml-4 { |
|
|
margin-left: 1rem; |
|
|
} |
|
|
|
|
|
.lg\:flex { |
|
|
display: flex; |
|
|
} |
|
|
|
|
|
.lg\:items-center { |
|
|
align-items: center; |
|
|
} |
|
|
|
|
|
.lg\:justify-between { |
|
|
justify-content: space-between; |
|
|
} |
|
|
|
|
|
.lg\:inline { |
|
|
display: inline; |
|
|
} |
|
|
|
|
|
.lg\:hidden { |
|
|
display: none; |
|
|
} |
|
|
|
|
|
.lg\:justify-start { |
|
|
justify-content: flex-start; |
|
|
} |
|
|
|
|
|
.lg\:text-left { |
|
|
text-align: left; |
|
|
} |
|
|
|
|
|
.lg\:block { |
|
|
display:block; |
|
|
} |
|
|
} |
|
|
|
|
|
.overflow-scroll { |
|
|
overflow: scroll; |
|
|
} |
|
|
|
|
|
.overflow-x-auto { |
|
|
overflow-x: auto; |
|
|
} |
|
|
|
|
|
.absolute { |
|
|
position: absolute; |
|
|
} |
|
|
|
|
|
.px-1 { |
|
|
padding-left: 0.25rem; |
|
|
padding-right: 0.25rem; |
|
|
} |
|
|
|
|
|
.px-10 { |
|
|
padding-left: 2.5rem; |
|
|
padding-right: 2.5rem; |
|
|
} |
|
|
|
|
|
.py-10 { |
|
|
padding-top: 2.5rem; |
|
|
padding-bottom: 2.5rem; |
|
|
} |
|
|
|
|
|
.mb-4 { |
|
|
margin-bottom: 1rem; |
|
|
} |
|
|
|
|
|
.-mb-px { |
|
|
margin-bottom: 1px; |
|
|
} |
|
|
|
|
|
.mt-4 { |
|
|
margin-top: 1rem; |
|
|
} |
|
|
|
|
|
.mr-6 { |
|
|
margin-right: 1.5rem; |
|
|
} |
|
|
|
|
|
.mr-4 { |
|
|
margin-right: 1rem; |
|
|
} |
|
|
|
|
|
.rounded { |
|
|
border-radius: 0.25rem; |
|
|
} |
|
|
|
|
|
.whitespace-nowrap { |
|
|
white-space: nowrap; |
|
|
} |
|
|
|
|
|
.cursor-pointer { |
|
|
cursor: pointer; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.grid { |
|
|
position: relative; |
|
|
|
|
|
margin: 0 auto; |
|
|
padding: 1em 0 4em; |
|
|
|
|
|
display: grid; |
|
|
|
|
|
max-width: 1000px; |
|
|
list-style: none; |
|
|
|
|
|
text-align: center; |
|
|
column-gap: 2em; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.grid figure { |
|
|
position: relative; |
|
|
float: left; |
|
|
overflow: hidden; |
|
|
|
|
|
margin: 10px 1%; |
|
|
width: 100%; |
|
|
|
|
|
background: #3085a3; |
|
|
text-align: center; |
|
|
cursor: pointer; |
|
|
|
|
|
border-radius: 30px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.grid figure img { |
|
|
position: relative; |
|
|
display: block; |
|
|
max-height: 100%; |
|
|
max-width: 100%; |
|
|
opacity: 1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.grid figure figcaption { |
|
|
padding: 0.1em; |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
text-transform: uppercase; |
|
|
|
|
|
font-size: 1.25em; |
|
|
} |
|
|
|
|
|
|
|
|
@media (min-width: 600px) { |
|
|
.grid { |
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@media (min-width: 900px) { |
|
|
.grid { |
|
|
grid-template-columns: repeat(3, 1fr); |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.grid figure figcaption, |
|
|
.grid figure figcaption>a { |
|
|
position: absolute; |
|
|
top: 0em; |
|
|
|
|
|
left: 0; |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
} |
|
|
|
|
|
|
|
|
.grid figure figcaption>a { |
|
|
z-index: 1000; |
|
|
|
|
|
text-indent: 0%; |
|
|
white-space: nowrap; |
|
|
font-size: 0; |
|
|
|
|
|
opacity: 1; |
|
|
} |
|
|
|
|
|
|
|
|
.grid figure h2 { |
|
|
word-spacing: 0em; |
|
|
font-weight: 300; |
|
|
} |
|
|
|
|
|
.grid figure h2 span { |
|
|
font-weight: 800; |
|
|
} |
|
|
|
|
|
.grid figure h2, |
|
|
.grid figure p { |
|
|
margin: 0; |
|
|
} |
|
|
|
|
|
|
|
|
.grid figure p { |
|
|
letter-spacing: 1px; |
|
|
font-size: 70%; |
|
|
} |
|
|
|
|
|
|
|
|
figure.effect-ruby { |
|
|
height: 150px; |
|
|
background-color: #2c3e50; |
|
|
} |
|
|
|
|
|
|
|
|
figure.effect-ruby:hover { |
|
|
background-color: DodgerBlue; |
|
|
} |
|
|
|
|
|
|
|
|
figure.effect-ruby img { |
|
|
opacity: 0; |
|
|
transition: opacity 0.35s, transform 0.35s; |
|
|
|
|
|
transform: scale(1.15); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
figure.effect-ruby:hover img { |
|
|
opacity: 0; |
|
|
transform: scale(1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
figure.effect-ruby h2 { |
|
|
margin-top: 0; |
|
|
transition: transform 0.35s; |
|
|
|
|
|
transform: translate3d(0, calc((150px - 100%)/2), 0); |
|
|
font-size: 1.25em; |
|
|
|
|
|
} |
|
|
|
|
|
figure.effect-ruby p { |
|
|
margin: 2em -1em 2em -1em; |
|
|
padding: 1em 0em 1em 0em; |
|
|
border: 1px solid #fff; |
|
|
|
|
|
opacity: 0; |
|
|
transition: opacity 0.35s, transform 0.35s; |
|
|
transform: translate3d(0, 20px, 0) scale(1.1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
figure.effect-ruby:hover h2 { |
|
|
-webkit-transform: translate3d(0, 0, 0); |
|
|
transform: translate3d(0px, 10px, 0) scale(0.8); |
|
|
|
|
|
margin-top: 0em; |
|
|
|
|
|
} |
|
|
|
|
|
figure.effect-ruby:hover p { |
|
|
opacity: 1; |
|
|
transform: translate3d(0, 0, 0) scale(1.2); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.buttoncent { |
|
|
border: none; |
|
|
background-color: transparent; |
|
|
outline: none; |
|
|
text-align: center; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.buttonleft { |
|
|
border: none; |
|
|
background-color: transparent; |
|
|
outline: none; |
|
|
text-align: center; |
|
|
margin-left: 1px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* { |
|
|
--switch-height: 20px; |
|
|
--switch-padding: 2px; |
|
|
--switch-width: calc((var(--switch-height) * 2) - var(--switch-padding)); |
|
|
--slider-height: calc(var(--switch-height) - var(--switch-padding)); |
|
|
--slider-on: calc(var(--switch-height) - var(--switch-padding)); |
|
|
} |
|
|
|
|
|
.switch { |
|
|
position: relative; |
|
|
display: inline-block; |
|
|
width: var(--switch-width); |
|
|
height: var(--switch-height); |
|
|
} |
|
|
|
|
|
.switch input { |
|
|
opacity: 0; |
|
|
width: 0; |
|
|
height: 0; |
|
|
} |
|
|
|
|
|
.slider { |
|
|
position: absolute; |
|
|
cursor: pointer; |
|
|
top: 0; |
|
|
left: 0; |
|
|
right: 0; |
|
|
bottom: 0; |
|
|
background-color: #ccc; |
|
|
-webkit-transition: .4s; |
|
|
transition: .4s; |
|
|
} |
|
|
|
|
|
.slider:before { |
|
|
content: ""; |
|
|
position: absolute; |
|
|
height: var(--slider-height); |
|
|
width: var(--slider-height); |
|
|
left: calc(var(--switch-padding) / 2); |
|
|
bottom: calc(var(--switch-padding) / 2); |
|
|
background-color: white; |
|
|
-webkit-transition: .4s; |
|
|
transition: .4s; |
|
|
} |
|
|
|
|
|
input:checked+.slider { |
|
|
background-color: #2196F3; |
|
|
} |
|
|
|
|
|
input:focus+.slider { |
|
|
box-shadow: 0 0 1px #2196F3; |
|
|
} |
|
|
|
|
|
input:checked+.slider:before { |
|
|
-webkit-transform: translateX(var(--slider-on)); |
|
|
-ms-transform: translateX(var(--slider-on)); |
|
|
transform: translateX(var(--slider-on)); |
|
|
} |
|
|
|
|
|
.slider.round { |
|
|
border-radius: var(--slider-height); |
|
|
} |
|
|
|
|
|
.slider.round:before { |
|
|
border-radius: 50%; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ml11 .text-wrapper { |
|
|
position: relative; |
|
|
display: inline-block; |
|
|
padding-top: 0.1em; |
|
|
padding-right: 0.05em; |
|
|
padding-bottom: 0.15em; |
|
|
} |
|
|
|
|
|
.ml11 .line { |
|
|
opacity: 0; |
|
|
position: absolute; |
|
|
left: 0; |
|
|
height: 100%; |
|
|
width: 3px; |
|
|
background-color: #fff; |
|
|
transform-origin: 0 50%; |
|
|
} |
|
|
|
|
|
.ml11 .line1 { |
|
|
top: 0; |
|
|
left: 0; |
|
|
} |
|
|
|
|
|
.ml11 .letter { |
|
|
display: inline-block; |
|
|
line-height: 1em; |
|
|
font-family: 'Kanit', sans-serif; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) { |
|
|
#unique_plot { |
|
|
flex: 1 1 0%; |
|
|
} |
|
|
} |
|
|
|
|
|
@media (max-width: 767px) { |
|
|
#unique_plot { |
|
|
flex: initial; |
|
|
flex-shrink: 0; |
|
|
} |
|
|
} |
|
|
|
|
|
.js-plotly-plot .plotly .modebar { |
|
|
transform: translateX(-30px); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#plot_legend { |
|
|
display: flex; |
|
|
flex-direction: row; |
|
|
flex-wrap: wrap; |
|
|
} |
|
|
|
|
|
#legend_title { |
|
|
font-size: 1.2rem; |
|
|
font-weight: bold; |
|
|
} |
|
|
|
|
|
#legend_help { |
|
|
font-size: 0.75rem; |
|
|
color: #475569; |
|
|
} |
|
|
|
|
|
.space-r-2>* { |
|
|
margin-right: 0.5rem; |
|
|
} |
|
|
|
|
|
|
|
|
.objective-description-content { |
|
|
visibility: hidden; |
|
|
|
|
|
background-color: rgb(55 65 81); |
|
|
color: #fff; |
|
|
border-radius: 6px; |
|
|
margin-top: 1.5em; |
|
|
padding-right: 0.5em; |
|
|
padding-left: 0.5em; |
|
|
padding-top: 1em; |
|
|
padding-bottom: 1em; |
|
|
opacity: 90%; |
|
|
max-width: 80ch; |
|
|
max-height: 200px; |
|
|
|
|
|
overflow-y: auto; |
|
|
white-space: pre-wrap; |
|
|
position: absolute; |
|
|
z-index: 99999; |
|
|
} |
|
|
|
|
|
.objective-description-trigger { |
|
|
display: flex; |
|
|
flex-direction: row; |
|
|
} |
|
|
|
|
|
.objective-description-icon { |
|
|
width: 1.25rem; |
|
|
align-self: center; |
|
|
|
|
|
border-radius: 50%; |
|
|
} |
|
|
|
|
|
.objective-description-trigger:hover .objective-description-content { |
|
|
visibility: visible; |
|
|
} |
|
|
|
|
|
|
|
|
.curve-description-container { |
|
|
position: relative; |
|
|
display: inline-flex; |
|
|
} |
|
|
|
|
|
.curve-description-content { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
visibility: hidden; |
|
|
background-color: rgb(55 65 81); |
|
|
color: #fff; |
|
|
border-radius: 6px; |
|
|
padding-top: 0.5em; |
|
|
padding-bottom: 0.6em; |
|
|
padding-left: 0.5em; |
|
|
padding-right: 0.5rem; |
|
|
opacity: 90%; |
|
|
|
|
|
width: max-content; |
|
|
max-width: 80ch; |
|
|
max-height: 500px; |
|
|
white-space: pre-wrap; |
|
|
|
|
|
|
|
|
position: absolute; |
|
|
transform: translate(0, -100%); |
|
|
z-index: 99999; |
|
|
} |
|
|
|
|
|
|
|
|
.curve-description-container:hover .curve-description-content { |
|
|
visibility: visible; |
|
|
} |
|
|
|
|
|
|
|
|
.curve-description-container .curve-description-content::after { |
|
|
content: " "; |
|
|
position: absolute; |
|
|
top: 100%; |
|
|
left: 20px; |
|
|
margin-left: -5px; |
|
|
border-width: 7px; |
|
|
border-style: solid; |
|
|
border-color: rgb(55 65 81) transparent transparent transparent; |
|
|
} |
|
|
|
|
|
.curve-description-title { |
|
|
margin-bottom: 1em; |
|
|
font-weight: bolder; |
|
|
} |
|
|
|
|
|
.curve-description-body { |
|
|
max-height: 450px; |
|
|
overflow-y: auto; |
|
|
} |
|
|
|
|
|
|
|
|
#plot_config_title { |
|
|
font-weight: bold; |
|
|
} |
|
|
|
|
|
.config-item, .config-ctrl { |
|
|
border-radius: 9999px; |
|
|
padding-left: 1em; |
|
|
padding-right: 1em; |
|
|
color: white; |
|
|
margin-left: 2ex; |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
font-size: 0.875rem; |
|
|
line-height: 1.25rem; |
|
|
font-weight: 400; |
|
|
} |
|
|
|
|
|
.config-item { |
|
|
background-color: rgb(91, 78, 255); |
|
|
border-color: rgb(55 65 81); |
|
|
} |
|
|
.config-ctrl { |
|
|
font-size: medium; |
|
|
font-weight: bold; |
|
|
background-color: rgb(34, 30, 94); |
|
|
border-color: rgb(23, 37, 59); |
|
|
} |
|
|
|
|
|
.view_selector_label { |
|
|
position: absolute; |
|
|
width: 1px; |
|
|
height: 1px; |
|
|
padding: 0; |
|
|
margin: -1px; |
|
|
overflow: hidden; |
|
|
clip: rect(0, 0, 0, 0); |
|
|
white-space: nowrap; |
|
|
border-width: 0; |
|
|
} |
|
|
|
|
|
.view_selector_select { |
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); |
|
|
background-position: right 0.5rem center; |
|
|
background-repeat: no-repeat; |
|
|
background-size: 1.5em 1.5em; |
|
|
padding-right: 2.5rem; |
|
|
-webkit-print-color-adjust: exact; |
|
|
color-adjust: exact; |
|
|
-webkit-appearance: none; |
|
|
-moz-appearance: none; |
|
|
appearance: none; |
|
|
background-color: #fff; |
|
|
border-width: 1px; |
|
|
font-size: 1rem; |
|
|
line-height: 1.5rem; |
|
|
--tw-shadow: 0 0 #0000; |
|
|
--tw-border-opacity: 1; |
|
|
border-color: rgb(209 213 219 / var(--tw-border-opacity)); |
|
|
} |
|
|
|
|
|
.view.active { |
|
|
border-color: rgb(37 99 235);!important; |
|
|
color: rgb(37 99 235);!important; |
|
|
} |
|
|
|
|
|
|
|
|
g.hovertext:has(path + [data-unformatted*="q1"]), |
|
|
g.hovertext:has(path + [data-unformatted*="q3"]), |
|
|
g.hovertext:has(path + [data-unformatted*="max"]), |
|
|
g.hovertext:has(path + [data-unformatted*="min"]), |
|
|
g.hovertext:has(path + [data-unformatted*="upper fence"]), |
|
|
g.hovertext:has(path + [data-unformatted*="lower fence"]) |
|
|
{ |
|
|
display: none; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) and (orientation: portrait) { |
|
|
#plot_with_legend_container { |
|
|
aspect-ratio: 3 / 4; |
|
|
min-height: 400px; |
|
|
max-height: 70vh; |
|
|
} |
|
|
|
|
|
#plot_container.js-plotly-plot { |
|
|
aspect-ratio: 3 / 4; |
|
|
min-height: 400px; |
|
|
max-height: 70vh; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@media (max-width: 767px) and (orientation: landscape) { |
|
|
#plot_with_legend_container { |
|
|
aspect-ratio: 4 / 3; |
|
|
min-height: 300px; |
|
|
max-height: 80vh; |
|
|
} |
|
|
|
|
|
#plot_container.js-plotly-plot { |
|
|
aspect-ratio: 4 / 3; |
|
|
min-height: 300px; |
|
|
max-height: 80vh; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@media (min-width: 768px) { |
|
|
#plot_with_legend_container { |
|
|
aspect-ratio: auto; |
|
|
min-height: 600px; |
|
|
max-height: none; |
|
|
} |
|
|
|
|
|
#plot_container.js-plotly-plot { |
|
|
aspect-ratio: auto; |
|
|
min-height: 0; |
|
|
max-height: none; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</head> |
|
|
<body> |
|
|
|
|
|
<div class="flex"> |
|
|
|
|
|
<div class="hidden lg:flex flex-col w-96 bg-gray-700"> |
|
|
<div class="h-screen" onchange="setAllViewsToNonActive()"> |
|
|
<div class="px-8 h-16 flex items-center bg-gray-800"> |
|
|
<h1 class="ml11"> |
|
|
<span class="text-wrapper"> |
|
|
<span class="line line1"></span> |
|
|
<span id="brand" class="hidden letters text-2xl text-white">Benchopt</span> |
|
|
</span> |
|
|
</h1> |
|
|
</div> |
|
|
<div class="mt-8 px-8"> |
|
|
<label for="plot_kind" class="block text-sm font-medium text-white">Chart type</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="plot_kind" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({plot_kind: this.value, scale: (this.value === 'boxplot' || this.value === 'bar_chart' ? 'linear' : state().scale)})"> |
|
|
<option value="objective_curve"> |
|
|
Objective curve |
|
|
</option> |
|
|
<option value="bar_chart"> |
|
|
Bar chart |
|
|
</option> |
|
|
<option value="boxplot"> |
|
|
Boxplot |
|
|
</option> |
|
|
<option value="table"> |
|
|
Table |
|
|
</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex-1 flex flex-col"> |
|
|
<div id="scale-form-group" class="mt-8 px-8"> |
|
|
<label for="change_scale" class="block text-sm font-medium text-white">Scale</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_scale" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({scale: this.value})"> |
|
|
<option value="linear">linear</option> |
|
|
|
|
|
<option class="other_plot_option" value="semilog-y">semilog-y</option> |
|
|
<option class="other_plot_option" value="semilog-x">semilog-x</option> |
|
|
<option class="other_plot_option" value="loglog">loglog</option> |
|
|
|
|
|
<option class="boxplot_option" value="log">log</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="change-shades-form-group" class="flex items-center justify-between mt-8 px-8"> |
|
|
<div class="block text-sm font-medium text-white">Quantiles</div> |
|
|
<label class="block switch"> |
|
|
<input id="change_shades" type="checkbox" checked onchange="setState({with_quantiles: this.checked})"> |
|
|
<span class="slider round"></span> |
|
|
</label> |
|
|
</div> |
|
|
<div id="change-relative-suboptimal-form-group" class="flex items-center justify-between mt-8 px-8"> |
|
|
<div class="block text-sm font-medium text-white">Suboptimal Curve</div> |
|
|
<label class="block switch"> |
|
|
<input id="change_suboptimal" type="checkbox" onchange="setState({suboptimal_curve: this.checked})"> |
|
|
<span class="slider round"></span> |
|
|
</label> |
|
|
</div> |
|
|
<div id="change-relative-suboptimal-form-group" class="flex items-center justify-between mt-8 px-8"> |
|
|
<div class="block text-sm font-medium text-white">Relative Curve</div> |
|
|
<label class="block switch"> |
|
|
<input id="change_relative" type="checkbox" onchange="setState({relative_curve: this.checked})"> |
|
|
<span class="slider round"></span> |
|
|
</label> |
|
|
</div> |
|
|
<div id="objective_curve-custom-params-container"> |
|
|
<div id="objective_curve_dataset_form_group" class="mt-8 px-8"> |
|
|
<label for="change_objective_curve_dataset" class="block text-sm font-medium text-white">dataset</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_objective_curve_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_dataset: this.value})"> |
|
|
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="objective_curve_objective_form_group" class="mt-8 px-8"> |
|
|
<label for="change_objective_curve_objective" class="block text-sm font-medium text-white">objective</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_objective_curve_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_objective: this.value})"> |
|
|
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="objective_curve_objective_column_form_group" class="mt-8 px-8"> |
|
|
<label for="change_objective_curve_objective_column" class="block text-sm font-medium text-white">objective_column</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_objective_curve_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_objective_column: this.value})"> |
|
|
<option value="objective_PSNR">objective_PSNR</option> |
|
|
<option value="objective_PSNR_std">objective_PSNR_std</option> |
|
|
<option value="objective_NIQE">objective_NIQE</option> |
|
|
<option value="objective_NIQE_std">objective_NIQE_std</option> |
|
|
<option value="objective_runtime">objective_runtime</option> |
|
|
<option value="objective_runtime_std">objective_runtime_std</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="objective_curve_X_axis_form_group" class="mt-8 px-8"> |
|
|
<label for="change_objective_curve_X_axis" class="block text-sm font-medium text-white">X_axis</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_objective_curve_X_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_X_axis: this.value})"> |
|
|
<option value="Time">Time</option> |
|
|
<option value="Iteration">Iteration</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div id="bar_chart-custom-params-container"> |
|
|
<div id="bar_chart_dataset_form_group" class="mt-8 px-8"> |
|
|
<label for="change_bar_chart_dataset" class="block text-sm font-medium text-white">dataset</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_bar_chart_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_dataset: this.value})"> |
|
|
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="bar_chart_objective_form_group" class="mt-8 px-8"> |
|
|
<label for="change_bar_chart_objective" class="block text-sm font-medium text-white">objective</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_bar_chart_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_objective: this.value})"> |
|
|
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="bar_chart_objective_column_form_group" class="mt-8 px-8"> |
|
|
<label for="change_bar_chart_objective_column" class="block text-sm font-medium text-white">objective_column</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_bar_chart_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_objective_column: this.value})"> |
|
|
<option value="objective_PSNR">objective_PSNR</option> |
|
|
<option value="objective_PSNR_std">objective_PSNR_std</option> |
|
|
<option value="objective_NIQE">objective_NIQE</option> |
|
|
<option value="objective_NIQE_std">objective_NIQE_std</option> |
|
|
<option value="objective_runtime">objective_runtime</option> |
|
|
<option value="objective_runtime_std">objective_runtime_std</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot-custom-params-container"> |
|
|
<div id="boxplot_dataset_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_dataset" class="block text-sm font-medium text-white">dataset</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_dataset: this.value})"> |
|
|
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot_objective_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_objective" class="block text-sm font-medium text-white">objective</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_objective: this.value})"> |
|
|
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot_objective_column_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_objective_column" class="block text-sm font-medium text-white">objective_column</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_objective_column: this.value})"> |
|
|
<option value="objective_PSNR">objective_PSNR</option> |
|
|
<option value="objective_PSNR_std">objective_PSNR_std</option> |
|
|
<option value="objective_NIQE">objective_NIQE</option> |
|
|
<option value="objective_NIQE_std">objective_NIQE_std</option> |
|
|
<option value="objective_runtime">objective_runtime</option> |
|
|
<option value="objective_runtime_std">objective_runtime_std</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot_X_axis_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_X_axis" class="block text-sm font-medium text-white">X_axis</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_X_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_X_axis: this.value})"> |
|
|
<option value="Solver">Solver</option> |
|
|
<option value="Iteration">Iteration</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot_Y_axis_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_Y_axis" class="block text-sm font-medium text-white">Y_axis</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_Y_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_Y_axis: this.value})"> |
|
|
<option value="Time">Time</option> |
|
|
<option value="Objective Metric">Objective Metric</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div id="table-custom-params-container"> |
|
|
<div id="table_dataset_form_group" class="mt-8 px-8"> |
|
|
<label for="change_table_dataset" class="block text-sm font-medium text-white">dataset</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_table_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({table_dataset: this.value})"> |
|
|
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="table_objective_form_group" class="mt-8 px-8"> |
|
|
<label for="change_table_objective" class="block text-sm font-medium text-white">objective</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_table_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({table_objective: this.value})"> |
|
|
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex items-center justify-between mt-8 px-8"> |
|
|
<a href="#" class="w-full inline-flex items-center justify-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" onclick="return saveView()"> |
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 6.878V6a2.25 2.25 0 012.25-2.25h7.5A2.25 2.25 0 0118 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 004.5 9v.878m13.5-3A2.25 2.25 0 0119.5 9v.878m0 0a2.246 2.246 0 00-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0121 12v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6c0-.98.626-1.813 1.5-2.122" /> |
|
|
</svg> |
|
|
<span class="hidden lg:inline">Save as view</span> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="w-full flex flex-col overflow-scroll"> |
|
|
|
|
|
<nav class="bg-blue-600"> |
|
|
<div class="px-4"> |
|
|
<div class="relative flex items-center justify-between h-16"> |
|
|
|
|
|
<div class="absolute inset-0 flex items-center justify-between lg:hidden"> |
|
|
|
|
|
<span class="text-white text-xl"> |
|
|
Benchopt |
|
|
</span> |
|
|
|
|
|
<button type="button" id="btn-main-menu" class="inline-flex items-center justify-center p-2 rounded-md text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white" aria-controls="mobile-menu" aria-expanded="false"> |
|
|
<span class="sr-only">Open main menu</span> |
|
|
<svg class="block h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16" /> |
|
|
</svg> |
|
|
<svg class="hidden h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /> |
|
|
</svg> |
|
|
</button> |
|
|
</div> |
|
|
|
|
|
<div class="flex-1 flex items-center justify-center lg:items-stretch lg:justify-start"> |
|
|
<div class="hidden lg:block"> |
|
|
<div class="flex space-x-4"> |
|
|
<a href="benchmarks.html" class="text-gray-100 hover:bg-blue-800 hover:text-white px-3 py-2 rounded-md text-sm font-medium" aria-current="page">Home</a> |
|
|
<a href="https://benchopt.github.io" class="text-gray-100 hover:bg-blue-800 hover:text-white px-3 py-2 rounded-md text-sm font-medium" target="_blank">Website</a> |
|
|
<a href="https://github.com/benchopt/benchopt" class="text-gray-100 hover:bg-blue-800 hover:text-white px-3 py-2 rounded-md text-sm font-medium" target="_blank">Github</a> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="hidden" id="mobile-menu"> |
|
|
<div class="px-2 pt-2 pb-3 space-y-1"> |
|
|
<a href="benchmarks.html" class="text-white block px-3 py-2 rounded-md text-base font-medium" aria-current="page">Home</a> |
|
|
<a href="https://benchopt.github.io" class="text-white block px-3 py-2 rounded-md text-base font-medium">Website</a> |
|
|
<a href="https://github.com/benchopt/benchopt" class="text-white block px-3 py-2 rounded-md text-base font-medium">Github</a> |
|
|
<a href="#" class="text-white block px-3 py-2 rounded-md text-base font-medium" onclick="return exportConfigs()">Download config</a> |
|
|
<a href="#" class="text-white block px-3 py-2 rounded-md text-base font-medium" onclick="return exportHTML()">Download HTML</a> |
|
|
<a href="results.parquet" class="text-white block px-3 py-2 rounded-md text-base font-medium">Download data</a> |
|
|
</div> |
|
|
</div> |
|
|
</nav> |
|
|
|
|
|
|
|
|
<nav class="lg:hidden bg-gray-700"> |
|
|
<div class="px-4" id="btn-plot-config"> |
|
|
<div class="relative flex items-center justify-between h-10"> |
|
|
<div class="absolute inset-0 flex items-center justify-between lg:hidden"> |
|
|
|
|
|
<span class="flex items-center space-x-2 text-white"> |
|
|
<span>Change plot</span> |
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M13 5l7 7-7 7M5 5l7 7-7 7" /> |
|
|
</svg> |
|
|
</span> |
|
|
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white" aria-controls="mobile-menu" aria-expanded="false"> |
|
|
<span class="sr-only">Open main menu</span> |
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" /> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /> |
|
|
</svg> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="hidden" id="mobile-plot-form"> |
|
|
<div class="px-2 pt-2 pb-3 space-y-4" onchange="setAllViewsToNonActive()"> |
|
|
<div class="px-8"> |
|
|
<label for="plot_kind" class="block text-sm font-medium text-white">Chart type</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="plot_kind" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({plot_kind: this.value, scale: (this.value === 'boxplot' || this.value === 'bar_chart' ? 'linear' : state().scale)})"> |
|
|
<option value="objective_curve">objective_curve</option> |
|
|
<option value="bar_chart">bar_chart</option> |
|
|
<option value="boxplot">boxplot</option> |
|
|
<option value="table">table</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="scale-form-group" class="px-8"> |
|
|
<label for="change_scale" class="block text-sm font-medium text-white">Scale</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_scale" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({scale: this.value})"> |
|
|
<option value="linear">linear</option> |
|
|
|
|
|
<option class="other_plot_option" value="semilog-y">semilog-y</option> |
|
|
<option class="other_plot_option" value="semilog-x">semilog-x</option> |
|
|
<option class="other_plot_option" value="loglog">loglog</option> |
|
|
|
|
|
<option class="boxplot_option" value="log">log</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="change-shades-form-group" class="flex items-center justify-between mt-8 px-8"> |
|
|
<div class="block text-sm font-medium text-white">Quantiles</div> |
|
|
<label class="block switch"> |
|
|
<input id="change_shades" type="checkbox" checked onchange="setState({with_quantiles: this.checked})"> |
|
|
<span class="slider round"></span> |
|
|
</label> |
|
|
</div> |
|
|
<div id="change-relative-suboptimal-form-group" class="flex items-center justify-between mt-8 px-8"> |
|
|
<div class="block text-sm font-medium text-white">Suboptimal Curve</div> |
|
|
<label class="block switch"> |
|
|
<input id="change_suboptimal" type="checkbox" onchange="setState({suboptimal_curve: this.checked})"> |
|
|
<span class="slider round"></span> |
|
|
</label> |
|
|
</div> |
|
|
<div id="change-relative-suboptimal-form-group" class="flex items-center justify-between mt-8 px-8"> |
|
|
<div class="block text-sm font-medium text-white">Relative Curve</div> |
|
|
<label class="block switch"> |
|
|
<input id="change_relative" type="checkbox" onchange="setState({relative_curve: this.checked})"> |
|
|
<span class="slider round"></span> |
|
|
</label> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<div id="objective_curve-custom-params-container"> |
|
|
<div id="objective_curve_dataset_form_group" class="mt-8 px-8"> |
|
|
<label for="change_objective_curve_dataset" class="block text-sm font-medium text-white">dataset</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_objective_curve_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_dataset: this.value})"> |
|
|
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="objective_curve_objective_form_group" class="mt-8 px-8"> |
|
|
<label for="change_objective_curve_objective" class="block text-sm font-medium text-white">objective</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_objective_curve_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_objective: this.value})"> |
|
|
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="objective_curve_objective_column_form_group" class="mt-8 px-8"> |
|
|
<label for="change_objective_curve_objective_column" class="block text-sm font-medium text-white">objective_column</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_objective_curve_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_objective_column: this.value})"> |
|
|
<option value="objective_PSNR">objective_PSNR</option> |
|
|
<option value="objective_PSNR_std">objective_PSNR_std</option> |
|
|
<option value="objective_NIQE">objective_NIQE</option> |
|
|
<option value="objective_NIQE_std">objective_NIQE_std</option> |
|
|
<option value="objective_runtime">objective_runtime</option> |
|
|
<option value="objective_runtime_std">objective_runtime_std</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="objective_curve_X_axis_form_group" class="mt-8 px-8"> |
|
|
<label for="change_objective_curve_X_axis" class="block text-sm font-medium text-white">X_axis</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_objective_curve_X_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_X_axis: this.value})"> |
|
|
<option value="Time">Time</option> |
|
|
<option value="Iteration">Iteration</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div id="bar_chart-custom-params-container"> |
|
|
<div id="bar_chart_dataset_form_group" class="mt-8 px-8"> |
|
|
<label for="change_bar_chart_dataset" class="block text-sm font-medium text-white">dataset</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_bar_chart_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_dataset: this.value})"> |
|
|
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="bar_chart_objective_form_group" class="mt-8 px-8"> |
|
|
<label for="change_bar_chart_objective" class="block text-sm font-medium text-white">objective</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_bar_chart_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_objective: this.value})"> |
|
|
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="bar_chart_objective_column_form_group" class="mt-8 px-8"> |
|
|
<label for="change_bar_chart_objective_column" class="block text-sm font-medium text-white">objective_column</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_bar_chart_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_objective_column: this.value})"> |
|
|
<option value="objective_PSNR">objective_PSNR</option> |
|
|
<option value="objective_PSNR_std">objective_PSNR_std</option> |
|
|
<option value="objective_NIQE">objective_NIQE</option> |
|
|
<option value="objective_NIQE_std">objective_NIQE_std</option> |
|
|
<option value="objective_runtime">objective_runtime</option> |
|
|
<option value="objective_runtime_std">objective_runtime_std</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot-custom-params-container"> |
|
|
<div id="boxplot_dataset_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_dataset" class="block text-sm font-medium text-white">dataset</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_dataset: this.value})"> |
|
|
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot_objective_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_objective" class="block text-sm font-medium text-white">objective</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_objective: this.value})"> |
|
|
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot_objective_column_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_objective_column" class="block text-sm font-medium text-white">objective_column</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_objective_column: this.value})"> |
|
|
<option value="objective_PSNR">objective_PSNR</option> |
|
|
<option value="objective_PSNR_std">objective_PSNR_std</option> |
|
|
<option value="objective_NIQE">objective_NIQE</option> |
|
|
<option value="objective_NIQE_std">objective_NIQE_std</option> |
|
|
<option value="objective_runtime">objective_runtime</option> |
|
|
<option value="objective_runtime_std">objective_runtime_std</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot_X_axis_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_X_axis" class="block text-sm font-medium text-white">X_axis</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_X_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_X_axis: this.value})"> |
|
|
<option value="Solver">Solver</option> |
|
|
<option value="Iteration">Iteration</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="boxplot_Y_axis_form_group" class="mt-8 px-8"> |
|
|
<label for="change_boxplot_Y_axis" class="block text-sm font-medium text-white">Y_axis</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_boxplot_Y_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_Y_axis: this.value})"> |
|
|
<option value="Time">Time</option> |
|
|
<option value="Objective Metric">Objective Metric</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div id="table-custom-params-container"> |
|
|
<div id="table_dataset_form_group" class="mt-8 px-8"> |
|
|
<label for="change_table_dataset" class="block text-sm font-medium text-white">dataset</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_table_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({table_dataset: this.value})"> |
|
|
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div id="table_objective_form_group" class="mt-8 px-8"> |
|
|
<label for="change_table_objective" class="block text-sm font-medium text-white">objective</label> |
|
|
<div class="mt-1 rounded-md shadow-sm"> |
|
|
<select id="change_table_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({table_objective: this.value})"> |
|
|
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex items-center justify-between mt-8 px-8"> |
|
|
<a href="#" |
|
|
class="w-full inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" |
|
|
onclick="saveView()"> |
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 6.878V6a2.25 2.25 0 012.25-2.25h7.5A2.25 2.25 0 0118 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 004.5 9v.878m13.5-3A2.25 2.25 0 0119.5 9v.878m0 0a2.246 2.246 0 00-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0121 12v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6c0-.98.626-1.813 1.5-2.122"/> |
|
|
</svg> |
|
|
<span>Save as view</span> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</nav> |
|
|
|
|
|
|
|
|
<div class="px-4 pt-4 pb-1 md:py-4 lg:flex lg:items-center lg:justify-between"> |
|
|
<div class="flex-1 min-w-0"> |
|
|
<h2 class="w-full text-center lg:text-left text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate">Result on benchmarks benchmark</h2> |
|
|
<div class="mt-1 flex flex-wrap justify-center lg:justify-start sm:mt-0"> |
|
|
<div class="mt-2 sm:mr-6 hidden md:flex items-center text-sm text-gray-500"> |
|
|
<span class="font-bold"></span>CPU : 32 |
|
|
</div> |
|
|
<div class="mt-2 sm:mr-6 hidden md:flex items-center text-sm text-gray-500"> |
|
|
<span class="font-bold"></span>RAM (GB) : 63 |
|
|
</div> |
|
|
<div class="mt-2 sm:mr-6 hidden md:flex items-center text-sm text-gray-500"> |
|
|
<span class="font-bold"></span>CUDA : NVIDIA GeForce RTX 4090: cuda_12.4 |
|
|
</div> |
|
|
<div class="mt-2"> |
|
|
<button class="inline-flex items-center px-2 py-1 space-x-2 border border-gray-500 rounded-md shadow-sm text-sm font-medium text-gray-500 bg-white hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500" onclick="document.getElementById('system-modal').style.display = 'block'"> |
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z" /> |
|
|
</svg> |
|
|
<span class="hidden md:inline-block text-sm">Show more</span> |
|
|
<span class="md:hidden text-sm">Show system information</span> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="hidden lg:flex mt-5 lg:mt-0 lg:ml-4 space-x-4 items-center"> |
|
|
<span class="font-bold">Download :</span> |
|
|
<span> |
|
|
<a href="#" class="inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" onclick="return exportConfigs()"> |
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" /> |
|
|
</svg> |
|
|
<span class="hidden lg:inline">Configs</span> |
|
|
</a> |
|
|
</span> |
|
|
|
|
|
|
|
|
<span> |
|
|
<a href="#" class="inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" onclick="return exportHTML()"> |
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/> |
|
|
</svg> |
|
|
<span class="hidden lg:inline">HTML</span> |
|
|
</a> |
|
|
</span> |
|
|
|
|
|
<span> |
|
|
<a href="results.parquet" class="inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> |
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/> |
|
|
</svg> |
|
|
<span class="hidden lg:inline">Data</span> |
|
|
</a> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div id="config_container" class="mt-8"> |
|
|
<div> |
|
|
<div class="sm:hidden px-4"> |
|
|
<label for="tabs" class="view_selector_label">Select a tab</label> |
|
|
<select id="tabs" name="tabs" class="block w-full rounded-md px-4 py-2 view_selector_select" onchange="setConfig(this)"> |
|
|
<option value="no_selected_view" >No selected view</option> |
|
|
</select> |
|
|
</div> |
|
|
<div class="hidden sm:block"> |
|
|
<div class="border-t border-b"> |
|
|
<nav id="view-tabs" class="flex space-x-3 px-4 overflow-x-auto items-center" aria-label="Tabs"> |
|
|
<p class="view mr-6 py-4 px-1 text-sm font-medium border-b-2 border-transparent text-gray-700 whitespace-nowrap">Available plot views : </p> |
|
|
<p id="no_view_available" class="text-sm text-gray-400 whitespace-nowrap border-b-2 border-transparent">No plot view available</p> |
|
|
</nav> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div id="table_container" class="flex flex-col flex-1 gap-4 p-10"> |
|
|
</div> |
|
|
<div id="plot_container" class="flex flex-col flex-1"> |
|
|
<div id="plot_with_legend_container" class="flex-1"></div> |
|
|
<div id="legend_container" class="pb-10 bg-slate-200"> |
|
|
<div class="px-10 mb-4 mt-4 text-base font-medium text-gray-700"> |
|
|
Solvers |
|
|
<span class="text-sm font-medium text-gray-400">(Click on a solver to hide it or double click to hide all the others)</span> |
|
|
</div> |
|
|
<div id="plot_legend" class="px-10 space-r-2"></div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div id="system-modal" class="hidden relative z-10" aria-labelledby="modal-title" role="dialog" aria-modal="true"> |
|
|
<div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"></div> |
|
|
<div class="fixed z-10 inset-0 overflow-y-auto"> |
|
|
<div class="flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0"> |
|
|
<div class="relative bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg sm:w-full"> |
|
|
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> |
|
|
<div class="sm:flex sm:items-start"> |
|
|
<div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-100 sm:mx-0 sm:h-10 sm:w-10"> |
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> |
|
|
</svg> |
|
|
</div> |
|
|
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"> |
|
|
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">System information</h3> |
|
|
<div class="mt-2"> |
|
|
<ul class="text-sm text-gray-500"> |
|
|
<li> <b>CPU</b>: 32 </li> |
|
|
<li> <b>RAM (GB)</b>: 63 </li> |
|
|
<li> <b>CUDA</b>: NVIDIA GeForce RTX 4090: cuda_12.4 </li> |
|
|
<li> <b>platform</b>: Linux6.12.43+deb13-amd64-x86_64 </li> |
|
|
<li> <b>processor</b>: AMD Ryzen Threadripper 1950X 16-Core Processor </li> |
|
|
|
|
|
<li> <b>numpy</b>: 2.0.1 </li> |
|
|
|
|
|
<li> <b>scipy</b>: 1.16.2 </li> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"> |
|
|
<button type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" onclick="document.getElementById('system-modal').style.display = 'none'">Close</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<textarea id="config_export" class="hidden"></textarea> |
|
|
|
|
|
<script src="https://cdn.plot.ly/plotly-2.12.1.min.js"></script> |
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.2/anime.min.js"></script> |
|
|
|
|
|
<script> |
|
|
var textWrapper = document.querySelector('.ml11 .letters'); |
|
|
textWrapper.innerHTML = textWrapper.textContent.replace(/([^\x00-\x80]|\w)/g, "<span class='letter'>$&</span>"); |
|
|
|
|
|
window.addEventListener('load', () => { |
|
|
document.getElementById('brand').style.display = 'inline'; |
|
|
|
|
|
anime.timeline({loop: false}) |
|
|
.add({ |
|
|
targets: '.ml11 .line', |
|
|
scaleY: [0,1], |
|
|
opacity: [0.5,1], |
|
|
easing: "easeOutExpo", |
|
|
duration: 700 |
|
|
}) |
|
|
.add({ |
|
|
targets: '.ml11 .line', |
|
|
translateX: [0, document.querySelector('.ml11 .letters').getBoundingClientRect().width + 10], |
|
|
easing: "easeOutExpo", |
|
|
duration: 700, |
|
|
delay: 100 |
|
|
}).add({ |
|
|
targets: '.ml11 .letter', |
|
|
opacity: [0,1], |
|
|
easing: "easeOutExpo", |
|
|
duration: 600, |
|
|
offset: '-=775', |
|
|
delay: (el, i) => 34 * (i+1) |
|
|
}).add({ |
|
|
targets: '.ml11 .line', |
|
|
scaleY: [1,0], |
|
|
opacity: [1,0.5], |
|
|
easing: "easeOutExpo", |
|
|
duration: 700, |
|
|
translateX: [document.querySelector('.ml11 .letters').getBoundingClientRect().width + 10, document.querySelector('.ml11 .letters').getBoundingClientRect().width + 10], |
|
|
}); |
|
|
}); |
|
|
</script> |
|
|
|
|
|
<script> |
|
|
window._plots = {"objective_curve": {"objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [22.30521011352539], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [22.30521011352539], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [1.1566289783538821], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [1.1566289783538821], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [13.917359352111816], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [13.917359352111816], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [7.8843620463271895], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [7.8843620463271895], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [1.310122575610876], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [1.310122575610876], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [0.18450522399247649], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [0.18450522399247649], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}}, "bar_chart": {"bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}}, "boxplot": {"boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[22.30521011352539]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[22.30521011352539]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[1.1566289783538821]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[1.1566289783538821]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[13.917359352111816]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[13.917359352111816]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[7.8843620463271895]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[7.8843620463271895]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[1.310122575610876]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[1.310122575610876]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[0.18450522399247649]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[0.18450522399247649]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}}, "table": {"table_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "columns": ["solver", "PSNR", "PSNR_std", "NIQE", "NIQE_std", "runtime", "runtime_std", "time (s)"], "type": "table", "data": [["RAM", 22.30521011352539, 1.1566289783538821, 13.917359352111816, 7.8843620463271895, 1.310122575610876, 0.18450522399247649, 8.419156074523926e-07]]}}}; |
|
|
window.metadata = {"plot_configs": {}, "solvers_description": {"RAM": ""}, "obj_description": ""}; |
|
|
|
|
|
window.addEventListener("load", () => { |
|
|
|
|
|
setState({ |
|
|
'plot_kind': document.getElementById('plot_kind').value, |
|
|
'scale': document.getElementById('change_scale').value, |
|
|
'with_quantiles': document.getElementById('change_shades').checked, |
|
|
'suboptimal_curve': document.getElementById('change_suboptimal').checked, |
|
|
'relative_curve': document.getElementById('change_relative').checked, |
|
|
'hidden_curves': [], |
|
|
'objective_curve_dataset': document.getElementById('change_objective_curve_dataset').value, |
|
|
'objective_curve_objective': document.getElementById('change_objective_curve_objective').value, |
|
|
'objective_curve_objective_column': document.getElementById('change_objective_curve_objective_column').value, |
|
|
'objective_curve_X_axis': document.getElementById('change_objective_curve_X_axis').value, |
|
|
'bar_chart_dataset': document.getElementById('change_bar_chart_dataset').value, |
|
|
'bar_chart_objective': document.getElementById('change_bar_chart_objective').value, |
|
|
'bar_chart_objective_column': document.getElementById('change_bar_chart_objective_column').value, |
|
|
'boxplot_dataset': document.getElementById('change_boxplot_dataset').value, |
|
|
'boxplot_objective': document.getElementById('change_boxplot_objective').value, |
|
|
'boxplot_objective_column': document.getElementById('change_boxplot_objective_column').value, |
|
|
'boxplot_X_axis': document.getElementById('change_boxplot_X_axis').value, |
|
|
'boxplot_Y_axis': document.getElementById('change_boxplot_Y_axis').value, |
|
|
'table_dataset': document.getElementById('change_table_dataset').value, |
|
|
'table_objective': document.getElementById('change_table_objective').value, |
|
|
}); |
|
|
const plot_configs = document.getElementsByClassName('view'); |
|
|
if (plot_configs.length > 0 ){ |
|
|
setConfig(plot_configs[1]); |
|
|
} |
|
|
}); |
|
|
</script> |
|
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const d3round = (x, n) => { |
|
|
return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x); |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const SYMBOLDEFS = { |
|
|
circle: { |
|
|
n: 0, |
|
|
f: r => { |
|
|
var rs = d3round(r, 2); |
|
|
return 'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs + |
|
|
'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z'; |
|
|
} |
|
|
}, |
|
|
square: { |
|
|
n: 1, |
|
|
f: r => { |
|
|
var rs = d3round(r, 2); |
|
|
return 'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z'; |
|
|
} |
|
|
}, |
|
|
diamond: { |
|
|
n: 2, |
|
|
f: r => { |
|
|
var rd = d3round(r * 1.3, 2); |
|
|
return 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z'; |
|
|
} |
|
|
}, |
|
|
cross: { |
|
|
n: 3, |
|
|
f: r => { |
|
|
var rc = d3round(r * 0.4, 2); |
|
|
var rc2 = d3round(r * 1.2, 2); |
|
|
return 'M' + rc2 + ',' + rc + 'H' + rc + 'V' + rc2 + 'H-' + rc + |
|
|
'V' + rc + 'H-' + rc2 + 'V-' + rc + 'H-' + rc + 'V-' + rc2 + |
|
|
'H' + rc + 'V-' + rc + 'H' + rc2 + 'Z'; |
|
|
} |
|
|
}, |
|
|
x: { |
|
|
n: 4, |
|
|
f: r => { |
|
|
var rx = d3round(r * 0.8 / Math.sqrt(2), 2); |
|
|
var ne = 'l' + rx + ',' + rx; |
|
|
var se = 'l' + rx + ',-' + rx; |
|
|
var sw = 'l-' + rx + ',-' + rx; |
|
|
var nw = 'l-' + rx + ',' + rx; |
|
|
return 'M0,' + rx + ne + se + sw + se + sw + nw + sw + nw + ne + nw + ne + 'Z'; |
|
|
} |
|
|
}, |
|
|
'triangle-up': { |
|
|
n: 5, |
|
|
f: r => { |
|
|
var rt = d3round(r * 2 / Math.sqrt(3), 2); |
|
|
var r2 = d3round(r / 2, 2); |
|
|
var rs = d3round(r, 2); |
|
|
return 'M-' + rt + ',' + r2 + 'H' + rt + 'L0,-' + rs + 'Z'; |
|
|
} |
|
|
}, |
|
|
'triangle-down': { |
|
|
n: 6, |
|
|
f: r => { |
|
|
var rt = d3round(r * 2 / Math.sqrt(3), 2); |
|
|
var r2 = d3round(r / 2, 2); |
|
|
var rs = d3round(r, 2); |
|
|
return 'M-' + rt + ',-' + r2 + 'H' + rt + 'L0,' + rs + 'Z'; |
|
|
} |
|
|
}, |
|
|
'triangle-left': { |
|
|
n: 7, |
|
|
f: r => { |
|
|
var rt = d3round(r * 2 / Math.sqrt(3), 2); |
|
|
var r2 = d3round(r / 2, 2); |
|
|
var rs = d3round(r, 2); |
|
|
return 'M' + r2 + ',-' + rt + 'V' + rt + 'L-' + rs + ',0Z'; |
|
|
} |
|
|
}, |
|
|
'triangle-right': { |
|
|
n: 8, |
|
|
f: r => { |
|
|
var rt = d3round(r * 2 / Math.sqrt(3), 2); |
|
|
var r2 = d3round(r / 2, 2); |
|
|
var rs = d3round(r, 2); |
|
|
return 'M-' + r2 + ',-' + rt + 'V' + rt + 'L' + rs + ',0Z'; |
|
|
} |
|
|
}, |
|
|
'triangle-ne': { |
|
|
n: 9, |
|
|
f: r => { |
|
|
var r1 = d3round(r * 0.6, 2); |
|
|
var r2 = d3round(r * 1.2, 2); |
|
|
return 'M-' + r2 + ',-' + r1 + 'H' + r1 + 'V' + r2 + 'Z'; |
|
|
} |
|
|
}, |
|
|
'triangle-se': { |
|
|
n: 10, |
|
|
f: r => { |
|
|
var r1 = d3round(r * 0.6, 2); |
|
|
var r2 = d3round(r * 1.2, 2); |
|
|
return 'M' + r1 + ',-' + r2 + 'V' + r1 + 'H-' + r2 + 'Z'; |
|
|
} |
|
|
}, |
|
|
'triangle-sw': { |
|
|
n: 11, |
|
|
f: r => { |
|
|
var r1 = d3round(r * 0.6, 2); |
|
|
var r2 = d3round(r * 1.2, 2); |
|
|
return 'M' + r2 + ',' + r1 + 'H-' + r1 + 'V-' + r2 + 'Z'; |
|
|
} |
|
|
}, |
|
|
'triangle-nw': { |
|
|
n: 12, |
|
|
f: r => { |
|
|
var r1 = d3round(r * 0.6, 2); |
|
|
var r2 = d3round(r * 1.2, 2); |
|
|
return 'M-' + r1 + ',' + r2 + 'V-' + r1 + 'H' + r2 + 'Z'; |
|
|
} |
|
|
}, |
|
|
pentagon: { |
|
|
n: 13, |
|
|
f: r => { |
|
|
var x1 = d3round(r * 0.951, 2); |
|
|
var x2 = d3round(r * 0.588, 2); |
|
|
var y0 = d3round(-r, 2); |
|
|
var y1 = d3round(r * -0.309, 2); |
|
|
var y2 = d3round(r * 0.809, 2); |
|
|
return 'M' + x1 + ',' + y1 + 'L' + x2 + ',' + y2 + 'H-' + x2 + |
|
|
'L-' + x1 + ',' + y1 + 'L0,' + y0 + 'Z'; |
|
|
} |
|
|
}, |
|
|
hexagon: { |
|
|
n: 14, |
|
|
f: r => { |
|
|
var y0 = d3round(r, 2); |
|
|
var y1 = d3round(r / 2, 2); |
|
|
var x = d3round(r * Math.sqrt(3) / 2, 2); |
|
|
return 'M' + x + ',-' + y1 + 'V' + y1 + 'L0,' + y0 + |
|
|
'L-' + x + ',' + y1 + 'V-' + y1 + 'L0,-' + y0 + 'Z'; |
|
|
} |
|
|
}, |
|
|
hexagon2: { |
|
|
n: 15, |
|
|
f: r => { |
|
|
var x0 = d3round(r, 2); |
|
|
var x1 = d3round(r / 2, 2); |
|
|
var y = d3round(r * Math.sqrt(3) / 2, 2); |
|
|
return 'M-' + x1 + ',' + y + 'H' + x1 + 'L' + x0 + |
|
|
',0L' + x1 + ',-' + y + 'H-' + x1 + 'L-' + x0 + ',0Z'; |
|
|
} |
|
|
}, |
|
|
octagon: { |
|
|
n: 16, |
|
|
f: r => { |
|
|
var a = d3round(r * 0.924, 2); |
|
|
var b = d3round(r * 0.383, 2); |
|
|
return 'M-' + b + ',-' + a + 'H' + b + 'L' + a + ',-' + b + 'V' + b + |
|
|
'L' + b + ',' + a + 'H-' + b + 'L-' + a + ',' + b + 'V-' + b + 'Z'; |
|
|
} |
|
|
}, |
|
|
star: { |
|
|
n: 17, |
|
|
f: r => { |
|
|
var rs = r * 1.4; |
|
|
var x1 = d3round(rs * 0.225, 2); |
|
|
var x2 = d3round(rs * 0.951, 2); |
|
|
var x3 = d3round(rs * 0.363, 2); |
|
|
var x4 = d3round(rs * 0.588, 2); |
|
|
var y0 = d3round(-rs, 2); |
|
|
var y1 = d3round(rs * -0.309, 2); |
|
|
var y3 = d3round(rs * 0.118, 2); |
|
|
var y4 = d3round(rs * 0.809, 2); |
|
|
var y5 = d3round(rs * 0.382, 2); |
|
|
return 'M' + x1 + ',' + y1 + 'H' + x2 + 'L' + x3 + ',' + y3 + |
|
|
'L' + x4 + ',' + y4 + 'L0,' + y5 + 'L-' + x4 + ',' + y4 + |
|
|
'L-' + x3 + ',' + y3 + 'L-' + x2 + ',' + y1 + 'H-' + x1 + |
|
|
'L0,' + y0 + 'Z'; |
|
|
} |
|
|
}, |
|
|
hexagram: { |
|
|
n: 18, |
|
|
f: r => { |
|
|
var y = d3round(r * 0.66, 2); |
|
|
var x1 = d3round(r * 0.38, 2); |
|
|
var x2 = d3round(r * 0.76, 2); |
|
|
return 'M-' + x2 + ',0l-' + x1 + ',-' + y + 'h' + x2 + |
|
|
'l' + x1 + ',-' + y + 'l' + x1 + ',' + y + 'h' + x2 + |
|
|
'l-' + x1 + ',' + y + 'l' + x1 + ',' + y + 'h-' + x2 + |
|
|
'l-' + x1 + ',' + y + 'l-' + x1 + ',-' + y + 'h-' + x2 + 'Z'; |
|
|
} |
|
|
}, |
|
|
'star-triangle-up': { |
|
|
n: 19, |
|
|
f: r => { |
|
|
var x = d3round(r * Math.sqrt(3) * 0.8, 2); |
|
|
var y1 = d3round(r * 0.8, 2); |
|
|
var y2 = d3round(r * 1.6, 2); |
|
|
var rc = d3round(r * 4, 2); |
|
|
var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 '; |
|
|
return 'M-' + x + ',' + y1 + aPart + x + ',' + y1 + |
|
|
aPart + '0,-' + y2 + aPart + '-' + x + ',' + y1 + 'Z'; |
|
|
} |
|
|
}, |
|
|
'star-triangle-down': { |
|
|
n: 20, |
|
|
f: r => { |
|
|
var x = d3round(r * Math.sqrt(3) * 0.8, 2); |
|
|
var y1 = d3round(r * 0.8, 2); |
|
|
var y2 = d3round(r * 1.6, 2); |
|
|
var rc = d3round(r * 4, 2); |
|
|
var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 '; |
|
|
return 'M' + x + ',-' + y1 + aPart + '-' + x + ',-' + y1 + |
|
|
aPart + '0,' + y2 + aPart + x + ',-' + y1 + 'Z'; |
|
|
} |
|
|
}, |
|
|
'star-square': { |
|
|
n: 21, |
|
|
f: r => { |
|
|
var rp = d3round(r * 1.1, 2); |
|
|
var rc = d3round(r * 2, 2); |
|
|
var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 '; |
|
|
return 'M-' + rp + ',-' + rp + aPart + '-' + rp + ',' + rp + |
|
|
aPart + rp + ',' + rp + aPart + rp + ',-' + rp + |
|
|
aPart + '-' + rp + ',-' + rp + 'Z'; |
|
|
} |
|
|
}, |
|
|
'star-diamond': { |
|
|
n: 22, |
|
|
f: r => { |
|
|
var rp = d3round(r * 1.4, 2); |
|
|
var rc = d3round(r * 1.9, 2); |
|
|
var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 '; |
|
|
return 'M-' + rp + ',0' + aPart + '0,' + rp + |
|
|
aPart + rp + ',0' + aPart + '0,-' + rp + |
|
|
aPart + '-' + rp + ',0' + 'Z'; |
|
|
} |
|
|
}, |
|
|
'diamond-tall': { |
|
|
n: 23, |
|
|
f: r => { |
|
|
var x = d3round(r * 0.7, 2); |
|
|
var y = d3round(r * 1.4, 2); |
|
|
return 'M0,' + y + 'L' + x + ',0L0,-' + y + 'L-' + x + ',0Z'; |
|
|
} |
|
|
}, |
|
|
'diamond-wide': { |
|
|
n: 24, |
|
|
f: r => { |
|
|
var x = d3round(r * 1.4, 2); |
|
|
var y = d3round(r * 0.7, 2); |
|
|
return 'M0,' + y + 'L' + x + ',0L0,-' + y + 'L-' + x + ',0Z'; |
|
|
} |
|
|
}, |
|
|
hourglass: { |
|
|
n: 25, |
|
|
f: r => { |
|
|
var rs = d3round(r, 2); |
|
|
return 'M' + rs + ',' + rs + 'H-' + rs + 'L' + rs + ',-' + rs + 'H-' + rs + 'Z'; |
|
|
}, |
|
|
noDot: true |
|
|
}, |
|
|
bowtie: { |
|
|
n: 26, |
|
|
f: r => { |
|
|
var rs = d3round(r, 2); |
|
|
return 'M' + rs + ',' + rs + 'V-' + rs + 'L-' + rs + ',' + rs + 'V-' + rs + 'Z'; |
|
|
}, |
|
|
noDot: true |
|
|
}, |
|
|
'circle-cross': { |
|
|
n: 27, |
|
|
f: r => { |
|
|
var rs = d3round(r, 2); |
|
|
return 'M0,' + rs + 'V-' + rs + 'M' + rs + ',0H-' + rs + |
|
|
'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs + |
|
|
'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
}, |
|
|
'circle-x': { |
|
|
n: 28, |
|
|
f: r => { |
|
|
var rs = d3round(r, 2); |
|
|
var rc = d3round(r / Math.sqrt(2), 2); |
|
|
return 'M' + rc + ',' + rc + 'L-' + rc + ',-' + rc + |
|
|
'M' + rc + ',-' + rc + 'L-' + rc + ',' + rc + |
|
|
'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs + |
|
|
'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
}, |
|
|
'square-cross': { |
|
|
n: 29, |
|
|
f: r => { |
|
|
var rs = d3round(r, 2); |
|
|
return 'M0,' + rs + 'V-' + rs + 'M' + rs + ',0H-' + rs + |
|
|
'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
}, |
|
|
'square-x': { |
|
|
n: 30, |
|
|
f: r => { |
|
|
var rs = d3round(r, 2); |
|
|
return 'M' + rs + ',' + rs + 'L-' + rs + ',-' + rs + |
|
|
'M' + rs + ',-' + rs + 'L-' + rs + ',' + rs + |
|
|
'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
}, |
|
|
'diamond-cross': { |
|
|
n: 31, |
|
|
f: r => { |
|
|
var rd = d3round(r * 1.3, 2); |
|
|
return 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z' + |
|
|
'M0,-' + rd + 'V' + rd + 'M-' + rd + ',0H' + rd; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
}, |
|
|
'diamond-x': { |
|
|
n: 32, |
|
|
f: r => { |
|
|
var rd = d3round(r * 1.3, 2); |
|
|
var r2 = d3round(r * 0.65, 2); |
|
|
return 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z' + |
|
|
'M-' + r2 + ',-' + r2 + 'L' + r2 + ',' + r2 + |
|
|
'M-' + r2 + ',' + r2 + 'L' + r2 + ',-' + r2; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
}, |
|
|
'cross-thin': { |
|
|
n: 33, |
|
|
f: r => { |
|
|
var rc = d3round(r * 1.4, 2); |
|
|
return 'M0,' + rc + 'V-' + rc + 'M' + rc + ',0H-' + rc; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
'x-thin': { |
|
|
n: 34, |
|
|
f: r => { |
|
|
var rx = d3round(r, 2); |
|
|
return 'M' + rx + ',' + rx + 'L-' + rx + ',-' + rx + |
|
|
'M' + rx + ',-' + rx + 'L-' + rx + ',' + rx; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
asterisk: { |
|
|
n: 35, |
|
|
f: r => { |
|
|
var rc = d3round(r * 1.2, 2); |
|
|
var rs = d3round(r * 0.85, 2); |
|
|
return 'M0,' + rc + 'V-' + rc + 'M' + rc + ',0H-' + rc + |
|
|
'M' + rs + ',' + rs + 'L-' + rs + ',-' + rs + |
|
|
'M' + rs + ',-' + rs + 'L-' + rs + ',' + rs; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
hash: { |
|
|
n: 36, |
|
|
f: r => { |
|
|
var r1 = d3round(r / 2, 2); |
|
|
var r2 = d3round(r, 2); |
|
|
return 'M' + r1 + ',' + r2 + 'V-' + r2 + |
|
|
'm-' + r2 + ',0V' + r2 + |
|
|
'M' + r2 + ',' + r1 + 'H-' + r2 + |
|
|
'm0,-' + r2 + 'H' + r2; |
|
|
}, |
|
|
needLine: true, |
|
|
noFill: true |
|
|
}, |
|
|
'y-up': { |
|
|
n: 37, |
|
|
f: r => { |
|
|
var x = d3round(r * 1.2, 2); |
|
|
var y0 = d3round(r * 1.6, 2); |
|
|
var y1 = d3round(r * 0.8, 2); |
|
|
return 'M-' + x + ',' + y1 + 'L0,0M' + x + ',' + y1 + 'L0,0M0,-' + y0 + 'L0,0'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
'y-down': { |
|
|
n: 38, |
|
|
f: r => { |
|
|
var x = d3round(r * 1.2, 2); |
|
|
var y0 = d3round(r * 1.6, 2); |
|
|
var y1 = d3round(r * 0.8, 2); |
|
|
return 'M-' + x + ',-' + y1 + 'L0,0M' + x + ',-' + y1 + 'L0,0M0,' + y0 + 'L0,0'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
'y-left': { |
|
|
n: 39, |
|
|
f: r => { |
|
|
var y = d3round(r * 1.2, 2); |
|
|
var x0 = d3round(r * 1.6, 2); |
|
|
var x1 = d3round(r * 0.8, 2); |
|
|
return 'M' + x1 + ',' + y + 'L0,0M' + x1 + ',-' + y + 'L0,0M-' + x0 + ',0L0,0'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
'y-right': { |
|
|
n: 40, |
|
|
f: r => { |
|
|
var y = d3round(r * 1.2, 2); |
|
|
var x0 = d3round(r * 1.6, 2); |
|
|
var x1 = d3round(r * 0.8, 2); |
|
|
return 'M-' + x1 + ',' + y + 'L0,0M-' + x1 + ',-' + y + 'L0,0M' + x0 + ',0L0,0'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
'line-ew': { |
|
|
n: 41, |
|
|
f: r => { |
|
|
var rc = d3round(r * 1.4, 2); |
|
|
return 'M' + rc + ',0H-' + rc; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
'line-ns': { |
|
|
n: 42, |
|
|
f: r => { |
|
|
var rc = d3round(r * 1.4, 2); |
|
|
return 'M0,' + rc + 'V-' + rc; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
'line-ne': { |
|
|
n: 43, |
|
|
f: r => { |
|
|
var rx = d3round(r, 2); |
|
|
return 'M' + rx + ',-' + rx + 'L-' + rx + ',' + rx; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
'line-nw': { |
|
|
n: 44, |
|
|
f: r => { |
|
|
var rx = d3round(r, 2); |
|
|
return 'M' + rx + ',' + rx + 'L-' + rx + ',-' + rx; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true, |
|
|
noFill: true |
|
|
}, |
|
|
'arrow-up': { |
|
|
n: 45, |
|
|
f: r => { |
|
|
var rx = d3round(r, 2); |
|
|
var ry = d3round(r * 2, 2); |
|
|
return 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z'; |
|
|
}, |
|
|
noDot: true |
|
|
}, |
|
|
'arrow-down': { |
|
|
n: 46, |
|
|
f: r => { |
|
|
var rx = d3round(r, 2); |
|
|
var ry = d3round(r * 2, 2); |
|
|
return 'M0,0L-' + rx + ',-' + ry + 'H' + rx + 'Z'; |
|
|
}, |
|
|
noDot: true |
|
|
}, |
|
|
'arrow-left': { |
|
|
n: 47, |
|
|
f: r => { |
|
|
var rx = d3round(r * 2, 2); |
|
|
var ry = d3round(r, 2); |
|
|
return 'M0,0L' + rx + ',-' + ry + 'V' + ry + 'Z'; |
|
|
}, |
|
|
noDot: true |
|
|
}, |
|
|
'arrow-right': { |
|
|
n: 48, |
|
|
f: r => { |
|
|
var rx = d3round(r * 2, 2); |
|
|
var ry = d3round(r, 2); |
|
|
return 'M0,0L-' + rx + ',-' + ry + 'V' + ry + 'Z'; |
|
|
}, |
|
|
noDot: true |
|
|
}, |
|
|
'arrow-bar-up': { |
|
|
n: 49, |
|
|
f: r => { |
|
|
var rx = d3round(r, 2); |
|
|
var ry = d3round(r * 2, 2); |
|
|
return 'M-' + rx + ',0H' + rx + 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
}, |
|
|
'arrow-bar-down': { |
|
|
n: 50, |
|
|
f: r => { |
|
|
var rx = d3round(r, 2); |
|
|
var ry = d3round(r * 2, 2); |
|
|
return 'M-' + rx + ',0H' + rx + 'M0,0L-' + rx + ',-' + ry + 'H' + rx + 'Z'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
}, |
|
|
'arrow-bar-left': { |
|
|
n: 51, |
|
|
f: r => { |
|
|
var rx = d3round(r * 2, 2); |
|
|
var ry = d3round(r, 2); |
|
|
return 'M0,-' + ry + 'V' + ry + 'M0,0L' + rx + ',-' + ry + 'V' + ry + 'Z'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
}, |
|
|
'arrow-bar-right': { |
|
|
n: 52, |
|
|
f: r => { |
|
|
var rx = d3round(r * 2, 2); |
|
|
var ry = d3round(r, 2); |
|
|
return 'M0,-' + ry + 'V' + ry + 'M0,0L-' + rx + ',-' + ry + 'V' + ry + 'Z'; |
|
|
}, |
|
|
needLine: true, |
|
|
noDot: true |
|
|
} |
|
|
}; |
|
|
|
|
|
const DOTPATH = 'M0,0.5L0.5,0L0,-0.5L-0.5,0Z'; |
|
|
|
|
|
const drawing = { |
|
|
symbolFuncs: [], |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object.keys(SYMBOLDEFS).forEach(function(k) { |
|
|
var symDef = SYMBOLDEFS[k]; |
|
|
var n = symDef.n; |
|
|
drawing.symbolFuncs[n] = symDef.f; |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const createPathElement = (symbolNumber, color) => { |
|
|
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path'); |
|
|
|
|
|
path.setAttribute('d', createPathString(symbolNumber, 5)); |
|
|
|
|
|
path.setAttribute('transform', 'translate(15, 15)'); |
|
|
|
|
|
|
|
|
if ((100 <= symbolNumber && symbolNumber < 200) || 300 <= symbolNumber) { |
|
|
path.setAttribute('stroke', color); |
|
|
path.setAttribute('stroke-width', 0.5); |
|
|
path.setAttribute('stroke-opacity', 1); |
|
|
path.setAttribute('fill', 'white'); |
|
|
} |
|
|
|
|
|
|
|
|
if (symbolNumber < 100 || (200 <= symbolNumber && symbolNumber < 300)) { |
|
|
path.setAttribute('fill-opacity', 1); |
|
|
path.setAttribute('fill', color); |
|
|
} |
|
|
|
|
|
|
|
|
if (200 <= symbolNumber && symbolNumber < 300) { |
|
|
path.setAttribute('stroke', 'black'); |
|
|
path.setAttribute('stroke-width', 0.5); |
|
|
path.setAttribute('stroke-opacity', 1); |
|
|
} |
|
|
|
|
|
return path; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function createPathString(symbolNumber, r) { |
|
|
var base = symbolNumber % 100; |
|
|
return drawing.symbolFuncs[base](r) + (symbolNumber >= 200 ? DOTPATH : ''); |
|
|
} |
|
|
|
|
|
const NON_CONVERGENT_COLOR = 'rgba(0.8627, 0.8627, 0.8627)' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const setState = (partialState) => { |
|
|
window._state = {...state(), ...partialState}; |
|
|
|
|
|
renderSidebar(); |
|
|
if (isChart('table')) { |
|
|
renderTable(); |
|
|
} else { |
|
|
renderPlot(); |
|
|
} |
|
|
renderLegend(); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const state = (key = undefined) => { |
|
|
if (key) { |
|
|
return window._state[key]; |
|
|
} |
|
|
|
|
|
return window._state; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const config_mapping = { |
|
|
'dataset': 'dataset_selector', |
|
|
'objective': 'objective_selector', |
|
|
'objective_column': 'objective_column', |
|
|
'plot_kind': 'plot_kind', |
|
|
'scale': 'change_scale', |
|
|
'with_quantiles': 'change_shades', |
|
|
'suboptimal_curve': 'change_suboptimal', |
|
|
'relative_curve': 'change_relative', |
|
|
'hidden_curves': '', |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const renderPlot = () => { |
|
|
let div; |
|
|
let plot_with_legend_container = document.getElementById('plot_with_legend_container'); |
|
|
let plot_container = document.getElementById('plot_container'); |
|
|
|
|
|
hide(document.getElementById('table_container')); |
|
|
if (isChart('scatter')) { |
|
|
show(plot_container); |
|
|
show(plot_with_legend_container); |
|
|
div = plot_with_legend_container; |
|
|
} else { |
|
|
show(plot_container); |
|
|
hide(plot_with_legend_container); |
|
|
div = plot_container; |
|
|
} |
|
|
const data = getChartData(); |
|
|
const layout = getLayout(); |
|
|
|
|
|
Plotly.purge(plot_with_legend_container); |
|
|
Plotly.purge(plot_container); |
|
|
Plotly.react(div, data, layout); |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getChartData = () => { |
|
|
if (isChart('scatter')) { |
|
|
return getScatterData(); |
|
|
} else if (isChart('bar_chart')) { |
|
|
return getBarData(); |
|
|
} else if (isChart('boxplot')) { |
|
|
return getBoxplotData(); |
|
|
} |
|
|
throw new Error("Unknown plot kind : " + state().plot_kind); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getLayout = () => { |
|
|
if (isChart('scatter')) { |
|
|
return getScatterChartLayout(); |
|
|
} else if (isChart('bar_chart')) { |
|
|
return getBarChartLayout(); |
|
|
} else if (isChart('boxplot')) { |
|
|
return getBoxplotChartLayout(); |
|
|
} |
|
|
throw new Error("Unknown plot kind : " + state().plot_kind); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getBarData = () => { |
|
|
if (!isAvailable()) return [{type:'bar'}]; |
|
|
|
|
|
const {x, y, colors, texts} = barDataToArrays() |
|
|
|
|
|
|
|
|
const barData = [{ |
|
|
type: 'bar', |
|
|
x: x, |
|
|
y: y, |
|
|
marker: { |
|
|
color: colors, |
|
|
}, |
|
|
text: texts, |
|
|
textposition: 'inside', |
|
|
insidetextanchor: 'middle', |
|
|
textangle: '-90', |
|
|
}]; |
|
|
|
|
|
getPlotData().data.forEach(curveData => { |
|
|
|
|
|
|
|
|
curveText = curveData.text || '' |
|
|
if (curveText === '') { |
|
|
let nbTimes = curveData.y.length |
|
|
|
|
|
barData.push({ |
|
|
type: 'scatter', |
|
|
x: new Array(nbTimes).fill(curveData.label), |
|
|
y: curveData.y, |
|
|
marker: { |
|
|
color: 'black', |
|
|
symbol: 'line-ew-open' |
|
|
}, |
|
|
line: { |
|
|
width: 0 |
|
|
}, |
|
|
}); |
|
|
} |
|
|
}); |
|
|
|
|
|
return barData; |
|
|
}; |
|
|
|
|
|
|
|
|
const getBoxplotData = () => { |
|
|
const boxplotData = []; |
|
|
|
|
|
getPlotData().data.forEach(plotData => { |
|
|
plotData.x.forEach((label, i) => { |
|
|
boxplotData.push({ |
|
|
y: plotData.y[i], |
|
|
name: label, |
|
|
type: 'box', |
|
|
line: {color: plotData.color}, |
|
|
fillcolor: plotData.color, |
|
|
boxpoints: false |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
return boxplotData; |
|
|
}; |
|
|
|
|
|
|
|
|
const getPlotData = () => { |
|
|
let dropdowns = getPlotDropdowns(); |
|
|
let dropdown_values = dropdowns.map(dropdown => state()[dropdown]); |
|
|
let data_key = [state().plot_kind, ...dropdown_values].join('_'); |
|
|
return window._plots[state().plot_kind][data_key]; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getScatterData = () => { |
|
|
|
|
|
const curves = []; |
|
|
|
|
|
|
|
|
let min_y = Infinity; |
|
|
getPlotData().data.forEach(curveData => { |
|
|
min_y = Math.min(min_y, ...curveData.y); |
|
|
}); |
|
|
min_y -= 1e-10; |
|
|
|
|
|
getPlotData().data.forEach(curveData => { |
|
|
label = curveData.label; |
|
|
y = curveData.y; |
|
|
if ("x_low" in curveData && "x_high" in curveData && state().with_quantiles) { |
|
|
x_low = curveData.x_low; |
|
|
x_high = curveData.x_high; |
|
|
} |
|
|
if (state().suboptimal_curve) { |
|
|
y = y.map(value => value - min_y); |
|
|
if ("x_low" in curveData && "x_high" in curveData && state().with_quantiles) { |
|
|
x_low = x_low.map(value => value - min_y); |
|
|
x_high = x_high.map(value => value - min_y); |
|
|
} |
|
|
} |
|
|
if (state().relative_curve) { |
|
|
y = y.map(value => value / (y[0] - min_y)); |
|
|
if ("x_low" in curveData && "x_high" in curveData && state().with_quantiles) { |
|
|
x_low = x_low.map(value => value / (y[0] - min_y)); |
|
|
x_high = x_high.map(value => value / (y[0] - min_y)); |
|
|
} |
|
|
} |
|
|
curves.push({ |
|
|
type: 'scatter', |
|
|
name: label, |
|
|
mode: 'lines+markers', |
|
|
line: { |
|
|
color: curveData.color, |
|
|
}, |
|
|
marker: { |
|
|
symbol: curveData.marker, |
|
|
size: 10, |
|
|
color: curveData.color, |
|
|
}, |
|
|
legendgroup: label, |
|
|
hovertemplate: label + ' <br> (%{x:.1e},%{y:.1e}) <extra></extra>', |
|
|
visible: isVisible(label) ? true : 'legendonly', |
|
|
x: curveData.x, |
|
|
y: y, |
|
|
}); |
|
|
|
|
|
if ("x_low" in curveData && "x_high" in curveData && state().with_quantiles) { |
|
|
curves.push({ |
|
|
type: 'scatter', |
|
|
mode: 'lines', |
|
|
legend: false, |
|
|
line: { |
|
|
width: 0, |
|
|
color: curveData.color, |
|
|
}, |
|
|
legendgroup: label, |
|
|
hovertemplate: '(%{x:.1e},%{y:.1e}) <extra></extra>', |
|
|
visible: isVisible(label) ? true : 'legendonly', |
|
|
x: x_low, |
|
|
y: y, |
|
|
}, { |
|
|
type: 'scatter', |
|
|
mode: 'lines', |
|
|
showlegend: false, |
|
|
fill: 'tonextx', |
|
|
line: { |
|
|
width: 0, |
|
|
color: curveData.color, |
|
|
}, |
|
|
legendgroup: label, |
|
|
hovertemplate: '(%{x:.1e},%{y:.1e}) <extra></extra>', |
|
|
visible: isVisible(label) ? true : 'legendonly', |
|
|
x: x_high, |
|
|
y: y, |
|
|
}); |
|
|
} |
|
|
}); |
|
|
|
|
|
return curves; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const DEFAULT_CONFIG_OPTIONS = [ |
|
|
"plot_kind", |
|
|
"hidden_curves", |
|
|
"scale", |
|
|
"with_quantiles", |
|
|
"suboptimal_curve", |
|
|
"relative_curve", |
|
|
]; |
|
|
|
|
|
const setConfig = (config_item) => { |
|
|
if (!config_item) { |
|
|
return; |
|
|
} |
|
|
|
|
|
|
|
|
let config_name = config_item.textContent; |
|
|
|
|
|
if (config_item.tagName === "SELECT") { |
|
|
config_name = config_item.value; |
|
|
} |
|
|
|
|
|
|
|
|
setAllViewsToNonActive(); |
|
|
config_item.classList.add('active'); |
|
|
|
|
|
if (config_item.tagName === "SELECT") { |
|
|
config_item.value = config_name; |
|
|
} |
|
|
|
|
|
if (config_name !== "no_selected_view") { |
|
|
|
|
|
let config = window.metadata.plot_configs[config_name]; |
|
|
let update = {}; |
|
|
|
|
|
const lims = ['hidden_curves'] |
|
|
let kind = state().plot_kind; |
|
|
if ("plot_kind" in config) { |
|
|
kind = config["plot_kind"]; |
|
|
} |
|
|
for(let key in config){ |
|
|
const value = config[key]; |
|
|
if (key in config_mapping) { |
|
|
if (config_mapping[key] !== '') { |
|
|
div_key = config_mapping[key]; |
|
|
document.getElementById(div_key).value = value; |
|
|
} |
|
|
} |
|
|
else { |
|
|
|
|
|
|
|
|
|
|
|
if (!key.startsWith(kind)) { |
|
|
key = kind + "_" + key; |
|
|
} |
|
|
div_key = "change_" + key; |
|
|
try { |
|
|
document.getElementById(div_key).value = value; |
|
|
} catch (error) { |
|
|
|
|
|
console.warn("Unknown config parameter: '" + key + "'"); |
|
|
} |
|
|
} |
|
|
update[key] = value; |
|
|
} |
|
|
|
|
|
setState(update); |
|
|
|
|
|
|
|
|
renderPlot(); |
|
|
} |
|
|
}; |
|
|
|
|
|
const saveView = () => { |
|
|
let n_configs = Object.keys(window.metadata.plot_configs).length; |
|
|
|
|
|
let config_name = prompt("Config Name", "Config " + n_configs); |
|
|
if(config_name === null || config_name === ""){ |
|
|
return; |
|
|
} |
|
|
|
|
|
|
|
|
let config = {}; |
|
|
dropdowns = getPlotDropdowns(); |
|
|
for(let key of dropdowns) { |
|
|
config[key] = state()[key]; |
|
|
} |
|
|
for (let option of DEFAULT_CONFIG_OPTIONS) { |
|
|
config[option] = state()[option]; |
|
|
} |
|
|
|
|
|
let noViewAvailableElement = document.getElementById('no_view_available'); |
|
|
|
|
|
if (noViewAvailableElement) { |
|
|
noViewAvailableElement.classList.add('hidden'); |
|
|
} |
|
|
setAllViewsToNonActive(); |
|
|
|
|
|
|
|
|
if (!(config_name in window.metadata.plot_configs)){ |
|
|
let viewTabs = document.getElementById("view-tabs"); |
|
|
let node = document.createElement("span"); |
|
|
node.innerHTML = config_name; |
|
|
node.className = "view border-transparent whitespace-nowrap border-b-2 py-4 px-1 text-sm text-gray-400 hover:text-gray-500 hover:border-gray-300 cursor-pointer active"; |
|
|
node.onclick = function() {setConfig(node)}; |
|
|
viewTabs.appendChild(node); |
|
|
|
|
|
let option = document.createElement("option"); |
|
|
option.setAttribute("value", config_name); |
|
|
option.innerHTML = config_name; |
|
|
let tabs = document.getElementById("tabs"); |
|
|
tabs.appendChild(option); |
|
|
tabs.value = config_name; |
|
|
} |
|
|
|
|
|
|
|
|
window.metadata.plot_configs[config_name] = config; |
|
|
|
|
|
return false; |
|
|
}; |
|
|
|
|
|
const setAllViewsToNonActive = () => { |
|
|
let view_items = document.getElementsByClassName('view'); |
|
|
for (let i = 0; i < view_items.length; i++) { |
|
|
view_items.item(i).classList.remove('active'); |
|
|
} |
|
|
|
|
|
document.getElementById('tabs').value = "no_selected_view"; |
|
|
} |
|
|
|
|
|
const downloadBlob = (blob, name) => { |
|
|
var tempLink = document.createElement("a"); |
|
|
tempLink.setAttribute('href', URL.createObjectURL(blob)); |
|
|
tempLink.setAttribute('download', name); |
|
|
tempLink.click(); |
|
|
URL.revokeObjectURL(tempLink.href); |
|
|
|
|
|
|
|
|
return false; |
|
|
}; |
|
|
|
|
|
const exportConfigs = () => { |
|
|
|
|
|
var config_yaml = "plot_configs:\n" |
|
|
|
|
|
for(var config_name in window.metadata.plot_configs){ |
|
|
var config = window.metadata.plot_configs[config_name]; |
|
|
config_yaml += " " + config_name + ":\n"; |
|
|
for(var key in config){ |
|
|
var value = config[key]; |
|
|
if (key === 'xlim' || key === 'ylim') |
|
|
value = "[" + value + "]"; |
|
|
config_yaml += " " + key + ": " + value + "\n"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var blob = new Blob([config_yaml], {type: 'text/yaml'}); |
|
|
return downloadBlob(blob, 'config.yml'); |
|
|
}; |
|
|
|
|
|
const exportHTML = () => { |
|
|
var blob = new Blob( |
|
|
[document.documentElement.innerHTML], |
|
|
{type: 'text/html'} |
|
|
); |
|
|
return downloadBlob(blob, location.pathname.split("/").pop()); |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const renderSidebar = () => { |
|
|
renderScaleSelector(); |
|
|
renderWithQuantilesToggle(); |
|
|
renderSuboptimalRelativeToggle(); |
|
|
mapSelectorsToState(); |
|
|
renderPlotDropdowns(); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const renderScaleSelector = () => { |
|
|
if (isChart(['bar_chart', 'table'])) { |
|
|
hide(document.querySelectorAll("#scale-form-group")); |
|
|
} else { |
|
|
show(document.querySelectorAll("#scale-form-group"), 'block'); |
|
|
} |
|
|
|
|
|
if (isChart('boxplot')) { |
|
|
hide(document.querySelectorAll(".other_plot_option")); |
|
|
show(document.querySelectorAll(".boxplot_option")); |
|
|
} else { |
|
|
hide(document.querySelectorAll(".boxplot_option")); |
|
|
show(document.querySelectorAll(".other_plot_option")); |
|
|
} |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const renderWithQuantilesToggle = () => { |
|
|
if (isChart('scatter')) { |
|
|
show(document.querySelectorAll("#change-shades-form-group"), 'flex'); |
|
|
} else { |
|
|
hide(document.querySelectorAll("#change-shades-form-group")); |
|
|
} |
|
|
}; |
|
|
|
|
|
const renderSuboptimalRelativeToggle = () => { |
|
|
if (isChart('scatter')) { |
|
|
show(document.querySelectorAll("#change-relative-suboptimal-form-group"), 'flex'); |
|
|
} else { |
|
|
hide(document.querySelectorAll("#change-relative-suboptimal-form-group")); |
|
|
} |
|
|
}; |
|
|
|
|
|
const renderPlotDropdowns = () => { |
|
|
hide(document.querySelectorAll(`[id$='-custom-params-container']`)); |
|
|
show(document.querySelectorAll(`#${state().plot_kind}-custom-params-container`), 'block'); |
|
|
|
|
|
for (let dropdown of document.getElementsByTagName('select')) { |
|
|
if (dropdown.options.length <= 1) { |
|
|
hide(dropdown.parentElement.parentElement); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
const mapSelectorsToState = () => { |
|
|
const currentState = state(); |
|
|
document.getElementById('plot_kind').value = currentState.plot_kind; |
|
|
document.getElementById('change_scale').value = currentState.scale; |
|
|
document.getElementById('change_shades').checked = currentState.with_quantiles; |
|
|
document.getElementById('change_suboptimal').checked = currentState.suboptimal_curve; |
|
|
document.getElementById('change_relative').checked = currentState.relative_curve; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const data = (curve = null) => { |
|
|
let curves = getPlotData().data.reduce( |
|
|
(map, obj) => {map[obj.label] = obj; return map}, {} |
|
|
); |
|
|
return curve ? curves[curve]: curves; |
|
|
} |
|
|
|
|
|
const getPlotDropdowns = () => { |
|
|
let kind = state().plot_kind; |
|
|
let params = []; |
|
|
Object.keys(state()).forEach(key => { |
|
|
if (key.startsWith(kind)) { |
|
|
params.push(key); |
|
|
} |
|
|
}); |
|
|
return params; |
|
|
} |
|
|
|
|
|
const getCurves = () => Object.keys(data()); |
|
|
|
|
|
const isChart = chart => { |
|
|
if (typeof chart === 'string' || chart instanceof String) { |
|
|
chart = [chart] |
|
|
} |
|
|
|
|
|
let plot_kind = state().plot_kind; |
|
|
if (!["bar_chart", "boxplot"].includes(plot_kind)) { |
|
|
let custom_data = getPlotData(); |
|
|
plot_kind = custom_data.type; |
|
|
} |
|
|
return chart.includes(plot_kind); |
|
|
} |
|
|
|
|
|
const isVisible = curve => !state().hidden_curves.includes(curve); |
|
|
|
|
|
const isSolverAvailable = solver => data(solver) !== null; |
|
|
|
|
|
const isSmallScreen = () => window.screen.availHeight < 900; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isAvailable = () => { |
|
|
let isNotAvailable = true; |
|
|
|
|
|
getCurves().forEach(solver => { |
|
|
if (isSolverAvailable(solver)) { |
|
|
isNotAvailable = false; |
|
|
} |
|
|
}); |
|
|
|
|
|
return !isNotAvailable; |
|
|
} |
|
|
|
|
|
const getMedian = (arr) => { |
|
|
const sorted = [...arr].sort((a, b) => a - b); |
|
|
let median = null; |
|
|
if (sorted.length > 0) { |
|
|
const mid = Math.floor(sorted.length / 2); |
|
|
median = (sorted.length % 2 === 1) ? sorted[mid] : (sorted[mid - 1] + sorted[mid]) / 2; |
|
|
} |
|
|
return median; |
|
|
} |
|
|
|
|
|
const barDataToArrays = () => { |
|
|
const colors = [], texts = [], x = [], y = []; |
|
|
|
|
|
getPlotData().data.forEach(plotData => { |
|
|
x.push(plotData.label); |
|
|
y.push(getMedian(plotData.y)); |
|
|
const plotText = plotData.text || ''; |
|
|
colors.push(plotText === '' ? plotData.color : NON_CONVERGENT_COLOR); |
|
|
texts.push(plotText); |
|
|
}); |
|
|
|
|
|
return {x, y, colors, texts} |
|
|
} |
|
|
|
|
|
const getScale = () => { |
|
|
return _getScale(state().scale) |
|
|
} |
|
|
|
|
|
const _getScale = (scale) => { |
|
|
switch (scale) { |
|
|
case 'loglog': |
|
|
return { |
|
|
xaxis: 'log', |
|
|
yaxis: 'log', |
|
|
}; |
|
|
case 'log': |
|
|
return { |
|
|
xaxis: 'log', |
|
|
yaxis: 'log', |
|
|
}; |
|
|
case "semilog-y": |
|
|
return { |
|
|
xaxis: 'linear', |
|
|
yaxis: 'log', |
|
|
}; |
|
|
case "semilog-x": |
|
|
return { |
|
|
xaxis: 'log', |
|
|
yaxis: 'linear', |
|
|
}; |
|
|
case "linear": |
|
|
return { |
|
|
xaxis: 'linear', |
|
|
yaxis: 'linear', |
|
|
}; |
|
|
default: |
|
|
console.error('Unknown scale value : ' + state().scale); |
|
|
} |
|
|
} |
|
|
|
|
|
const getBarChartLayout = () => { |
|
|
let data = getPlotData(); |
|
|
const layout = { |
|
|
autosize: true, |
|
|
modebar: { |
|
|
orientation: 'v', |
|
|
}, |
|
|
yaxis: { |
|
|
type: 'log', |
|
|
title: data["ylabel"], |
|
|
tickformat: '.1e', |
|
|
gridcolor: '#ffffff', |
|
|
}, |
|
|
xaxis: { |
|
|
tickangle: -60, |
|
|
ticktext: Array(data.data.map(d => d.label)), |
|
|
}, |
|
|
showlegend: false, |
|
|
title: data["title"], |
|
|
plot_bgcolor: '#e5ecf6', |
|
|
}; |
|
|
|
|
|
if (isSmallScreen()) { |
|
|
layout.dragmode = false; |
|
|
} |
|
|
|
|
|
|
|
|
if (!isAvailable()) { |
|
|
layout.annotations = [{ |
|
|
xref: 'paper', |
|
|
yref: 'paper', |
|
|
x: 0.5, |
|
|
y: 0.5, |
|
|
text: 'Not available', |
|
|
showlegend: false, |
|
|
showarrow: false, |
|
|
font: { |
|
|
color: 'black', |
|
|
size: 32, |
|
|
} |
|
|
}]; |
|
|
} |
|
|
return layout; |
|
|
}; |
|
|
|
|
|
const getBoxplotChartLayout = () => { |
|
|
const plot_info = getPlotData() |
|
|
const layout = { |
|
|
autosize: true, |
|
|
modebar: { |
|
|
orientation: 'v', |
|
|
}, |
|
|
yaxis: { |
|
|
type: getScale().yaxis, |
|
|
title: plot_info["ylabel"], |
|
|
tickformat: '.1e', |
|
|
gridcolor: '#ffffff', |
|
|
}, |
|
|
xaxis: { |
|
|
tickangle: (typeof plot_info.data[0].x[0] === "string") ? -60 : 0, |
|
|
}, |
|
|
showlegend: false, |
|
|
title: plot_info["title"], |
|
|
plot_bgcolor: '#e5ecf6', |
|
|
}; |
|
|
|
|
|
if (isSmallScreen()) { |
|
|
layout.dragmode = false; |
|
|
} |
|
|
|
|
|
return layout; |
|
|
}; |
|
|
|
|
|
|
|
|
const getScatterChartLayout = () => { |
|
|
let customData = getPlotData(); |
|
|
|
|
|
const layout = { |
|
|
autosize: true, |
|
|
modebar: { |
|
|
orientation: 'v', |
|
|
}, |
|
|
showlegend: false, |
|
|
legend: { |
|
|
title: { |
|
|
text: 'Solvers', |
|
|
}, |
|
|
orientation: 'h', |
|
|
xanchor: 'center', |
|
|
yanchor: 'top', |
|
|
y: -.2, |
|
|
x: .5 |
|
|
}, |
|
|
xaxis: { |
|
|
type: getScale().xaxis, |
|
|
title: customData.xlabel, |
|
|
tickformat: '.1e', |
|
|
tickangle: -45, |
|
|
gridcolor: '#ffffff', |
|
|
zeroline : false, |
|
|
}, |
|
|
yaxis: { |
|
|
type: getScale().yaxis, |
|
|
title: customData.ylabel, |
|
|
tickformat: '.1e', |
|
|
gridcolor: '#ffffff', |
|
|
zeroline : false, |
|
|
}, |
|
|
title: `${customData.title}`, |
|
|
plot_bgcolor: '#e5ecf6', |
|
|
}; |
|
|
|
|
|
if (isSmallScreen()) { |
|
|
layout.dragmode = false; |
|
|
} |
|
|
|
|
|
if (!isAvailable()) { |
|
|
layout.annotations = [{ |
|
|
xref: 'paper', |
|
|
yref: 'paper', |
|
|
x: 0.5, |
|
|
y: 0.5, |
|
|
text: 'Not available', |
|
|
showarrow: false, |
|
|
font: { |
|
|
color: 'black', |
|
|
size: 32, |
|
|
} |
|
|
}]; |
|
|
}; |
|
|
|
|
|
return layout; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const hide = HTMLElements => { |
|
|
if (HTMLElements instanceof Element) { |
|
|
HTMLElements = [HTMLElements] |
|
|
} |
|
|
|
|
|
HTMLElements.forEach(h => h.style.display = 'none'); |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const show = (HTMLElements, style = '') => { |
|
|
if (HTMLElements instanceof Element) { |
|
|
HTMLElements = [HTMLElements] |
|
|
} |
|
|
|
|
|
HTMLElements.forEach(h => h.style.display = style); |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getCurveFromEvent = event => { |
|
|
const target = event.currentTarget; |
|
|
|
|
|
for (let i = 0; i < target.children.length; i++) { |
|
|
if (target.children[i].className === 'curve') { |
|
|
return target.children[i].firstChild.nodeValue; |
|
|
} |
|
|
} |
|
|
|
|
|
return null; |
|
|
}; |
|
|
|
|
|
const purgeHiddenCurves = () => setState({hidden_curves: []}); |
|
|
|
|
|
const hideAllCurvesExcept = curve => {setState({hidden_curves: getCurves().filter(elmt => elmt !== curve)})}; |
|
|
|
|
|
const hideCurve = curve => isVisible(curve) ? setState({hidden_curves: [...state().hidden_curves, curve]}) : null; |
|
|
|
|
|
const showCurve = curve => setState({hidden_curves: state().hidden_curves.filter(hidden => hidden !== curve)}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleCurveClick = curve => { |
|
|
if (!isVisible(curve)) { |
|
|
showCurve(curve); |
|
|
|
|
|
return; |
|
|
} |
|
|
|
|
|
hideCurve(curve); |
|
|
}; |
|
|
|
|
|
const handleCurveDoubleClick = curve => { |
|
|
|
|
|
if (state().hidden_curves.length === getCurves().length - 1) { |
|
|
purgeHiddenCurves(); |
|
|
|
|
|
return; |
|
|
} |
|
|
|
|
|
hideAllCurvesExcept(curve); |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let tableFloatPrecision = 4; |
|
|
|
|
|
const valueToFixed = (value) => { |
|
|
if (typeof value === 'number' && !Number.isInteger(value)) { |
|
|
return value.toFixed(tableFloatPrecision); |
|
|
} |
|
|
return value; |
|
|
} |
|
|
|
|
|
function renderTable() { |
|
|
|
|
|
let table_container = document.getElementById('table_container'); |
|
|
hide(document.getElementById('plot_container')); |
|
|
show(table_container); |
|
|
|
|
|
table_container.innerHTML = ""; |
|
|
|
|
|
const plotData = getPlotData(); |
|
|
if (!plotData || !plotData.columns || !plotData.data) { |
|
|
table_container.innerHTML = `<div >No data available</div>`; |
|
|
return; |
|
|
} |
|
|
|
|
|
const { columns, data: rows } = plotData; |
|
|
|
|
|
|
|
|
const card = document.createElement("div"); |
|
|
card.className = "w-full bg-white overflow-hidden border border-gray-200 mx-auto"; |
|
|
|
|
|
|
|
|
const table = document.createElement("table"); |
|
|
table.className = "w-full border-collapse text-left"; |
|
|
|
|
|
|
|
|
const thead = document.createElement("thead"); |
|
|
thead.className = "bg-gray-50"; |
|
|
const trHead = document.createElement("tr"); |
|
|
|
|
|
columns.forEach(headerText => { |
|
|
const th = document.createElement("th"); |
|
|
th.innerText = headerText; |
|
|
th.className = "px-4 py-4 text-xs font-bold uppercase tracking-wider border-b border-gray-200"; |
|
|
trHead.appendChild(th); |
|
|
}); |
|
|
thead.appendChild(trHead); |
|
|
table.appendChild(thead); |
|
|
|
|
|
|
|
|
const tbody = document.createElement("tbody"); |
|
|
|
|
|
rows.forEach((rowData, index) => { |
|
|
const tr = document.createElement("tr"); |
|
|
tr.className = "bg-white transition-colors duration-150 ease-in-out hover:bg-gray-50"; |
|
|
|
|
|
tr.onmouseenter = () => tr.style.backgroundColor = "#f9fafb"; |
|
|
tr.onmouseleave = () => tr.style.backgroundColor = "#fff"; |
|
|
|
|
|
rowData.forEach(cellValue => { |
|
|
const td = document.createElement("td"); |
|
|
td.innerHTML = valueToFixed(cellValue); |
|
|
|
|
|
let cellClasses = "px-4 py-4 text-sm text-gray-700"; |
|
|
if (index !== rows.length - 1) { |
|
|
cellClasses += " border-b border-gray-100"; |
|
|
} |
|
|
td.className = cellClasses; |
|
|
tr.appendChild(td); |
|
|
}); |
|
|
tbody.appendChild(tr); |
|
|
}); |
|
|
|
|
|
|
|
|
const footerWrapper = document.createElement("div"); |
|
|
footerWrapper.className = "w-full"; |
|
|
|
|
|
const footer = document.createElement("div"); |
|
|
footer.className = "flex justify-between items-center p-4"; |
|
|
|
|
|
|
|
|
const precisionContainer = document.createElement("div"); |
|
|
precisionContainer.className = "flex items-center gap-2 text-sm text-gray-700"; |
|
|
|
|
|
const createPrecBtn = (text) => { |
|
|
const btn = document.createElement("button"); |
|
|
btn.innerText = text; |
|
|
btn.className = "px-3 py-1 border border-gray-300 bg-white rounded cursor-pointer hover:bg-gray-100"; |
|
|
return btn; |
|
|
}; |
|
|
|
|
|
const btnDec = createPrecBtn("-"); |
|
|
const btnInc = createPrecBtn("+"); |
|
|
const labelPrec = document.createElement("span"); |
|
|
labelPrec.innerText = `Float Precision: ${tableFloatPrecision}`; |
|
|
labelPrec.className = "mx-2 px-4"; |
|
|
|
|
|
btnDec.onclick = () => { |
|
|
if (tableFloatPrecision > 0) { |
|
|
tableFloatPrecision--; |
|
|
renderTable(); |
|
|
} |
|
|
}; |
|
|
|
|
|
btnInc.onclick = () => { |
|
|
tableFloatPrecision++; |
|
|
renderTable(); |
|
|
}; |
|
|
|
|
|
precisionContainer.appendChild(btnDec); |
|
|
precisionContainer.appendChild(labelPrec); |
|
|
precisionContainer.appendChild(btnInc); |
|
|
|
|
|
|
|
|
const exportButton = document.createElement("button"); |
|
|
exportButton.id = "table-export"; |
|
|
exportButton.innerText = "Export LaTeX"; |
|
|
exportButton.className = "inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"; |
|
|
|
|
|
exportButton.addEventListener('click', () => { |
|
|
exportTable(); |
|
|
}); |
|
|
|
|
|
table.appendChild(tbody); |
|
|
card.appendChild(table); |
|
|
table_container.appendChild(card); |
|
|
|
|
|
footer.appendChild(precisionContainer); |
|
|
footer.appendChild(exportButton); |
|
|
footerWrapper.appendChild(footer); |
|
|
table_container.appendChild(footerWrapper); |
|
|
} |
|
|
|
|
|
|
|
|
async function exportTable() { |
|
|
const button = document.getElementById("table-export"); |
|
|
const defaultText = button.innerHTML; |
|
|
button.innerHTML = "Copying"; |
|
|
|
|
|
const plotData = getPlotData(); |
|
|
|
|
|
let value = "\\begin{tabular}{l"; |
|
|
value += "c".repeat(plotData.columns.length); |
|
|
value += "}\n"; |
|
|
value += "\\hline\n"; |
|
|
|
|
|
value += plotData.columns[0].replace('_', '\\_'); |
|
|
plotData.columns.slice(1).forEach(metric => value += ` & ${metric.replace('_', '\\_')}`); |
|
|
|
|
|
value += " \\\\\n"; |
|
|
value += "\\hline\n"; |
|
|
|
|
|
plotData.data.forEach(rowData => { |
|
|
value += valueToFixed(rowData[0]).toString().replace('_', '\\_'); |
|
|
rowData.slice(1).forEach(cell => { |
|
|
value += ` & ${valueToFixed(cell).toString().replace('_', '\\_')}`; |
|
|
}); |
|
|
value += " \\\\\n"; |
|
|
}); |
|
|
|
|
|
value += "\\hline\n"; |
|
|
value += "\\end{tabular}"; |
|
|
|
|
|
try { |
|
|
await navigator.clipboard.writeText(value); |
|
|
button.innerHTML = "Copied in clipboard!"; |
|
|
setTimeout(() => button.innerHTML = defaultText, 2500); |
|
|
} catch (err) { |
|
|
button.innerHTML = "Error!"; |
|
|
setTimeout(() => button.innerHTML = defaultText, 2500); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const renderLegend = () => { |
|
|
const legendContainer = document.getElementById('legend_container') |
|
|
if (!isChart('scatter')) { |
|
|
hide(legendContainer); |
|
|
return; |
|
|
} else { |
|
|
show(legendContainer); |
|
|
} |
|
|
|
|
|
const legend = document.getElementById('plot_legend'); |
|
|
|
|
|
legend.innerHTML = ''; |
|
|
const curvesDescription = window.metadata["solvers_description"]; |
|
|
|
|
|
getCurves().forEach(curve => { |
|
|
const curve_data = data(curve); |
|
|
const color = curve_data.color; |
|
|
const symbolNumber = curve_data.marker; |
|
|
|
|
|
let legendItem = createLegendItem(curve, color, symbolNumber); |
|
|
|
|
|
|
|
|
if(curvesDescription === null || curvesDescription === undefined) { |
|
|
legend.appendChild(legendItem); |
|
|
return; |
|
|
} |
|
|
|
|
|
let payload = createSolverDescription( |
|
|
legendItem, { |
|
|
description: curvesDescription[curve], |
|
|
} |
|
|
); |
|
|
if (payload !== undefined) { |
|
|
legend.appendChild(payload); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const createLegendItem = (curve, color, symbolNumber) => { |
|
|
|
|
|
const item = document.createElement('div'); |
|
|
item.style.display = 'flex'; |
|
|
item.style.flexDirection = 'row'; |
|
|
item.style.alignItems = 'center'; |
|
|
item.style.position = 'relative'; |
|
|
item.style.cursor = 'pointer'; |
|
|
item.className = 'bg-white py-1 px-4 shadow-sm mt-2 rounded' |
|
|
|
|
|
if (!isVisible(curve)) { |
|
|
item.style.opacity = 0.5; |
|
|
} |
|
|
|
|
|
|
|
|
item.addEventListener('click', event => { |
|
|
curve = getCurveFromEvent(event); |
|
|
|
|
|
if (!getCurves().includes(curve)) { |
|
|
console.error('An invalid curve has been handled during the click event.'); |
|
|
|
|
|
return; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!window.clickedCurve) { |
|
|
window.clickedCurve = curve; |
|
|
|
|
|
|
|
|
window.clickedTimeout = setTimeout(() => { |
|
|
window.clickedCurve = null; |
|
|
|
|
|
handleCurveClick(curve); |
|
|
}, 500); |
|
|
} else if (window.clickedCurve === curve) { |
|
|
clearTimeout(window.clickedTimeout); |
|
|
window.clickedCurve = null; |
|
|
handleCurveDoubleClick(curve); |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
const textContainer = document.createElement('div'); |
|
|
textContainer.style.marginLeft = '0.5rem'; |
|
|
textContainer.className = 'curve'; |
|
|
textContainer.appendChild(document.createTextNode(curve)); |
|
|
|
|
|
|
|
|
const hBar = document.createElement('div'); |
|
|
hBar.style.height = '2px'; |
|
|
hBar.style.width = '30px'; |
|
|
hBar.style.backgroundColor = color; |
|
|
hBar.style.position = 'absolute'; |
|
|
hBar.style.left = '1em'; |
|
|
hBar.style.zIndex = 10; |
|
|
|
|
|
|
|
|
item.appendChild(createSymbol(symbolNumber, color)); |
|
|
item.appendChild(hBar); |
|
|
item.appendChild(textContainer); |
|
|
|
|
|
return item; |
|
|
} |
|
|
|
|
|
|
|
|
function createSolverDescription(legendItem, { description }) { |
|
|
if (description === null || description === undefined || description === "") |
|
|
return legendItem; |
|
|
|
|
|
let descriptionContainer = document.createElement("div"); |
|
|
descriptionContainer.setAttribute("class", "curve-description-container") |
|
|
|
|
|
descriptionContainer.innerHTML = ` |
|
|
<div class="curve-description-content text-sm"> |
|
|
<span class="curve-description-body">${description}</span> |
|
|
</div> |
|
|
`; |
|
|
|
|
|
descriptionContainer.prepend(legendItem); |
|
|
|
|
|
return descriptionContainer; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const createSymbol = (symbolNumber, color) => { |
|
|
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); |
|
|
|
|
|
svg.setAttribute('width', 30); |
|
|
svg.setAttribute('height', 30); |
|
|
svg.style.zIndex = 20; |
|
|
|
|
|
|
|
|
svg.appendChild(createPathElement(symbolNumber, color)); |
|
|
|
|
|
return svg; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById('btn-plot-config').addEventListener('click', () => { |
|
|
const elmt = document.getElementById('mobile-plot-form'); |
|
|
|
|
|
if (elmt.style.display === 'block') { |
|
|
elmt.style.display = 'none'; |
|
|
|
|
|
return; |
|
|
} |
|
|
|
|
|
elmt.style.display = 'block'; |
|
|
}); |
|
|
|
|
|
document.getElementById('btn-main-menu').addEventListener('click', () => { |
|
|
const elmt = document.getElementById('mobile-menu'); |
|
|
|
|
|
if (elmt.style.display === 'block') { |
|
|
elmt.style.display = 'none'; |
|
|
|
|
|
return; |
|
|
} |
|
|
|
|
|
elmt.style.display = 'block'; |
|
|
}); |
|
|
|
|
|
</script> |
|
|
<script> |
|
|
|
|
|
|
|
|
(function() { |
|
|
function sendHeight() { |
|
|
try { |
|
|
if (window.self !== window.top) { |
|
|
window.parent.postMessage( |
|
|
{ source: "benchopt-result-height", height: document.body.scrollHeight }, |
|
|
"*" |
|
|
); |
|
|
} |
|
|
} catch (e) { } |
|
|
} |
|
|
|
|
|
|
|
|
window.addEventListener("load", sendHeight); |
|
|
window.addEventListener("resize", sendHeight); |
|
|
|
|
|
|
|
|
const observer = new MutationObserver(sendHeight); |
|
|
observer.observe(document.body, { childList: true, subtree: true }); |
|
|
} |
|
|
)(); |
|
|
</script> |
|
|
</body> |
|
|
</html> |
|
|
|