Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
macrokeypad fully routed (#179)
Browse files Browse the repository at this point in the history
* macrokeypad fully routed

* formatbot: Automatically format code

---------

Co-authored-by: tscircuitbot <[email protected]>
  • Loading branch information
seveibar and tscircuitbot authored Sep 14, 2024
1 parent 932a745 commit c0cb7b3
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 144 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion cli/lib/util/get-all-package-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getAllPackageFiles = async (
const ig = ignore().add([
...(npmAndPromptIgnoreFiles.length > 0
? npmAndPromptIgnoreFiles
: gitIgnore ?? []),
: (gitIgnore ?? [])),
".tscircuit",
"node_modules/*",
])
Expand Down
147 changes: 26 additions & 121 deletions example-project/src/manual-edits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,170 +54,75 @@ export default {
],
manual_trace_hints: [
{
pcb_port_selector: ".SW4 > .pin2",
offsets: [
{
x: -8.492199000694345,
y: -1.998912735924403,
via: false,
},
],
},
{
pcb_port_selector: ".SW7 > .pin1",
pcb_port_selector: ".D9 > .pin2",
offsets: [
{
x: -23.955683342322523,
y: 10.88389101192926,
x: 38.92169691522466,
y: -2.3377796771400057,
via: false,
},
{
x: -16.747386499009068,
y: 10.88389101192926,
via: false,
},
],
},
{
pcb_port_selector: ".D1 > .pin2",
offsets: [
{
x: -6.6120446397225265,
y: -23.571919277339052,
x: 37.986379705415004,
y: -2.4045880492692646,
via: true,
},
{
x: 32.69781227739724,
y: 4.7868824921773,
x: 35.04681133172754,
y: -2.5048006074631566,
via: true,
},
],
},
{
pcb_port_selector: ".SW2 > .pin1",
offsets: [
{
x: -4.281249780862737,
y: -14.233181814231745,
via: true,
},
{
x: 34.20591131679997,
y: -5.359753005603952,
via: true,
},
],
},
{
pcb_port_selector: ".SW8 > .pin1",
pcb_port_selector: ".D8 > .pin2",
offsets: [
{
x: -3.288900052520706,
y: 15.247231045118642,
via: true,
x: 39.368100153443855,
y: 11.075329302388642,
via: false,
},
{
x: 33.00665141878271,
y: -4.88174593519296,
via: true,
x: 39.0431504551313,
y: -2.4100831775825498,
via: false,
},
],
},
{
pcb_port_selector: ".SW6 > .pin1",
pcb_port_selector: ".D6 > .pin2",
offsets: [
{
x: 13.702636532712475,
y: -2.1984238421998494,
via: true,
},
{
x: 37.17086973641227,
y: -10.456476442519742,
x: 27.898990889830188,
y: -7.126105014672912,
via: true,
},
],
},
{
pcb_port_selector: ".D2 > .pin2",
pcb_port_selector: ".D7 > .pin2",
offsets: [
{
x: 12.561114295051617,
y: -23.864496542593944,
x: -8.911022990918022,
y: 12.104068965358355,
via: true,
},
{
x: 31.243169965739476,
y: 6.222709219188005,
x: 31.337860341638805,
y: 8.65338014408593,
via: true,
},
],
},
{
pcb_port_selector: ".SW1 > .pin2",
offsets: [
{
x: -12.08751345122883,
y: -21.987424704921573,
via: false,
},
],
},
{
pcb_port_selector: ".SW4 > .pin1",
offsets: [
{
x: -26.011965739587815,
y: -1.3280621772648846,
x: 40.284252655475,
y: 7.931249822789734,
via: false,
},
],
},
{
pcb_port_selector: ".D4 > .pin2",
offsets: [
{
x: -11.013535470091448,
y: -9.022834789254386,
via: true,
},
{
x: 28.754756592538314,
y: 12.264328845243295,
via: true,
},
],
},
{
pcb_port_selector: ".D3 > .pin2",
offsets: [
{
x: 30.35063107068494,
y: -24.609946154312162,
x: 39.96330584601003,
y: -2.4995214848219867,
via: false,
},
],
},
{
pcb_port_selector: ".D9 > .pin2",
offsets: [
{
x: 27.764228768984935,
y: 11.911837660122025,
via: true,
},
],
},
{
pcb_port_selector: ".D8 > .pin2",
offsets: [
{
x: 23.674326938532413,
y: 12.282089990345455,
via: true,
},
],
},
],
edit_events: [],
}
38 changes: 19 additions & 19 deletions frontend/index.css
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 224 71.4% 4.1%;

--card: 0 0% 100%;
--card-foreground: 224 71.4% 4.1%;

--popover: 0 0% 100%;
--popover-foreground: 224 71.4% 4.1%;

--primary: 220.9 39.3% 11%;
--primary-foreground: 210 20% 98%;

--secondary: 220 14.3% 95.9%;
--secondary-foreground: 220.9 39.3% 11%;

--muted: 220 14.3% 95.9%;
--muted-foreground: 220 8.9% 46.1%;

--accent: 220 14.3% 95.9%;
--accent-foreground: 220.9 39.3% 11%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 20% 98%;

--border: 220 13% 91%;
--input: 220 13% 91%;
--ring: 224 71.4% 4.1%;

--radius: 0.5rem;
}

.dark {
--background: 224 71.4% 4.1%;
--foreground: 210 20% 98%;

--card: 224 71.4% 4.1%;
--card-foreground: 210 20% 98%;

--popover: 224 71.4% 4.1%;
--popover-foreground: 210 20% 98%;

--primary: 210 20% 98%;
--primary-foreground: 220.9 39.3% 11%;

--secondary: 215 27.9% 16.9%;
--secondary-foreground: 210 20% 98%;

--muted: 215 27.9% 16.9%;
--muted-foreground: 217.9 10.6% 64.9%;

--accent: 215 27.9% 16.9%;
--accent-foreground: 210 20% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 20% 98%;

--border: 215 27.9% 16.9%;
--input: 215 27.9% 16.9%;
--ring: 216 12.2% 83.9%;
}
}

@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@edge-runtime/primitives": "^4.1.0",
"@hono/node-server": "^1.8.2",
"@tscircuit/builder": "*",
"@tscircuit/core": "^0.0.56",
"@tscircuit/core": "^0.0.62",
"@tscircuit/props": "^0.0.62",
"archiver": "^7.0.1",
"axios": "^1.6.7",
Expand Down Expand Up @@ -81,7 +81,7 @@
"@tscircuit/soup-util": "*"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@biomejs/biome": "^1.9.0",
"@headlessui/react": "^1.7.18",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-context-menu": "^2.1.5",
Expand All @@ -99,7 +99,7 @@
"@tscircuit/3d-viewer": "^0.0.17",
"@tscircuit/layout": "^0.0.28",
"@tscircuit/manual-edit-events": "^0.0.4",
"@tscircuit/pcb-viewer": "^1.9.1",
"@tscircuit/pcb-viewer": "^1.10.2",
"@tscircuit/schematic-viewer": "^1.2.14",
"@tscircuit/soup-util": "^0.0.23",
"@tscircuit/table-viewer": "0.0.8",
Expand Down

0 comments on commit c0cb7b3

Please sign in to comment.