Skip to content

Commit f0dc877

Browse files
authored
Merge pull request #50 from leomcelroy/dev
moving towards v0.1.0
2 parents f0d55c6 + 002d0be commit f0dc877

251 files changed

Lines changed: 9082 additions & 7218 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DOCS/DEV_LOG.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# DEV LOG
22

3+
### Aril 10, 2023
4+
5+
- change to drill api
6+
- mask and mask margin
7+
- netLists
8+
- path gui
9+
- footprint function
10+
- hole rendering
11+
- done with interior now
12+
13+
sorting out
14+
- refDes (maybe should be called id)
15+
- name (label)
16+
- type?
17+
18+
change
19+
refDes -> id (automatically generated)
20+
name -> label
21+
add mask layers
22+
drills
23+
{
24+
diameter: 0.02,
25+
start: "F.Cu",
26+
end: "B.Cu",
27+
plated: false
28+
}
29+
add footprint function
30+
31+
svg import -> footprint(json)
32+
add text
33+
334
### April 5, 2023
435

536
- discussed footprint pad format
@@ -8,21 +39,32 @@
839
padName: {
940
pos: [0, 0],
1041
shape: "pathDataString",
11-
layers: ["F.Cu", "B.Cu"],
42+
layers: ["F.Cu", "B.Cu", "F.Mask", "B.Mask"],
1243
drill: {
1344
diameter: 0.02, // or radius
1445
start: "F.Cu",
1546
end: "B.Cu",
1647
plated: false
1748
},
1849
index: 1,
19-
? maskOffset: .03 // if not present then cover
50+
// solder_mask_margin
51+
// solderMaskMargin
52+
// maskMargin: 0
53+
// maskOffset: .03 // if not present then cover or if mask is in layer
2054
}
2155
}
2256
```
2357
- interior does specify direction of shape in a way outline doesn't
2458
- implicit assumption of layer names in gerber export?
2559
- making a typeface (single line font?) for text
60+
- how to render drills?
61+
- render with color of layers it connects
62+
- fix gerber drill export
63+
- solder masks
64+
- when to calculate mask offset?
65+
- first step is to not render mask
66+
- next is...
67+
- supporting stars in layers eg `*.Mask`
2668

2769
### March 30th, 2023
2870

DOCS/TODO.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# TODO
22

3+
- [x] input is broken
34
- add visual cue to menu tab
5+
- footprint processing is slow
6+
- currently generate shapes with ast analysis
7+
- turning pathdata string into points could help
8+
- generalize astAnalysis
9+
- if name is being called restructures call as such
10+
- name([old params], staticInfo)
11+
- input: function names
12+
- output: { from, to, snippet }
413
- export
514
- [x] gerber
615
- [ ] kicad
@@ -13,6 +22,13 @@
1322
- [x] path selection
1423
- https://github.com/hackclub/sprig/blob/main/codemirror/editors.js
1524
- https://codemirror.net/examples/decoration/
25+
- handles for
26+
- cubics
27+
- fillets
28+
- chamfers
29+
- points
30+
- toggle between above
31+
- cubic spline control point handling
1632
- [ ] handle infinite loops
1733
- https://blog.replit.com/infinite-loops
1834
- https://github.com/facebook/react/blob/main/scripts/babel/transform-prevent-infinite-loops.js

components/ICs/ATmega644_TQFP.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"MOSI":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.155],"layers":["F.Cu"],"index":1},"MISO":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.124],"layers":["F.Cu"],"index":2},"SCK":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.093],"layers":["F.Cu"],"index":3},"-RESET":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.062],"layers":["F.Cu"],"index":4},"VCC1":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.031],"layers":["F.Cu"],"index":5},"VCC2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0,-0.235],"layers":["F.Cu"],"index":17},"VCC3":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.031,0.235],"layers":["F.Cu"],"index":38},"GND1":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0],"layers":["F.Cu"],"index":6},"GND2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.031,-0.235],"layers":["F.Cu"],"index":18},"GND3":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0],"layers":["F.Cu"],"index":28},"GND4":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0,0.235],"layers":["F.Cu"],"index":39},"XTAL2":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.031],"layers":["F.Cu"],"index":7},"XTAL1":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.062],"layers":["F.Cu"],"index":8},"RXD0":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.093],"layers":["F.Cu"],"index":9},"TXD0":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.124],"layers":["F.Cu"],"index":10},"PD2":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.155],"layers":["F.Cu"],"index":11},"PD3":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.155,-0.235],"layers":["F.Cu"],"index":12},"PD4":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.124,-0.235],"layers":["F.Cu"],"index":13},"PD5":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.093,-0.235],"layers":["F.Cu"],"index":14},"PD6":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.062,-0.235],"layers":["F.Cu"],"index":15},"PD7":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.031,-0.235],"layers":["F.Cu"],"index":16},"PC0":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.062,-0.235],"layers":["F.Cu"],"index":19},"PC1":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.093,-0.235],"layers":["F.Cu"],"index":20},"PC2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.124,-0.235],"layers":["F.Cu"],"index":21},"PC3":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.155,-0.235],"layers":["F.Cu"],"index":22},"PC4":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.155],"layers":["F.Cu"],"index":23},"PC5":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.124],"layers":["F.Cu"],"index":24},"PC6":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.093],"layers":["F.Cu"],"index":25},"PC7":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.062],"layers":["F.Cu"],"index":26},"AVCC":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.031],"layers":["F.Cu"],"index":27},"AREF":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.031],"layers":["F.Cu"],"index":29},"PA7":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.062],"layers":["F.Cu"],"index":30},"PA6":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.093],"layers":["F.Cu"],"index":31},"PA5":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.124],"layers":["F.Cu"],"index":32},"PA4":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.155],"layers":["F.Cu"],"index":33},"PA3":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.155,0.235],"layers":["F.Cu"],"index":34},"PA2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.124,0.235],"layers":["F.Cu"],"index":35},"PA1":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.093,0.235],"layers":["F.Cu"],"index":36},"PA0":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.062,0.235],"layers":["F.Cu"],"index":37},"PB0":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.031,0.235],"layers":["F.Cu"],"index":40},"PB1":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.062,0.235],"layers":["F.Cu"],"index":41},"PB2_1":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.093,0.235],"layers":["F.Cu"],"index":42},"PB2_2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.124,0.235],"layers":["F.Cu"],"index":43},"PB4":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.155,0.235],"layers":["F.Cu"],"index":44}}
1+
{"MOSI":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.155],"layers":["F.Cu","F.Mask"],"index":1},"MISO":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.124],"layers":["F.Cu","F.Mask"],"index":2},"SCK":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.093],"layers":["F.Cu","F.Mask"],"index":3},"-RESET":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.062],"layers":["F.Cu","F.Mask"],"index":4},"VCC1":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0.031],"layers":["F.Cu","F.Mask"],"index":5},"VCC2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0,-0.235],"layers":["F.Cu","F.Mask"],"index":17},"VCC3":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.031,0.235],"layers":["F.Cu","F.Mask"],"index":38},"GND1":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,0],"layers":["F.Cu","F.Mask"],"index":6},"GND2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.031,-0.235],"layers":["F.Cu","F.Mask"],"index":18},"GND3":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0],"layers":["F.Cu","F.Mask"],"index":28},"GND4":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0,0.235],"layers":["F.Cu","F.Mask"],"index":39},"XTAL2":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.031],"layers":["F.Cu","F.Mask"],"index":7},"XTAL1":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.062],"layers":["F.Cu","F.Mask"],"index":8},"RXD0":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.093],"layers":["F.Cu","F.Mask"],"index":9},"TXD0":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.124],"layers":["F.Cu","F.Mask"],"index":10},"PD2":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[-0.235,-0.155],"layers":["F.Cu","F.Mask"],"index":11},"PD3":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.155,-0.235],"layers":["F.Cu","F.Mask"],"index":12},"PD4":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.124,-0.235],"layers":["F.Cu","F.Mask"],"index":13},"PD5":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.093,-0.235],"layers":["F.Cu","F.Mask"],"index":14},"PD6":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.062,-0.235],"layers":["F.Cu","F.Mask"],"index":15},"PD7":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.031,-0.235],"layers":["F.Cu","F.Mask"],"index":16},"PC0":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.062,-0.235],"layers":["F.Cu","F.Mask"],"index":19},"PC1":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.093,-0.235],"layers":["F.Cu","F.Mask"],"index":20},"PC2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.124,-0.235],"layers":["F.Cu","F.Mask"],"index":21},"PC3":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.155,-0.235],"layers":["F.Cu","F.Mask"],"index":22},"PC4":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.155],"layers":["F.Cu","F.Mask"],"index":23},"PC5":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.124],"layers":["F.Cu","F.Mask"],"index":24},"PC6":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.093],"layers":["F.Cu","F.Mask"],"index":25},"PC7":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.062],"layers":["F.Cu","F.Mask"],"index":26},"AVCC":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,-0.031],"layers":["F.Cu","F.Mask"],"index":27},"AREF":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.031],"layers":["F.Cu","F.Mask"],"index":29},"PA7":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.062],"layers":["F.Cu","F.Mask"],"index":30},"PA6":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.093],"layers":["F.Cu","F.Mask"],"index":31},"PA5":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.124],"layers":["F.Cu","F.Mask"],"index":32},"PA4":{"shape":"M -0.025,0.007L 0.025,0.007L 0.025,-0.007L -0.025,-0.007L -0.025,0.007","pos":[0.235,0.155],"layers":["F.Cu","F.Mask"],"index":33},"PA3":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.155,0.235],"layers":["F.Cu","F.Mask"],"index":34},"PA2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.124,0.235],"layers":["F.Cu","F.Mask"],"index":35},"PA1":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.093,0.235],"layers":["F.Cu","F.Mask"],"index":36},"PA0":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[0.062,0.235],"layers":["F.Cu","F.Mask"],"index":37},"PB0":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.031,0.235],"layers":["F.Cu","F.Mask"],"index":40},"PB1":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.062,0.235],"layers":["F.Cu","F.Mask"],"index":41},"PB2_1":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.093,0.235],"layers":["F.Cu","F.Mask"],"index":42},"PB2_2":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.124,0.235],"layers":["F.Cu","F.Mask"],"index":43},"PB4":{"shape":"M -0.007,0.025L 0.007,0.025L 0.007,-0.025L -0.007,-0.025L -0.007,0.025","pos":[-0.155,0.235],"layers":["F.Cu","F.Mask"],"index":44}}

0 commit comments

Comments
 (0)