Skip to content

Commit

Permalink
Merge pull request #50 from leomcelroy/dev
Browse files Browse the repository at this point in the history
moving towards v0.1.0
  • Loading branch information
leomcelroy authored Apr 12, 2023
2 parents f0d55c6 + 002d0be commit f0dc877
Show file tree
Hide file tree
Showing 251 changed files with 9,082 additions and 7,218 deletions.
46 changes: 44 additions & 2 deletions DOCS/DEV_LOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# DEV LOG

### Aril 10, 2023

- change to drill api
- mask and mask margin
- netLists
- path gui
- footprint function
- hole rendering
- done with interior now

sorting out
- refDes (maybe should be called id)
- name (label)
- type?

change
refDes -> id (automatically generated)
name -> label
add mask layers
drills
{
diameter: 0.02,
start: "F.Cu",
end: "B.Cu",
plated: false
}
add footprint function

svg import -> footprint(json)
add text

### April 5, 2023

- discussed footprint pad format
Expand All @@ -8,21 +39,32 @@
padName: {
pos: [0, 0],
shape: "pathDataString",
layers: ["F.Cu", "B.Cu"],
layers: ["F.Cu", "B.Cu", "F.Mask", "B.Mask"],
drill: {
diameter: 0.02, // or radius
start: "F.Cu",
end: "B.Cu",
plated: false
},
index: 1,
? maskOffset: .03 // if not present then cover
// solder_mask_margin
// solderMaskMargin
// maskMargin: 0
// maskOffset: .03 // if not present then cover or if mask is in layer
}
}
```
- interior does specify direction of shape in a way outline doesn't
- implicit assumption of layer names in gerber export?
- making a typeface (single line font?) for text
- how to render drills?
- render with color of layers it connects
- fix gerber drill export
- solder masks
- when to calculate mask offset?
- first step is to not render mask
- next is...
- supporting stars in layers eg `*.Mask`

### March 30th, 2023

Expand Down
16 changes: 16 additions & 0 deletions DOCS/TODO.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# TODO

- [x] input is broken
- add visual cue to menu tab
- footprint processing is slow
- currently generate shapes with ast analysis
- turning pathdata string into points could help
- generalize astAnalysis
- if name is being called restructures call as such
- name([old params], staticInfo)
- input: function names
- output: { from, to, snippet }
- export
- [x] gerber
- [ ] kicad
Expand All @@ -13,6 +22,13 @@
- [x] path selection
- https://github.com/hackclub/sprig/blob/main/codemirror/editors.js
- https://codemirror.net/examples/decoration/
- handles for
- cubics
- fillets
- chamfers
- points
- toggle between above
- cubic spline control point handling
- [ ] handle infinite loops
- https://blog.replit.com/infinite-loops
- https://github.com/facebook/react/blob/main/scripts/babel/transform-prevent-infinite-loops.js
Expand Down
2 changes: 1 addition & 1 deletion components/ICs/ATmega644_TQFP.json
Original file line number Diff line number Diff line change
@@ -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}}
{"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}}
Loading

0 comments on commit f0dc877

Please sign in to comment.