@tscircuit/props 0.0.478 → 0.0.480
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/README.md +4 -1
- package/dist/index.d.ts +3000 -4
- package/dist/index.js +25 -9
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +40 -4
- package/lib/components/platedhole.ts +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,6 +30,10 @@ import {
|
|
|
30
30
|
rotation as rotation2,
|
|
31
31
|
supplier_name
|
|
32
32
|
} from "circuit-json";
|
|
33
|
+
import { z as z15 } from "zod";
|
|
34
|
+
|
|
35
|
+
// lib/common/cadModel.ts
|
|
36
|
+
import { z as z6 } from "zod";
|
|
33
37
|
|
|
34
38
|
// lib/common/distance.ts
|
|
35
39
|
import { distance as baseDistance, length } from "circuit-json";
|
|
@@ -38,12 +42,6 @@ var calcString = z3.string().regex(/^calc\(.*\)$/);
|
|
|
38
42
|
var distance = baseDistance;
|
|
39
43
|
var pcbCoordinate = calcString.or(baseDistance);
|
|
40
44
|
|
|
41
|
-
// lib/common/layout.ts
|
|
42
|
-
import { z as z15 } from "zod";
|
|
43
|
-
|
|
44
|
-
// lib/common/cadModel.ts
|
|
45
|
-
import { z as z6 } from "zod";
|
|
46
|
-
|
|
47
45
|
// lib/common/point3.ts
|
|
48
46
|
import { distance as distance2 } from "circuit-json";
|
|
49
47
|
import { z as z4 } from "zod";
|
|
@@ -386,7 +384,25 @@ var pinAttributeMap = z15.object({
|
|
|
386
384
|
doNotConnect: z15.boolean().optional(),
|
|
387
385
|
includeInBoardPinout: z15.boolean().optional(),
|
|
388
386
|
highlightColor: z15.string().optional(),
|
|
389
|
-
mustBeConnected: z15.boolean().optional()
|
|
387
|
+
mustBeConnected: z15.boolean().optional(),
|
|
388
|
+
isI2cSda: z15.boolean().optional(),
|
|
389
|
+
isI2cScl: z15.boolean().optional(),
|
|
390
|
+
isSpiMosi: z15.boolean().optional(),
|
|
391
|
+
isSpiMiso: z15.boolean().optional(),
|
|
392
|
+
isSpiSck: z15.boolean().optional(),
|
|
393
|
+
isSpiCs: z15.boolean().optional(),
|
|
394
|
+
isUartTx: z15.boolean().optional(),
|
|
395
|
+
isUartRx: z15.boolean().optional(),
|
|
396
|
+
canUseInternalPullup: z15.boolean().optional(),
|
|
397
|
+
isUsingInternalPullup: z15.boolean().optional(),
|
|
398
|
+
needsExternalPullup: z15.boolean().optional(),
|
|
399
|
+
canUseInternalPulldown: z15.boolean().optional(),
|
|
400
|
+
isUsingInternalPulldown: z15.boolean().optional(),
|
|
401
|
+
needsExternalPulldown: z15.boolean().optional(),
|
|
402
|
+
canUseOpenDrain: z15.boolean().optional(),
|
|
403
|
+
isUsingOpenDrain: z15.boolean().optional(),
|
|
404
|
+
canUsePushPull: z15.boolean().optional(),
|
|
405
|
+
isUsingPushPull: z15.boolean().optional()
|
|
390
406
|
});
|
|
391
407
|
expectTypesMatch(true);
|
|
392
408
|
var commonComponentProps = commonLayoutProps.merge(supplierProps).extend({
|
|
@@ -1197,7 +1213,7 @@ var platedHoleProps = z46.discriminatedUnion("shape", [
|
|
|
1197
1213
|
solderMaskMargin: distance16.optional(),
|
|
1198
1214
|
coveredWithSolderMask: z46.boolean().optional()
|
|
1199
1215
|
}),
|
|
1200
|
-
pcbLayoutProps.omit({
|
|
1216
|
+
pcbLayoutProps.omit({ layer: true }).extend({
|
|
1201
1217
|
name: z46.string().optional(),
|
|
1202
1218
|
connectsTo: z46.string().or(z46.array(z46.string())).optional(),
|
|
1203
1219
|
shape: z46.literal("circular_hole_with_rect_pad"),
|
|
@@ -1213,7 +1229,7 @@ var platedHoleProps = z46.discriminatedUnion("shape", [
|
|
|
1213
1229
|
solderMaskMargin: distance16.optional(),
|
|
1214
1230
|
coveredWithSolderMask: z46.boolean().optional()
|
|
1215
1231
|
}),
|
|
1216
|
-
pcbLayoutProps.omit({
|
|
1232
|
+
pcbLayoutProps.omit({ layer: true }).extend({
|
|
1217
1233
|
name: z46.string().optional(),
|
|
1218
1234
|
connectsTo: z46.string().or(z46.array(z46.string())).optional(),
|
|
1219
1235
|
shape: z46.literal("pill_hole_with_rect_pad"),
|