circuitscript 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/libs/std.cst CHANGED
@@ -118,14 +118,15 @@ def diode():
118
118
  display: create graphic (params):
119
119
  triangle: -width/2, 0, width/2, 0, height
120
120
  vline: width/2, -height/2, height
121
- hpin: 1, -width/2-100, 0, 100 # anode
122
- hpin: 2, width/2 + 100, 0, -100 # cathode
121
+ hpin: 1, -width/2-100, 0, 100 # cathode
122
+ hpin: 2, width/2 + 100, 0, -100 # anode
123
123
  label: params.refdes, 0, -100, fontSize=50, anchor="middle", vanchor="top"
124
124
 
125
125
  def led(color):
126
126
  width = 100
127
127
  height = 100
128
128
 
129
+ # anode and cathode pin numbers follow KiCad
129
130
  return create component:
130
131
  pins:
131
132
  1: "cathode"
@@ -138,8 +139,8 @@ def led(color):
138
139
  "M", 130, 60, "L", 130, 90, "L", 100, 90)
139
140
  path: ("M", 120, 30, "L", 180, 90,
140
141
  "M", 180, 60, "L", 180, 90, "L", 150, 90)
141
- hpin: 1, -width/2-100, 0, 100 # anode
142
- hpin: 2, width/2 + 100, 0, -100 # cathode
142
+ hpin: 1, width/2 + 100, 0, -100 # cathode
143
+ hpin: 2, -width/2-100, 0, 100 # anode
143
144
  label: params.refdes, 0, -100, fontSize=50, anchor="middle", vanchor="top"
144
145
  label: params.color, 0, 100, fontSize=40, anchor="middle", vanchor="bottom"
145
146
  params:
@@ -148,6 +149,7 @@ def led(color):
148
149
  footprint: "LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder"
149
150
 
150
151
 
152
+
151
153
  def cgnd():
152
154
  net_name = "gnd"
153
155
  return create component:
@@ -217,6 +219,7 @@ def arrow_point():
217
219
  def no_connect(size=20):
218
220
  return create component:
219
221
  pins: 1
222
+ type: "graphic"
220
223
  display: create graphic:
221
224
  path: "M", -size, -size, "L", size, size
222
225
  path: "M", -size, size, "L", size, -size
package/libs/std.cst CHANGED
@@ -118,14 +118,15 @@ def diode():
118
118
  display: create graphic (params):
119
119
  triangle: -width/2, 0, width/2, 0, height
120
120
  vline: width/2, -height/2, height
121
- hpin: 1, -width/2-100, 0, 100 # anode
122
- hpin: 2, width/2 + 100, 0, -100 # cathode
121
+ hpin: 1, -width/2-100, 0, 100 # cathode
122
+ hpin: 2, width/2 + 100, 0, -100 # anode
123
123
  label: params.refdes, 0, -100, fontSize=50, anchor="middle", vanchor="top"
124
124
 
125
125
  def led(color):
126
126
  width = 100
127
127
  height = 100
128
128
 
129
+ # anode and cathode pin numbers follow KiCad
129
130
  return create component:
130
131
  pins:
131
132
  1: "cathode"
@@ -138,8 +139,8 @@ def led(color):
138
139
  "M", 130, 60, "L", 130, 90, "L", 100, 90)
139
140
  path: ("M", 120, 30, "L", 180, 90,
140
141
  "M", 180, 60, "L", 180, 90, "L", 150, 90)
141
- hpin: 1, -width/2-100, 0, 100 # anode
142
- hpin: 2, width/2 + 100, 0, -100 # cathode
142
+ hpin: 1, width/2 + 100, 0, -100 # cathode
143
+ hpin: 2, -width/2-100, 0, 100 # anode
143
144
  label: params.refdes, 0, -100, fontSize=50, anchor="middle", vanchor="top"
144
145
  label: params.color, 0, 100, fontSize=40, anchor="middle", vanchor="bottom"
145
146
  params:
@@ -148,6 +149,7 @@ def led(color):
148
149
  footprint: "LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder"
149
150
 
150
151
 
152
+
151
153
  def cgnd():
152
154
  net_name = "gnd"
153
155
  return create component:
@@ -217,6 +219,7 @@ def arrow_point():
217
219
  def no_connect(size=20):
218
220
  return create component:
219
221
  pins: 1
222
+ type: "graphic"
220
223
  display: create graphic:
221
224
  path: "M", -size, -size, "L", size, size
222
225
  path: "M", -size, size, "L", size, -size
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "circuitscript",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Interpreter for the circuitscript language",
5
5
  "homepage": "https://circuitscript.net",
6
6
  "engines": {