imrishabh18/nema-23-stepper-controller

A tscircuit package created by imrishabh18.

Version
1.3.13
License
unset
Stars
1

schematic-sheets.ts

import style from "./engineering/schematic-style.json"
// Sheet membership is semantic. Native layout chooses every schematic position.
export function sheetForSection(section: string): string {
  const sheet = style.sheets.find(sheet => sheet.sections.includes(section))
  if (!sheet) throw new Error(`No default-size schematic sheet for section: ${section}`)
  return sheet.name
}