imrishabh18/pcbgolf
This code defines detailed PCB footprints for various electronic components (such as resistors, capacitors, connectors, ICs, LEDs, and via/hole patterns), as well as associated metadata (pin mappings, CAD models, labels) for a circuit design, enabling precise rendering and integration into a PCB layout in a React-based schematic editor.
- Version
- 1.4.1
- License
- unset
- Stars
- 0
imports/RC0402FR_0712KL.tsx
// Imported with tsci import --jlcpcb --use-exact-footprint C114760
export const C114760CadModel = {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C114760.obj?uuid=026a4a15ab5c4a92ac0e421d6d013717",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C114760.step?uuid=026a4a15ab5c4a92ac0e421d6d013717",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: -0.000012700000070253736, z: 0 },
}
import type { ResistorProps } from "@tscircuit/props"
export const RC0402FR_0712KL = (props: Omit<ResistorProps, "resistance">) => {
const { name = "R1", ...restProps } = props
return (
<resistor
name={name}
resistance="12kohm"
supplierPartNumbers={{
"jlcpcb": [
"C114760"
]
}}
manufacturerPartNumber="RC0402FR-0712KL"
footprint={<footprint>
<smtpad portHints={["pin2"]} pcbX="0.432816mm" pcbY="0mm" width="0.565658mm" height="0.540004mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-0.432816mm" pcbY="0mm" width="0.565658mm" height="0.540004mm" shape="rect" />
<silkscreenpath route={[{"x":-0.22621240000012222,"y":-0.4986020000000053},{"x":-0.9442450000001372,"y":-0.4986020000000053},{"x":-0.9442450000001372,"y":0.498602000000119},{"x":-0.22621240000012222,"y":0.498602000000119}]} />
<silkscreenpath route={[{"x":0.22621240000000853,"y":-0.4986020000000053},{"x":0.9442449999999099,"y":-0.4986020000000053},{"x":0.9442449999999099,"y":0.498602000000119},{"x":0.22621240000000853,"y":0.498602000000119}]} />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="1.508mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.1897999999998774,"y":0.7580000000000382},{"x":1.189799999999991,"y":0.7580000000000382},{"x":1.189799999999991,"y":-0.7326000000000477},{"x":-1.1897999999998774,"y":-0.7326000000000477},{"x":-1.1897999999998774,"y":0.7580000000000382}]} />
</footprint>}
cadModel={C114760CadModel}
{...restProps}
/>
)
}