raykholo/polygon-not-rotating-with-chip
The code defines a 10mm by 10mm electronic PCB with a single polarized SMT chip featuring polygon-shaped top-layer solder pads at specified coordinates.
Usage: To import and use this component: ```tsx import { YourComponent } from "@tsci/raykholo.polygon-not-rotating-with-chip" export default () => ( <board width="10mm" height="10mm"> <YourComponent name="PCMN1" pcbX={0} pcbY={0} pcbRotation="90deg" /> </board> ) ``` Key points: - Import the component from the package - Place it on a board with optional positioning and rotation - Customize name and placement as needed
- Version
- 0.0.1
- License
- unset
- Stars
- 0
dist/circuit.json
PCB
Schematic
[
{
"type": "source_project_metadata",
"source_project_metadata_id": "source_project_metadata_0",
"software_used_string": "@tscircuit/core@0.0.747"
},
{
"type": "source_group",
"source_group_id": "source_group_0",
"is_subcircuit": true,
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "source_port",
"source_port_id": "source_port_0",
"name": "pin1",
"pin_number": 1,
"port_hints": [
"pin1",
"1"
],
"source_component_id": "source_component_0",
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "source_component",
"source_component_id": "source_component_0",
"ftype": "simple_chip",
"name": "PCMN1",
"supplier_part_numbers": {
"jlcpcb": []
},
"source_group_id": "source_group_0"
},
{
"type": "schematic_component",
"schematic_component_id": "schematic_component_0",
"center": {
"x": 0,
"y": 0
},
"rotation": 0,
"size": {
"width": 0.4,
"height": 0.4
},
"pin_spacing": 0.2,
"port_labels": {},
"source_component_id": "source_component_0",
"schematic_group_id": "schematic_group_0"
},
{
"type": "schematic_text",
"schematic_text_id": "schematic_text_0",
"text": "",
"schematic_component_id": "schematic_component_0",
"anchor": "left",
"rotation": 0,
"position": {
"x": -0.2,
"y": -0.33
},
"color": "#006464",
"font_size": 0.18
},
{
"type": "schematic_text",
"schematic_text_id": "schematic_text_1",
"text": "PCMN1",
"schematic_component_id": "schematic_component_0",
"anchor": "left",
"rotation": 0,
"position": {
"x": -0.2,
"y": 0.33
},
"color": "#006464",
"font_size": 0.18
},
{
"type": "schematic_group",
"schematic_group_id": "schematic_group_0",
"is_subcircuit": true,
"subcircuit_id": "subcircuit_source_group_0",
"name": "unnamed_board1",
"center": {
"x": 0,
"y": 0
},
"width": 0,
"height": 0,
"schematic_component_ids": [],
"source_group_id": "source_group_0"
},
{
"type": "schematic_port",
"schematic_port_id": "schematic_port_0",
"schematic_component_id": "schematic_component_0",
"center": {
"x": -0.6000000000000001,
"y": 0
},
"source_port_id": "source_port_0",
"facing_direction": "left",
"distance_from_component_edge": 0.4,
"side_of_component": "left",
"pin_number": 1,
"true_ccw_index": 0,
"is_connected": false
},
{
"type": "pcb_component",
"pcb_component_id": "pcb_component_0",
"center": {
"x": 0,
"y": 0
},
"width": 5,
"height": 5,
"layer": "top",
"rotation": 90,
"source_component_id": "source_component_0",
"subcircuit_id": "subcircuit_source_group_0",
"do_not_place": false
},
{
"type": "pcb_board",
"pcb_board_id": "pcb_board_0",
"center": {
"x": 0,
"y": 0
},
"thickness": 1.4,
"num_layers": 2,
"width": 10,
"height": 10,
"material": "fr4"
},
{
"type": "pcb_smtpad",
"pcb_smtpad_id": "pcb_smtpad_0",
"pcb_component_id": "pcb_component_0",
"pcb_port_id": "pcb_port_0",
"layer": "top",
"shape": "polygon",
"points": [
{
"x": -0.2,
"y": -0.2
},
{
"x": -0.2,
"y": 2.5
},
{
"x": -2.5,
"y": 0
},
{
"x": 0,
"y": -2.5
},
{
"x": 2.5,
"y": -0.2
},
{
"x": -0.2,
"y": -0.2
}
],
"port_hints": [
"pin1"
],
"is_covered_with_solder_mask": false,
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "pcb_port",
"pcb_port_id": "pcb_port_0",
"pcb_component_id": "pcb_component_0",
"layers": [
"top"
],
"subcircuit_id": "subcircuit_source_group_0",
"x": 0,
"y": 0,
"source_port_id": "source_port_0"
},
{
"type": "cad_component",
"cad_component_id": "cad_component_0",
"position": {
"x": 0,
"y": 0,
"z": 0.7
},
"rotation": {
"x": 0,
"y": 0,
"z": 90
},
"pcb_component_id": "pcb_component_0",
"source_component_id": "source_component_0"
}
]