Spaces:
Running
Running
thibaud frere
commited on
Commit
·
d5cbadd
1
Parent(s):
aad9ebd
first fix for mobile charts
Browse files- app/src/content/embeds/against-baselines.html +11 -0
- app/src/content/embeds/all-ratings.html +11 -0
- app/src/content/embeds/formatting-filters.html +11 -0
- app/src/content/embeds/image-correspondence-filters.html +11 -0
- app/src/content/embeds/internal-deduplication.html +11 -0
- app/src/content/embeds/relevance-filters.html +11 -0
- app/src/content/embeds/remove-ch.html +11 -0
- app/src/content/embeds/s25-ratings.html +11 -0
- app/src/content/embeds/ss-vs-s1.html +11 -0
- app/src/content/embeds/visual-dependency-filters.html +11 -0
app/src/content/embeds/against-baselines.html
CHANGED
|
@@ -317,6 +317,17 @@
|
|
| 317 |
const innerHeight = height - margin.top - margin.bottom;
|
| 318 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
xScale.range([0, innerWidth]);
|
| 321 |
yScale.range([innerHeight, 0]);
|
| 322 |
|
|
|
|
| 317 |
const innerHeight = height - margin.top - margin.bottom;
|
| 318 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 319 |
|
| 320 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 321 |
+
try {
|
| 322 |
+
const shouldWrapLegend = width < 1300;
|
| 323 |
+
if (legendInline && legendInline.style) {
|
| 324 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 325 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 326 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 327 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 328 |
+
}
|
| 329 |
+
} catch {}
|
| 330 |
+
|
| 331 |
xScale.range([0, innerWidth]);
|
| 332 |
yScale.range([innerHeight, 0]);
|
| 333 |
|
app/src/content/embeds/all-ratings.html
CHANGED
|
@@ -307,6 +307,17 @@
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
xScale.range([0, innerWidth]);
|
| 311 |
yScale.range([innerHeight, 0]);
|
| 312 |
|
|
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
| 310 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 311 |
+
try {
|
| 312 |
+
const shouldWrapLegend = width < 1300;
|
| 313 |
+
if (legendInline && legendInline.style) {
|
| 314 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 315 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 316 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 317 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 318 |
+
}
|
| 319 |
+
} catch {}
|
| 320 |
+
|
| 321 |
xScale.range([0, innerWidth]);
|
| 322 |
yScale.range([innerHeight, 0]);
|
| 323 |
|
app/src/content/embeds/formatting-filters.html
CHANGED
|
@@ -307,6 +307,17 @@
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
xScale.range([0, innerWidth]);
|
| 311 |
yScale.range([innerHeight, 0]);
|
| 312 |
|
|
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
| 310 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 311 |
+
try {
|
| 312 |
+
const shouldWrapLegend = width < 1300;
|
| 313 |
+
if (legendInline && legendInline.style) {
|
| 314 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 315 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 316 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 317 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 318 |
+
}
|
| 319 |
+
} catch {}
|
| 320 |
+
|
| 321 |
xScale.range([0, innerWidth]);
|
| 322 |
yScale.range([innerHeight, 0]);
|
| 323 |
|
app/src/content/embeds/image-correspondence-filters.html
CHANGED
|
@@ -307,6 +307,17 @@
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
xScale.range([0, innerWidth]);
|
| 311 |
yScale.range([innerHeight, 0]);
|
| 312 |
|
|
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
| 310 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 311 |
+
try {
|
| 312 |
+
const shouldWrapLegend = width < 1300;
|
| 313 |
+
if (legendInline && legendInline.style) {
|
| 314 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 315 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 316 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 317 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 318 |
+
}
|
| 319 |
+
} catch {}
|
| 320 |
+
|
| 321 |
xScale.range([0, innerWidth]);
|
| 322 |
yScale.range([innerHeight, 0]);
|
| 323 |
|
app/src/content/embeds/internal-deduplication.html
CHANGED
|
@@ -313,6 +313,17 @@
|
|
| 313 |
const innerHeight = height - margin.top - margin.bottom;
|
| 314 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
xScale.range([0, innerWidth]);
|
| 317 |
yScale.range([innerHeight, 0]);
|
| 318 |
|
|
|
|
| 313 |
const innerHeight = height - margin.top - margin.bottom;
|
| 314 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 315 |
|
| 316 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 317 |
+
try {
|
| 318 |
+
const shouldWrapLegend = width < 1300;
|
| 319 |
+
if (legendInline && legendInline.style) {
|
| 320 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 321 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 322 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 323 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 324 |
+
}
|
| 325 |
+
} catch {}
|
| 326 |
+
|
| 327 |
xScale.range([0, innerWidth]);
|
| 328 |
yScale.range([innerHeight, 0]);
|
| 329 |
|
app/src/content/embeds/relevance-filters.html
CHANGED
|
@@ -307,6 +307,17 @@
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
xScale.range([0, innerWidth]);
|
| 311 |
yScale.range([innerHeight, 0]);
|
| 312 |
|
|
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
| 310 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 311 |
+
try {
|
| 312 |
+
const shouldWrapLegend = width < 1300;
|
| 313 |
+
if (legendInline && legendInline.style) {
|
| 314 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 315 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 316 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 317 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 318 |
+
}
|
| 319 |
+
} catch {}
|
| 320 |
+
|
| 321 |
xScale.range([0, innerWidth]);
|
| 322 |
yScale.range([innerHeight, 0]);
|
| 323 |
|
app/src/content/embeds/remove-ch.html
CHANGED
|
@@ -310,6 +310,17 @@
|
|
| 310 |
const innerHeight = height - margin.top - margin.bottom;
|
| 311 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 313 |
xScale.range([0, innerWidth]);
|
| 314 |
yScale.range([innerHeight, 0]);
|
| 315 |
|
|
|
|
| 310 |
const innerHeight = height - margin.top - margin.bottom;
|
| 311 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 312 |
|
| 313 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 314 |
+
try {
|
| 315 |
+
const shouldWrapLegend = width < 1300;
|
| 316 |
+
if (legendInline && legendInline.style) {
|
| 317 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 318 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 319 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 320 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 321 |
+
}
|
| 322 |
+
} catch {}
|
| 323 |
+
|
| 324 |
xScale.range([0, innerWidth]);
|
| 325 |
yScale.range([innerHeight, 0]);
|
| 326 |
|
app/src/content/embeds/s25-ratings.html
CHANGED
|
@@ -307,6 +307,17 @@
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
xScale.range([0, innerWidth]);
|
| 311 |
yScale.range([innerHeight, 0]);
|
| 312 |
|
|
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
| 310 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 311 |
+
try {
|
| 312 |
+
const shouldWrapLegend = width < 1300;
|
| 313 |
+
if (legendInline && legendInline.style) {
|
| 314 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 315 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 316 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 317 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 318 |
+
}
|
| 319 |
+
} catch {}
|
| 320 |
+
|
| 321 |
xScale.range([0, innerWidth]);
|
| 322 |
yScale.range([innerHeight, 0]);
|
| 323 |
|
app/src/content/embeds/ss-vs-s1.html
CHANGED
|
@@ -307,6 +307,17 @@
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
xScale.range([0, innerWidth]);
|
| 311 |
yScale.range([innerHeight, 0]);
|
| 312 |
|
|
|
|
| 307 |
const innerHeight = height - margin.top - margin.bottom;
|
| 308 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 309 |
|
| 310 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 311 |
+
try {
|
| 312 |
+
const shouldWrapLegend = width < 1300;
|
| 313 |
+
if (legendInline && legendInline.style) {
|
| 314 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 315 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 316 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 317 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 318 |
+
}
|
| 319 |
+
} catch {}
|
| 320 |
+
|
| 321 |
xScale.range([0, innerWidth]);
|
| 322 |
yScale.range([innerHeight, 0]);
|
| 323 |
|
app/src/content/embeds/visual-dependency-filters.html
CHANGED
|
@@ -313,6 +313,17 @@
|
|
| 313 |
const innerHeight = height - margin.top - margin.bottom;
|
| 314 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
xScale.range([0, innerWidth]);
|
| 317 |
yScale.range([innerHeight, 0]);
|
| 318 |
|
|
|
|
| 313 |
const innerHeight = height - margin.top - margin.bottom;
|
| 314 |
gRoot.attr('transform', `translate(${margin.left},${margin.top})`);
|
| 315 |
|
| 316 |
+
// Responsive legend layout like against-baselines-deduplicated
|
| 317 |
+
try {
|
| 318 |
+
const shouldWrapLegend = width < 1300;
|
| 319 |
+
if (legendInline && legendInline.style) {
|
| 320 |
+
legendInline.style.flexWrap = shouldWrapLegend ? 'wrap' : 'nowrap';
|
| 321 |
+
legendInline.style.rowGap = shouldWrapLegend ? '4px' : '';
|
| 322 |
+
legendInline.style.maxWidth = shouldWrapLegend ? Math.max(280, Math.round(width * 0.62)) + 'px' : 'unset';
|
| 323 |
+
legendInline.style.alignItems = shouldWrapLegend ? 'flex-start' : 'center';
|
| 324 |
+
}
|
| 325 |
+
} catch {}
|
| 326 |
+
|
| 327 |
xScale.range([0, innerWidth]);
|
| 328 |
yScale.range([innerHeight, 0]);
|
| 329 |
|