aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2019-05-13 22:35:13 +0200
committerKing Kévin <kingkevin@cuvoodoo.info>2019-05-13 22:35:13 +0200
commit2742c7d338b052eb68d4fb3b820eba7c81cafa7b (patch)
treeb41554205e75dc86c2a0547f99219661ce323f02
parent75a8b18d68edc64265f0c54b69b4913d9fa2eb0b (diff)
add support for coralEDA pcb-rnd sub-circuits
-rw-r--r--oshw_logo.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/oshw_logo.html b/oshw_logo.html
index 43d2a3f..9038e1e 100644
--- a/oshw_logo.html
+++ b/oshw_logo.html
@@ -29,8 +29,8 @@
var logo = {
"name": "open source hardware logo",
"author": "King Kévin",
- "version": 0,
- "date": "2015-04-11 13:58:46+02:00",
+ "version": 1,
+ "date": "2019-05-13",
"unit": "mm",
"elements": []
}
@@ -136,6 +136,10 @@
var blob = new Blob([new XMLSerializer().serializeToString(json2svg(logo))], {type: "image/svg+xml"})
saveAs(blob, "oshw_logo.svg")
break
+ case 'pcb-rnd':
+ var blob = new Blob([json2subc(logo)], {type: "text/plain"}) // there is no mime type for pcb-rnd yet
+ saveAs(blob, "oshw_logo.lht")
+ break
case 'pcb':
var blob = new Blob([json2pcb(logo)], {type: "application/x-pcb-footprint"})
saveAs(blob, "oshw_logo.fp")
@@ -153,8 +157,9 @@
break
case 'zip':
var zip = new JSZip()
- //zip.file("oshw_logo.cvlp", JSON.stringify(logo, null, '\t'))
+ zip.file("oshw_logo.cvlp", JSON.stringify(logo, null, '\t'))
zip.file("oshw_logo.svg", new XMLSerializer().serializeToString(json2svg(logo)))
+ zip.file("oshw_logo.lht", json2subc(logo))
zip.file("oshw_logo.fp", json2pcb(logo))
zip.file("oshw_logo.kicad_mod", json2kicad(logo))
var xml = new XMLSerializer().serializeToString(json2eagle(logo))
@@ -229,6 +234,7 @@ The source code for this generator can be found <a href="https://git.cuvoodoo.in
<option value="cvlp">CuVoodoo Land Pattern (.cvlp)</option>
-->
<option value="svg">Scalable Vector Graphics (.svg)</option>
+ <option value="pcb-rnd">coralEDA pcb-rnd sub-circuit (.lht)</option>
<option value="pcb">gEDA pcb footprint (.fp)</option>
<option value="kicad">KiCad s-expr. footprint (.kicad_mod)</option>
<option value="eagle">EAGLE XML component library (.lbr)</option>