Upstream loads zip.js, OpenCV.js, WireBender (JS+WASM) and Google Fonts
from CDNs at runtime, and includes a Google Tag / gtag.js snippet. The
CMMS deployment forbids external requests. Changes:
- docs/vendor/ — local copies of opencv.js (Apache-2.0), zip.min.js
(BSD-3-Clause), WireBender.{js,wasm} (AGPL-3.0/commercial, source at
github.com/dev-lab/WireBender), and the three Google fonts (OFL, latin
subset). SOURCE.txt records provenance.
- studio.html / schema.html — zip.js + opencv.js + fonts @import point at
docs/vendor/.
- inspect-traces.js / schema/layout.js — WireBender import() + locateFile
point at docs/vendor/wirebender/.
- every *.html — Google Tag / gtag.js snippet removed.
No behaviour change; kicad-symbols zip was already bundled + local.
CMMS embedding hooks (window.PCBRETRACE_CONFIG, save-back, AI bridge)
land in a later commit.
56 lines
1.4 KiB
CSS
56 lines
1.4 KiB
CSS
/*
|
|
* Local copies of the Google Fonts used by schema.html (Schema ReTrace).
|
|
* Latin subset only. Fetched 2026-09-03 from fonts.googleapis.com /
|
|
* fonts.gstatic.com. Rajdhani v17, Share Tech Mono v16, Space Mono v17.
|
|
* All three are licensed under the SIL Open Font License 1.1.
|
|
* Replaces an external @import so the app makes no cross-origin requests.
|
|
*/
|
|
@font-face {
|
|
font-family: 'Rajdhani';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
src: url(./rajdhani-400.woff2) format('woff2');
|
|
}
|
|
@font-face {
|
|
font-family: 'Rajdhani';
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
font-display: swap;
|
|
src: url(./rajdhani-500.woff2) format('woff2');
|
|
}
|
|
@font-face {
|
|
font-family: 'Rajdhani';
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
font-display: swap;
|
|
src: url(./rajdhani-600.woff2) format('woff2');
|
|
}
|
|
@font-face {
|
|
font-family: 'Rajdhani';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
font-display: swap;
|
|
src: url(./rajdhani-700.woff2) format('woff2');
|
|
}
|
|
@font-face {
|
|
font-family: 'Share Tech Mono';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
src: url(./sharetechmono-400.woff2) format('woff2');
|
|
}
|
|
@font-face {
|
|
font-family: 'Space Mono';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
src: url(./spacemono-400.woff2) format('woff2');
|
|
}
|
|
@font-face {
|
|
font-family: 'Space Mono';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
font-display: swap;
|
|
src: url(./spacemono-700.woff2) format('woff2');
|
|
}
|