Skip to content

Commit 4e559d6

Browse files
authored
Bug and style fixes, cleanup svgs
2 parents f527660 + 6d5da25 commit 4e559d6

13 files changed

+13
-184
lines changed

docs/_static/styling.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,8 @@ function fixBokehSvgPatternsInFirefox() {
5252
]
5353

5454
patterns.forEach((pattern, i) => {
55-
const width=pattern.getAttribute('width');
56-
57-
if (width==='0') {
58-
pattern.setAttribute('width', measurements[i].width);
59-
pattern.setAttribute('height', "150");
60-
}
55+
pattern.setAttribute('width', measurements[i].width);
56+
pattern.setAttribute('height', "150");
6157
});
6258
}
6359

@@ -78,13 +74,13 @@ function fixBokehSvgPatternsInFirefox() {
7874
}
7975
}
8076

81-
if(window.location.href.endsWith("colors.html")){
77+
if(window.location.href.endsWith("colors-implementation.html")){
8278
document.addEventListener('DOMContentLoaded', styleBokehPlot);
8379
}
8480
document.addEventListener('DOMContentLoaded', fixBokehSvgPatternsInFirefox);
8581

8682
const observer=new MutationObserver(() => {
87-
if(window.location.href.endsWith("colors.html")){
83+
if(window.location.href.endsWith("colors-implementation.html")){
8884
document.addEventListener('DOMContentLoaded', styleBokehPlot);
8985
}
9086
setTimeout(fixBokehSvgPatternsInFirefox, 100);

docs/_static/svg-pattern-generator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function downloadSingleTile(svg, fileName, patternName) {
9999

100100
document.addEventListener("DOMContentLoaded", () => {
101101
const svgContainer = document.getElementById("svg-gen-container");
102+
if(!svgContainer) return;
102103
const patternSelect = document.getElementById("pattern-select");
103104
const percentageInput = document.getElementById("percentage-input");
104105
const downloadButton = document.getElementById("download-button");

docs/accessibility/dataviz/pour-caf/preteaching-ft.svg

Lines changed: 0 additions & 64 deletions
Loading

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ def setup(app):
183183
indextemplate="pair: %s; label value",
184184
)
185185

186-
app.add_js_file("../../../../docs/_static/vega-altair/[email protected]")
187-
app.add_js_file("../../../../docs/_static/vega-altair/[email protected]")
188-
app.add_js_file("../../../../docs/_static/vega-altair/[email protected]")
189-
app.add_js_file("../../../../docs/_static/vega-altair/vega-lib.js")
186+
app.add_js_file("vega-altair/[email protected]")
187+
app.add_js_file("vega-altair/[email protected]")
188+
app.add_js_file("vega-altair/[email protected]")
189+
app.add_js_file("vega-altair/vega-lib.js")
190190

191191

192192
# -- graphviz configuration --------------------------------------------------

docs/viz/diagram-anatomy/categorical-colors.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,9 @@
144144
<rect x="79.67" y="244.323" width="236.688" height="236.688" style="fill:rgb(189,15,119);"/>
145145
</g>
146146
<g transform="matrix(1,0,0,1,-6.82955,16.6779)">
147-
<g transform="matrix(60,0,0,60,474.124,72.7361)">
148-
</g>
149147
<text x="116.644px" y="72.736px" style="font-family:'cusyText-Bold', 'cusy Text';font-weight:bold;font-size:60px;">cusy Palette</text>
150148
</g>
151149
<g transform="matrix(1,0,0,1,-2.14205,341.678)">
152-
<g transform="matrix(60,0,0,60,720.072,72.7361)">
153-
</g>
154150
<text x="116.644px" y="72.736px" style="font-family:'cusyText-Bold', 'cusy Text';font-weight:bold;font-size:60px;">Alternative Sortierung</text>
155151
</g>
156152
</svg>

docs/viz/diagram-anatomy/colors-implementation.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,10 @@
463463
" }\n",
464464
"\n",
465465
" const paths = {\n",
466-
" \"vega\": \"../../_static/vega-altair/[email protected]\",\n",
467-
" \"vega-lib\": \"../../_static/vega-altair/vega-lib.js\",\n",
468-
" \"vega-lite\": \"../../_static/vega-altair/[email protected]\",\n",
469-
" \"vega-embed\": \"../../_static/vega-altair/[email protected]\",\n",
466+
" \"vega\": \"../../../../_static/vega-altair/[email protected]\",\n",
467+
" \"vega-lib\": \"../../../../_static/vega-altair/vega-lib.js\",\n",
468+
" \"vega-lite\": \"../../../../_static/vega-altair/[email protected]\",\n",
469+
" \"vega-embed\": \"../../../../_static/vega-altair/[email protected]\",\n",
470470
" };\n",
471471
"\n",
472472
" function maybeLoadScript(lib, version) {\n",

docs/viz/diagram-anatomy/gradient-utilization-bpm.svg

Lines changed: 0 additions & 16 deletions
Loading

0 commit comments

Comments
 (0)