@rulecad/cad 0.7.11 → 0.7.25

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.
@@ -146,6 +146,62 @@
146
146
  "overhang": {
147
147
  "type": "string",
148
148
  "description": "3D: printable this way up ('+z', '-y', …), or a variable holding it, or 'none': only material supported from below at 45° or less"
149
+ },
150
+ "output": {
151
+ "type": "object",
152
+ "additionalProperties": false,
153
+ "required": [
154
+ "at",
155
+ "direction"
156
+ ],
157
+ "description": "A mechanism's output: where it should move, along one axis, against a spring. The first load is then the input.",
158
+ "properties": {
159
+ "at": {
160
+ "$ref": "#/$defs/point",
161
+ "description": "The centre, mm"
162
+ },
163
+ "r": {
164
+ "$ref": "#/$defs/expr"
165
+ },
166
+ "size": {
167
+ "type": "array",
168
+ "items": {
169
+ "$ref": "#/$defs/expr"
170
+ },
171
+ "minItems": 2,
172
+ "maxItems": 3
173
+ },
174
+ "length": {
175
+ "$ref": "#/$defs/expr"
176
+ },
177
+ "axis": {
178
+ "enum": [
179
+ "x",
180
+ "y",
181
+ "z"
182
+ ]
183
+ },
184
+ "direction": {
185
+ "type": "array",
186
+ "items": {
187
+ "type": "number"
188
+ },
189
+ "minItems": 2,
190
+ "maxItems": 3,
191
+ "description": "Which way it should move: along one axis, like [-1, 0]"
192
+ },
193
+ "spring": {
194
+ "$ref": "#/$defs/expr",
195
+ "description": "The spring it works against, N/mm"
196
+ },
197
+ "label": {
198
+ "type": "string"
199
+ }
200
+ }
201
+ },
202
+ "input_spring": {
203
+ "$ref": "#/$defs/expr",
204
+ "description": "With output: a spring the input pushes against, N/mm"
149
205
  }
150
206
  },
151
207
  "$defs": {
@@ -212,7 +268,16 @@
212
268
  "type": "string"
213
269
  },
214
270
  "teardrop": {
215
- "enum": ["up", "down", "+z", "-z", "+y", "-y", "+x", "-x"],
271
+ "enum": [
272
+ "up",
273
+ "down",
274
+ "+z",
275
+ "-z",
276
+ "+y",
277
+ "-y",
278
+ "+x",
279
+ "-x"
280
+ ],
216
281
  "description": "3D: a 45° point on the cylinder that way, so it prints without support: down for a boss (its underside), up for a hole (its roof). up and down follow the problem's overhang (+z when it's free); along the cylinder's axis it has none"
217
282
  }
218
283
  }
@@ -272,7 +337,16 @@
272
337
  "description": "Which ways it's held: x, y, z (default all)"
273
338
  },
274
339
  "teardrop": {
275
- "enum": ["up", "down", "+z", "-z", "+y", "-y", "+x", "-x"],
340
+ "enum": [
341
+ "up",
342
+ "down",
343
+ "+z",
344
+ "-z",
345
+ "+y",
346
+ "-y",
347
+ "+x",
348
+ "-x"
349
+ ],
276
350
  "description": "3D: a 45° point on the cylinder that way, so it prints without support: down for a boss (its underside), up for a hole (its roof). up and down follow the problem's overhang (+z when it's free); along the cylinder's axis it has none"
277
351
  }
278
352
  }
@@ -337,11 +411,31 @@
337
411
  "description": "Its load case (default load)"
338
412
  },
339
413
  "teardrop": {
340
- "enum": ["up", "down", "+z", "-z", "+y", "-y", "+x", "-x"],
414
+ "enum": [
415
+ "up",
416
+ "down",
417
+ "+z",
418
+ "-z",
419
+ "+y",
420
+ "-y",
421
+ "+x",
422
+ "-x"
423
+ ],
341
424
  "description": "3D: a 45° point on the cylinder that way, so it prints without support: down for a boss (its underside), up for a hole (its roof). up and down follow the problem's overhang (+z when it's free); along the cylinder's axis it has none"
342
425
  }
343
426
  }
344
427
  }
345
428
  },
346
- "anyOf": [{ "required": ["volume"] }, { "required": ["stress"] }]
429
+ "anyOf": [
430
+ {
431
+ "required": [
432
+ "volume"
433
+ ]
434
+ },
435
+ {
436
+ "required": [
437
+ "stress"
438
+ ]
439
+ }
440
+ ]
347
441
  }
@@ -14,6 +14,7 @@
14
14
  "licence": { "type": "string" },
15
15
  "private": { "type": "boolean" },
16
16
  "footprints": { "type": "object" },
17
+ "circuit": { "type": "object", "description": "A published board's circuit (parts, pads, nets, planes, outline), read by cad clone, for @rulecad/pcb's clone()" },
17
18
  "rules": {
18
19
  "type": "object",
19
20
  "additionalProperties": {
@@ -24,9 +25,10 @@
24
25
  "value": { "type": ["number", "string"] },
25
26
  "unit": { "type": "string" },
26
27
  "rule": { "type": "string" },
27
- "kind": { "type": "string", "description": "spec, standard, measured, community, estimate, …" },
28
+ "kind": { "type": "string", "description": "How far to trust it, most to least: measured, spec, community, default, derived, estimate" },
28
29
  "source": { "type": "string" },
29
30
  "checked": { "type": "string" },
31
+ "licence": { "type": "string", "description": "The source's licence, when the value was read off someone else's work (cad measure, cad clone)" },
30
32
  "pins": {}
31
33
  }
32
34
  }