glauber/sois-controller-rev-c

Source code for the SOIS Controller PCB, featuring an Adafruit Feather microcontroller, two EC11 rotary encoders, multiple push buttons and a slide switch. View more at glauber.org

Version
0.1.3
License
UNLICENSED
Stars
0

src/models.ts

/**
 * 3D models are fetched from the registry by absolute url. Relative and
 * root-relative paths do not resolve: the viewer fetches `stepUrl` verbatim
 * against the page origin, and `platform.projectBaseUrl` is never set. `@latest`
 * keeps the url stable across publishes.
 *
 * So 3D needs the network and needs this package published. The board, the
 * checks and the fab outputs do not.
 */
const PACKAGE = "glauber/sois-controller-rev-c"

export const modelUrl = (file: string) =>
  `https://registry-api.tscircuit.com/package_files/download` +
  `?package_name_with_version=${PACKAGE}@latest&file_path=models/${file}`