@rulecad/cad 0.7.12 → 0.7.26

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.
@@ -136,6 +136,14 @@
136
136
  "min_area": {
137
137
  "$ref": "#/$defs/expr",
138
138
  "description": "Holes and islands smaller than this (mm²) are dropped"
139
+ },
140
+ "fine": {
141
+ "$ref": "#/$defs/expr",
142
+ "description": "3D: the surface drawn on cells this many times finer than the problem's (default 1.25)"
143
+ },
144
+ "tip": {
145
+ "type": "boolean",
146
+ "description": "3D with an overhang direction: faces the smoothing left steeper than the printer's limit are tipped back to it as well (off by default: tipped corners can leave dips that slice as islands, and the sliced overhang is no smaller for it; the bracket example's 160 mm² of lean is the same either way)"
139
147
  }
140
148
  }
141
149
  },
@@ -146,6 +154,62 @@
146
154
  "overhang": {
147
155
  "type": "string",
148
156
  "description": "3D: printable this way up ('+z', '-y', …), or a variable holding it, or 'none': only material supported from below at 45° or less"
157
+ },
158
+ "output": {
159
+ "type": "object",
160
+ "additionalProperties": false,
161
+ "required": [
162
+ "at",
163
+ "direction"
164
+ ],
165
+ "description": "A mechanism's output: where it should move, along one axis, against a spring. The first load is then the input.",
166
+ "properties": {
167
+ "at": {
168
+ "$ref": "#/$defs/point",
169
+ "description": "The centre, mm"
170
+ },
171
+ "r": {
172
+ "$ref": "#/$defs/expr"
173
+ },
174
+ "size": {
175
+ "type": "array",
176
+ "items": {
177
+ "$ref": "#/$defs/expr"
178
+ },
179
+ "minItems": 2,
180
+ "maxItems": 3
181
+ },
182
+ "length": {
183
+ "$ref": "#/$defs/expr"
184
+ },
185
+ "axis": {
186
+ "enum": [
187
+ "x",
188
+ "y",
189
+ "z"
190
+ ]
191
+ },
192
+ "direction": {
193
+ "type": "array",
194
+ "items": {
195
+ "type": "number"
196
+ },
197
+ "minItems": 2,
198
+ "maxItems": 3,
199
+ "description": "Which way it should move: along one axis, like [-1, 0]"
200
+ },
201
+ "spring": {
202
+ "$ref": "#/$defs/expr",
203
+ "description": "The spring it works against, N/mm"
204
+ },
205
+ "label": {
206
+ "type": "string"
207
+ }
208
+ }
209
+ },
210
+ "input_spring": {
211
+ "$ref": "#/$defs/expr",
212
+ "description": "With output: a spring the input pushes against, N/mm"
149
213
  }
150
214
  },
151
215
  "$defs": {
@@ -212,7 +276,16 @@
212
276
  "type": "string"
213
277
  },
214
278
  "teardrop": {
215
- "enum": ["up", "down", "+z", "-z", "+y", "-y", "+x", "-x"],
279
+ "enum": [
280
+ "up",
281
+ "down",
282
+ "+z",
283
+ "-z",
284
+ "+y",
285
+ "-y",
286
+ "+x",
287
+ "-x"
288
+ ],
216
289
  "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
290
  }
218
291
  }
@@ -272,7 +345,16 @@
272
345
  "description": "Which ways it's held: x, y, z (default all)"
273
346
  },
274
347
  "teardrop": {
275
- "enum": ["up", "down", "+z", "-z", "+y", "-y", "+x", "-x"],
348
+ "enum": [
349
+ "up",
350
+ "down",
351
+ "+z",
352
+ "-z",
353
+ "+y",
354
+ "-y",
355
+ "+x",
356
+ "-x"
357
+ ],
276
358
  "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
359
  }
278
360
  }
@@ -337,11 +419,31 @@
337
419
  "description": "Its load case (default load)"
338
420
  },
339
421
  "teardrop": {
340
- "enum": ["up", "down", "+z", "-z", "+y", "-y", "+x", "-x"],
422
+ "enum": [
423
+ "up",
424
+ "down",
425
+ "+z",
426
+ "-z",
427
+ "+y",
428
+ "-y",
429
+ "+x",
430
+ "-x"
431
+ ],
341
432
  "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
433
  }
343
434
  }
344
435
  }
345
436
  },
346
- "anyOf": [{ "required": ["volume"] }, { "required": ["stress"] }]
437
+ "anyOf": [
438
+ {
439
+ "required": [
440
+ "volume"
441
+ ]
442
+ },
443
+ {
444
+ "required": [
445
+ "stress"
446
+ ]
447
+ }
448
+ ]
347
449
  }
@@ -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
  }