Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ jobs:
prefix = "rtichoke/_vendor/rtichoke_viz/"
required = {
f"{prefix}VENDORED_FROM",
f"{prefix}rtichoke-viz-0.14.0.tar.gz",
f"{prefix}rtichoke-viz-0.18.0.tar.gz",
f"{prefix}rtichoke-viz.js",
f"{prefix}rtichoke-viz.css",
f"{prefix}rtichoke-viz.schema.json",
f"{prefix}rtichoke-viz-v2.schema.json",
f"{prefix}rtichoke-viz-report.schema.json",
}
assert required <= names
assert f"{prefix}rtichoke-viz-0.10.0.tar.gz" not in names
assert f"{prefix}rtichoke-viz-0.14.0.tar.gz" not in names
PY

- name: Run tests
Expand Down
8 changes: 4 additions & 4 deletions src/rtichoke/_vendor/rtichoke_viz/VENDORED_FROM
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repository=https://github.com/uriahf/rtichoke_viz
release=v0.14.0
source_commit=ec3a382656ce5b1c735175d5a8fd1ceb4f153eaf
archive=rtichoke-viz-0.14.0.tar.gz
sha256=b7c30d12db4b3f8008ef035bd4f7e04c09d599ced5bc8606a4a4141c5cdf48ee
release=v0.18.0
source_commit=dbabedb495ab70062ee635cd9d59eefcafe55a43
archive=rtichoke-viz-0.18.0.tar.gz
sha256=1cd3af962be8357d0fd4c2f2ecf5e5953774683de8854ead2facbac807b6bc84
Binary file not shown.
Binary file not shown.
432 changes: 432 additions & 0 deletions src/rtichoke/_vendor/rtichoke_viz/rtichoke-viz-report.schema.json

Large diffs are not rendered by default.

144 changes: 144 additions & 0 deletions src/rtichoke/_vendor/rtichoke_viz/rtichoke-viz-v2.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,31 @@
}
}
},
{
"type": "object",
"properties": {
"operatingPoint": {
"type": "object",
"required": [
"dimension"
],
"properties": {
"dimension": {
"anyOf": [
{
"const": "probability_threshold",
"type": "string"
},
{
"const": "ppcr",
"type": "string"
}
]
}
}
}
}
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -531,6 +556,11 @@
"cutoff": {
"type": "number"
},
"ppcr": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"sensitivity": {
"minimum": 0,
"maximum": 1,
Expand Down Expand Up @@ -1687,6 +1717,31 @@
}
}
},
{
"type": "object",
"properties": {
"operatingPoint": {
"type": "object",
"required": [
"dimension"
],
"properties": {
"dimension": {
"anyOf": [
{
"const": "probability_threshold",
"type": "string"
},
{
"const": "ppcr",
"type": "string"
}
]
}
}
}
}
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -1717,6 +1772,11 @@
"cutoff": {
"type": "number"
},
"ppcr": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"sensitivity": {
"minimum": 0,
"maximum": 1,
Expand Down Expand Up @@ -2241,6 +2301,31 @@
}
}
},
{
"type": "object",
"properties": {
"operatingPoint": {
"type": "object",
"required": [
"dimension"
],
"properties": {
"dimension": {
"anyOf": [
{
"const": "probability_threshold",
"type": "string"
},
{
"const": "ppcr",
"type": "string"
}
]
}
}
}
}
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -2795,6 +2880,31 @@
}
}
},
{
"type": "object",
"properties": {
"operatingPoint": {
"type": "object",
"required": [
"dimension"
],
"properties": {
"dimension": {
"anyOf": [
{
"const": "probability_threshold",
"type": "string"
},
{
"const": "ppcr",
"type": "string"
}
]
}
}
}
}
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -3347,6 +3457,23 @@
}
}
},
{
"type": "object",
"properties": {
"operatingPoint": {
"type": "object",
"required": [
"dimension"
],
"properties": {
"dimension": {
"const": "probability_threshold",
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -4167,6 +4294,23 @@
}
}
},
{
"type": "object",
"properties": {
"operatingPoint": {
"type": "object",
"required": [
"dimension"
],
"properties": {
"dimension": {
"const": "probability_threshold",
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
Expand Down
125 changes: 125 additions & 0 deletions src/rtichoke/_vendor/rtichoke_viz/rtichoke-viz.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,131 @@
display: block;
}

/* Plotly-like interactive legend styling */
.rtichoke-legend {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 1rem;
margin-bottom: 0.5rem;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}

.rtichoke-legend-item {
display: inline-flex;
align-items: center;
gap: 0.4rem;
background: transparent;
border: none;
padding: 2px 4px;
margin: 0;
font-family: inherit;
font-size: 12px;
line-height: 1;
color: #2a2a2a;
cursor: pointer;
border-radius: 2px;
user-select: none;
transition: opacity 0.15s ease, color 0.15s ease;
}

.rtichoke-legend-item:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 1px;
}

.rtichoke-legend-swatch {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 12px;
flex-shrink: 0;
}

.rtichoke-legend-line {
display: block;
width: 16px;
height: 2px;
border-radius: 1px;
transition: background-color 0.15s ease;
}

.rtichoke-legend-label {
font-size: 12px;
}

/* Hidden / disabled state matching Plotly legend muted appearance */
.rtichoke-legend-item[aria-pressed="false"] {
color: #a0a0a0;
}

.rtichoke-legend-item[aria-pressed="false"] .rtichoke-legend-line {
background-color: #a0a0a0 !important;
}

.rtichoke-operating-point-chart {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.rtichoke-operating-point-content {
overflow-x: auto;
}

.rtichoke-operating-point-control {
display: flex;
flex-direction: column;
gap: 0.25rem;
box-sizing: border-box;
}

.rtichoke-operating-point-label {
font-family: inherit;
font-size: 0.875rem;
font-weight: 500;
color: #374151;
}

.rtichoke-operating-point-value {
font-weight: 600;
color: #111827;
}

.rtichoke-operating-point-slider {
width: 100%;
margin: 0;
box-sizing: border-box;
cursor: pointer;
}

.rtichoke-horizon-chart {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.rtichoke-horizon-control {
font-family: inherit;
font-size: 0.875rem;
font-weight: 500;
color: #374151;
margin-bottom: 0.25rem;
}

.rtichoke-horizon-select {
font-family: inherit;
font-size: 0.875rem;
padding: 0.25rem 0.5rem;
border: 1px solid #d1d5db;
border-radius: 4px;
background-color: #ffffff;
color: #111827;
margin-left: 0.5rem;
}

.rtichoke-report {
display: flex;
flex-direction: column;
Expand Down
Loading
Loading