@tscircuit/3d-viewer 0.0.473 → 0.0.475
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/index.js +1298 -1267
- package/package.json +2 -11
package/dist/index.js
CHANGED
|
@@ -144,8 +144,8 @@ var require_dist = __commonJS({
|
|
|
144
144
|
fromValues: (x, y) => [x, y]
|
|
145
145
|
},
|
|
146
146
|
vec3: {
|
|
147
|
-
create: (x, y,
|
|
148
|
-
fromValues: (x, y,
|
|
147
|
+
create: (x, y, z138) => [x, y, z138],
|
|
148
|
+
fromValues: (x, y, z138) => [x, y, z138]
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
geometries: {
|
|
@@ -532,29 +532,29 @@ var require_fromRotation = __commonJS({
|
|
|
532
532
|
var { sin: sin2, cos: cos2 } = require_trigonometry();
|
|
533
533
|
var identity = require_identity();
|
|
534
534
|
var fromRotation = (out, rad, axis) => {
|
|
535
|
-
let [x, y,
|
|
536
|
-
const lengthSquared = x * x + y * y +
|
|
535
|
+
let [x, y, z138] = axis;
|
|
536
|
+
const lengthSquared = x * x + y * y + z138 * z138;
|
|
537
537
|
if (Math.abs(lengthSquared) < EPS) {
|
|
538
538
|
return identity(out);
|
|
539
539
|
}
|
|
540
540
|
const len = 1 / Math.sqrt(lengthSquared);
|
|
541
541
|
x *= len;
|
|
542
542
|
y *= len;
|
|
543
|
-
|
|
543
|
+
z138 *= len;
|
|
544
544
|
const s = sin2(rad);
|
|
545
545
|
const c = cos2(rad);
|
|
546
546
|
const t = 1 - c;
|
|
547
547
|
out[0] = x * x * t + c;
|
|
548
|
-
out[1] = y * x * t +
|
|
549
|
-
out[2] =
|
|
548
|
+
out[1] = y * x * t + z138 * s;
|
|
549
|
+
out[2] = z138 * x * t - y * s;
|
|
550
550
|
out[3] = 0;
|
|
551
|
-
out[4] = x * y * t -
|
|
551
|
+
out[4] = x * y * t - z138 * s;
|
|
552
552
|
out[5] = y * y * t + c;
|
|
553
|
-
out[6] =
|
|
553
|
+
out[6] = z138 * y * t + x * s;
|
|
554
554
|
out[7] = 0;
|
|
555
|
-
out[8] = x *
|
|
556
|
-
out[9] = y *
|
|
557
|
-
out[10] =
|
|
555
|
+
out[8] = x * z138 * t + y * s;
|
|
556
|
+
out[9] = y * z138 * t - x * s;
|
|
557
|
+
out[10] = z138 * z138 * t + c;
|
|
558
558
|
out[11] = 0;
|
|
559
559
|
out[12] = 0;
|
|
560
560
|
out[13] = 0;
|
|
@@ -808,8 +808,8 @@ var require_distance = __commonJS({
|
|
|
808
808
|
var distance2 = (a, b) => {
|
|
809
809
|
const x = b[0] - a[0];
|
|
810
810
|
const y = b[1] - a[1];
|
|
811
|
-
const
|
|
812
|
-
return Math.sqrt(x * x + y * y +
|
|
811
|
+
const z138 = b[2] - a[2];
|
|
812
|
+
return Math.sqrt(x * x + y * y + z138 * z138);
|
|
813
813
|
};
|
|
814
814
|
module.exports = distance2;
|
|
815
815
|
}
|
|
@@ -857,11 +857,11 @@ var require_fromValues2 = __commonJS({
|
|
|
857
857
|
"node_modules/@jscad/modeling/src/maths/vec3/fromValues.js"(exports, module) {
|
|
858
858
|
"use strict";
|
|
859
859
|
var create = require_create2();
|
|
860
|
-
var fromValues = (x, y,
|
|
860
|
+
var fromValues = (x, y, z138) => {
|
|
861
861
|
const out = create();
|
|
862
862
|
out[0] = x;
|
|
863
863
|
out[1] = y;
|
|
864
|
-
out[2] =
|
|
864
|
+
out[2] = z138;
|
|
865
865
|
return out;
|
|
866
866
|
};
|
|
867
867
|
module.exports = fromValues;
|
|
@@ -872,10 +872,10 @@ var require_fromValues2 = __commonJS({
|
|
|
872
872
|
var require_fromVec2 = __commonJS({
|
|
873
873
|
"node_modules/@jscad/modeling/src/maths/vec3/fromVec2.js"(exports, module) {
|
|
874
874
|
"use strict";
|
|
875
|
-
var fromVector2 = (out, vector,
|
|
875
|
+
var fromVector2 = (out, vector, z138 = 0) => {
|
|
876
876
|
out[0] = vector[0];
|
|
877
877
|
out[1] = vector[1];
|
|
878
|
-
out[2] =
|
|
878
|
+
out[2] = z138;
|
|
879
879
|
return out;
|
|
880
880
|
};
|
|
881
881
|
module.exports = fromVector2;
|
|
@@ -889,8 +889,8 @@ var require_length = __commonJS({
|
|
|
889
889
|
var length2 = (vector) => {
|
|
890
890
|
const x = vector[0];
|
|
891
891
|
const y = vector[1];
|
|
892
|
-
const
|
|
893
|
-
return Math.sqrt(x * x + y * y +
|
|
892
|
+
const z138 = vector[2];
|
|
893
|
+
return Math.sqrt(x * x + y * y + z138 * z138);
|
|
894
894
|
};
|
|
895
895
|
module.exports = length2;
|
|
896
896
|
}
|
|
@@ -973,14 +973,14 @@ var require_normalize = __commonJS({
|
|
|
973
973
|
var normalize = (out, vector) => {
|
|
974
974
|
const x = vector[0];
|
|
975
975
|
const y = vector[1];
|
|
976
|
-
const
|
|
977
|
-
let len = x * x + y * y +
|
|
976
|
+
const z138 = vector[2];
|
|
977
|
+
let len = x * x + y * y + z138 * z138;
|
|
978
978
|
if (len > 0) {
|
|
979
979
|
len = 1 / Math.sqrt(len);
|
|
980
980
|
}
|
|
981
981
|
out[0] = x * len;
|
|
982
982
|
out[1] = y * len;
|
|
983
|
-
out[2] =
|
|
983
|
+
out[2] = z138 * len;
|
|
984
984
|
return out;
|
|
985
985
|
};
|
|
986
986
|
module.exports = normalize;
|
|
@@ -1104,8 +1104,8 @@ var require_squaredDistance = __commonJS({
|
|
|
1104
1104
|
var squaredDistance = (a, b) => {
|
|
1105
1105
|
const x = b[0] - a[0];
|
|
1106
1106
|
const y = b[1] - a[1];
|
|
1107
|
-
const
|
|
1108
|
-
return x * x + y * y +
|
|
1107
|
+
const z138 = b[2] - a[2];
|
|
1108
|
+
return x * x + y * y + z138 * z138;
|
|
1109
1109
|
};
|
|
1110
1110
|
module.exports = squaredDistance;
|
|
1111
1111
|
}
|
|
@@ -1118,8 +1118,8 @@ var require_squaredLength = __commonJS({
|
|
|
1118
1118
|
var squaredLength = (vector) => {
|
|
1119
1119
|
const x = vector[0];
|
|
1120
1120
|
const y = vector[1];
|
|
1121
|
-
const
|
|
1122
|
-
return x * x + y * y +
|
|
1121
|
+
const z138 = vector[2];
|
|
1122
|
+
return x * x + y * y + z138 * z138;
|
|
1123
1123
|
};
|
|
1124
1124
|
module.exports = squaredLength;
|
|
1125
1125
|
}
|
|
@@ -1155,12 +1155,12 @@ var require_transform = __commonJS({
|
|
|
1155
1155
|
var transform2 = (out, vector, matrix) => {
|
|
1156
1156
|
const x = vector[0];
|
|
1157
1157
|
const y = vector[1];
|
|
1158
|
-
const
|
|
1159
|
-
let w = matrix[3] * x + matrix[7] * y + matrix[11] *
|
|
1158
|
+
const z138 = vector[2];
|
|
1159
|
+
let w = matrix[3] * x + matrix[7] * y + matrix[11] * z138 + matrix[15];
|
|
1160
1160
|
w = w || 1;
|
|
1161
|
-
out[0] = (matrix[0] * x + matrix[4] * y + matrix[8] *
|
|
1162
|
-
out[1] = (matrix[1] * x + matrix[5] * y + matrix[9] *
|
|
1163
|
-
out[2] = (matrix[2] * x + matrix[6] * y + matrix[10] *
|
|
1161
|
+
out[0] = (matrix[0] * x + matrix[4] * y + matrix[8] * z138 + matrix[12]) / w;
|
|
1162
|
+
out[1] = (matrix[1] * x + matrix[5] * y + matrix[9] * z138 + matrix[13]) / w;
|
|
1163
|
+
out[2] = (matrix[2] * x + matrix[6] * y + matrix[10] * z138 + matrix[14]) / w;
|
|
1164
1164
|
return out;
|
|
1165
1165
|
};
|
|
1166
1166
|
module.exports = transform2;
|
|
@@ -1362,8 +1362,8 @@ var require_isMirroring = __commonJS({
|
|
|
1362
1362
|
var isMirroring = (matrix) => {
|
|
1363
1363
|
const x = matrix[4] * matrix[9] - matrix[8] * matrix[5];
|
|
1364
1364
|
const y = matrix[8] * matrix[1] - matrix[0] * matrix[9];
|
|
1365
|
-
const
|
|
1366
|
-
const d = x * matrix[2] + y * matrix[6] +
|
|
1365
|
+
const z138 = matrix[0] * matrix[5] - matrix[4] * matrix[1];
|
|
1366
|
+
const d = x * matrix[2] + y * matrix[6] + z138 * matrix[10];
|
|
1367
1367
|
return d < 0;
|
|
1368
1368
|
};
|
|
1369
1369
|
module.exports = isMirroring;
|
|
@@ -1465,15 +1465,15 @@ var require_rotate = __commonJS({
|
|
|
1465
1465
|
var { sin: sin2, cos: cos2 } = require_trigonometry();
|
|
1466
1466
|
var copy = require_copy();
|
|
1467
1467
|
var rotate3 = (out, matrix, radians, axis) => {
|
|
1468
|
-
let [x, y,
|
|
1469
|
-
const lengthSquared = x * x + y * y +
|
|
1468
|
+
let [x, y, z138] = axis;
|
|
1469
|
+
const lengthSquared = x * x + y * y + z138 * z138;
|
|
1470
1470
|
if (Math.abs(lengthSquared) < EPS) {
|
|
1471
1471
|
return copy(out, matrix);
|
|
1472
1472
|
}
|
|
1473
1473
|
const len = 1 / Math.sqrt(lengthSquared);
|
|
1474
1474
|
x *= len;
|
|
1475
1475
|
y *= len;
|
|
1476
|
-
|
|
1476
|
+
z138 *= len;
|
|
1477
1477
|
const s = sin2(radians);
|
|
1478
1478
|
const c = cos2(radians);
|
|
1479
1479
|
const t = 1 - c;
|
|
@@ -1490,14 +1490,14 @@ var require_rotate = __commonJS({
|
|
|
1490
1490
|
const a22 = matrix[10];
|
|
1491
1491
|
const a23 = matrix[11];
|
|
1492
1492
|
const b00 = x * x * t + c;
|
|
1493
|
-
const b01 = y * x * t +
|
|
1494
|
-
const b02 =
|
|
1495
|
-
const b10 = x * y * t -
|
|
1493
|
+
const b01 = y * x * t + z138 * s;
|
|
1494
|
+
const b02 = z138 * x * t - y * s;
|
|
1495
|
+
const b10 = x * y * t - z138 * s;
|
|
1496
1496
|
const b11 = y * y * t + c;
|
|
1497
|
-
const b12 =
|
|
1498
|
-
const b20 = x *
|
|
1499
|
-
const b21 = y *
|
|
1500
|
-
const b22 =
|
|
1497
|
+
const b12 = z138 * y * t + x * s;
|
|
1498
|
+
const b20 = x * z138 * t + y * s;
|
|
1499
|
+
const b21 = y * z138 * t - x * s;
|
|
1500
|
+
const b22 = z138 * z138 * t + c;
|
|
1501
1501
|
out[0] = a00 * b00 + a10 * b01 + a20 * b02;
|
|
1502
1502
|
out[1] = a01 * b00 + a11 * b01 + a21 * b02;
|
|
1503
1503
|
out[2] = a02 * b00 + a12 * b01 + a22 * b02;
|
|
@@ -1649,7 +1649,7 @@ var require_scale2 = __commonJS({
|
|
|
1649
1649
|
var scale3 = (out, matrix, dimensions) => {
|
|
1650
1650
|
const x = dimensions[0];
|
|
1651
1651
|
const y = dimensions[1];
|
|
1652
|
-
const
|
|
1652
|
+
const z138 = dimensions[2];
|
|
1653
1653
|
out[0] = matrix[0] * x;
|
|
1654
1654
|
out[1] = matrix[1] * x;
|
|
1655
1655
|
out[2] = matrix[2] * x;
|
|
@@ -1658,10 +1658,10 @@ var require_scale2 = __commonJS({
|
|
|
1658
1658
|
out[5] = matrix[5] * y;
|
|
1659
1659
|
out[6] = matrix[6] * y;
|
|
1660
1660
|
out[7] = matrix[7] * y;
|
|
1661
|
-
out[8] = matrix[8] *
|
|
1662
|
-
out[9] = matrix[9] *
|
|
1663
|
-
out[10] = matrix[10] *
|
|
1664
|
-
out[11] = matrix[11] *
|
|
1661
|
+
out[8] = matrix[8] * z138;
|
|
1662
|
+
out[9] = matrix[9] * z138;
|
|
1663
|
+
out[10] = matrix[10] * z138;
|
|
1664
|
+
out[11] = matrix[11] * z138;
|
|
1665
1665
|
out[12] = matrix[12];
|
|
1666
1666
|
out[13] = matrix[13];
|
|
1667
1667
|
out[14] = matrix[14];
|
|
@@ -1715,7 +1715,7 @@ var require_translate = __commonJS({
|
|
|
1715
1715
|
var translate7 = (out, matrix, offsets) => {
|
|
1716
1716
|
const x = offsets[0];
|
|
1717
1717
|
const y = offsets[1];
|
|
1718
|
-
const
|
|
1718
|
+
const z138 = offsets[2];
|
|
1719
1719
|
let a00;
|
|
1720
1720
|
let a01;
|
|
1721
1721
|
let a02;
|
|
@@ -1729,10 +1729,10 @@ var require_translate = __commonJS({
|
|
|
1729
1729
|
let a22;
|
|
1730
1730
|
let a23;
|
|
1731
1731
|
if (matrix === out) {
|
|
1732
|
-
out[12] = matrix[0] * x + matrix[4] * y + matrix[8] *
|
|
1733
|
-
out[13] = matrix[1] * x + matrix[5] * y + matrix[9] *
|
|
1734
|
-
out[14] = matrix[2] * x + matrix[6] * y + matrix[10] *
|
|
1735
|
-
out[15] = matrix[3] * x + matrix[7] * y + matrix[11] *
|
|
1732
|
+
out[12] = matrix[0] * x + matrix[4] * y + matrix[8] * z138 + matrix[12];
|
|
1733
|
+
out[13] = matrix[1] * x + matrix[5] * y + matrix[9] * z138 + matrix[13];
|
|
1734
|
+
out[14] = matrix[2] * x + matrix[6] * y + matrix[10] * z138 + matrix[14];
|
|
1735
|
+
out[15] = matrix[3] * x + matrix[7] * y + matrix[11] * z138 + matrix[15];
|
|
1736
1736
|
} else {
|
|
1737
1737
|
a00 = matrix[0];
|
|
1738
1738
|
a01 = matrix[1];
|
|
@@ -1758,10 +1758,10 @@ var require_translate = __commonJS({
|
|
|
1758
1758
|
out[9] = a21;
|
|
1759
1759
|
out[10] = a22;
|
|
1760
1760
|
out[11] = a23;
|
|
1761
|
-
out[12] = a00 * x + a10 * y + a20 *
|
|
1762
|
-
out[13] = a01 * x + a11 * y + a21 *
|
|
1763
|
-
out[14] = a02 * x + a12 * y + a22 *
|
|
1764
|
-
out[15] = a03 * x + a13 * y + a23 *
|
|
1761
|
+
out[12] = a00 * x + a10 * y + a20 * z138 + matrix[12];
|
|
1762
|
+
out[13] = a01 * x + a11 * y + a21 * z138 + matrix[13];
|
|
1763
|
+
out[14] = a02 * x + a12 * y + a22 * z138 + matrix[14];
|
|
1764
|
+
out[15] = a03 * x + a13 * y + a23 * z138 + matrix[15];
|
|
1765
1765
|
}
|
|
1766
1766
|
return out;
|
|
1767
1767
|
};
|
|
@@ -3831,11 +3831,11 @@ var require_fromValues4 = __commonJS({
|
|
|
3831
3831
|
"node_modules/@jscad/modeling/src/maths/vec4/fromValues.js"(exports, module) {
|
|
3832
3832
|
"use strict";
|
|
3833
3833
|
var create = require_create7();
|
|
3834
|
-
var fromValues = (x, y,
|
|
3834
|
+
var fromValues = (x, y, z138, w) => {
|
|
3835
3835
|
const out = create();
|
|
3836
3836
|
out[0] = x;
|
|
3837
3837
|
out[1] = y;
|
|
3838
|
-
out[2] =
|
|
3838
|
+
out[2] = z138;
|
|
3839
3839
|
out[3] = w;
|
|
3840
3840
|
return out;
|
|
3841
3841
|
};
|
|
@@ -3993,8 +3993,8 @@ var require_projectionOfPoint = __commonJS({
|
|
|
3993
3993
|
const a = point2[0] * plane[0] + point2[1] * plane[1] + point2[2] * plane[2] - plane[3];
|
|
3994
3994
|
const x = point2[0] - a * plane[0];
|
|
3995
3995
|
const y = point2[1] - a * plane[1];
|
|
3996
|
-
const
|
|
3997
|
-
return vec3.fromValues(x, y,
|
|
3996
|
+
const z138 = point2[2] - a * plane[2];
|
|
3997
|
+
return vec3.fromValues(x, y, z138);
|
|
3998
3998
|
};
|
|
3999
3999
|
module.exports = projectionOfPoint;
|
|
4000
4000
|
}
|
|
@@ -4298,11 +4298,11 @@ var require_transform5 = __commonJS({
|
|
|
4298
4298
|
"node_modules/@jscad/modeling/src/maths/vec4/transform.js"(exports, module) {
|
|
4299
4299
|
"use strict";
|
|
4300
4300
|
var transform2 = (out, vector, matrix) => {
|
|
4301
|
-
const [x, y,
|
|
4302
|
-
out[0] = matrix[0] * x + matrix[4] * y + matrix[8] *
|
|
4303
|
-
out[1] = matrix[1] * x + matrix[5] * y + matrix[9] *
|
|
4304
|
-
out[2] = matrix[2] * x + matrix[6] * y + matrix[10] *
|
|
4305
|
-
out[3] = matrix[3] * x + matrix[7] * y + matrix[11] *
|
|
4301
|
+
const [x, y, z138, w] = vector;
|
|
4302
|
+
out[0] = matrix[0] * x + matrix[4] * y + matrix[8] * z138 + matrix[12] * w;
|
|
4303
|
+
out[1] = matrix[1] * x + matrix[5] * y + matrix[9] * z138 + matrix[13] * w;
|
|
4304
|
+
out[2] = matrix[2] * x + matrix[6] * y + matrix[10] * z138 + matrix[14] * w;
|
|
4305
|
+
out[3] = matrix[3] * x + matrix[7] * y + matrix[11] * z138 + matrix[15] * w;
|
|
4306
4306
|
return out;
|
|
4307
4307
|
};
|
|
4308
4308
|
module.exports = transform2;
|
|
@@ -4364,8 +4364,8 @@ var require_measureBoundingSphere = __commonJS({
|
|
|
4364
4364
|
out[2] = (minz[2] + maxz[2]) * 0.5;
|
|
4365
4365
|
const x = out[0] - maxx[0];
|
|
4366
4366
|
const y = out[1] - maxy[1];
|
|
4367
|
-
const
|
|
4368
|
-
out[3] = Math.sqrt(x * x + y * y +
|
|
4367
|
+
const z138 = out[2] - maxz[2];
|
|
4368
|
+
out[3] = Math.sqrt(x * x + y * y + z138 * z138);
|
|
4369
4369
|
cache.set(polygon3, out);
|
|
4370
4370
|
return out;
|
|
4371
4371
|
};
|
|
@@ -14791,7 +14791,7 @@ var import_jscad_planner = __toESM(require_dist(), 1);
|
|
|
14791
14791
|
var import_modeling = __toESM(require_src(), 1);
|
|
14792
14792
|
|
|
14793
14793
|
// node_modules/@tscircuit/footprinter/dist/index.js
|
|
14794
|
-
import { z as
|
|
14794
|
+
import { z as z136 } from "zod";
|
|
14795
14795
|
|
|
14796
14796
|
// node_modules/@tscircuit/mm/dist/index.js
|
|
14797
14797
|
var unitToMm = {
|
|
@@ -14835,8 +14835,8 @@ import { z as z12 } from "zod";
|
|
|
14835
14835
|
import { z as z13 } from "zod";
|
|
14836
14836
|
import { z as z14 } from "zod";
|
|
14837
14837
|
import { z as z15 } from "zod";
|
|
14838
|
-
import { z as z36 } from "zod";
|
|
14839
14838
|
import { z as z16 } from "zod";
|
|
14839
|
+
import { z as z38 } from "zod";
|
|
14840
14840
|
import { z as z17 } from "zod";
|
|
14841
14841
|
import { z as z18 } from "zod";
|
|
14842
14842
|
import { z as z19 } from "zod";
|
|
@@ -14856,17 +14856,17 @@ import { z as z32 } from "zod";
|
|
|
14856
14856
|
import { z as z33 } from "zod";
|
|
14857
14857
|
import { z as z34 } from "zod";
|
|
14858
14858
|
import { z as z35 } from "zod";
|
|
14859
|
+
import { z as z36 } from "zod";
|
|
14859
14860
|
import { z as z37 } from "zod";
|
|
14860
|
-
import { z as z38 } from "zod";
|
|
14861
14861
|
import { z as z39 } from "zod";
|
|
14862
14862
|
import { z as z40 } from "zod";
|
|
14863
14863
|
import { z as z41 } from "zod";
|
|
14864
14864
|
import { z as z42 } from "zod";
|
|
14865
|
-
import { z as z44 } from "zod";
|
|
14866
14865
|
import { z as z43 } from "zod";
|
|
14866
|
+
import { z as z44 } from "zod";
|
|
14867
14867
|
import { z as z45 } from "zod";
|
|
14868
|
-
import { z as z46 } from "zod";
|
|
14869
14868
|
import { z as z47 } from "zod";
|
|
14869
|
+
import { z as z46 } from "zod";
|
|
14870
14870
|
import { z as z48 } from "zod";
|
|
14871
14871
|
import { z as z49 } from "zod";
|
|
14872
14872
|
import { z as z50 } from "zod";
|
|
@@ -14874,11 +14874,11 @@ import { z as z51 } from "zod";
|
|
|
14874
14874
|
import { z as z52 } from "zod";
|
|
14875
14875
|
import { z as z53 } from "zod";
|
|
14876
14876
|
import { z as z54 } from "zod";
|
|
14877
|
-
import { z as z56 } from "zod";
|
|
14878
14877
|
import { z as z55 } from "zod";
|
|
14878
|
+
import { z as z56 } from "zod";
|
|
14879
14879
|
import { z as z57 } from "zod";
|
|
14880
|
-
import { z as z58 } from "zod";
|
|
14881
14880
|
import { z as z59 } from "zod";
|
|
14881
|
+
import { z as z58 } from "zod";
|
|
14882
14882
|
import { z as z60 } from "zod";
|
|
14883
14883
|
import { z as z61 } from "zod";
|
|
14884
14884
|
import { z as z62 } from "zod";
|
|
@@ -14952,6 +14952,9 @@ import { z as z129 } from "zod";
|
|
|
14952
14952
|
import { z as z130 } from "zod";
|
|
14953
14953
|
import { z as z131 } from "zod";
|
|
14954
14954
|
import { z as z132 } from "zod";
|
|
14955
|
+
import { z as z133 } from "zod";
|
|
14956
|
+
import { z as z134 } from "zod";
|
|
14957
|
+
import { z as z135 } from "zod";
|
|
14955
14958
|
var unitMappings = {
|
|
14956
14959
|
Hz: {
|
|
14957
14960
|
baseUnit: "Hz",
|
|
@@ -15288,191 +15291,200 @@ var source_simple_diode = source_component_base.extend({
|
|
|
15288
15291
|
ftype: z11.literal("simple_diode")
|
|
15289
15292
|
});
|
|
15290
15293
|
expectTypesMatch(true);
|
|
15294
|
+
var source_simple_fiducial = source_component_base.extend({
|
|
15295
|
+
ftype: z12.literal("simple_fiducial")
|
|
15296
|
+
});
|
|
15297
|
+
expectTypesMatch(true);
|
|
15291
15298
|
var source_simple_led = source_simple_diode.extend({
|
|
15292
|
-
ftype:
|
|
15293
|
-
color:
|
|
15294
|
-
wavelength:
|
|
15299
|
+
ftype: z13.literal("simple_led"),
|
|
15300
|
+
color: z13.string().optional(),
|
|
15301
|
+
wavelength: z13.string().optional()
|
|
15295
15302
|
});
|
|
15296
15303
|
expectTypesMatch(true);
|
|
15297
15304
|
var source_simple_ground = source_component_base.extend({
|
|
15298
|
-
ftype:
|
|
15305
|
+
ftype: z14.literal("simple_ground")
|
|
15299
15306
|
});
|
|
15300
15307
|
expectTypesMatch(true);
|
|
15301
15308
|
var source_simple_chip = source_component_base.extend({
|
|
15302
|
-
ftype:
|
|
15309
|
+
ftype: z15.literal("simple_chip")
|
|
15303
15310
|
});
|
|
15304
15311
|
expectTypesMatch(true);
|
|
15305
15312
|
var source_simple_power_source = source_component_base.extend({
|
|
15306
|
-
ftype:
|
|
15313
|
+
ftype: z16.literal("simple_power_source"),
|
|
15307
15314
|
voltage
|
|
15308
15315
|
});
|
|
15309
15316
|
expectTypesMatch(true);
|
|
15310
15317
|
var source_simple_fuse = source_component_base.extend({
|
|
15311
|
-
ftype:
|
|
15312
|
-
current_rating_amps:
|
|
15313
|
-
voltage_rating_volts:
|
|
15318
|
+
ftype: z17.literal("simple_fuse"),
|
|
15319
|
+
current_rating_amps: z17.number().describe("Nominal current in amps the fuse is rated for"),
|
|
15320
|
+
voltage_rating_volts: z17.number().describe("Voltage rating in volts, e.g. \xB15V would be 5")
|
|
15314
15321
|
});
|
|
15315
15322
|
expectTypesMatch(true);
|
|
15316
15323
|
var source_simple_battery = source_component_base.extend({
|
|
15317
|
-
ftype:
|
|
15324
|
+
ftype: z18.literal("simple_battery"),
|
|
15318
15325
|
capacity: battery_capacity
|
|
15319
15326
|
});
|
|
15320
15327
|
expectTypesMatch(true);
|
|
15321
15328
|
var source_simple_inductor = source_component_base.extend({
|
|
15322
|
-
ftype:
|
|
15329
|
+
ftype: z19.literal("simple_inductor"),
|
|
15323
15330
|
inductance,
|
|
15324
|
-
max_current_rating:
|
|
15331
|
+
max_current_rating: z19.number().optional()
|
|
15325
15332
|
});
|
|
15326
15333
|
expectTypesMatch(true);
|
|
15327
15334
|
var source_simple_push_button = source_component_base.extend({
|
|
15328
|
-
ftype:
|
|
15335
|
+
ftype: z20.literal("simple_push_button")
|
|
15329
15336
|
});
|
|
15330
15337
|
expectTypesMatch(true);
|
|
15331
15338
|
var source_simple_potentiometer = source_component_base.extend({
|
|
15332
|
-
ftype:
|
|
15339
|
+
ftype: z21.literal("simple_potentiometer"),
|
|
15333
15340
|
max_resistance: resistance
|
|
15334
15341
|
});
|
|
15335
15342
|
expectTypesMatch(
|
|
15336
15343
|
true
|
|
15337
15344
|
);
|
|
15338
15345
|
var source_simple_crystal = source_component_base.extend({
|
|
15339
|
-
ftype:
|
|
15340
|
-
frequency:
|
|
15341
|
-
load_capacitance:
|
|
15346
|
+
ftype: z22.literal("simple_crystal"),
|
|
15347
|
+
frequency: z22.number().describe("Frequency in Hz"),
|
|
15348
|
+
load_capacitance: z22.number().optional().describe("Load capacitance in pF")
|
|
15342
15349
|
});
|
|
15343
15350
|
expectTypesMatch(true);
|
|
15344
15351
|
var source_simple_pin_header = source_component_base.extend({
|
|
15345
|
-
ftype:
|
|
15346
|
-
pin_count:
|
|
15347
|
-
gender:
|
|
15352
|
+
ftype: z23.literal("simple_pin_header"),
|
|
15353
|
+
pin_count: z23.number(),
|
|
15354
|
+
gender: z23.enum(["male", "female"]).optional().default("male")
|
|
15348
15355
|
});
|
|
15349
15356
|
expectTypesMatch(true);
|
|
15350
15357
|
var source_simple_pinout = source_component_base.extend({
|
|
15351
|
-
ftype:
|
|
15358
|
+
ftype: z24.literal("simple_pinout")
|
|
15352
15359
|
});
|
|
15353
15360
|
expectTypesMatch(true);
|
|
15354
15361
|
var source_simple_resonator = source_component_base.extend({
|
|
15355
|
-
ftype:
|
|
15362
|
+
ftype: z25.literal("simple_resonator"),
|
|
15356
15363
|
load_capacitance: capacitance,
|
|
15357
15364
|
equivalent_series_resistance: resistance.optional(),
|
|
15358
15365
|
frequency
|
|
15359
15366
|
});
|
|
15360
15367
|
expectTypesMatch(true);
|
|
15361
15368
|
var source_simple_transistor = source_component_base.extend({
|
|
15362
|
-
ftype:
|
|
15363
|
-
transistor_type:
|
|
15369
|
+
ftype: z26.literal("simple_transistor"),
|
|
15370
|
+
transistor_type: z26.enum(["npn", "pnp"])
|
|
15364
15371
|
});
|
|
15365
15372
|
expectTypesMatch(true);
|
|
15366
15373
|
var source_simple_test_point = source_component_base.extend({
|
|
15367
|
-
ftype:
|
|
15368
|
-
footprint_variant:
|
|
15369
|
-
pad_shape:
|
|
15370
|
-
pad_diameter:
|
|
15371
|
-
hole_diameter:
|
|
15372
|
-
width:
|
|
15373
|
-
height:
|
|
15374
|
+
ftype: z27.literal("simple_test_point"),
|
|
15375
|
+
footprint_variant: z27.enum(["pad", "through_hole"]).optional(),
|
|
15376
|
+
pad_shape: z27.enum(["rect", "circle"]).optional(),
|
|
15377
|
+
pad_diameter: z27.union([z27.number(), z27.string()]).optional(),
|
|
15378
|
+
hole_diameter: z27.union([z27.number(), z27.string()]).optional(),
|
|
15379
|
+
width: z27.union([z27.number(), z27.string()]).optional(),
|
|
15380
|
+
height: z27.union([z27.number(), z27.string()]).optional()
|
|
15374
15381
|
});
|
|
15375
15382
|
expectTypesMatch(true);
|
|
15376
15383
|
var source_simple_mosfet = source_component_base.extend({
|
|
15377
|
-
ftype:
|
|
15378
|
-
channel_type:
|
|
15379
|
-
mosfet_mode:
|
|
15384
|
+
ftype: z28.literal("simple_mosfet"),
|
|
15385
|
+
channel_type: z28.enum(["n", "p"]),
|
|
15386
|
+
mosfet_mode: z28.enum(["enhancement", "depletion"])
|
|
15380
15387
|
});
|
|
15381
15388
|
expectTypesMatch(true);
|
|
15382
15389
|
var source_simple_switch = source_component_base.extend({
|
|
15383
|
-
ftype:
|
|
15390
|
+
ftype: z29.literal("simple_switch")
|
|
15384
15391
|
});
|
|
15385
15392
|
expectTypesMatch(true);
|
|
15386
|
-
var source_project_metadata =
|
|
15387
|
-
type:
|
|
15388
|
-
name:
|
|
15389
|
-
software_used_string:
|
|
15390
|
-
project_url:
|
|
15393
|
+
var source_project_metadata = z30.object({
|
|
15394
|
+
type: z30.literal("source_project_metadata"),
|
|
15395
|
+
name: z30.string().optional(),
|
|
15396
|
+
software_used_string: z30.string().optional(),
|
|
15397
|
+
project_url: z30.string().optional(),
|
|
15391
15398
|
created_at: timestamp.optional()
|
|
15392
15399
|
});
|
|
15393
15400
|
expectTypesMatch(true);
|
|
15394
|
-
var source_missing_property_error =
|
|
15395
|
-
type:
|
|
15401
|
+
var source_missing_property_error = z31.object({
|
|
15402
|
+
type: z31.literal("source_missing_property_error"),
|
|
15396
15403
|
source_missing_property_error_id: getZodPrefixedIdWithDefault(
|
|
15397
15404
|
"source_missing_property_error"
|
|
15398
15405
|
),
|
|
15399
|
-
source_component_id:
|
|
15400
|
-
property_name:
|
|
15401
|
-
subcircuit_id:
|
|
15402
|
-
error_type:
|
|
15403
|
-
message:
|
|
15406
|
+
source_component_id: z31.string(),
|
|
15407
|
+
property_name: z31.string(),
|
|
15408
|
+
subcircuit_id: z31.string().optional(),
|
|
15409
|
+
error_type: z31.literal("source_missing_property_error").default("source_missing_property_error"),
|
|
15410
|
+
message: z31.string()
|
|
15404
15411
|
}).describe("The source code is missing a property");
|
|
15405
15412
|
expectTypesMatch(true);
|
|
15406
|
-
var source_failed_to_create_component_error =
|
|
15407
|
-
type:
|
|
15413
|
+
var source_failed_to_create_component_error = z32.object({
|
|
15414
|
+
type: z32.literal("source_failed_to_create_component_error"),
|
|
15408
15415
|
source_failed_to_create_component_error_id: getZodPrefixedIdWithDefault(
|
|
15409
15416
|
"source_failed_to_create_component_error"
|
|
15410
15417
|
),
|
|
15411
|
-
error_type:
|
|
15412
|
-
component_name:
|
|
15413
|
-
subcircuit_id:
|
|
15414
|
-
parent_source_component_id:
|
|
15415
|
-
message:
|
|
15416
|
-
pcb_center:
|
|
15417
|
-
x:
|
|
15418
|
-
y:
|
|
15418
|
+
error_type: z32.literal("source_failed_to_create_component_error").default("source_failed_to_create_component_error"),
|
|
15419
|
+
component_name: z32.string().optional(),
|
|
15420
|
+
subcircuit_id: z32.string().optional(),
|
|
15421
|
+
parent_source_component_id: z32.string().optional(),
|
|
15422
|
+
message: z32.string(),
|
|
15423
|
+
pcb_center: z32.object({
|
|
15424
|
+
x: z32.number().optional(),
|
|
15425
|
+
y: z32.number().optional()
|
|
15419
15426
|
}).optional(),
|
|
15420
|
-
schematic_center:
|
|
15421
|
-
x:
|
|
15422
|
-
y:
|
|
15427
|
+
schematic_center: z32.object({
|
|
15428
|
+
x: z32.number().optional(),
|
|
15429
|
+
y: z32.number().optional()
|
|
15423
15430
|
}).optional()
|
|
15424
15431
|
}).describe("Error emitted when a component fails to be constructed");
|
|
15425
15432
|
expectTypesMatch(true);
|
|
15426
|
-
var source_trace_not_connected_error =
|
|
15427
|
-
type:
|
|
15433
|
+
var source_trace_not_connected_error = z33.object({
|
|
15434
|
+
type: z33.literal("source_trace_not_connected_error"),
|
|
15428
15435
|
source_trace_not_connected_error_id: getZodPrefixedIdWithDefault(
|
|
15429
15436
|
"source_trace_not_connected_error"
|
|
15430
15437
|
),
|
|
15431
|
-
error_type:
|
|
15432
|
-
message:
|
|
15433
|
-
subcircuit_id:
|
|
15434
|
-
source_group_id:
|
|
15435
|
-
source_trace_id:
|
|
15436
|
-
connected_source_port_ids:
|
|
15437
|
-
selectors_not_found:
|
|
15438
|
+
error_type: z33.literal("source_trace_not_connected_error").default("source_trace_not_connected_error"),
|
|
15439
|
+
message: z33.string(),
|
|
15440
|
+
subcircuit_id: z33.string().optional(),
|
|
15441
|
+
source_group_id: z33.string().optional(),
|
|
15442
|
+
source_trace_id: z33.string().optional(),
|
|
15443
|
+
connected_source_port_ids: z33.array(z33.string()).optional(),
|
|
15444
|
+
selectors_not_found: z33.array(z33.string()).optional()
|
|
15438
15445
|
}).describe("Occurs when a source trace selector does not match any ports");
|
|
15439
15446
|
expectTypesMatch(true);
|
|
15440
|
-
var source_property_ignored_warning =
|
|
15441
|
-
type:
|
|
15447
|
+
var source_property_ignored_warning = z34.object({
|
|
15448
|
+
type: z34.literal("source_property_ignored_warning"),
|
|
15442
15449
|
source_property_ignored_warning_id: getZodPrefixedIdWithDefault(
|
|
15443
15450
|
"source_property_ignored_warning"
|
|
15444
15451
|
),
|
|
15445
|
-
source_component_id:
|
|
15446
|
-
property_name:
|
|
15447
|
-
subcircuit_id:
|
|
15448
|
-
error_type:
|
|
15449
|
-
message:
|
|
15452
|
+
source_component_id: z34.string(),
|
|
15453
|
+
property_name: z34.string(),
|
|
15454
|
+
subcircuit_id: z34.string().optional(),
|
|
15455
|
+
error_type: z34.literal("source_property_ignored_warning").default("source_property_ignored_warning"),
|
|
15456
|
+
message: z34.string()
|
|
15450
15457
|
}).describe("The source property was ignored");
|
|
15451
15458
|
expectTypesMatch(true);
|
|
15452
|
-
var source_pin_missing_trace_warning =
|
|
15453
|
-
type:
|
|
15459
|
+
var source_pin_missing_trace_warning = z35.object({
|
|
15460
|
+
type: z35.literal("source_pin_missing_trace_warning"),
|
|
15454
15461
|
source_pin_missing_trace_warning_id: getZodPrefixedIdWithDefault(
|
|
15455
15462
|
"source_pin_missing_trace_warning"
|
|
15456
15463
|
),
|
|
15457
|
-
warning_type:
|
|
15458
|
-
message:
|
|
15459
|
-
source_component_id:
|
|
15460
|
-
source_port_id:
|
|
15461
|
-
subcircuit_id:
|
|
15464
|
+
warning_type: z35.literal("source_pin_missing_trace_warning").default("source_pin_missing_trace_warning"),
|
|
15465
|
+
message: z35.string(),
|
|
15466
|
+
source_component_id: z35.string(),
|
|
15467
|
+
source_port_id: z35.string(),
|
|
15468
|
+
subcircuit_id: z35.string().optional()
|
|
15462
15469
|
}).describe(
|
|
15463
15470
|
"Warning emitted when a source component pin is missing a trace connection"
|
|
15464
15471
|
);
|
|
15465
15472
|
expectTypesMatch(true);
|
|
15466
15473
|
var source_simple_voltage_probe = source_component_base.extend({
|
|
15467
|
-
ftype:
|
|
15474
|
+
ftype: z36.literal("simple_voltage_probe")
|
|
15468
15475
|
});
|
|
15469
15476
|
expectTypesMatch(
|
|
15470
15477
|
true
|
|
15471
15478
|
);
|
|
15472
|
-
var
|
|
15479
|
+
var source_interconnect = source_component_base.extend({
|
|
15480
|
+
ftype: z37.literal("interconnect")
|
|
15481
|
+
});
|
|
15482
|
+
expectTypesMatch(true);
|
|
15483
|
+
var any_source_component = z38.union([
|
|
15473
15484
|
source_simple_resistor,
|
|
15474
15485
|
source_simple_capacitor,
|
|
15475
15486
|
source_simple_diode,
|
|
15487
|
+
source_simple_fiducial,
|
|
15476
15488
|
source_simple_led,
|
|
15477
15489
|
source_simple_ground,
|
|
15478
15490
|
source_simple_chip,
|
|
@@ -15491,6 +15503,7 @@ var any_source_component = z36.union([
|
|
|
15491
15503
|
source_simple_mosfet,
|
|
15492
15504
|
source_simple_fuse,
|
|
15493
15505
|
source_simple_voltage_probe,
|
|
15506
|
+
source_interconnect,
|
|
15494
15507
|
source_project_metadata,
|
|
15495
15508
|
source_missing_property_error,
|
|
15496
15509
|
source_failed_to_create_component_error,
|
|
@@ -15499,71 +15512,79 @@ var any_source_component = z36.union([
|
|
|
15499
15512
|
source_pin_missing_trace_warning
|
|
15500
15513
|
]);
|
|
15501
15514
|
expectTypesMatch(true);
|
|
15502
|
-
var source_port =
|
|
15503
|
-
type:
|
|
15504
|
-
pin_number:
|
|
15505
|
-
port_hints:
|
|
15506
|
-
name:
|
|
15507
|
-
source_port_id:
|
|
15508
|
-
source_component_id:
|
|
15509
|
-
source_group_id:
|
|
15510
|
-
subcircuit_id:
|
|
15511
|
-
subcircuit_connectivity_map_key:
|
|
15512
|
-
must_be_connected:
|
|
15515
|
+
var source_port = z39.object({
|
|
15516
|
+
type: z39.literal("source_port"),
|
|
15517
|
+
pin_number: z39.number().optional(),
|
|
15518
|
+
port_hints: z39.array(z39.string()).optional(),
|
|
15519
|
+
name: z39.string(),
|
|
15520
|
+
source_port_id: z39.string(),
|
|
15521
|
+
source_component_id: z39.string().optional(),
|
|
15522
|
+
source_group_id: z39.string().optional(),
|
|
15523
|
+
subcircuit_id: z39.string().optional(),
|
|
15524
|
+
subcircuit_connectivity_map_key: z39.string().optional(),
|
|
15525
|
+
must_be_connected: z39.boolean().optional()
|
|
15513
15526
|
});
|
|
15514
15527
|
expectTypesMatch(true);
|
|
15515
|
-
var
|
|
15516
|
-
type:
|
|
15517
|
-
|
|
15518
|
-
|
|
15519
|
-
|
|
15520
|
-
subcircuit_id:
|
|
15521
|
-
subcircuit_connectivity_map_key: z38.string().optional(),
|
|
15522
|
-
max_length: z38.number().optional(),
|
|
15523
|
-
min_trace_thickness: z38.number().optional(),
|
|
15524
|
-
display_name: z38.string().optional()
|
|
15528
|
+
var source_component_internal_connection = z40.object({
|
|
15529
|
+
type: z40.literal("source_component_internal_connection"),
|
|
15530
|
+
source_component_internal_connection_id: z40.string(),
|
|
15531
|
+
source_component_id: z40.string(),
|
|
15532
|
+
source_port_ids: z40.array(z40.string()),
|
|
15533
|
+
subcircuit_id: z40.string().optional()
|
|
15525
15534
|
});
|
|
15526
15535
|
expectTypesMatch(true);
|
|
15527
|
-
var
|
|
15528
|
-
type:
|
|
15529
|
-
|
|
15530
|
-
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15536
|
-
|
|
15536
|
+
var source_trace = z41.object({
|
|
15537
|
+
type: z41.literal("source_trace"),
|
|
15538
|
+
source_trace_id: z41.string(),
|
|
15539
|
+
connected_source_port_ids: z41.array(z41.string()),
|
|
15540
|
+
connected_source_net_ids: z41.array(z41.string()),
|
|
15541
|
+
subcircuit_id: z41.string().optional(),
|
|
15542
|
+
subcircuit_connectivity_map_key: z41.string().optional(),
|
|
15543
|
+
max_length: z41.number().optional(),
|
|
15544
|
+
min_trace_thickness: z41.number().optional(),
|
|
15545
|
+
display_name: z41.string().optional()
|
|
15546
|
+
});
|
|
15547
|
+
expectTypesMatch(true);
|
|
15548
|
+
var source_group = z42.object({
|
|
15549
|
+
type: z42.literal("source_group"),
|
|
15550
|
+
source_group_id: z42.string(),
|
|
15551
|
+
subcircuit_id: z42.string().optional(),
|
|
15552
|
+
parent_subcircuit_id: z42.string().optional(),
|
|
15553
|
+
parent_source_group_id: z42.string().optional(),
|
|
15554
|
+
is_subcircuit: z42.boolean().optional(),
|
|
15555
|
+
show_as_schematic_box: z42.boolean().optional(),
|
|
15556
|
+
name: z42.string().optional(),
|
|
15557
|
+
was_automatically_named: z42.boolean().optional()
|
|
15537
15558
|
});
|
|
15538
15559
|
expectTypesMatch(true);
|
|
15539
|
-
var source_net =
|
|
15540
|
-
type:
|
|
15541
|
-
source_net_id:
|
|
15542
|
-
name:
|
|
15543
|
-
member_source_group_ids:
|
|
15544
|
-
is_power:
|
|
15545
|
-
is_ground:
|
|
15546
|
-
is_digital_signal:
|
|
15547
|
-
is_analog_signal:
|
|
15548
|
-
is_positive_voltage_source:
|
|
15549
|
-
trace_width:
|
|
15550
|
-
subcircuit_id:
|
|
15551
|
-
subcircuit_connectivity_map_key:
|
|
15560
|
+
var source_net = z43.object({
|
|
15561
|
+
type: z43.literal("source_net"),
|
|
15562
|
+
source_net_id: z43.string(),
|
|
15563
|
+
name: z43.string(),
|
|
15564
|
+
member_source_group_ids: z43.array(z43.string()),
|
|
15565
|
+
is_power: z43.boolean().optional(),
|
|
15566
|
+
is_ground: z43.boolean().optional(),
|
|
15567
|
+
is_digital_signal: z43.boolean().optional(),
|
|
15568
|
+
is_analog_signal: z43.boolean().optional(),
|
|
15569
|
+
is_positive_voltage_source: z43.boolean().optional(),
|
|
15570
|
+
trace_width: z43.number().optional(),
|
|
15571
|
+
subcircuit_id: z43.string().optional(),
|
|
15572
|
+
subcircuit_connectivity_map_key: z43.string().optional()
|
|
15552
15573
|
});
|
|
15553
15574
|
expectTypesMatch(true);
|
|
15554
|
-
var source_board =
|
|
15555
|
-
type:
|
|
15556
|
-
source_board_id:
|
|
15557
|
-
source_group_id:
|
|
15558
|
-
title:
|
|
15575
|
+
var source_board = z44.object({
|
|
15576
|
+
type: z44.literal("source_board"),
|
|
15577
|
+
source_board_id: z44.string(),
|
|
15578
|
+
source_group_id: z44.string(),
|
|
15579
|
+
title: z44.string().optional()
|
|
15559
15580
|
}).describe("Defines a board in the source domain");
|
|
15560
15581
|
expectTypesMatch(true);
|
|
15561
|
-
var source_pcb_ground_plane =
|
|
15562
|
-
type:
|
|
15563
|
-
source_pcb_ground_plane_id:
|
|
15564
|
-
source_group_id:
|
|
15565
|
-
source_net_id:
|
|
15566
|
-
subcircuit_id:
|
|
15582
|
+
var source_pcb_ground_plane = z45.object({
|
|
15583
|
+
type: z45.literal("source_pcb_ground_plane"),
|
|
15584
|
+
source_pcb_ground_plane_id: z45.string(),
|
|
15585
|
+
source_group_id: z45.string(),
|
|
15586
|
+
source_net_id: z45.string(),
|
|
15587
|
+
subcircuit_id: z45.string().optional()
|
|
15567
15588
|
}).describe("Defines a ground plane in the source domain");
|
|
15568
15589
|
expectTypesMatch(true);
|
|
15569
15590
|
var all_layers = [
|
|
@@ -15576,9 +15597,9 @@ var all_layers = [
|
|
|
15576
15597
|
"inner5",
|
|
15577
15598
|
"inner6"
|
|
15578
15599
|
];
|
|
15579
|
-
var layer_string =
|
|
15600
|
+
var layer_string = z46.enum(all_layers);
|
|
15580
15601
|
var layer_ref = layer_string.or(
|
|
15581
|
-
|
|
15602
|
+
z46.object({
|
|
15582
15603
|
name: layer_string
|
|
15583
15604
|
})
|
|
15584
15605
|
).transform((layer) => {
|
|
@@ -15588,215 +15609,215 @@ var layer_ref = layer_string.or(
|
|
|
15588
15609
|
return layer.name;
|
|
15589
15610
|
});
|
|
15590
15611
|
expectTypesMatch(true);
|
|
15591
|
-
var visible_layer =
|
|
15592
|
-
var source_manually_placed_via =
|
|
15593
|
-
type:
|
|
15594
|
-
source_manually_placed_via_id:
|
|
15595
|
-
source_group_id:
|
|
15596
|
-
source_net_id:
|
|
15597
|
-
subcircuit_id:
|
|
15598
|
-
source_trace_id:
|
|
15612
|
+
var visible_layer = z46.enum(["top", "bottom"]);
|
|
15613
|
+
var source_manually_placed_via = z47.object({
|
|
15614
|
+
type: z47.literal("source_manually_placed_via"),
|
|
15615
|
+
source_manually_placed_via_id: z47.string(),
|
|
15616
|
+
source_group_id: z47.string(),
|
|
15617
|
+
source_net_id: z47.string(),
|
|
15618
|
+
subcircuit_id: z47.string().optional(),
|
|
15619
|
+
source_trace_id: z47.string().optional()
|
|
15599
15620
|
}).describe("Defines a via that is manually placed in the source domain");
|
|
15600
15621
|
expectTypesMatch(true);
|
|
15601
|
-
var source_pin_must_be_connected_error =
|
|
15602
|
-
type:
|
|
15622
|
+
var source_pin_must_be_connected_error = z48.object({
|
|
15623
|
+
type: z48.literal("source_pin_must_be_connected_error"),
|
|
15603
15624
|
source_pin_must_be_connected_error_id: getZodPrefixedIdWithDefault(
|
|
15604
15625
|
"source_pin_must_be_connected_error"
|
|
15605
15626
|
),
|
|
15606
|
-
error_type:
|
|
15607
|
-
message:
|
|
15608
|
-
source_component_id:
|
|
15609
|
-
source_port_id:
|
|
15610
|
-
subcircuit_id:
|
|
15627
|
+
error_type: z48.literal("source_pin_must_be_connected_error").default("source_pin_must_be_connected_error"),
|
|
15628
|
+
message: z48.string(),
|
|
15629
|
+
source_component_id: z48.string(),
|
|
15630
|
+
source_port_id: z48.string(),
|
|
15631
|
+
subcircuit_id: z48.string().optional()
|
|
15611
15632
|
}).describe(
|
|
15612
15633
|
"Error emitted when a pin with mustBeConnected attribute is not connected to any trace"
|
|
15613
15634
|
);
|
|
15614
15635
|
expectTypesMatch(true);
|
|
15615
|
-
var unknown_error_finding_part =
|
|
15616
|
-
type:
|
|
15636
|
+
var unknown_error_finding_part = z49.object({
|
|
15637
|
+
type: z49.literal("unknown_error_finding_part"),
|
|
15617
15638
|
unknown_error_finding_part_id: getZodPrefixedIdWithDefault(
|
|
15618
15639
|
"unknown_error_finding_part"
|
|
15619
15640
|
),
|
|
15620
|
-
error_type:
|
|
15621
|
-
message:
|
|
15622
|
-
source_component_id:
|
|
15623
|
-
subcircuit_id:
|
|
15641
|
+
error_type: z49.literal("unknown_error_finding_part").default("unknown_error_finding_part"),
|
|
15642
|
+
message: z49.string(),
|
|
15643
|
+
source_component_id: z49.string().optional(),
|
|
15644
|
+
subcircuit_id: z49.string().optional()
|
|
15624
15645
|
}).describe(
|
|
15625
15646
|
"Error emitted when an unexpected error occurs while finding a part"
|
|
15626
15647
|
);
|
|
15627
15648
|
expectTypesMatch(true);
|
|
15628
|
-
var schematic_box =
|
|
15629
|
-
type:
|
|
15630
|
-
schematic_component_id:
|
|
15649
|
+
var schematic_box = z50.object({
|
|
15650
|
+
type: z50.literal("schematic_box"),
|
|
15651
|
+
schematic_component_id: z50.string().optional(),
|
|
15631
15652
|
width: distance,
|
|
15632
15653
|
height: distance,
|
|
15633
|
-
is_dashed:
|
|
15654
|
+
is_dashed: z50.boolean().default(false),
|
|
15634
15655
|
x: distance,
|
|
15635
15656
|
y: distance,
|
|
15636
|
-
subcircuit_id:
|
|
15657
|
+
subcircuit_id: z50.string().optional()
|
|
15637
15658
|
}).describe("Draws a box on the schematic");
|
|
15638
15659
|
expectTypesMatch(true);
|
|
15639
|
-
var schematic_path =
|
|
15640
|
-
type:
|
|
15641
|
-
schematic_component_id:
|
|
15642
|
-
fill_color:
|
|
15643
|
-
is_filled:
|
|
15644
|
-
points:
|
|
15645
|
-
subcircuit_id:
|
|
15660
|
+
var schematic_path = z51.object({
|
|
15661
|
+
type: z51.literal("schematic_path"),
|
|
15662
|
+
schematic_component_id: z51.string(),
|
|
15663
|
+
fill_color: z51.enum(["red", "blue"]).optional(),
|
|
15664
|
+
is_filled: z51.boolean().optional(),
|
|
15665
|
+
points: z51.array(point),
|
|
15666
|
+
subcircuit_id: z51.string().optional()
|
|
15646
15667
|
});
|
|
15647
15668
|
expectTypesMatch(true);
|
|
15648
|
-
var schematic_pin_styles =
|
|
15649
|
-
|
|
15669
|
+
var schematic_pin_styles = z52.record(
|
|
15670
|
+
z52.object({
|
|
15650
15671
|
left_margin: length.optional(),
|
|
15651
15672
|
right_margin: length.optional(),
|
|
15652
15673
|
top_margin: length.optional(),
|
|
15653
15674
|
bottom_margin: length.optional()
|
|
15654
15675
|
})
|
|
15655
15676
|
);
|
|
15656
|
-
var schematic_component_port_arrangement_by_size =
|
|
15657
|
-
left_size:
|
|
15658
|
-
right_size:
|
|
15659
|
-
top_size:
|
|
15660
|
-
bottom_size:
|
|
15677
|
+
var schematic_component_port_arrangement_by_size = z52.object({
|
|
15678
|
+
left_size: z52.number(),
|
|
15679
|
+
right_size: z52.number(),
|
|
15680
|
+
top_size: z52.number().optional(),
|
|
15681
|
+
bottom_size: z52.number().optional()
|
|
15661
15682
|
});
|
|
15662
15683
|
expectTypesMatch(true);
|
|
15663
|
-
var schematic_component_port_arrangement_by_sides =
|
|
15664
|
-
left_side:
|
|
15665
|
-
pins:
|
|
15684
|
+
var schematic_component_port_arrangement_by_sides = z52.object({
|
|
15685
|
+
left_side: z52.object({
|
|
15686
|
+
pins: z52.array(z52.number()),
|
|
15666
15687
|
// @ts-ignore
|
|
15667
|
-
direction:
|
|
15688
|
+
direction: z52.enum(["top-to-bottom", "bottom-to-top"]).optional()
|
|
15668
15689
|
}).optional(),
|
|
15669
|
-
right_side:
|
|
15670
|
-
pins:
|
|
15690
|
+
right_side: z52.object({
|
|
15691
|
+
pins: z52.array(z52.number()),
|
|
15671
15692
|
// @ts-ignore
|
|
15672
|
-
direction:
|
|
15693
|
+
direction: z52.enum(["top-to-bottom", "bottom-to-top"]).optional()
|
|
15673
15694
|
}).optional(),
|
|
15674
|
-
top_side:
|
|
15675
|
-
pins:
|
|
15695
|
+
top_side: z52.object({
|
|
15696
|
+
pins: z52.array(z52.number()),
|
|
15676
15697
|
// @ts-ignore
|
|
15677
|
-
direction:
|
|
15698
|
+
direction: z52.enum(["left-to-right", "right-to-left"]).optional()
|
|
15678
15699
|
}).optional(),
|
|
15679
|
-
bottom_side:
|
|
15680
|
-
pins:
|
|
15700
|
+
bottom_side: z52.object({
|
|
15701
|
+
pins: z52.array(z52.number()),
|
|
15681
15702
|
// @ts-ignore
|
|
15682
|
-
direction:
|
|
15703
|
+
direction: z52.enum(["left-to-right", "right-to-left"]).optional()
|
|
15683
15704
|
}).optional()
|
|
15684
15705
|
});
|
|
15685
15706
|
expectTypesMatch(true);
|
|
15686
|
-
var port_arrangement =
|
|
15707
|
+
var port_arrangement = z52.union([
|
|
15687
15708
|
schematic_component_port_arrangement_by_size,
|
|
15688
15709
|
schematic_component_port_arrangement_by_sides
|
|
15689
15710
|
]);
|
|
15690
|
-
var schematic_component =
|
|
15691
|
-
type:
|
|
15711
|
+
var schematic_component = z52.object({
|
|
15712
|
+
type: z52.literal("schematic_component"),
|
|
15692
15713
|
size,
|
|
15693
15714
|
center: point,
|
|
15694
|
-
source_component_id:
|
|
15695
|
-
schematic_component_id:
|
|
15715
|
+
source_component_id: z52.string().optional(),
|
|
15716
|
+
schematic_component_id: z52.string(),
|
|
15696
15717
|
pin_spacing: length.optional(),
|
|
15697
15718
|
pin_styles: schematic_pin_styles.optional(),
|
|
15698
15719
|
box_width: length.optional(),
|
|
15699
|
-
symbol_name:
|
|
15720
|
+
symbol_name: z52.string().optional(),
|
|
15700
15721
|
port_arrangement: port_arrangement.optional(),
|
|
15701
|
-
port_labels:
|
|
15702
|
-
symbol_display_value:
|
|
15703
|
-
subcircuit_id:
|
|
15704
|
-
schematic_group_id:
|
|
15705
|
-
is_schematic_group:
|
|
15706
|
-
source_group_id:
|
|
15707
|
-
is_box_with_pins:
|
|
15722
|
+
port_labels: z52.record(z52.string()).optional(),
|
|
15723
|
+
symbol_display_value: z52.string().optional(),
|
|
15724
|
+
subcircuit_id: z52.string().optional(),
|
|
15725
|
+
schematic_group_id: z52.string().optional(),
|
|
15726
|
+
is_schematic_group: z52.boolean().optional(),
|
|
15727
|
+
source_group_id: z52.string().optional(),
|
|
15728
|
+
is_box_with_pins: z52.boolean().optional().default(true)
|
|
15708
15729
|
});
|
|
15709
15730
|
expectTypesMatch(true);
|
|
15710
|
-
var schematic_line =
|
|
15711
|
-
type:
|
|
15731
|
+
var schematic_line = z53.object({
|
|
15732
|
+
type: z53.literal("schematic_line"),
|
|
15712
15733
|
schematic_line_id: getZodPrefixedIdWithDefault("schematic_line"),
|
|
15713
|
-
schematic_component_id:
|
|
15734
|
+
schematic_component_id: z53.string(),
|
|
15714
15735
|
x1: distance,
|
|
15715
15736
|
y1: distance,
|
|
15716
15737
|
x2: distance,
|
|
15717
15738
|
y2: distance,
|
|
15718
15739
|
stroke_width: distance.nullable().optional(),
|
|
15719
|
-
color:
|
|
15720
|
-
is_dashed:
|
|
15721
|
-
subcircuit_id:
|
|
15740
|
+
color: z53.string().default("#000000"),
|
|
15741
|
+
is_dashed: z53.boolean().default(false),
|
|
15742
|
+
subcircuit_id: z53.string().optional()
|
|
15722
15743
|
}).describe("Draws a styled line on the schematic");
|
|
15723
15744
|
expectTypesMatch(true);
|
|
15724
|
-
var schematic_rect =
|
|
15725
|
-
type:
|
|
15745
|
+
var schematic_rect = z54.object({
|
|
15746
|
+
type: z54.literal("schematic_rect"),
|
|
15726
15747
|
schematic_rect_id: getZodPrefixedIdWithDefault("schematic_rect"),
|
|
15727
|
-
schematic_component_id:
|
|
15748
|
+
schematic_component_id: z54.string(),
|
|
15728
15749
|
center: point,
|
|
15729
15750
|
width: distance,
|
|
15730
15751
|
height: distance,
|
|
15731
15752
|
rotation: rotation.default(0),
|
|
15732
15753
|
stroke_width: distance.nullable().optional(),
|
|
15733
|
-
color:
|
|
15734
|
-
is_filled:
|
|
15735
|
-
fill_color:
|
|
15736
|
-
is_dashed:
|
|
15737
|
-
subcircuit_id:
|
|
15754
|
+
color: z54.string().default("#000000"),
|
|
15755
|
+
is_filled: z54.boolean().default(false),
|
|
15756
|
+
fill_color: z54.string().optional(),
|
|
15757
|
+
is_dashed: z54.boolean().default(false),
|
|
15758
|
+
subcircuit_id: z54.string().optional()
|
|
15738
15759
|
}).describe("Draws a styled rectangle on the schematic");
|
|
15739
15760
|
expectTypesMatch(true);
|
|
15740
|
-
var schematic_circle =
|
|
15741
|
-
type:
|
|
15761
|
+
var schematic_circle = z55.object({
|
|
15762
|
+
type: z55.literal("schematic_circle"),
|
|
15742
15763
|
schematic_circle_id: getZodPrefixedIdWithDefault("schematic_circle"),
|
|
15743
|
-
schematic_component_id:
|
|
15764
|
+
schematic_component_id: z55.string(),
|
|
15744
15765
|
center: point,
|
|
15745
15766
|
radius: distance,
|
|
15746
15767
|
stroke_width: distance.nullable().optional(),
|
|
15747
|
-
color:
|
|
15748
|
-
is_filled:
|
|
15749
|
-
fill_color:
|
|
15750
|
-
is_dashed:
|
|
15751
|
-
subcircuit_id:
|
|
15768
|
+
color: z55.string().default("#000000"),
|
|
15769
|
+
is_filled: z55.boolean().default(false),
|
|
15770
|
+
fill_color: z55.string().optional(),
|
|
15771
|
+
is_dashed: z55.boolean().default(false),
|
|
15772
|
+
subcircuit_id: z55.string().optional()
|
|
15752
15773
|
}).describe("Draws a styled circle on the schematic");
|
|
15753
15774
|
expectTypesMatch(true);
|
|
15754
|
-
var schematic_arc =
|
|
15755
|
-
type:
|
|
15775
|
+
var schematic_arc = z56.object({
|
|
15776
|
+
type: z56.literal("schematic_arc"),
|
|
15756
15777
|
schematic_arc_id: getZodPrefixedIdWithDefault("schematic_arc"),
|
|
15757
|
-
schematic_component_id:
|
|
15778
|
+
schematic_component_id: z56.string(),
|
|
15758
15779
|
center: point,
|
|
15759
15780
|
radius: distance,
|
|
15760
15781
|
start_angle_degrees: rotation,
|
|
15761
15782
|
end_angle_degrees: rotation,
|
|
15762
|
-
direction:
|
|
15783
|
+
direction: z56.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
|
|
15763
15784
|
stroke_width: distance.nullable().optional(),
|
|
15764
|
-
color:
|
|
15765
|
-
is_dashed:
|
|
15766
|
-
subcircuit_id:
|
|
15785
|
+
color: z56.string().default("#000000"),
|
|
15786
|
+
is_dashed: z56.boolean().default(false),
|
|
15787
|
+
subcircuit_id: z56.string().optional()
|
|
15767
15788
|
}).describe("Draws a styled arc on the schematic");
|
|
15768
15789
|
expectTypesMatch(true);
|
|
15769
|
-
var schematic_trace =
|
|
15770
|
-
type:
|
|
15771
|
-
schematic_trace_id:
|
|
15772
|
-
source_trace_id:
|
|
15773
|
-
junctions:
|
|
15774
|
-
|
|
15775
|
-
x:
|
|
15776
|
-
y:
|
|
15790
|
+
var schematic_trace = z57.object({
|
|
15791
|
+
type: z57.literal("schematic_trace"),
|
|
15792
|
+
schematic_trace_id: z57.string(),
|
|
15793
|
+
source_trace_id: z57.string().optional(),
|
|
15794
|
+
junctions: z57.array(
|
|
15795
|
+
z57.object({
|
|
15796
|
+
x: z57.number(),
|
|
15797
|
+
y: z57.number()
|
|
15777
15798
|
})
|
|
15778
15799
|
),
|
|
15779
|
-
edges:
|
|
15780
|
-
|
|
15781
|
-
from:
|
|
15782
|
-
x:
|
|
15783
|
-
y:
|
|
15800
|
+
edges: z57.array(
|
|
15801
|
+
z57.object({
|
|
15802
|
+
from: z57.object({
|
|
15803
|
+
x: z57.number(),
|
|
15804
|
+
y: z57.number()
|
|
15784
15805
|
}),
|
|
15785
|
-
to:
|
|
15786
|
-
x:
|
|
15787
|
-
y:
|
|
15806
|
+
to: z57.object({
|
|
15807
|
+
x: z57.number(),
|
|
15808
|
+
y: z57.number()
|
|
15788
15809
|
}),
|
|
15789
|
-
is_crossing:
|
|
15790
|
-
from_schematic_port_id:
|
|
15791
|
-
to_schematic_port_id:
|
|
15810
|
+
is_crossing: z57.boolean().optional(),
|
|
15811
|
+
from_schematic_port_id: z57.string().optional(),
|
|
15812
|
+
to_schematic_port_id: z57.string().optional()
|
|
15792
15813
|
})
|
|
15793
15814
|
),
|
|
15794
|
-
subcircuit_id:
|
|
15815
|
+
subcircuit_id: z57.string().optional(),
|
|
15795
15816
|
// TODO: make required in a future release
|
|
15796
|
-
subcircuit_connectivity_map_key:
|
|
15817
|
+
subcircuit_connectivity_map_key: z57.string().optional()
|
|
15797
15818
|
});
|
|
15798
15819
|
expectTypesMatch(true);
|
|
15799
|
-
var fivePointAnchor =
|
|
15820
|
+
var fivePointAnchor = z58.enum([
|
|
15800
15821
|
"center",
|
|
15801
15822
|
"left",
|
|
15802
15823
|
"right",
|
|
@@ -15804,475 +15825,484 @@ var fivePointAnchor = z55.enum([
|
|
|
15804
15825
|
"bottom"
|
|
15805
15826
|
]);
|
|
15806
15827
|
expectTypesMatch(true);
|
|
15807
|
-
var schematic_text =
|
|
15808
|
-
type:
|
|
15809
|
-
schematic_component_id:
|
|
15810
|
-
schematic_text_id:
|
|
15811
|
-
text:
|
|
15812
|
-
font_size:
|
|
15813
|
-
position:
|
|
15828
|
+
var schematic_text = z59.object({
|
|
15829
|
+
type: z59.literal("schematic_text"),
|
|
15830
|
+
schematic_component_id: z59.string().optional(),
|
|
15831
|
+
schematic_text_id: z59.string(),
|
|
15832
|
+
text: z59.string(),
|
|
15833
|
+
font_size: z59.number().default(0.18),
|
|
15834
|
+
position: z59.object({
|
|
15814
15835
|
x: distance,
|
|
15815
15836
|
y: distance
|
|
15816
15837
|
}),
|
|
15817
|
-
rotation:
|
|
15818
|
-
anchor:
|
|
15819
|
-
color:
|
|
15820
|
-
subcircuit_id:
|
|
15838
|
+
rotation: z59.number().default(0),
|
|
15839
|
+
anchor: z59.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
|
|
15840
|
+
color: z59.string().default("#000000"),
|
|
15841
|
+
subcircuit_id: z59.string().optional()
|
|
15821
15842
|
});
|
|
15822
15843
|
expectTypesMatch(true);
|
|
15823
|
-
var schematic_port =
|
|
15824
|
-
type:
|
|
15825
|
-
schematic_port_id:
|
|
15826
|
-
source_port_id:
|
|
15827
|
-
schematic_component_id:
|
|
15844
|
+
var schematic_port = z60.object({
|
|
15845
|
+
type: z60.literal("schematic_port"),
|
|
15846
|
+
schematic_port_id: z60.string(),
|
|
15847
|
+
source_port_id: z60.string(),
|
|
15848
|
+
schematic_component_id: z60.string().optional(),
|
|
15828
15849
|
center: point,
|
|
15829
|
-
facing_direction:
|
|
15830
|
-
distance_from_component_edge:
|
|
15831
|
-
side_of_component:
|
|
15832
|
-
true_ccw_index:
|
|
15833
|
-
pin_number:
|
|
15834
|
-
display_pin_label:
|
|
15835
|
-
subcircuit_id:
|
|
15836
|
-
is_connected:
|
|
15837
|
-
has_input_arrow:
|
|
15838
|
-
has_output_arrow:
|
|
15850
|
+
facing_direction: z60.enum(["up", "down", "left", "right"]).optional(),
|
|
15851
|
+
distance_from_component_edge: z60.number().optional(),
|
|
15852
|
+
side_of_component: z60.enum(["top", "bottom", "left", "right"]).optional(),
|
|
15853
|
+
true_ccw_index: z60.number().optional(),
|
|
15854
|
+
pin_number: z60.number().optional(),
|
|
15855
|
+
display_pin_label: z60.string().optional(),
|
|
15856
|
+
subcircuit_id: z60.string().optional(),
|
|
15857
|
+
is_connected: z60.boolean().optional(),
|
|
15858
|
+
has_input_arrow: z60.boolean().optional(),
|
|
15859
|
+
has_output_arrow: z60.boolean().optional()
|
|
15839
15860
|
}).describe("Defines a port on a schematic component");
|
|
15840
15861
|
expectTypesMatch(true);
|
|
15841
|
-
var schematic_net_label =
|
|
15842
|
-
type:
|
|
15862
|
+
var schematic_net_label = z61.object({
|
|
15863
|
+
type: z61.literal("schematic_net_label"),
|
|
15843
15864
|
schematic_net_label_id: getZodPrefixedIdWithDefault("schematic_net_label"),
|
|
15844
|
-
schematic_trace_id:
|
|
15845
|
-
source_trace_id:
|
|
15846
|
-
source_net_id:
|
|
15865
|
+
schematic_trace_id: z61.string().optional(),
|
|
15866
|
+
source_trace_id: z61.string().optional(),
|
|
15867
|
+
source_net_id: z61.string(),
|
|
15847
15868
|
center: point,
|
|
15848
15869
|
anchor_position: point.optional(),
|
|
15849
|
-
anchor_side:
|
|
15850
|
-
text:
|
|
15851
|
-
symbol_name:
|
|
15852
|
-
is_movable:
|
|
15853
|
-
subcircuit_id:
|
|
15870
|
+
anchor_side: z61.enum(["top", "bottom", "left", "right"]),
|
|
15871
|
+
text: z61.string(),
|
|
15872
|
+
symbol_name: z61.string().optional(),
|
|
15873
|
+
is_movable: z61.boolean().optional(),
|
|
15874
|
+
subcircuit_id: z61.string().optional()
|
|
15854
15875
|
});
|
|
15855
15876
|
expectTypesMatch(true);
|
|
15856
|
-
var schematic_error =
|
|
15857
|
-
type:
|
|
15858
|
-
schematic_error_id:
|
|
15877
|
+
var schematic_error = z62.object({
|
|
15878
|
+
type: z62.literal("schematic_error"),
|
|
15879
|
+
schematic_error_id: z62.string(),
|
|
15859
15880
|
// eventually each error type should be broken out into a dir of files
|
|
15860
|
-
error_type:
|
|
15861
|
-
message:
|
|
15862
|
-
subcircuit_id:
|
|
15881
|
+
error_type: z62.literal("schematic_port_not_found").default("schematic_port_not_found"),
|
|
15882
|
+
message: z62.string(),
|
|
15883
|
+
subcircuit_id: z62.string().optional()
|
|
15863
15884
|
}).describe("Defines a schematic error on the schematic");
|
|
15864
15885
|
expectTypesMatch(true);
|
|
15865
|
-
var schematic_layout_error =
|
|
15866
|
-
type:
|
|
15886
|
+
var schematic_layout_error = z63.object({
|
|
15887
|
+
type: z63.literal("schematic_layout_error"),
|
|
15867
15888
|
schematic_layout_error_id: getZodPrefixedIdWithDefault(
|
|
15868
15889
|
"schematic_layout_error"
|
|
15869
15890
|
),
|
|
15870
|
-
error_type:
|
|
15871
|
-
message:
|
|
15872
|
-
source_group_id:
|
|
15873
|
-
schematic_group_id:
|
|
15874
|
-
subcircuit_id:
|
|
15891
|
+
error_type: z63.literal("schematic_layout_error").default("schematic_layout_error"),
|
|
15892
|
+
message: z63.string(),
|
|
15893
|
+
source_group_id: z63.string(),
|
|
15894
|
+
schematic_group_id: z63.string(),
|
|
15895
|
+
subcircuit_id: z63.string().optional()
|
|
15875
15896
|
}).describe("Error emitted when schematic layout fails for a group");
|
|
15876
15897
|
expectTypesMatch(true);
|
|
15877
|
-
var schematic_debug_object_base =
|
|
15878
|
-
type:
|
|
15879
|
-
label:
|
|
15880
|
-
subcircuit_id:
|
|
15898
|
+
var schematic_debug_object_base = z64.object({
|
|
15899
|
+
type: z64.literal("schematic_debug_object"),
|
|
15900
|
+
label: z64.string().optional(),
|
|
15901
|
+
subcircuit_id: z64.string().optional()
|
|
15881
15902
|
});
|
|
15882
15903
|
var schematic_debug_rect = schematic_debug_object_base.extend({
|
|
15883
|
-
shape:
|
|
15904
|
+
shape: z64.literal("rect"),
|
|
15884
15905
|
center: point,
|
|
15885
15906
|
size
|
|
15886
15907
|
});
|
|
15887
15908
|
var schematic_debug_line = schematic_debug_object_base.extend({
|
|
15888
|
-
shape:
|
|
15909
|
+
shape: z64.literal("line"),
|
|
15889
15910
|
start: point,
|
|
15890
15911
|
end: point
|
|
15891
15912
|
});
|
|
15892
15913
|
var schematic_debug_point = schematic_debug_object_base.extend({
|
|
15893
|
-
shape:
|
|
15914
|
+
shape: z64.literal("point"),
|
|
15894
15915
|
center: point
|
|
15895
15916
|
});
|
|
15896
|
-
var schematic_debug_object =
|
|
15917
|
+
var schematic_debug_object = z64.discriminatedUnion("shape", [
|
|
15897
15918
|
schematic_debug_rect,
|
|
15898
15919
|
schematic_debug_line,
|
|
15899
15920
|
schematic_debug_point
|
|
15900
15921
|
]);
|
|
15901
15922
|
expectTypesMatch(true);
|
|
15902
|
-
var schematic_voltage_probe =
|
|
15903
|
-
type:
|
|
15904
|
-
schematic_voltage_probe_id:
|
|
15905
|
-
source_component_id:
|
|
15906
|
-
name:
|
|
15923
|
+
var schematic_voltage_probe = z65.object({
|
|
15924
|
+
type: z65.literal("schematic_voltage_probe"),
|
|
15925
|
+
schematic_voltage_probe_id: z65.string(),
|
|
15926
|
+
source_component_id: z65.string().optional(),
|
|
15927
|
+
name: z65.string().optional(),
|
|
15907
15928
|
position: point,
|
|
15908
|
-
schematic_trace_id:
|
|
15929
|
+
schematic_trace_id: z65.string(),
|
|
15909
15930
|
voltage: voltage.optional(),
|
|
15910
|
-
subcircuit_id:
|
|
15911
|
-
color:
|
|
15931
|
+
subcircuit_id: z65.string().optional(),
|
|
15932
|
+
color: z65.string().optional(),
|
|
15933
|
+
label_alignment: ninePointAnchor.optional()
|
|
15912
15934
|
}).describe("Defines a voltage probe measurement point on a schematic trace");
|
|
15913
15935
|
expectTypesMatch(true);
|
|
15914
|
-
var schematic_manual_edit_conflict_warning =
|
|
15915
|
-
type:
|
|
15936
|
+
var schematic_manual_edit_conflict_warning = z66.object({
|
|
15937
|
+
type: z66.literal("schematic_manual_edit_conflict_warning"),
|
|
15916
15938
|
schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
|
|
15917
15939
|
"schematic_manual_edit_conflict_warning"
|
|
15918
15940
|
),
|
|
15919
|
-
warning_type:
|
|
15920
|
-
message:
|
|
15921
|
-
schematic_component_id:
|
|
15922
|
-
schematic_group_id:
|
|
15923
|
-
subcircuit_id:
|
|
15924
|
-
source_component_id:
|
|
15941
|
+
warning_type: z66.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
|
|
15942
|
+
message: z66.string(),
|
|
15943
|
+
schematic_component_id: z66.string(),
|
|
15944
|
+
schematic_group_id: z66.string().optional(),
|
|
15945
|
+
subcircuit_id: z66.string().optional(),
|
|
15946
|
+
source_component_id: z66.string()
|
|
15925
15947
|
}).describe(
|
|
15926
15948
|
"Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
|
|
15927
15949
|
);
|
|
15928
15950
|
expectTypesMatch(true);
|
|
15929
|
-
var schematic_group =
|
|
15930
|
-
type:
|
|
15951
|
+
var schematic_group = z67.object({
|
|
15952
|
+
type: z67.literal("schematic_group"),
|
|
15931
15953
|
schematic_group_id: getZodPrefixedIdWithDefault("schematic_group"),
|
|
15932
|
-
source_group_id:
|
|
15933
|
-
is_subcircuit:
|
|
15934
|
-
subcircuit_id:
|
|
15954
|
+
source_group_id: z67.string(),
|
|
15955
|
+
is_subcircuit: z67.boolean().optional(),
|
|
15956
|
+
subcircuit_id: z67.string().optional(),
|
|
15935
15957
|
width: length,
|
|
15936
15958
|
height: length,
|
|
15937
15959
|
center: point,
|
|
15938
|
-
schematic_component_ids:
|
|
15939
|
-
show_as_schematic_box:
|
|
15940
|
-
name:
|
|
15941
|
-
description:
|
|
15960
|
+
schematic_component_ids: z67.array(z67.string()),
|
|
15961
|
+
show_as_schematic_box: z67.boolean().optional(),
|
|
15962
|
+
name: z67.string().optional(),
|
|
15963
|
+
description: z67.string().optional()
|
|
15942
15964
|
}).describe("Defines a group of components on the schematic");
|
|
15943
15965
|
expectTypesMatch(true);
|
|
15944
|
-
var schematic_table =
|
|
15945
|
-
type:
|
|
15966
|
+
var schematic_table = z68.object({
|
|
15967
|
+
type: z68.literal("schematic_table"),
|
|
15946
15968
|
schematic_table_id: getZodPrefixedIdWithDefault("schematic_table"),
|
|
15947
15969
|
anchor_position: point,
|
|
15948
|
-
column_widths:
|
|
15949
|
-
row_heights:
|
|
15970
|
+
column_widths: z68.array(distance),
|
|
15971
|
+
row_heights: z68.array(distance),
|
|
15950
15972
|
cell_padding: distance.optional(),
|
|
15951
15973
|
border_width: distance.optional(),
|
|
15952
|
-
subcircuit_id:
|
|
15953
|
-
schematic_component_id:
|
|
15974
|
+
subcircuit_id: z68.string().optional(),
|
|
15975
|
+
schematic_component_id: z68.string().optional(),
|
|
15954
15976
|
anchor: ninePointAnchor.optional()
|
|
15955
15977
|
}).describe("Defines a table on the schematic");
|
|
15956
15978
|
expectTypesMatch(true);
|
|
15957
|
-
var schematic_table_cell =
|
|
15958
|
-
type:
|
|
15979
|
+
var schematic_table_cell = z69.object({
|
|
15980
|
+
type: z69.literal("schematic_table_cell"),
|
|
15959
15981
|
schematic_table_cell_id: getZodPrefixedIdWithDefault(
|
|
15960
15982
|
"schematic_table_cell"
|
|
15961
15983
|
),
|
|
15962
|
-
schematic_table_id:
|
|
15963
|
-
start_row_index:
|
|
15964
|
-
end_row_index:
|
|
15965
|
-
start_column_index:
|
|
15966
|
-
end_column_index:
|
|
15967
|
-
text:
|
|
15984
|
+
schematic_table_id: z69.string(),
|
|
15985
|
+
start_row_index: z69.number(),
|
|
15986
|
+
end_row_index: z69.number(),
|
|
15987
|
+
start_column_index: z69.number(),
|
|
15988
|
+
end_column_index: z69.number(),
|
|
15989
|
+
text: z69.string().optional(),
|
|
15968
15990
|
center: point,
|
|
15969
15991
|
width: distance,
|
|
15970
15992
|
height: distance,
|
|
15971
|
-
horizontal_align:
|
|
15972
|
-
vertical_align:
|
|
15993
|
+
horizontal_align: z69.enum(["left", "center", "right"]).optional(),
|
|
15994
|
+
vertical_align: z69.enum(["top", "middle", "bottom"]).optional(),
|
|
15973
15995
|
font_size: distance.optional(),
|
|
15974
|
-
subcircuit_id:
|
|
15996
|
+
subcircuit_id: z69.string().optional()
|
|
15975
15997
|
}).describe("Defines a cell within a schematic_table");
|
|
15976
15998
|
expectTypesMatch(true);
|
|
15977
|
-
var schematic_sheet =
|
|
15978
|
-
type:
|
|
15999
|
+
var schematic_sheet = z70.object({
|
|
16000
|
+
type: z70.literal("schematic_sheet"),
|
|
15979
16001
|
schematic_sheet_id: getZodPrefixedIdWithDefault("schematic_sheet"),
|
|
15980
|
-
name:
|
|
15981
|
-
subcircuit_id:
|
|
16002
|
+
name: z70.string().optional(),
|
|
16003
|
+
subcircuit_id: z70.string().optional()
|
|
15982
16004
|
}).describe(
|
|
15983
16005
|
"Defines a schematic sheet or page that components can be placed on"
|
|
15984
16006
|
);
|
|
15985
16007
|
expectTypesMatch(true);
|
|
15986
|
-
var point_with_bulge =
|
|
16008
|
+
var point_with_bulge = z71.object({
|
|
15987
16009
|
x: distance,
|
|
15988
16010
|
y: distance,
|
|
15989
|
-
bulge:
|
|
16011
|
+
bulge: z71.number().optional()
|
|
15990
16012
|
});
|
|
15991
16013
|
expectTypesMatch(true);
|
|
15992
|
-
var ring =
|
|
15993
|
-
vertices:
|
|
16014
|
+
var ring = z71.object({
|
|
16015
|
+
vertices: z71.array(point_with_bulge)
|
|
15994
16016
|
});
|
|
15995
16017
|
expectTypesMatch(true);
|
|
15996
|
-
var brep_shape =
|
|
16018
|
+
var brep_shape = z71.object({
|
|
15997
16019
|
outer_ring: ring,
|
|
15998
|
-
inner_rings:
|
|
16020
|
+
inner_rings: z71.array(ring).default([])
|
|
15999
16021
|
});
|
|
16000
16022
|
expectTypesMatch(true);
|
|
16001
|
-
var pcb_route_hint =
|
|
16023
|
+
var pcb_route_hint = z72.object({
|
|
16002
16024
|
x: distance,
|
|
16003
16025
|
y: distance,
|
|
16004
|
-
via:
|
|
16026
|
+
via: z72.boolean().optional(),
|
|
16005
16027
|
via_to_layer: layer_ref.optional()
|
|
16006
16028
|
});
|
|
16007
|
-
var pcb_route_hints =
|
|
16029
|
+
var pcb_route_hints = z72.array(pcb_route_hint);
|
|
16008
16030
|
expectTypesMatch(true);
|
|
16009
16031
|
expectTypesMatch(true);
|
|
16010
|
-
var route_hint_point =
|
|
16032
|
+
var route_hint_point = z73.object({
|
|
16011
16033
|
x: distance,
|
|
16012
16034
|
y: distance,
|
|
16013
|
-
via:
|
|
16035
|
+
via: z73.boolean().optional(),
|
|
16014
16036
|
to_layer: layer_ref.optional(),
|
|
16015
16037
|
trace_width: distance.optional()
|
|
16016
16038
|
});
|
|
16017
16039
|
expectTypesMatch(true);
|
|
16018
|
-
var pcb_component =
|
|
16019
|
-
type:
|
|
16040
|
+
var pcb_component = z74.object({
|
|
16041
|
+
type: z74.literal("pcb_component"),
|
|
16020
16042
|
pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
|
|
16021
|
-
source_component_id:
|
|
16043
|
+
source_component_id: z74.string(),
|
|
16022
16044
|
center: point,
|
|
16023
16045
|
layer: layer_ref,
|
|
16024
16046
|
rotation,
|
|
16047
|
+
display_offset_x: z74.string().optional().describe(
|
|
16048
|
+
"How to display the x offset for this part, usually corresponding with how the user specified it"
|
|
16049
|
+
),
|
|
16050
|
+
display_offset_y: z74.string().optional().describe(
|
|
16051
|
+
"How to display the y offset for this part, usually corresponding with how the user specified it"
|
|
16052
|
+
),
|
|
16025
16053
|
width: length,
|
|
16026
16054
|
height: length,
|
|
16027
|
-
do_not_place:
|
|
16028
|
-
subcircuit_id:
|
|
16029
|
-
pcb_group_id:
|
|
16030
|
-
position_mode:
|
|
16031
|
-
positioned_relative_to_pcb_group_id:
|
|
16032
|
-
|
|
16055
|
+
do_not_place: z74.boolean().optional(),
|
|
16056
|
+
subcircuit_id: z74.string().optional(),
|
|
16057
|
+
pcb_group_id: z74.string().optional(),
|
|
16058
|
+
position_mode: z74.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
|
|
16059
|
+
positioned_relative_to_pcb_group_id: z74.string().optional(),
|
|
16060
|
+
positioned_relative_to_pcb_board_id: z74.string().optional(),
|
|
16061
|
+
obstructs_within_bounds: z74.boolean().default(true).describe(
|
|
16033
16062
|
"Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath"
|
|
16034
16063
|
)
|
|
16035
16064
|
}).describe("Defines a component on the PCB");
|
|
16036
16065
|
expectTypesMatch(true);
|
|
16037
|
-
var pcb_hole_circle =
|
|
16038
|
-
type:
|
|
16066
|
+
var pcb_hole_circle = z75.object({
|
|
16067
|
+
type: z75.literal("pcb_hole"),
|
|
16039
16068
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
16040
|
-
pcb_group_id:
|
|
16041
|
-
subcircuit_id:
|
|
16042
|
-
hole_shape:
|
|
16043
|
-
hole_diameter:
|
|
16069
|
+
pcb_group_id: z75.string().optional(),
|
|
16070
|
+
subcircuit_id: z75.string().optional(),
|
|
16071
|
+
hole_shape: z75.literal("circle"),
|
|
16072
|
+
hole_diameter: z75.number(),
|
|
16044
16073
|
x: distance,
|
|
16045
16074
|
y: distance,
|
|
16046
|
-
is_covered_with_solder_mask:
|
|
16047
|
-
soldermask_margin:
|
|
16075
|
+
is_covered_with_solder_mask: z75.boolean().optional(),
|
|
16076
|
+
soldermask_margin: z75.number().optional()
|
|
16048
16077
|
});
|
|
16049
16078
|
var pcb_hole_circle_shape = pcb_hole_circle.describe(
|
|
16050
16079
|
"Defines a circular hole on the PCB"
|
|
16051
16080
|
);
|
|
16052
16081
|
expectTypesMatch(true);
|
|
16053
|
-
var pcb_hole_rect =
|
|
16054
|
-
type:
|
|
16082
|
+
var pcb_hole_rect = z75.object({
|
|
16083
|
+
type: z75.literal("pcb_hole"),
|
|
16055
16084
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
16056
|
-
pcb_group_id:
|
|
16057
|
-
subcircuit_id:
|
|
16058
|
-
hole_shape:
|
|
16059
|
-
hole_width:
|
|
16060
|
-
hole_height:
|
|
16085
|
+
pcb_group_id: z75.string().optional(),
|
|
16086
|
+
subcircuit_id: z75.string().optional(),
|
|
16087
|
+
hole_shape: z75.literal("rect"),
|
|
16088
|
+
hole_width: z75.number(),
|
|
16089
|
+
hole_height: z75.number(),
|
|
16061
16090
|
x: distance,
|
|
16062
16091
|
y: distance,
|
|
16063
|
-
is_covered_with_solder_mask:
|
|
16064
|
-
soldermask_margin:
|
|
16092
|
+
is_covered_with_solder_mask: z75.boolean().optional(),
|
|
16093
|
+
soldermask_margin: z75.number().optional()
|
|
16065
16094
|
});
|
|
16066
16095
|
var pcb_hole_rect_shape = pcb_hole_rect.describe(
|
|
16067
16096
|
"Defines a rectangular (square-capable) hole on the PCB. Use equal width/height for square."
|
|
16068
16097
|
);
|
|
16069
16098
|
expectTypesMatch(true);
|
|
16070
|
-
var pcb_hole_circle_or_square =
|
|
16071
|
-
type:
|
|
16099
|
+
var pcb_hole_circle_or_square = z75.object({
|
|
16100
|
+
type: z75.literal("pcb_hole"),
|
|
16072
16101
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
16073
|
-
pcb_group_id:
|
|
16074
|
-
subcircuit_id:
|
|
16075
|
-
hole_shape:
|
|
16076
|
-
hole_diameter:
|
|
16102
|
+
pcb_group_id: z75.string().optional(),
|
|
16103
|
+
subcircuit_id: z75.string().optional(),
|
|
16104
|
+
hole_shape: z75.enum(["circle", "square"]),
|
|
16105
|
+
hole_diameter: z75.number(),
|
|
16077
16106
|
x: distance,
|
|
16078
16107
|
y: distance,
|
|
16079
|
-
is_covered_with_solder_mask:
|
|
16080
|
-
soldermask_margin:
|
|
16108
|
+
is_covered_with_solder_mask: z75.boolean().optional(),
|
|
16109
|
+
soldermask_margin: z75.number().optional()
|
|
16081
16110
|
});
|
|
16082
16111
|
var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
|
|
16083
16112
|
"Defines a circular or square hole on the PCB"
|
|
16084
16113
|
);
|
|
16085
16114
|
expectTypesMatch(true);
|
|
16086
|
-
var pcb_hole_oval =
|
|
16087
|
-
type:
|
|
16115
|
+
var pcb_hole_oval = z75.object({
|
|
16116
|
+
type: z75.literal("pcb_hole"),
|
|
16088
16117
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
16089
|
-
pcb_group_id:
|
|
16090
|
-
subcircuit_id:
|
|
16091
|
-
hole_shape:
|
|
16092
|
-
hole_width:
|
|
16093
|
-
hole_height:
|
|
16118
|
+
pcb_group_id: z75.string().optional(),
|
|
16119
|
+
subcircuit_id: z75.string().optional(),
|
|
16120
|
+
hole_shape: z75.literal("oval"),
|
|
16121
|
+
hole_width: z75.number(),
|
|
16122
|
+
hole_height: z75.number(),
|
|
16094
16123
|
x: distance,
|
|
16095
16124
|
y: distance,
|
|
16096
|
-
is_covered_with_solder_mask:
|
|
16097
|
-
soldermask_margin:
|
|
16125
|
+
is_covered_with_solder_mask: z75.boolean().optional(),
|
|
16126
|
+
soldermask_margin: z75.number().optional()
|
|
16098
16127
|
});
|
|
16099
16128
|
var pcb_hole_oval_shape = pcb_hole_oval.describe(
|
|
16100
16129
|
"Defines an oval hole on the PCB"
|
|
16101
16130
|
);
|
|
16102
16131
|
expectTypesMatch(true);
|
|
16103
|
-
var pcb_hole_pill =
|
|
16104
|
-
type:
|
|
16132
|
+
var pcb_hole_pill = z75.object({
|
|
16133
|
+
type: z75.literal("pcb_hole"),
|
|
16105
16134
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
16106
|
-
pcb_group_id:
|
|
16107
|
-
subcircuit_id:
|
|
16108
|
-
hole_shape:
|
|
16109
|
-
hole_width:
|
|
16110
|
-
hole_height:
|
|
16135
|
+
pcb_group_id: z75.string().optional(),
|
|
16136
|
+
subcircuit_id: z75.string().optional(),
|
|
16137
|
+
hole_shape: z75.literal("pill"),
|
|
16138
|
+
hole_width: z75.number(),
|
|
16139
|
+
hole_height: z75.number(),
|
|
16111
16140
|
x: distance,
|
|
16112
16141
|
y: distance,
|
|
16113
|
-
is_covered_with_solder_mask:
|
|
16114
|
-
soldermask_margin:
|
|
16142
|
+
is_covered_with_solder_mask: z75.boolean().optional(),
|
|
16143
|
+
soldermask_margin: z75.number().optional()
|
|
16115
16144
|
});
|
|
16116
16145
|
var pcb_hole_pill_shape = pcb_hole_pill.describe(
|
|
16117
16146
|
"Defines a pill-shaped hole on the PCB"
|
|
16118
16147
|
);
|
|
16119
16148
|
expectTypesMatch(true);
|
|
16120
|
-
var pcb_hole_rotated_pill =
|
|
16121
|
-
type:
|
|
16149
|
+
var pcb_hole_rotated_pill = z75.object({
|
|
16150
|
+
type: z75.literal("pcb_hole"),
|
|
16122
16151
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
16123
|
-
pcb_group_id:
|
|
16124
|
-
subcircuit_id:
|
|
16125
|
-
hole_shape:
|
|
16126
|
-
hole_width:
|
|
16127
|
-
hole_height:
|
|
16152
|
+
pcb_group_id: z75.string().optional(),
|
|
16153
|
+
subcircuit_id: z75.string().optional(),
|
|
16154
|
+
hole_shape: z75.literal("rotated_pill"),
|
|
16155
|
+
hole_width: z75.number(),
|
|
16156
|
+
hole_height: z75.number(),
|
|
16128
16157
|
x: distance,
|
|
16129
16158
|
y: distance,
|
|
16130
16159
|
ccw_rotation: rotation,
|
|
16131
|
-
is_covered_with_solder_mask:
|
|
16132
|
-
soldermask_margin:
|
|
16160
|
+
is_covered_with_solder_mask: z75.boolean().optional(),
|
|
16161
|
+
soldermask_margin: z75.number().optional()
|
|
16133
16162
|
});
|
|
16134
16163
|
var pcb_hole_rotated_pill_shape = pcb_hole_rotated_pill.describe(
|
|
16135
16164
|
"Defines a rotated pill-shaped hole on the PCB"
|
|
16136
16165
|
);
|
|
16137
16166
|
expectTypesMatch(true);
|
|
16138
16167
|
var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval).or(pcb_hole_pill).or(pcb_hole_rotated_pill).or(pcb_hole_circle).or(pcb_hole_rect);
|
|
16139
|
-
var pcb_plated_hole_circle =
|
|
16140
|
-
type:
|
|
16141
|
-
shape:
|
|
16142
|
-
pcb_group_id:
|
|
16143
|
-
subcircuit_id:
|
|
16144
|
-
outer_diameter:
|
|
16145
|
-
hole_diameter:
|
|
16168
|
+
var pcb_plated_hole_circle = z76.object({
|
|
16169
|
+
type: z76.literal("pcb_plated_hole"),
|
|
16170
|
+
shape: z76.literal("circle"),
|
|
16171
|
+
pcb_group_id: z76.string().optional(),
|
|
16172
|
+
subcircuit_id: z76.string().optional(),
|
|
16173
|
+
outer_diameter: z76.number(),
|
|
16174
|
+
hole_diameter: z76.number(),
|
|
16175
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
16146
16176
|
x: distance,
|
|
16147
16177
|
y: distance,
|
|
16148
|
-
layers:
|
|
16149
|
-
port_hints:
|
|
16150
|
-
pcb_component_id:
|
|
16151
|
-
pcb_port_id:
|
|
16178
|
+
layers: z76.array(layer_ref),
|
|
16179
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
16180
|
+
pcb_component_id: z76.string().optional(),
|
|
16181
|
+
pcb_port_id: z76.string().optional(),
|
|
16152
16182
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
16153
|
-
soldermask_margin:
|
|
16154
|
-
});
|
|
16155
|
-
var pcb_plated_hole_oval =
|
|
16156
|
-
type:
|
|
16157
|
-
shape:
|
|
16158
|
-
pcb_group_id:
|
|
16159
|
-
subcircuit_id:
|
|
16160
|
-
outer_width:
|
|
16161
|
-
outer_height:
|
|
16162
|
-
hole_width:
|
|
16163
|
-
hole_height:
|
|
16164
|
-
is_covered_with_solder_mask:
|
|
16183
|
+
soldermask_margin: z76.number().optional()
|
|
16184
|
+
});
|
|
16185
|
+
var pcb_plated_hole_oval = z76.object({
|
|
16186
|
+
type: z76.literal("pcb_plated_hole"),
|
|
16187
|
+
shape: z76.enum(["oval", "pill"]),
|
|
16188
|
+
pcb_group_id: z76.string().optional(),
|
|
16189
|
+
subcircuit_id: z76.string().optional(),
|
|
16190
|
+
outer_width: z76.number(),
|
|
16191
|
+
outer_height: z76.number(),
|
|
16192
|
+
hole_width: z76.number(),
|
|
16193
|
+
hole_height: z76.number(),
|
|
16194
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
16165
16195
|
x: distance,
|
|
16166
16196
|
y: distance,
|
|
16167
16197
|
ccw_rotation: rotation,
|
|
16168
|
-
layers:
|
|
16169
|
-
port_hints:
|
|
16170
|
-
pcb_component_id:
|
|
16171
|
-
pcb_port_id:
|
|
16198
|
+
layers: z76.array(layer_ref),
|
|
16199
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
16200
|
+
pcb_component_id: z76.string().optional(),
|
|
16201
|
+
pcb_port_id: z76.string().optional(),
|
|
16172
16202
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
16173
|
-
soldermask_margin:
|
|
16174
|
-
});
|
|
16175
|
-
var pcb_circular_hole_with_rect_pad =
|
|
16176
|
-
type:
|
|
16177
|
-
shape:
|
|
16178
|
-
pcb_group_id:
|
|
16179
|
-
subcircuit_id:
|
|
16180
|
-
hole_shape:
|
|
16181
|
-
pad_shape:
|
|
16182
|
-
hole_diameter:
|
|
16183
|
-
rect_pad_width:
|
|
16184
|
-
rect_pad_height:
|
|
16185
|
-
rect_border_radius:
|
|
16203
|
+
soldermask_margin: z76.number().optional()
|
|
16204
|
+
});
|
|
16205
|
+
var pcb_circular_hole_with_rect_pad = z76.object({
|
|
16206
|
+
type: z76.literal("pcb_plated_hole"),
|
|
16207
|
+
shape: z76.literal("circular_hole_with_rect_pad"),
|
|
16208
|
+
pcb_group_id: z76.string().optional(),
|
|
16209
|
+
subcircuit_id: z76.string().optional(),
|
|
16210
|
+
hole_shape: z76.literal("circle"),
|
|
16211
|
+
pad_shape: z76.literal("rect"),
|
|
16212
|
+
hole_diameter: z76.number(),
|
|
16213
|
+
rect_pad_width: z76.number(),
|
|
16214
|
+
rect_pad_height: z76.number(),
|
|
16215
|
+
rect_border_radius: z76.number().optional(),
|
|
16186
16216
|
hole_offset_x: distance.default(0),
|
|
16187
16217
|
hole_offset_y: distance.default(0),
|
|
16188
|
-
is_covered_with_solder_mask:
|
|
16218
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
16189
16219
|
x: distance,
|
|
16190
16220
|
y: distance,
|
|
16191
|
-
layers:
|
|
16192
|
-
port_hints:
|
|
16193
|
-
pcb_component_id:
|
|
16194
|
-
pcb_port_id:
|
|
16221
|
+
layers: z76.array(layer_ref),
|
|
16222
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
16223
|
+
pcb_component_id: z76.string().optional(),
|
|
16224
|
+
pcb_port_id: z76.string().optional(),
|
|
16195
16225
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
16196
|
-
soldermask_margin:
|
|
16197
|
-
});
|
|
16198
|
-
var pcb_pill_hole_with_rect_pad =
|
|
16199
|
-
type:
|
|
16200
|
-
shape:
|
|
16201
|
-
pcb_group_id:
|
|
16202
|
-
subcircuit_id:
|
|
16203
|
-
hole_shape:
|
|
16204
|
-
pad_shape:
|
|
16205
|
-
hole_width:
|
|
16206
|
-
hole_height:
|
|
16207
|
-
rect_pad_width:
|
|
16208
|
-
rect_pad_height:
|
|
16209
|
-
rect_border_radius:
|
|
16226
|
+
soldermask_margin: z76.number().optional()
|
|
16227
|
+
});
|
|
16228
|
+
var pcb_pill_hole_with_rect_pad = z76.object({
|
|
16229
|
+
type: z76.literal("pcb_plated_hole"),
|
|
16230
|
+
shape: z76.literal("pill_hole_with_rect_pad"),
|
|
16231
|
+
pcb_group_id: z76.string().optional(),
|
|
16232
|
+
subcircuit_id: z76.string().optional(),
|
|
16233
|
+
hole_shape: z76.literal("pill"),
|
|
16234
|
+
pad_shape: z76.literal("rect"),
|
|
16235
|
+
hole_width: z76.number(),
|
|
16236
|
+
hole_height: z76.number(),
|
|
16237
|
+
rect_pad_width: z76.number(),
|
|
16238
|
+
rect_pad_height: z76.number(),
|
|
16239
|
+
rect_border_radius: z76.number().optional(),
|
|
16210
16240
|
hole_offset_x: distance.default(0),
|
|
16211
16241
|
hole_offset_y: distance.default(0),
|
|
16212
|
-
is_covered_with_solder_mask:
|
|
16242
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
16213
16243
|
x: distance,
|
|
16214
16244
|
y: distance,
|
|
16215
|
-
layers:
|
|
16216
|
-
port_hints:
|
|
16217
|
-
pcb_component_id:
|
|
16218
|
-
pcb_port_id:
|
|
16245
|
+
layers: z76.array(layer_ref),
|
|
16246
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
16247
|
+
pcb_component_id: z76.string().optional(),
|
|
16248
|
+
pcb_port_id: z76.string().optional(),
|
|
16219
16249
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
16220
|
-
soldermask_margin:
|
|
16221
|
-
});
|
|
16222
|
-
var pcb_rotated_pill_hole_with_rect_pad =
|
|
16223
|
-
type:
|
|
16224
|
-
shape:
|
|
16225
|
-
pcb_group_id:
|
|
16226
|
-
subcircuit_id:
|
|
16227
|
-
hole_shape:
|
|
16228
|
-
pad_shape:
|
|
16229
|
-
hole_width:
|
|
16230
|
-
hole_height:
|
|
16250
|
+
soldermask_margin: z76.number().optional()
|
|
16251
|
+
});
|
|
16252
|
+
var pcb_rotated_pill_hole_with_rect_pad = z76.object({
|
|
16253
|
+
type: z76.literal("pcb_plated_hole"),
|
|
16254
|
+
shape: z76.literal("rotated_pill_hole_with_rect_pad"),
|
|
16255
|
+
pcb_group_id: z76.string().optional(),
|
|
16256
|
+
subcircuit_id: z76.string().optional(),
|
|
16257
|
+
hole_shape: z76.literal("rotated_pill"),
|
|
16258
|
+
pad_shape: z76.literal("rect"),
|
|
16259
|
+
hole_width: z76.number(),
|
|
16260
|
+
hole_height: z76.number(),
|
|
16231
16261
|
hole_ccw_rotation: rotation,
|
|
16232
|
-
rect_pad_width:
|
|
16233
|
-
rect_pad_height:
|
|
16234
|
-
rect_border_radius:
|
|
16262
|
+
rect_pad_width: z76.number(),
|
|
16263
|
+
rect_pad_height: z76.number(),
|
|
16264
|
+
rect_border_radius: z76.number().optional(),
|
|
16235
16265
|
rect_ccw_rotation: rotation,
|
|
16236
16266
|
hole_offset_x: distance.default(0),
|
|
16237
16267
|
hole_offset_y: distance.default(0),
|
|
16238
|
-
is_covered_with_solder_mask:
|
|
16268
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
16239
16269
|
x: distance,
|
|
16240
16270
|
y: distance,
|
|
16241
|
-
layers:
|
|
16242
|
-
port_hints:
|
|
16243
|
-
pcb_component_id:
|
|
16244
|
-
pcb_port_id:
|
|
16271
|
+
layers: z76.array(layer_ref),
|
|
16272
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
16273
|
+
pcb_component_id: z76.string().optional(),
|
|
16274
|
+
pcb_port_id: z76.string().optional(),
|
|
16245
16275
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
16246
|
-
soldermask_margin:
|
|
16247
|
-
});
|
|
16248
|
-
var pcb_hole_with_polygon_pad =
|
|
16249
|
-
type:
|
|
16250
|
-
shape:
|
|
16251
|
-
pcb_group_id:
|
|
16252
|
-
subcircuit_id:
|
|
16253
|
-
hole_shape:
|
|
16254
|
-
hole_diameter:
|
|
16255
|
-
hole_width:
|
|
16256
|
-
hole_height:
|
|
16257
|
-
pad_outline:
|
|
16258
|
-
|
|
16276
|
+
soldermask_margin: z76.number().optional()
|
|
16277
|
+
});
|
|
16278
|
+
var pcb_hole_with_polygon_pad = z76.object({
|
|
16279
|
+
type: z76.literal("pcb_plated_hole"),
|
|
16280
|
+
shape: z76.literal("hole_with_polygon_pad"),
|
|
16281
|
+
pcb_group_id: z76.string().optional(),
|
|
16282
|
+
subcircuit_id: z76.string().optional(),
|
|
16283
|
+
hole_shape: z76.enum(["circle", "oval", "pill", "rotated_pill"]),
|
|
16284
|
+
hole_diameter: z76.number().optional(),
|
|
16285
|
+
hole_width: z76.number().optional(),
|
|
16286
|
+
hole_height: z76.number().optional(),
|
|
16287
|
+
pad_outline: z76.array(
|
|
16288
|
+
z76.object({
|
|
16259
16289
|
x: distance,
|
|
16260
16290
|
y: distance
|
|
16261
16291
|
})
|
|
16262
16292
|
).min(3),
|
|
16263
16293
|
hole_offset_x: distance.default(0),
|
|
16264
16294
|
hole_offset_y: distance.default(0),
|
|
16265
|
-
is_covered_with_solder_mask:
|
|
16295
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
16266
16296
|
x: distance,
|
|
16267
16297
|
y: distance,
|
|
16268
|
-
layers:
|
|
16269
|
-
port_hints:
|
|
16270
|
-
pcb_component_id:
|
|
16271
|
-
pcb_port_id:
|
|
16298
|
+
layers: z76.array(layer_ref),
|
|
16299
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
16300
|
+
pcb_component_id: z76.string().optional(),
|
|
16301
|
+
pcb_port_id: z76.string().optional(),
|
|
16272
16302
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
16273
|
-
soldermask_margin:
|
|
16303
|
+
soldermask_margin: z76.number().optional()
|
|
16274
16304
|
});
|
|
16275
|
-
var pcb_plated_hole =
|
|
16305
|
+
var pcb_plated_hole = z76.union([
|
|
16276
16306
|
pcb_plated_hole_circle,
|
|
16277
16307
|
pcb_plated_hole_oval,
|
|
16278
16308
|
pcb_circular_hole_with_rect_pad,
|
|
@@ -16288,126 +16318,126 @@ expectTypesMatch(true);
|
|
|
16288
16318
|
expectTypesMatch(true);
|
|
16289
16319
|
expectTypesMatch(true);
|
|
16290
16320
|
expectTypesMatch(true);
|
|
16291
|
-
var pcb_port =
|
|
16292
|
-
type:
|
|
16321
|
+
var pcb_port = z77.object({
|
|
16322
|
+
type: z77.literal("pcb_port"),
|
|
16293
16323
|
pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
|
|
16294
|
-
pcb_group_id:
|
|
16295
|
-
subcircuit_id:
|
|
16296
|
-
source_port_id:
|
|
16297
|
-
pcb_component_id:
|
|
16324
|
+
pcb_group_id: z77.string().optional(),
|
|
16325
|
+
subcircuit_id: z77.string().optional(),
|
|
16326
|
+
source_port_id: z77.string(),
|
|
16327
|
+
pcb_component_id: z77.string().optional(),
|
|
16298
16328
|
x: distance,
|
|
16299
16329
|
y: distance,
|
|
16300
|
-
layers:
|
|
16301
|
-
is_board_pinout:
|
|
16330
|
+
layers: z77.array(layer_ref),
|
|
16331
|
+
is_board_pinout: z77.boolean().optional()
|
|
16302
16332
|
}).describe("Defines a port on the PCB");
|
|
16303
16333
|
expectTypesMatch(true);
|
|
16304
|
-
var pcb_smtpad_circle =
|
|
16305
|
-
type:
|
|
16306
|
-
shape:
|
|
16334
|
+
var pcb_smtpad_circle = z78.object({
|
|
16335
|
+
type: z78.literal("pcb_smtpad"),
|
|
16336
|
+
shape: z78.literal("circle"),
|
|
16307
16337
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
16308
|
-
pcb_group_id:
|
|
16309
|
-
subcircuit_id:
|
|
16338
|
+
pcb_group_id: z78.string().optional(),
|
|
16339
|
+
subcircuit_id: z78.string().optional(),
|
|
16310
16340
|
x: distance,
|
|
16311
16341
|
y: distance,
|
|
16312
|
-
radius:
|
|
16342
|
+
radius: z78.number(),
|
|
16313
16343
|
layer: layer_ref,
|
|
16314
|
-
port_hints:
|
|
16315
|
-
pcb_component_id:
|
|
16316
|
-
pcb_port_id:
|
|
16317
|
-
is_covered_with_solder_mask:
|
|
16318
|
-
soldermask_margin:
|
|
16344
|
+
port_hints: z78.array(z78.string()).optional(),
|
|
16345
|
+
pcb_component_id: z78.string().optional(),
|
|
16346
|
+
pcb_port_id: z78.string().optional(),
|
|
16347
|
+
is_covered_with_solder_mask: z78.boolean().optional(),
|
|
16348
|
+
soldermask_margin: z78.number().optional()
|
|
16319
16349
|
});
|
|
16320
|
-
var pcb_smtpad_rect =
|
|
16321
|
-
type:
|
|
16322
|
-
shape:
|
|
16350
|
+
var pcb_smtpad_rect = z78.object({
|
|
16351
|
+
type: z78.literal("pcb_smtpad"),
|
|
16352
|
+
shape: z78.literal("rect"),
|
|
16323
16353
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
16324
|
-
pcb_group_id:
|
|
16325
|
-
subcircuit_id:
|
|
16354
|
+
pcb_group_id: z78.string().optional(),
|
|
16355
|
+
subcircuit_id: z78.string().optional(),
|
|
16326
16356
|
x: distance,
|
|
16327
16357
|
y: distance,
|
|
16328
|
-
width:
|
|
16329
|
-
height:
|
|
16330
|
-
rect_border_radius:
|
|
16331
|
-
corner_radius:
|
|
16358
|
+
width: z78.number(),
|
|
16359
|
+
height: z78.number(),
|
|
16360
|
+
rect_border_radius: z78.number().optional(),
|
|
16361
|
+
corner_radius: z78.number().optional(),
|
|
16332
16362
|
layer: layer_ref,
|
|
16333
|
-
port_hints:
|
|
16334
|
-
pcb_component_id:
|
|
16335
|
-
pcb_port_id:
|
|
16336
|
-
is_covered_with_solder_mask:
|
|
16337
|
-
soldermask_margin:
|
|
16363
|
+
port_hints: z78.array(z78.string()).optional(),
|
|
16364
|
+
pcb_component_id: z78.string().optional(),
|
|
16365
|
+
pcb_port_id: z78.string().optional(),
|
|
16366
|
+
is_covered_with_solder_mask: z78.boolean().optional(),
|
|
16367
|
+
soldermask_margin: z78.number().optional()
|
|
16338
16368
|
});
|
|
16339
|
-
var pcb_smtpad_rotated_rect =
|
|
16340
|
-
type:
|
|
16341
|
-
shape:
|
|
16369
|
+
var pcb_smtpad_rotated_rect = z78.object({
|
|
16370
|
+
type: z78.literal("pcb_smtpad"),
|
|
16371
|
+
shape: z78.literal("rotated_rect"),
|
|
16342
16372
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
16343
|
-
pcb_group_id:
|
|
16344
|
-
subcircuit_id:
|
|
16373
|
+
pcb_group_id: z78.string().optional(),
|
|
16374
|
+
subcircuit_id: z78.string().optional(),
|
|
16345
16375
|
x: distance,
|
|
16346
16376
|
y: distance,
|
|
16347
|
-
width:
|
|
16348
|
-
height:
|
|
16349
|
-
rect_border_radius:
|
|
16350
|
-
corner_radius:
|
|
16377
|
+
width: z78.number(),
|
|
16378
|
+
height: z78.number(),
|
|
16379
|
+
rect_border_radius: z78.number().optional(),
|
|
16380
|
+
corner_radius: z78.number().optional(),
|
|
16351
16381
|
ccw_rotation: rotation,
|
|
16352
16382
|
layer: layer_ref,
|
|
16353
|
-
port_hints:
|
|
16354
|
-
pcb_component_id:
|
|
16355
|
-
pcb_port_id:
|
|
16356
|
-
is_covered_with_solder_mask:
|
|
16357
|
-
soldermask_margin:
|
|
16383
|
+
port_hints: z78.array(z78.string()).optional(),
|
|
16384
|
+
pcb_component_id: z78.string().optional(),
|
|
16385
|
+
pcb_port_id: z78.string().optional(),
|
|
16386
|
+
is_covered_with_solder_mask: z78.boolean().optional(),
|
|
16387
|
+
soldermask_margin: z78.number().optional()
|
|
16358
16388
|
});
|
|
16359
|
-
var pcb_smtpad_pill =
|
|
16360
|
-
type:
|
|
16361
|
-
shape:
|
|
16389
|
+
var pcb_smtpad_pill = z78.object({
|
|
16390
|
+
type: z78.literal("pcb_smtpad"),
|
|
16391
|
+
shape: z78.literal("pill"),
|
|
16362
16392
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
16363
|
-
pcb_group_id:
|
|
16364
|
-
subcircuit_id:
|
|
16393
|
+
pcb_group_id: z78.string().optional(),
|
|
16394
|
+
subcircuit_id: z78.string().optional(),
|
|
16365
16395
|
x: distance,
|
|
16366
16396
|
y: distance,
|
|
16367
|
-
width:
|
|
16368
|
-
height:
|
|
16369
|
-
radius:
|
|
16397
|
+
width: z78.number(),
|
|
16398
|
+
height: z78.number(),
|
|
16399
|
+
radius: z78.number(),
|
|
16370
16400
|
layer: layer_ref,
|
|
16371
|
-
port_hints:
|
|
16372
|
-
pcb_component_id:
|
|
16373
|
-
pcb_port_id:
|
|
16374
|
-
is_covered_with_solder_mask:
|
|
16375
|
-
soldermask_margin:
|
|
16401
|
+
port_hints: z78.array(z78.string()).optional(),
|
|
16402
|
+
pcb_component_id: z78.string().optional(),
|
|
16403
|
+
pcb_port_id: z78.string().optional(),
|
|
16404
|
+
is_covered_with_solder_mask: z78.boolean().optional(),
|
|
16405
|
+
soldermask_margin: z78.number().optional()
|
|
16376
16406
|
});
|
|
16377
|
-
var pcb_smtpad_rotated_pill =
|
|
16378
|
-
type:
|
|
16379
|
-
shape:
|
|
16407
|
+
var pcb_smtpad_rotated_pill = z78.object({
|
|
16408
|
+
type: z78.literal("pcb_smtpad"),
|
|
16409
|
+
shape: z78.literal("rotated_pill"),
|
|
16380
16410
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
16381
|
-
pcb_group_id:
|
|
16382
|
-
subcircuit_id:
|
|
16411
|
+
pcb_group_id: z78.string().optional(),
|
|
16412
|
+
subcircuit_id: z78.string().optional(),
|
|
16383
16413
|
x: distance,
|
|
16384
16414
|
y: distance,
|
|
16385
|
-
width:
|
|
16386
|
-
height:
|
|
16387
|
-
radius:
|
|
16415
|
+
width: z78.number(),
|
|
16416
|
+
height: z78.number(),
|
|
16417
|
+
radius: z78.number(),
|
|
16388
16418
|
ccw_rotation: rotation,
|
|
16389
16419
|
layer: layer_ref,
|
|
16390
|
-
port_hints:
|
|
16391
|
-
pcb_component_id:
|
|
16392
|
-
pcb_port_id:
|
|
16393
|
-
is_covered_with_solder_mask:
|
|
16394
|
-
soldermask_margin:
|
|
16420
|
+
port_hints: z78.array(z78.string()).optional(),
|
|
16421
|
+
pcb_component_id: z78.string().optional(),
|
|
16422
|
+
pcb_port_id: z78.string().optional(),
|
|
16423
|
+
is_covered_with_solder_mask: z78.boolean().optional(),
|
|
16424
|
+
soldermask_margin: z78.number().optional()
|
|
16395
16425
|
});
|
|
16396
|
-
var pcb_smtpad_polygon =
|
|
16397
|
-
type:
|
|
16398
|
-
shape:
|
|
16426
|
+
var pcb_smtpad_polygon = z78.object({
|
|
16427
|
+
type: z78.literal("pcb_smtpad"),
|
|
16428
|
+
shape: z78.literal("polygon"),
|
|
16399
16429
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
16400
|
-
pcb_group_id:
|
|
16401
|
-
subcircuit_id:
|
|
16402
|
-
points:
|
|
16430
|
+
pcb_group_id: z78.string().optional(),
|
|
16431
|
+
subcircuit_id: z78.string().optional(),
|
|
16432
|
+
points: z78.array(point),
|
|
16403
16433
|
layer: layer_ref,
|
|
16404
|
-
port_hints:
|
|
16405
|
-
pcb_component_id:
|
|
16406
|
-
pcb_port_id:
|
|
16407
|
-
is_covered_with_solder_mask:
|
|
16408
|
-
soldermask_margin:
|
|
16434
|
+
port_hints: z78.array(z78.string()).optional(),
|
|
16435
|
+
pcb_component_id: z78.string().optional(),
|
|
16436
|
+
pcb_port_id: z78.string().optional(),
|
|
16437
|
+
is_covered_with_solder_mask: z78.boolean().optional(),
|
|
16438
|
+
soldermask_margin: z78.number().optional()
|
|
16409
16439
|
});
|
|
16410
|
-
var pcb_smtpad =
|
|
16440
|
+
var pcb_smtpad = z78.discriminatedUnion("shape", [
|
|
16411
16441
|
pcb_smtpad_circle,
|
|
16412
16442
|
pcb_smtpad_rect,
|
|
16413
16443
|
pcb_smtpad_rotated_rect,
|
|
@@ -16421,78 +16451,78 @@ expectTypesMatch(true);
|
|
|
16421
16451
|
expectTypesMatch(true);
|
|
16422
16452
|
expectTypesMatch(true);
|
|
16423
16453
|
expectTypesMatch(true);
|
|
16424
|
-
var pcb_solder_paste_circle =
|
|
16425
|
-
type:
|
|
16426
|
-
shape:
|
|
16454
|
+
var pcb_solder_paste_circle = z79.object({
|
|
16455
|
+
type: z79.literal("pcb_solder_paste"),
|
|
16456
|
+
shape: z79.literal("circle"),
|
|
16427
16457
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
16428
|
-
pcb_group_id:
|
|
16429
|
-
subcircuit_id:
|
|
16458
|
+
pcb_group_id: z79.string().optional(),
|
|
16459
|
+
subcircuit_id: z79.string().optional(),
|
|
16430
16460
|
x: distance,
|
|
16431
16461
|
y: distance,
|
|
16432
|
-
radius:
|
|
16462
|
+
radius: z79.number(),
|
|
16433
16463
|
layer: layer_ref,
|
|
16434
|
-
pcb_component_id:
|
|
16435
|
-
pcb_smtpad_id:
|
|
16464
|
+
pcb_component_id: z79.string().optional(),
|
|
16465
|
+
pcb_smtpad_id: z79.string().optional()
|
|
16436
16466
|
});
|
|
16437
|
-
var pcb_solder_paste_rect =
|
|
16438
|
-
type:
|
|
16439
|
-
shape:
|
|
16467
|
+
var pcb_solder_paste_rect = z79.object({
|
|
16468
|
+
type: z79.literal("pcb_solder_paste"),
|
|
16469
|
+
shape: z79.literal("rect"),
|
|
16440
16470
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
16441
|
-
pcb_group_id:
|
|
16442
|
-
subcircuit_id:
|
|
16471
|
+
pcb_group_id: z79.string().optional(),
|
|
16472
|
+
subcircuit_id: z79.string().optional(),
|
|
16443
16473
|
x: distance,
|
|
16444
16474
|
y: distance,
|
|
16445
|
-
width:
|
|
16446
|
-
height:
|
|
16475
|
+
width: z79.number(),
|
|
16476
|
+
height: z79.number(),
|
|
16447
16477
|
layer: layer_ref,
|
|
16448
|
-
pcb_component_id:
|
|
16449
|
-
pcb_smtpad_id:
|
|
16478
|
+
pcb_component_id: z79.string().optional(),
|
|
16479
|
+
pcb_smtpad_id: z79.string().optional()
|
|
16450
16480
|
});
|
|
16451
|
-
var pcb_solder_paste_pill =
|
|
16452
|
-
type:
|
|
16453
|
-
shape:
|
|
16481
|
+
var pcb_solder_paste_pill = z79.object({
|
|
16482
|
+
type: z79.literal("pcb_solder_paste"),
|
|
16483
|
+
shape: z79.literal("pill"),
|
|
16454
16484
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
16455
|
-
pcb_group_id:
|
|
16456
|
-
subcircuit_id:
|
|
16485
|
+
pcb_group_id: z79.string().optional(),
|
|
16486
|
+
subcircuit_id: z79.string().optional(),
|
|
16457
16487
|
x: distance,
|
|
16458
16488
|
y: distance,
|
|
16459
|
-
width:
|
|
16460
|
-
height:
|
|
16461
|
-
radius:
|
|
16489
|
+
width: z79.number(),
|
|
16490
|
+
height: z79.number(),
|
|
16491
|
+
radius: z79.number(),
|
|
16462
16492
|
layer: layer_ref,
|
|
16463
|
-
pcb_component_id:
|
|
16464
|
-
pcb_smtpad_id:
|
|
16493
|
+
pcb_component_id: z79.string().optional(),
|
|
16494
|
+
pcb_smtpad_id: z79.string().optional()
|
|
16465
16495
|
});
|
|
16466
|
-
var pcb_solder_paste_rotated_rect =
|
|
16467
|
-
type:
|
|
16468
|
-
shape:
|
|
16496
|
+
var pcb_solder_paste_rotated_rect = z79.object({
|
|
16497
|
+
type: z79.literal("pcb_solder_paste"),
|
|
16498
|
+
shape: z79.literal("rotated_rect"),
|
|
16469
16499
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
16470
|
-
pcb_group_id:
|
|
16471
|
-
subcircuit_id:
|
|
16500
|
+
pcb_group_id: z79.string().optional(),
|
|
16501
|
+
subcircuit_id: z79.string().optional(),
|
|
16472
16502
|
x: distance,
|
|
16473
16503
|
y: distance,
|
|
16474
|
-
width:
|
|
16475
|
-
height:
|
|
16504
|
+
width: z79.number(),
|
|
16505
|
+
height: z79.number(),
|
|
16476
16506
|
ccw_rotation: distance,
|
|
16477
16507
|
layer: layer_ref,
|
|
16478
|
-
pcb_component_id:
|
|
16479
|
-
pcb_smtpad_id:
|
|
16508
|
+
pcb_component_id: z79.string().optional(),
|
|
16509
|
+
pcb_smtpad_id: z79.string().optional()
|
|
16480
16510
|
});
|
|
16481
|
-
var pcb_solder_paste_oval =
|
|
16482
|
-
type:
|
|
16483
|
-
shape:
|
|
16511
|
+
var pcb_solder_paste_oval = z79.object({
|
|
16512
|
+
type: z79.literal("pcb_solder_paste"),
|
|
16513
|
+
shape: z79.literal("oval"),
|
|
16484
16514
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
16485
|
-
pcb_group_id:
|
|
16486
|
-
subcircuit_id:
|
|
16515
|
+
pcb_group_id: z79.string().optional(),
|
|
16516
|
+
subcircuit_id: z79.string().optional(),
|
|
16487
16517
|
x: distance,
|
|
16488
16518
|
y: distance,
|
|
16489
|
-
width:
|
|
16490
|
-
height:
|
|
16519
|
+
width: z79.number(),
|
|
16520
|
+
height: z79.number(),
|
|
16491
16521
|
layer: layer_ref,
|
|
16492
|
-
pcb_component_id:
|
|
16493
|
-
pcb_smtpad_id:
|
|
16522
|
+
pcb_component_id: z79.string().optional(),
|
|
16523
|
+
pcb_smtpad_id: z79.string().optional()
|
|
16494
16524
|
});
|
|
16495
|
-
var pcb_solder_paste =
|
|
16525
|
+
var pcb_solder_paste = z79.union([
|
|
16496
16526
|
pcb_solder_paste_circle,
|
|
16497
16527
|
pcb_solder_paste_rect,
|
|
16498
16528
|
pcb_solder_paste_pill,
|
|
@@ -16506,124 +16536,124 @@ expectTypesMatch(
|
|
|
16506
16536
|
true
|
|
16507
16537
|
);
|
|
16508
16538
|
expectTypesMatch(true);
|
|
16509
|
-
var pcb_text =
|
|
16510
|
-
type:
|
|
16539
|
+
var pcb_text = z80.object({
|
|
16540
|
+
type: z80.literal("pcb_text"),
|
|
16511
16541
|
pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
|
|
16512
|
-
pcb_group_id:
|
|
16513
|
-
subcircuit_id:
|
|
16514
|
-
text:
|
|
16542
|
+
pcb_group_id: z80.string().optional(),
|
|
16543
|
+
subcircuit_id: z80.string().optional(),
|
|
16544
|
+
text: z80.string(),
|
|
16515
16545
|
center: point,
|
|
16516
16546
|
layer: layer_ref,
|
|
16517
16547
|
width: length,
|
|
16518
16548
|
height: length,
|
|
16519
|
-
lines:
|
|
16549
|
+
lines: z80.number(),
|
|
16520
16550
|
// @ts-ignore
|
|
16521
|
-
align:
|
|
16551
|
+
align: z80.enum(["bottom-left"])
|
|
16522
16552
|
}).describe("Defines text on the PCB");
|
|
16523
16553
|
expectTypesMatch(true);
|
|
16524
|
-
var pcb_trace_route_point_wire =
|
|
16525
|
-
route_type:
|
|
16554
|
+
var pcb_trace_route_point_wire = z81.object({
|
|
16555
|
+
route_type: z81.literal("wire"),
|
|
16526
16556
|
x: distance,
|
|
16527
16557
|
y: distance,
|
|
16528
16558
|
width: distance,
|
|
16529
|
-
start_pcb_port_id:
|
|
16530
|
-
end_pcb_port_id:
|
|
16559
|
+
start_pcb_port_id: z81.string().optional(),
|
|
16560
|
+
end_pcb_port_id: z81.string().optional(),
|
|
16531
16561
|
layer: layer_ref
|
|
16532
16562
|
});
|
|
16533
|
-
var pcb_trace_route_point_via =
|
|
16534
|
-
route_type:
|
|
16563
|
+
var pcb_trace_route_point_via = z81.object({
|
|
16564
|
+
route_type: z81.literal("via"),
|
|
16535
16565
|
x: distance,
|
|
16536
16566
|
y: distance,
|
|
16537
16567
|
hole_diameter: distance.optional(),
|
|
16538
16568
|
outer_diameter: distance.optional(),
|
|
16539
|
-
from_layer:
|
|
16540
|
-
to_layer:
|
|
16569
|
+
from_layer: z81.string(),
|
|
16570
|
+
to_layer: z81.string()
|
|
16541
16571
|
});
|
|
16542
|
-
var pcb_trace_route_point =
|
|
16572
|
+
var pcb_trace_route_point = z81.union([
|
|
16543
16573
|
pcb_trace_route_point_wire,
|
|
16544
16574
|
pcb_trace_route_point_via
|
|
16545
16575
|
]);
|
|
16546
|
-
var pcb_trace =
|
|
16547
|
-
type:
|
|
16548
|
-
source_trace_id:
|
|
16549
|
-
pcb_component_id:
|
|
16576
|
+
var pcb_trace = z81.object({
|
|
16577
|
+
type: z81.literal("pcb_trace"),
|
|
16578
|
+
source_trace_id: z81.string().optional(),
|
|
16579
|
+
pcb_component_id: z81.string().optional(),
|
|
16550
16580
|
pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
|
|
16551
|
-
pcb_group_id:
|
|
16552
|
-
subcircuit_id:
|
|
16553
|
-
route_thickness_mode:
|
|
16554
|
-
route_order_index:
|
|
16555
|
-
should_round_corners:
|
|
16556
|
-
trace_length:
|
|
16557
|
-
highlight_color:
|
|
16558
|
-
route:
|
|
16581
|
+
pcb_group_id: z81.string().optional(),
|
|
16582
|
+
subcircuit_id: z81.string().optional(),
|
|
16583
|
+
route_thickness_mode: z81.enum(["constant", "interpolated"]).default("constant").optional(),
|
|
16584
|
+
route_order_index: z81.number().optional(),
|
|
16585
|
+
should_round_corners: z81.boolean().optional(),
|
|
16586
|
+
trace_length: z81.number().optional(),
|
|
16587
|
+
highlight_color: z81.string().optional(),
|
|
16588
|
+
route: z81.array(pcb_trace_route_point)
|
|
16559
16589
|
}).describe("Defines a trace on the PCB");
|
|
16560
16590
|
expectTypesMatch(true);
|
|
16561
16591
|
expectTypesMatch(true);
|
|
16562
|
-
var pcb_trace_error =
|
|
16563
|
-
type:
|
|
16592
|
+
var pcb_trace_error = z82.object({
|
|
16593
|
+
type: z82.literal("pcb_trace_error"),
|
|
16564
16594
|
pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
|
|
16565
|
-
error_type:
|
|
16566
|
-
message:
|
|
16595
|
+
error_type: z82.literal("pcb_trace_error").default("pcb_trace_error"),
|
|
16596
|
+
message: z82.string(),
|
|
16567
16597
|
center: point.optional(),
|
|
16568
|
-
pcb_trace_id:
|
|
16569
|
-
source_trace_id:
|
|
16570
|
-
pcb_component_ids:
|
|
16571
|
-
pcb_port_ids:
|
|
16572
|
-
subcircuit_id:
|
|
16598
|
+
pcb_trace_id: z82.string(),
|
|
16599
|
+
source_trace_id: z82.string(),
|
|
16600
|
+
pcb_component_ids: z82.array(z82.string()),
|
|
16601
|
+
pcb_port_ids: z82.array(z82.string()),
|
|
16602
|
+
subcircuit_id: z82.string().optional()
|
|
16573
16603
|
}).describe("Defines a trace error on the PCB");
|
|
16574
16604
|
expectTypesMatch(true);
|
|
16575
|
-
var pcb_trace_missing_error =
|
|
16576
|
-
type:
|
|
16605
|
+
var pcb_trace_missing_error = z83.object({
|
|
16606
|
+
type: z83.literal("pcb_trace_missing_error"),
|
|
16577
16607
|
pcb_trace_missing_error_id: getZodPrefixedIdWithDefault(
|
|
16578
16608
|
"pcb_trace_missing_error"
|
|
16579
16609
|
),
|
|
16580
|
-
error_type:
|
|
16581
|
-
message:
|
|
16610
|
+
error_type: z83.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
|
|
16611
|
+
message: z83.string(),
|
|
16582
16612
|
center: point.optional(),
|
|
16583
|
-
source_trace_id:
|
|
16584
|
-
pcb_component_ids:
|
|
16585
|
-
pcb_port_ids:
|
|
16586
|
-
subcircuit_id:
|
|
16613
|
+
source_trace_id: z83.string(),
|
|
16614
|
+
pcb_component_ids: z83.array(z83.string()),
|
|
16615
|
+
pcb_port_ids: z83.array(z83.string()),
|
|
16616
|
+
subcircuit_id: z83.string().optional()
|
|
16587
16617
|
}).describe(
|
|
16588
16618
|
"Defines an error when a source trace has no corresponding PCB trace"
|
|
16589
16619
|
);
|
|
16590
16620
|
expectTypesMatch(true);
|
|
16591
|
-
var pcb_port_not_matched_error =
|
|
16592
|
-
type:
|
|
16621
|
+
var pcb_port_not_matched_error = z84.object({
|
|
16622
|
+
type: z84.literal("pcb_port_not_matched_error"),
|
|
16593
16623
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
16594
|
-
error_type:
|
|
16595
|
-
message:
|
|
16596
|
-
pcb_component_ids:
|
|
16597
|
-
subcircuit_id:
|
|
16624
|
+
error_type: z84.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
|
|
16625
|
+
message: z84.string(),
|
|
16626
|
+
pcb_component_ids: z84.array(z84.string()),
|
|
16627
|
+
subcircuit_id: z84.string().optional()
|
|
16598
16628
|
}).describe("Defines a trace error on the PCB where a port is not matched");
|
|
16599
16629
|
expectTypesMatch(true);
|
|
16600
|
-
var pcb_port_not_connected_error =
|
|
16601
|
-
type:
|
|
16630
|
+
var pcb_port_not_connected_error = z85.object({
|
|
16631
|
+
type: z85.literal("pcb_port_not_connected_error"),
|
|
16602
16632
|
pcb_port_not_connected_error_id: getZodPrefixedIdWithDefault(
|
|
16603
16633
|
"pcb_port_not_connected_error"
|
|
16604
16634
|
),
|
|
16605
|
-
error_type:
|
|
16606
|
-
message:
|
|
16607
|
-
pcb_port_ids:
|
|
16608
|
-
pcb_component_ids:
|
|
16609
|
-
subcircuit_id:
|
|
16635
|
+
error_type: z85.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
|
|
16636
|
+
message: z85.string(),
|
|
16637
|
+
pcb_port_ids: z85.array(z85.string()),
|
|
16638
|
+
pcb_component_ids: z85.array(z85.string()),
|
|
16639
|
+
subcircuit_id: z85.string().optional()
|
|
16610
16640
|
}).describe("Defines an error when a pcb port is not connected to any trace");
|
|
16611
16641
|
expectTypesMatch(
|
|
16612
16642
|
true
|
|
16613
16643
|
);
|
|
16614
|
-
var pcb_net =
|
|
16615
|
-
type:
|
|
16644
|
+
var pcb_net = z86.object({
|
|
16645
|
+
type: z86.literal("pcb_net"),
|
|
16616
16646
|
pcb_net_id: getZodPrefixedIdWithDefault("pcb_net"),
|
|
16617
|
-
source_net_id:
|
|
16618
|
-
highlight_color:
|
|
16647
|
+
source_net_id: z86.string().optional(),
|
|
16648
|
+
highlight_color: z86.string().optional()
|
|
16619
16649
|
}).describe("Defines a net on the PCB");
|
|
16620
16650
|
expectTypesMatch(true);
|
|
16621
|
-
var pcb_via =
|
|
16622
|
-
type:
|
|
16651
|
+
var pcb_via = z87.object({
|
|
16652
|
+
type: z87.literal("pcb_via"),
|
|
16623
16653
|
pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
|
|
16624
|
-
pcb_group_id:
|
|
16625
|
-
subcircuit_id:
|
|
16626
|
-
subcircuit_connectivity_map_key:
|
|
16654
|
+
pcb_group_id: z87.string().optional(),
|
|
16655
|
+
subcircuit_id: z87.string().optional(),
|
|
16656
|
+
subcircuit_connectivity_map_key: z87.string().optional(),
|
|
16627
16657
|
x: distance,
|
|
16628
16658
|
y: distance,
|
|
16629
16659
|
outer_diameter: distance.default("0.6mm"),
|
|
@@ -16632,61 +16662,61 @@ var pcb_via = z84.object({
|
|
|
16632
16662
|
from_layer: layer_ref.optional(),
|
|
16633
16663
|
/** @deprecated */
|
|
16634
16664
|
to_layer: layer_ref.optional(),
|
|
16635
|
-
layers:
|
|
16636
|
-
pcb_trace_id:
|
|
16637
|
-
net_is_assignable:
|
|
16638
|
-
net_assigned:
|
|
16639
|
-
is_tented:
|
|
16665
|
+
layers: z87.array(layer_ref),
|
|
16666
|
+
pcb_trace_id: z87.string().optional(),
|
|
16667
|
+
net_is_assignable: z87.boolean().optional(),
|
|
16668
|
+
net_assigned: z87.boolean().optional(),
|
|
16669
|
+
is_tented: z87.boolean().optional()
|
|
16640
16670
|
}).describe("Defines a via on the PCB");
|
|
16641
16671
|
expectTypesMatch(true);
|
|
16642
|
-
var pcb_board =
|
|
16643
|
-
type:
|
|
16672
|
+
var pcb_board = z88.object({
|
|
16673
|
+
type: z88.literal("pcb_board"),
|
|
16644
16674
|
pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
|
|
16645
|
-
pcb_panel_id:
|
|
16646
|
-
is_subcircuit:
|
|
16647
|
-
subcircuit_id:
|
|
16675
|
+
pcb_panel_id: z88.string().optional(),
|
|
16676
|
+
is_subcircuit: z88.boolean().optional(),
|
|
16677
|
+
subcircuit_id: z88.string().optional(),
|
|
16648
16678
|
width: length.optional(),
|
|
16649
16679
|
height: length.optional(),
|
|
16650
16680
|
center: point,
|
|
16651
16681
|
thickness: length.optional().default(1.4),
|
|
16652
|
-
num_layers:
|
|
16653
|
-
outline:
|
|
16654
|
-
shape:
|
|
16655
|
-
material:
|
|
16682
|
+
num_layers: z88.number().optional().default(4),
|
|
16683
|
+
outline: z88.array(point).optional(),
|
|
16684
|
+
shape: z88.enum(["rect", "polygon"]).optional(),
|
|
16685
|
+
material: z88.enum(["fr4", "fr1"]).default("fr4")
|
|
16656
16686
|
}).describe("Defines the board outline of the PCB");
|
|
16657
16687
|
expectTypesMatch(true);
|
|
16658
|
-
var pcb_panel =
|
|
16659
|
-
type:
|
|
16688
|
+
var pcb_panel = z89.object({
|
|
16689
|
+
type: z89.literal("pcb_panel"),
|
|
16660
16690
|
pcb_panel_id: getZodPrefixedIdWithDefault("pcb_panel"),
|
|
16661
16691
|
width: length,
|
|
16662
16692
|
height: length,
|
|
16663
16693
|
center: point,
|
|
16664
|
-
covered_with_solder_mask:
|
|
16694
|
+
covered_with_solder_mask: z89.boolean().optional().default(true)
|
|
16665
16695
|
}).describe("Defines a PCB panel that can contain multiple boards");
|
|
16666
16696
|
expectTypesMatch(true);
|
|
16667
|
-
var pcb_placement_error =
|
|
16668
|
-
type:
|
|
16697
|
+
var pcb_placement_error = z90.object({
|
|
16698
|
+
type: z90.literal("pcb_placement_error"),
|
|
16669
16699
|
pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
|
|
16670
|
-
error_type:
|
|
16671
|
-
message:
|
|
16672
|
-
subcircuit_id:
|
|
16700
|
+
error_type: z90.literal("pcb_placement_error").default("pcb_placement_error"),
|
|
16701
|
+
message: z90.string(),
|
|
16702
|
+
subcircuit_id: z90.string().optional()
|
|
16673
16703
|
}).describe("Defines a placement error on the PCB");
|
|
16674
16704
|
expectTypesMatch(true);
|
|
16675
|
-
var pcb_trace_hint =
|
|
16676
|
-
type:
|
|
16705
|
+
var pcb_trace_hint = z91.object({
|
|
16706
|
+
type: z91.literal("pcb_trace_hint"),
|
|
16677
16707
|
pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
|
|
16678
|
-
pcb_port_id:
|
|
16679
|
-
pcb_component_id:
|
|
16680
|
-
route:
|
|
16681
|
-
subcircuit_id:
|
|
16708
|
+
pcb_port_id: z91.string(),
|
|
16709
|
+
pcb_component_id: z91.string(),
|
|
16710
|
+
route: z91.array(route_hint_point),
|
|
16711
|
+
subcircuit_id: z91.string().optional()
|
|
16682
16712
|
}).describe("A hint that can be used during generation of a PCB trace");
|
|
16683
16713
|
expectTypesMatch(true);
|
|
16684
|
-
var pcb_silkscreen_line =
|
|
16685
|
-
type:
|
|
16714
|
+
var pcb_silkscreen_line = z92.object({
|
|
16715
|
+
type: z92.literal("pcb_silkscreen_line"),
|
|
16686
16716
|
pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
|
|
16687
|
-
pcb_component_id:
|
|
16688
|
-
pcb_group_id:
|
|
16689
|
-
subcircuit_id:
|
|
16717
|
+
pcb_component_id: z92.string(),
|
|
16718
|
+
pcb_group_id: z92.string().optional(),
|
|
16719
|
+
subcircuit_id: z92.string().optional(),
|
|
16690
16720
|
stroke_width: distance.default("0.1mm"),
|
|
16691
16721
|
x1: distance,
|
|
16692
16722
|
y1: distance,
|
|
@@ -16695,28 +16725,28 @@ var pcb_silkscreen_line = z89.object({
|
|
|
16695
16725
|
layer: visible_layer
|
|
16696
16726
|
}).describe("Defines a silkscreen line on the PCB");
|
|
16697
16727
|
expectTypesMatch(true);
|
|
16698
|
-
var pcb_silkscreen_path =
|
|
16699
|
-
type:
|
|
16728
|
+
var pcb_silkscreen_path = z93.object({
|
|
16729
|
+
type: z93.literal("pcb_silkscreen_path"),
|
|
16700
16730
|
pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
|
|
16701
|
-
pcb_component_id:
|
|
16702
|
-
pcb_group_id:
|
|
16703
|
-
subcircuit_id:
|
|
16731
|
+
pcb_component_id: z93.string(),
|
|
16732
|
+
pcb_group_id: z93.string().optional(),
|
|
16733
|
+
subcircuit_id: z93.string().optional(),
|
|
16704
16734
|
layer: visible_layer,
|
|
16705
|
-
route:
|
|
16735
|
+
route: z93.array(point),
|
|
16706
16736
|
stroke_width: length
|
|
16707
16737
|
}).describe("Defines a silkscreen path on the PCB");
|
|
16708
16738
|
expectTypesMatch(true);
|
|
16709
|
-
var pcb_silkscreen_text =
|
|
16710
|
-
type:
|
|
16739
|
+
var pcb_silkscreen_text = z94.object({
|
|
16740
|
+
type: z94.literal("pcb_silkscreen_text"),
|
|
16711
16741
|
pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
|
|
16712
|
-
pcb_group_id:
|
|
16713
|
-
subcircuit_id:
|
|
16714
|
-
font:
|
|
16742
|
+
pcb_group_id: z94.string().optional(),
|
|
16743
|
+
subcircuit_id: z94.string().optional(),
|
|
16744
|
+
font: z94.literal("tscircuit2024").default("tscircuit2024"),
|
|
16715
16745
|
font_size: distance.default("0.2mm"),
|
|
16716
|
-
pcb_component_id:
|
|
16717
|
-
text:
|
|
16718
|
-
is_knockout:
|
|
16719
|
-
knockout_padding:
|
|
16746
|
+
pcb_component_id: z94.string(),
|
|
16747
|
+
text: z94.string(),
|
|
16748
|
+
is_knockout: z94.boolean().default(false).optional(),
|
|
16749
|
+
knockout_padding: z94.object({
|
|
16720
16750
|
left: length,
|
|
16721
16751
|
top: length,
|
|
16722
16752
|
bottom: length,
|
|
@@ -16727,24 +16757,24 @@ var pcb_silkscreen_text = z91.object({
|
|
|
16727
16757
|
bottom: "0.2mm",
|
|
16728
16758
|
right: "0.2mm"
|
|
16729
16759
|
}).optional(),
|
|
16730
|
-
ccw_rotation:
|
|
16760
|
+
ccw_rotation: z94.number().optional(),
|
|
16731
16761
|
layer: layer_ref,
|
|
16732
|
-
is_mirrored:
|
|
16762
|
+
is_mirrored: z94.boolean().default(false).optional(),
|
|
16733
16763
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
16734
16764
|
anchor_alignment: ninePointAnchor.default("center")
|
|
16735
16765
|
}).describe("Defines silkscreen text on the PCB");
|
|
16736
16766
|
expectTypesMatch(true);
|
|
16737
|
-
var pcb_copper_text =
|
|
16738
|
-
type:
|
|
16767
|
+
var pcb_copper_text = z95.object({
|
|
16768
|
+
type: z95.literal("pcb_copper_text"),
|
|
16739
16769
|
pcb_copper_text_id: getZodPrefixedIdWithDefault("pcb_copper_text"),
|
|
16740
|
-
pcb_group_id:
|
|
16741
|
-
subcircuit_id:
|
|
16742
|
-
font:
|
|
16770
|
+
pcb_group_id: z95.string().optional(),
|
|
16771
|
+
subcircuit_id: z95.string().optional(),
|
|
16772
|
+
font: z95.literal("tscircuit2024").default("tscircuit2024"),
|
|
16743
16773
|
font_size: distance.default("0.2mm"),
|
|
16744
|
-
pcb_component_id:
|
|
16745
|
-
text:
|
|
16746
|
-
is_knockout:
|
|
16747
|
-
knockout_padding:
|
|
16774
|
+
pcb_component_id: z95.string(),
|
|
16775
|
+
text: z95.string(),
|
|
16776
|
+
is_knockout: z95.boolean().default(false).optional(),
|
|
16777
|
+
knockout_padding: z95.object({
|
|
16748
16778
|
left: length,
|
|
16749
16779
|
top: length,
|
|
16750
16780
|
bottom: length,
|
|
@@ -16755,273 +16785,273 @@ var pcb_copper_text = z92.object({
|
|
|
16755
16785
|
bottom: "0.2mm",
|
|
16756
16786
|
right: "0.2mm"
|
|
16757
16787
|
}).optional(),
|
|
16758
|
-
ccw_rotation:
|
|
16788
|
+
ccw_rotation: z95.number().optional(),
|
|
16759
16789
|
layer: layer_ref,
|
|
16760
|
-
is_mirrored:
|
|
16790
|
+
is_mirrored: z95.boolean().default(false).optional(),
|
|
16761
16791
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
16762
16792
|
anchor_alignment: ninePointAnchor.default("center")
|
|
16763
16793
|
}).describe("Defines copper text on the PCB");
|
|
16764
16794
|
expectTypesMatch(true);
|
|
16765
|
-
var pcb_silkscreen_rect =
|
|
16766
|
-
type:
|
|
16795
|
+
var pcb_silkscreen_rect = z96.object({
|
|
16796
|
+
type: z96.literal("pcb_silkscreen_rect"),
|
|
16767
16797
|
pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
|
|
16768
|
-
pcb_component_id:
|
|
16769
|
-
pcb_group_id:
|
|
16770
|
-
subcircuit_id:
|
|
16798
|
+
pcb_component_id: z96.string(),
|
|
16799
|
+
pcb_group_id: z96.string().optional(),
|
|
16800
|
+
subcircuit_id: z96.string().optional(),
|
|
16771
16801
|
center: point,
|
|
16772
16802
|
width: length,
|
|
16773
16803
|
height: length,
|
|
16774
16804
|
layer: layer_ref,
|
|
16775
16805
|
stroke_width: length.default("1mm"),
|
|
16776
16806
|
corner_radius: length.optional(),
|
|
16777
|
-
is_filled:
|
|
16778
|
-
has_stroke:
|
|
16779
|
-
is_stroke_dashed:
|
|
16807
|
+
is_filled: z96.boolean().default(true).optional(),
|
|
16808
|
+
has_stroke: z96.boolean().optional(),
|
|
16809
|
+
is_stroke_dashed: z96.boolean().optional()
|
|
16780
16810
|
}).describe("Defines a silkscreen rect on the PCB");
|
|
16781
16811
|
expectTypesMatch(true);
|
|
16782
|
-
var pcb_silkscreen_circle =
|
|
16783
|
-
type:
|
|
16812
|
+
var pcb_silkscreen_circle = z97.object({
|
|
16813
|
+
type: z97.literal("pcb_silkscreen_circle"),
|
|
16784
16814
|
pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
|
|
16785
16815
|
"pcb_silkscreen_circle"
|
|
16786
16816
|
),
|
|
16787
|
-
pcb_component_id:
|
|
16788
|
-
pcb_group_id:
|
|
16789
|
-
subcircuit_id:
|
|
16817
|
+
pcb_component_id: z97.string(),
|
|
16818
|
+
pcb_group_id: z97.string().optional(),
|
|
16819
|
+
subcircuit_id: z97.string().optional(),
|
|
16790
16820
|
center: point,
|
|
16791
16821
|
radius: length,
|
|
16792
16822
|
layer: visible_layer,
|
|
16793
16823
|
stroke_width: length.default("1mm")
|
|
16794
16824
|
}).describe("Defines a silkscreen circle on the PCB");
|
|
16795
16825
|
expectTypesMatch(true);
|
|
16796
|
-
var pcb_silkscreen_oval =
|
|
16797
|
-
type:
|
|
16826
|
+
var pcb_silkscreen_oval = z98.object({
|
|
16827
|
+
type: z98.literal("pcb_silkscreen_oval"),
|
|
16798
16828
|
pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
|
|
16799
|
-
pcb_component_id:
|
|
16800
|
-
pcb_group_id:
|
|
16801
|
-
subcircuit_id:
|
|
16829
|
+
pcb_component_id: z98.string(),
|
|
16830
|
+
pcb_group_id: z98.string().optional(),
|
|
16831
|
+
subcircuit_id: z98.string().optional(),
|
|
16802
16832
|
center: point,
|
|
16803
16833
|
radius_x: distance,
|
|
16804
16834
|
radius_y: distance,
|
|
16805
16835
|
layer: visible_layer
|
|
16806
16836
|
}).describe("Defines a silkscreen oval on the PCB");
|
|
16807
16837
|
expectTypesMatch(true);
|
|
16808
|
-
var pcb_fabrication_note_text =
|
|
16809
|
-
type:
|
|
16838
|
+
var pcb_fabrication_note_text = z99.object({
|
|
16839
|
+
type: z99.literal("pcb_fabrication_note_text"),
|
|
16810
16840
|
pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
|
|
16811
16841
|
"pcb_fabrication_note_text"
|
|
16812
16842
|
),
|
|
16813
|
-
subcircuit_id:
|
|
16814
|
-
pcb_group_id:
|
|
16815
|
-
font:
|
|
16843
|
+
subcircuit_id: z99.string().optional(),
|
|
16844
|
+
pcb_group_id: z99.string().optional(),
|
|
16845
|
+
font: z99.literal("tscircuit2024").default("tscircuit2024"),
|
|
16816
16846
|
font_size: distance.default("1mm"),
|
|
16817
|
-
pcb_component_id:
|
|
16818
|
-
text:
|
|
16847
|
+
pcb_component_id: z99.string(),
|
|
16848
|
+
text: z99.string(),
|
|
16819
16849
|
layer: visible_layer,
|
|
16820
16850
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
16821
|
-
anchor_alignment:
|
|
16822
|
-
color:
|
|
16851
|
+
anchor_alignment: z99.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
16852
|
+
color: z99.string().optional()
|
|
16823
16853
|
}).describe(
|
|
16824
16854
|
"Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
|
|
16825
16855
|
);
|
|
16826
16856
|
expectTypesMatch(true);
|
|
16827
|
-
var pcb_fabrication_note_path =
|
|
16828
|
-
type:
|
|
16857
|
+
var pcb_fabrication_note_path = z100.object({
|
|
16858
|
+
type: z100.literal("pcb_fabrication_note_path"),
|
|
16829
16859
|
pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
|
|
16830
16860
|
"pcb_fabrication_note_path"
|
|
16831
16861
|
),
|
|
16832
|
-
pcb_component_id:
|
|
16833
|
-
subcircuit_id:
|
|
16862
|
+
pcb_component_id: z100.string(),
|
|
16863
|
+
subcircuit_id: z100.string().optional(),
|
|
16834
16864
|
layer: layer_ref,
|
|
16835
|
-
route:
|
|
16865
|
+
route: z100.array(point),
|
|
16836
16866
|
stroke_width: length,
|
|
16837
|
-
color:
|
|
16867
|
+
color: z100.string().optional()
|
|
16838
16868
|
}).describe(
|
|
16839
16869
|
"Defines a fabrication path on the PCB for fabricators or assemblers"
|
|
16840
16870
|
);
|
|
16841
16871
|
expectTypesMatch(true);
|
|
16842
|
-
var pcb_fabrication_note_rect =
|
|
16843
|
-
type:
|
|
16872
|
+
var pcb_fabrication_note_rect = z101.object({
|
|
16873
|
+
type: z101.literal("pcb_fabrication_note_rect"),
|
|
16844
16874
|
pcb_fabrication_note_rect_id: getZodPrefixedIdWithDefault(
|
|
16845
16875
|
"pcb_fabrication_note_rect"
|
|
16846
16876
|
),
|
|
16847
|
-
pcb_component_id:
|
|
16848
|
-
pcb_group_id:
|
|
16849
|
-
subcircuit_id:
|
|
16877
|
+
pcb_component_id: z101.string(),
|
|
16878
|
+
pcb_group_id: z101.string().optional(),
|
|
16879
|
+
subcircuit_id: z101.string().optional(),
|
|
16850
16880
|
center: point,
|
|
16851
16881
|
width: length,
|
|
16852
16882
|
height: length,
|
|
16853
16883
|
layer: visible_layer,
|
|
16854
16884
|
stroke_width: length.default("0.1mm"),
|
|
16855
16885
|
corner_radius: length.optional(),
|
|
16856
|
-
is_filled:
|
|
16857
|
-
has_stroke:
|
|
16858
|
-
is_stroke_dashed:
|
|
16859
|
-
color:
|
|
16886
|
+
is_filled: z101.boolean().optional(),
|
|
16887
|
+
has_stroke: z101.boolean().optional(),
|
|
16888
|
+
is_stroke_dashed: z101.boolean().optional(),
|
|
16889
|
+
color: z101.string().optional()
|
|
16860
16890
|
}).describe("Defines a fabrication note rectangle on the PCB");
|
|
16861
16891
|
expectTypesMatch(true);
|
|
16862
|
-
var pcb_fabrication_note_dimension =
|
|
16863
|
-
type:
|
|
16892
|
+
var pcb_fabrication_note_dimension = z102.object({
|
|
16893
|
+
type: z102.literal("pcb_fabrication_note_dimension"),
|
|
16864
16894
|
pcb_fabrication_note_dimension_id: getZodPrefixedIdWithDefault(
|
|
16865
16895
|
"pcb_fabrication_note_dimension"
|
|
16866
16896
|
),
|
|
16867
|
-
pcb_component_id:
|
|
16868
|
-
pcb_group_id:
|
|
16869
|
-
subcircuit_id:
|
|
16897
|
+
pcb_component_id: z102.string(),
|
|
16898
|
+
pcb_group_id: z102.string().optional(),
|
|
16899
|
+
subcircuit_id: z102.string().optional(),
|
|
16870
16900
|
layer: visible_layer,
|
|
16871
16901
|
from: point,
|
|
16872
16902
|
to: point,
|
|
16873
|
-
text:
|
|
16874
|
-
text_ccw_rotation:
|
|
16903
|
+
text: z102.string().optional(),
|
|
16904
|
+
text_ccw_rotation: z102.number().optional(),
|
|
16875
16905
|
offset: length.optional(),
|
|
16876
16906
|
offset_distance: length.optional(),
|
|
16877
|
-
offset_direction:
|
|
16878
|
-
x:
|
|
16879
|
-
y:
|
|
16907
|
+
offset_direction: z102.object({
|
|
16908
|
+
x: z102.number(),
|
|
16909
|
+
y: z102.number()
|
|
16880
16910
|
}).optional(),
|
|
16881
|
-
font:
|
|
16911
|
+
font: z102.literal("tscircuit2024").default("tscircuit2024"),
|
|
16882
16912
|
font_size: length.default("1mm"),
|
|
16883
|
-
color:
|
|
16913
|
+
color: z102.string().optional(),
|
|
16884
16914
|
arrow_size: length.default("1mm")
|
|
16885
16915
|
}).describe("Defines a measurement annotation within PCB fabrication notes");
|
|
16886
16916
|
expectTypesMatch(true);
|
|
16887
|
-
var pcb_note_text =
|
|
16888
|
-
type:
|
|
16917
|
+
var pcb_note_text = z103.object({
|
|
16918
|
+
type: z103.literal("pcb_note_text"),
|
|
16889
16919
|
pcb_note_text_id: getZodPrefixedIdWithDefault("pcb_note_text"),
|
|
16890
|
-
pcb_component_id:
|
|
16891
|
-
pcb_group_id:
|
|
16892
|
-
subcircuit_id:
|
|
16893
|
-
name:
|
|
16894
|
-
font:
|
|
16920
|
+
pcb_component_id: z103.string().optional(),
|
|
16921
|
+
pcb_group_id: z103.string().optional(),
|
|
16922
|
+
subcircuit_id: z103.string().optional(),
|
|
16923
|
+
name: z103.string().optional(),
|
|
16924
|
+
font: z103.literal("tscircuit2024").default("tscircuit2024"),
|
|
16895
16925
|
font_size: distance.default("1mm"),
|
|
16896
|
-
text:
|
|
16926
|
+
text: z103.string().optional(),
|
|
16897
16927
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
16898
|
-
anchor_alignment:
|
|
16899
|
-
color:
|
|
16928
|
+
anchor_alignment: z103.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
16929
|
+
color: z103.string().optional()
|
|
16900
16930
|
}).describe("Defines a documentation note in text on the PCB");
|
|
16901
16931
|
expectTypesMatch(true);
|
|
16902
|
-
var pcb_note_rect =
|
|
16903
|
-
type:
|
|
16932
|
+
var pcb_note_rect = z104.object({
|
|
16933
|
+
type: z104.literal("pcb_note_rect"),
|
|
16904
16934
|
pcb_note_rect_id: getZodPrefixedIdWithDefault("pcb_note_rect"),
|
|
16905
|
-
pcb_component_id:
|
|
16906
|
-
pcb_group_id:
|
|
16907
|
-
subcircuit_id:
|
|
16908
|
-
name:
|
|
16909
|
-
text:
|
|
16935
|
+
pcb_component_id: z104.string().optional(),
|
|
16936
|
+
pcb_group_id: z104.string().optional(),
|
|
16937
|
+
subcircuit_id: z104.string().optional(),
|
|
16938
|
+
name: z104.string().optional(),
|
|
16939
|
+
text: z104.string().optional(),
|
|
16910
16940
|
center: point,
|
|
16911
16941
|
width: length,
|
|
16912
16942
|
height: length,
|
|
16913
16943
|
stroke_width: length.default("0.1mm"),
|
|
16914
16944
|
corner_radius: length.optional(),
|
|
16915
|
-
is_filled:
|
|
16916
|
-
has_stroke:
|
|
16917
|
-
is_stroke_dashed:
|
|
16918
|
-
color:
|
|
16945
|
+
is_filled: z104.boolean().optional(),
|
|
16946
|
+
has_stroke: z104.boolean().optional(),
|
|
16947
|
+
is_stroke_dashed: z104.boolean().optional(),
|
|
16948
|
+
color: z104.string().optional()
|
|
16919
16949
|
}).describe("Defines a rectangular documentation note on the PCB");
|
|
16920
16950
|
expectTypesMatch(true);
|
|
16921
|
-
var pcb_note_path =
|
|
16922
|
-
type:
|
|
16951
|
+
var pcb_note_path = z105.object({
|
|
16952
|
+
type: z105.literal("pcb_note_path"),
|
|
16923
16953
|
pcb_note_path_id: getZodPrefixedIdWithDefault("pcb_note_path"),
|
|
16924
|
-
pcb_component_id:
|
|
16925
|
-
pcb_group_id:
|
|
16926
|
-
subcircuit_id:
|
|
16927
|
-
name:
|
|
16928
|
-
text:
|
|
16929
|
-
route:
|
|
16954
|
+
pcb_component_id: z105.string().optional(),
|
|
16955
|
+
pcb_group_id: z105.string().optional(),
|
|
16956
|
+
subcircuit_id: z105.string().optional(),
|
|
16957
|
+
name: z105.string().optional(),
|
|
16958
|
+
text: z105.string().optional(),
|
|
16959
|
+
route: z105.array(point),
|
|
16930
16960
|
stroke_width: length.default("0.1mm"),
|
|
16931
|
-
color:
|
|
16961
|
+
color: z105.string().optional()
|
|
16932
16962
|
}).describe("Defines a polyline documentation note on the PCB");
|
|
16933
16963
|
expectTypesMatch(true);
|
|
16934
|
-
var pcb_note_line =
|
|
16935
|
-
type:
|
|
16964
|
+
var pcb_note_line = z106.object({
|
|
16965
|
+
type: z106.literal("pcb_note_line"),
|
|
16936
16966
|
pcb_note_line_id: getZodPrefixedIdWithDefault("pcb_note_line"),
|
|
16937
|
-
pcb_component_id:
|
|
16938
|
-
pcb_group_id:
|
|
16939
|
-
subcircuit_id:
|
|
16940
|
-
name:
|
|
16941
|
-
text:
|
|
16967
|
+
pcb_component_id: z106.string().optional(),
|
|
16968
|
+
pcb_group_id: z106.string().optional(),
|
|
16969
|
+
subcircuit_id: z106.string().optional(),
|
|
16970
|
+
name: z106.string().optional(),
|
|
16971
|
+
text: z106.string().optional(),
|
|
16942
16972
|
x1: distance,
|
|
16943
16973
|
y1: distance,
|
|
16944
16974
|
x2: distance,
|
|
16945
16975
|
y2: distance,
|
|
16946
16976
|
stroke_width: distance.default("0.1mm"),
|
|
16947
|
-
color:
|
|
16948
|
-
is_dashed:
|
|
16977
|
+
color: z106.string().optional(),
|
|
16978
|
+
is_dashed: z106.boolean().optional()
|
|
16949
16979
|
}).describe("Defines a straight documentation note line on the PCB");
|
|
16950
16980
|
expectTypesMatch(true);
|
|
16951
|
-
var pcb_note_dimension =
|
|
16952
|
-
type:
|
|
16981
|
+
var pcb_note_dimension = z107.object({
|
|
16982
|
+
type: z107.literal("pcb_note_dimension"),
|
|
16953
16983
|
pcb_note_dimension_id: getZodPrefixedIdWithDefault("pcb_note_dimension"),
|
|
16954
|
-
pcb_component_id:
|
|
16955
|
-
pcb_group_id:
|
|
16956
|
-
subcircuit_id:
|
|
16957
|
-
name:
|
|
16984
|
+
pcb_component_id: z107.string().optional(),
|
|
16985
|
+
pcb_group_id: z107.string().optional(),
|
|
16986
|
+
subcircuit_id: z107.string().optional(),
|
|
16987
|
+
name: z107.string().optional(),
|
|
16958
16988
|
from: point,
|
|
16959
16989
|
to: point,
|
|
16960
|
-
text:
|
|
16961
|
-
text_ccw_rotation:
|
|
16990
|
+
text: z107.string().optional(),
|
|
16991
|
+
text_ccw_rotation: z107.number().optional(),
|
|
16962
16992
|
offset_distance: length.optional(),
|
|
16963
|
-
offset_direction:
|
|
16964
|
-
x:
|
|
16965
|
-
y:
|
|
16993
|
+
offset_direction: z107.object({
|
|
16994
|
+
x: z107.number(),
|
|
16995
|
+
y: z107.number()
|
|
16966
16996
|
}).optional(),
|
|
16967
|
-
font:
|
|
16997
|
+
font: z107.literal("tscircuit2024").default("tscircuit2024"),
|
|
16968
16998
|
font_size: length.default("1mm"),
|
|
16969
|
-
color:
|
|
16999
|
+
color: z107.string().optional(),
|
|
16970
17000
|
arrow_size: length.default("1mm")
|
|
16971
17001
|
}).describe("Defines a measurement annotation within PCB documentation notes");
|
|
16972
17002
|
expectTypesMatch(true);
|
|
16973
|
-
var pcb_footprint_overlap_error =
|
|
16974
|
-
type:
|
|
17003
|
+
var pcb_footprint_overlap_error = z108.object({
|
|
17004
|
+
type: z108.literal("pcb_footprint_overlap_error"),
|
|
16975
17005
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
16976
|
-
error_type:
|
|
16977
|
-
message:
|
|
16978
|
-
pcb_smtpad_ids:
|
|
16979
|
-
pcb_plated_hole_ids:
|
|
16980
|
-
pcb_hole_ids:
|
|
16981
|
-
pcb_keepout_ids:
|
|
17006
|
+
error_type: z108.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
|
|
17007
|
+
message: z108.string(),
|
|
17008
|
+
pcb_smtpad_ids: z108.array(z108.string()).optional(),
|
|
17009
|
+
pcb_plated_hole_ids: z108.array(z108.string()).optional(),
|
|
17010
|
+
pcb_hole_ids: z108.array(z108.string()).optional(),
|
|
17011
|
+
pcb_keepout_ids: z108.array(z108.string()).optional()
|
|
16982
17012
|
}).describe("Error emitted when a pcb footprint overlaps with another element");
|
|
16983
17013
|
expectTypesMatch(
|
|
16984
17014
|
true
|
|
16985
17015
|
);
|
|
16986
|
-
var pcb_keepout =
|
|
16987
|
-
type:
|
|
16988
|
-
shape:
|
|
16989
|
-
pcb_group_id:
|
|
16990
|
-
subcircuit_id:
|
|
17016
|
+
var pcb_keepout = z109.object({
|
|
17017
|
+
type: z109.literal("pcb_keepout"),
|
|
17018
|
+
shape: z109.literal("rect"),
|
|
17019
|
+
pcb_group_id: z109.string().optional(),
|
|
17020
|
+
subcircuit_id: z109.string().optional(),
|
|
16991
17021
|
center: point,
|
|
16992
17022
|
width: distance,
|
|
16993
17023
|
height: distance,
|
|
16994
|
-
pcb_keepout_id:
|
|
16995
|
-
layers:
|
|
17024
|
+
pcb_keepout_id: z109.string(),
|
|
17025
|
+
layers: z109.array(z109.string()),
|
|
16996
17026
|
// Specify layers where the keepout applies
|
|
16997
|
-
description:
|
|
17027
|
+
description: z109.string().optional()
|
|
16998
17028
|
// Optional description of the keepout
|
|
16999
17029
|
}).or(
|
|
17000
|
-
|
|
17001
|
-
type:
|
|
17002
|
-
shape:
|
|
17003
|
-
pcb_group_id:
|
|
17004
|
-
subcircuit_id:
|
|
17030
|
+
z109.object({
|
|
17031
|
+
type: z109.literal("pcb_keepout"),
|
|
17032
|
+
shape: z109.literal("circle"),
|
|
17033
|
+
pcb_group_id: z109.string().optional(),
|
|
17034
|
+
subcircuit_id: z109.string().optional(),
|
|
17005
17035
|
center: point,
|
|
17006
17036
|
radius: distance,
|
|
17007
|
-
pcb_keepout_id:
|
|
17008
|
-
layers:
|
|
17037
|
+
pcb_keepout_id: z109.string(),
|
|
17038
|
+
layers: z109.array(z109.string()),
|
|
17009
17039
|
// Specify layers where the keepout applies
|
|
17010
|
-
description:
|
|
17040
|
+
description: z109.string().optional()
|
|
17011
17041
|
// Optional description of the keepout
|
|
17012
17042
|
})
|
|
17013
17043
|
);
|
|
17014
17044
|
expectTypesMatch(true);
|
|
17015
|
-
var pcb_cutout_base =
|
|
17016
|
-
type:
|
|
17045
|
+
var pcb_cutout_base = z110.object({
|
|
17046
|
+
type: z110.literal("pcb_cutout"),
|
|
17017
17047
|
pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
|
|
17018
|
-
pcb_group_id:
|
|
17019
|
-
subcircuit_id:
|
|
17020
|
-
pcb_board_id:
|
|
17021
|
-
pcb_panel_id:
|
|
17048
|
+
pcb_group_id: z110.string().optional(),
|
|
17049
|
+
subcircuit_id: z110.string().optional(),
|
|
17050
|
+
pcb_board_id: z110.string().optional(),
|
|
17051
|
+
pcb_panel_id: z110.string().optional()
|
|
17022
17052
|
});
|
|
17023
17053
|
var pcb_cutout_rect = pcb_cutout_base.extend({
|
|
17024
|
-
shape:
|
|
17054
|
+
shape: z110.literal("rect"),
|
|
17025
17055
|
center: point,
|
|
17026
17056
|
width: length,
|
|
17027
17057
|
height: length,
|
|
@@ -17030,179 +17060,188 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
|
|
|
17030
17060
|
});
|
|
17031
17061
|
expectTypesMatch(true);
|
|
17032
17062
|
var pcb_cutout_circle = pcb_cutout_base.extend({
|
|
17033
|
-
shape:
|
|
17063
|
+
shape: z110.literal("circle"),
|
|
17034
17064
|
center: point,
|
|
17035
17065
|
radius: length
|
|
17036
17066
|
});
|
|
17037
17067
|
expectTypesMatch(true);
|
|
17038
17068
|
var pcb_cutout_polygon = pcb_cutout_base.extend({
|
|
17039
|
-
shape:
|
|
17040
|
-
points:
|
|
17069
|
+
shape: z110.literal("polygon"),
|
|
17070
|
+
points: z110.array(point)
|
|
17041
17071
|
});
|
|
17042
17072
|
expectTypesMatch(true);
|
|
17043
17073
|
var pcb_cutout_path = pcb_cutout_base.extend({
|
|
17044
|
-
shape:
|
|
17045
|
-
route:
|
|
17074
|
+
shape: z110.literal("path"),
|
|
17075
|
+
route: z110.array(point),
|
|
17046
17076
|
slot_width: length,
|
|
17047
17077
|
slot_length: length.optional(),
|
|
17048
17078
|
space_between_slots: length.optional(),
|
|
17049
17079
|
slot_corner_radius: length.optional()
|
|
17050
17080
|
});
|
|
17051
17081
|
expectTypesMatch(true);
|
|
17052
|
-
var pcb_cutout =
|
|
17082
|
+
var pcb_cutout = z110.discriminatedUnion("shape", [
|
|
17053
17083
|
pcb_cutout_rect,
|
|
17054
17084
|
pcb_cutout_circle,
|
|
17055
17085
|
pcb_cutout_polygon,
|
|
17056
17086
|
pcb_cutout_path
|
|
17057
17087
|
]).describe("Defines a cutout on the PCB, removing board material.");
|
|
17058
17088
|
expectTypesMatch(true);
|
|
17059
|
-
var pcb_missing_footprint_error =
|
|
17060
|
-
type:
|
|
17089
|
+
var pcb_missing_footprint_error = z111.object({
|
|
17090
|
+
type: z111.literal("pcb_missing_footprint_error"),
|
|
17061
17091
|
pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
|
|
17062
17092
|
"pcb_missing_footprint_error"
|
|
17063
17093
|
),
|
|
17064
|
-
pcb_group_id:
|
|
17065
|
-
subcircuit_id:
|
|
17066
|
-
error_type:
|
|
17067
|
-
source_component_id:
|
|
17068
|
-
message:
|
|
17094
|
+
pcb_group_id: z111.string().optional(),
|
|
17095
|
+
subcircuit_id: z111.string().optional(),
|
|
17096
|
+
error_type: z111.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
|
|
17097
|
+
source_component_id: z111.string(),
|
|
17098
|
+
message: z111.string()
|
|
17069
17099
|
}).describe("Defines a missing footprint error on the PCB");
|
|
17070
17100
|
expectTypesMatch(
|
|
17071
17101
|
true
|
|
17072
17102
|
);
|
|
17073
|
-
var external_footprint_load_error =
|
|
17074
|
-
type:
|
|
17103
|
+
var external_footprint_load_error = z112.object({
|
|
17104
|
+
type: z112.literal("external_footprint_load_error"),
|
|
17075
17105
|
external_footprint_load_error_id: getZodPrefixedIdWithDefault(
|
|
17076
17106
|
"external_footprint_load_error"
|
|
17077
17107
|
),
|
|
17078
|
-
pcb_component_id:
|
|
17079
|
-
source_component_id:
|
|
17080
|
-
pcb_group_id:
|
|
17081
|
-
subcircuit_id:
|
|
17082
|
-
footprinter_string:
|
|
17083
|
-
error_type:
|
|
17084
|
-
message:
|
|
17108
|
+
pcb_component_id: z112.string(),
|
|
17109
|
+
source_component_id: z112.string(),
|
|
17110
|
+
pcb_group_id: z112.string().optional(),
|
|
17111
|
+
subcircuit_id: z112.string().optional(),
|
|
17112
|
+
footprinter_string: z112.string().optional(),
|
|
17113
|
+
error_type: z112.literal("external_footprint_load_error").default("external_footprint_load_error"),
|
|
17114
|
+
message: z112.string()
|
|
17085
17115
|
}).describe("Defines an error when an external footprint fails to load");
|
|
17086
17116
|
expectTypesMatch(true);
|
|
17087
|
-
var circuit_json_footprint_load_error =
|
|
17088
|
-
type:
|
|
17117
|
+
var circuit_json_footprint_load_error = z113.object({
|
|
17118
|
+
type: z113.literal("circuit_json_footprint_load_error"),
|
|
17089
17119
|
circuit_json_footprint_load_error_id: getZodPrefixedIdWithDefault(
|
|
17090
17120
|
"circuit_json_footprint_load_error"
|
|
17091
17121
|
),
|
|
17092
|
-
pcb_component_id:
|
|
17093
|
-
source_component_id:
|
|
17094
|
-
pcb_group_id:
|
|
17095
|
-
subcircuit_id:
|
|
17096
|
-
error_type:
|
|
17097
|
-
message:
|
|
17098
|
-
circuit_json:
|
|
17122
|
+
pcb_component_id: z113.string(),
|
|
17123
|
+
source_component_id: z113.string(),
|
|
17124
|
+
pcb_group_id: z113.string().optional(),
|
|
17125
|
+
subcircuit_id: z113.string().optional(),
|
|
17126
|
+
error_type: z113.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
|
|
17127
|
+
message: z113.string(),
|
|
17128
|
+
circuit_json: z113.array(z113.any()).optional()
|
|
17099
17129
|
}).describe("Defines an error when a circuit JSON footprint fails to load");
|
|
17100
17130
|
expectTypesMatch(true);
|
|
17101
|
-
var pcb_group =
|
|
17102
|
-
type:
|
|
17131
|
+
var pcb_group = z114.object({
|
|
17132
|
+
type: z114.literal("pcb_group"),
|
|
17103
17133
|
pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
|
|
17104
|
-
source_group_id:
|
|
17105
|
-
is_subcircuit:
|
|
17106
|
-
subcircuit_id:
|
|
17134
|
+
source_group_id: z114.string(),
|
|
17135
|
+
is_subcircuit: z114.boolean().optional(),
|
|
17136
|
+
subcircuit_id: z114.string().optional(),
|
|
17107
17137
|
width: length.optional(),
|
|
17108
17138
|
height: length.optional(),
|
|
17109
17139
|
center: point,
|
|
17110
|
-
|
|
17140
|
+
display_offset_x: z114.string().optional().describe(
|
|
17141
|
+
"How to display the x offset for this group, usually corresponding with how the user specified it"
|
|
17142
|
+
),
|
|
17143
|
+
display_offset_y: z114.string().optional().describe(
|
|
17144
|
+
"How to display the y offset for this group, usually corresponding with how the user specified it"
|
|
17145
|
+
),
|
|
17146
|
+
outline: z114.array(point).optional(),
|
|
17111
17147
|
anchor_position: point.optional(),
|
|
17112
|
-
anchor_alignment:
|
|
17113
|
-
|
|
17114
|
-
|
|
17115
|
-
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17148
|
+
anchor_alignment: ninePointAnchor.default("center"),
|
|
17149
|
+
position_mode: z114.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
|
|
17150
|
+
positioned_relative_to_pcb_group_id: z114.string().optional(),
|
|
17151
|
+
positioned_relative_to_pcb_board_id: z114.string().optional(),
|
|
17152
|
+
pcb_component_ids: z114.array(z114.string()),
|
|
17153
|
+
child_layout_mode: z114.enum(["packed", "none"]).optional(),
|
|
17154
|
+
name: z114.string().optional(),
|
|
17155
|
+
description: z114.string().optional(),
|
|
17156
|
+
layout_mode: z114.string().optional(),
|
|
17157
|
+
autorouter_configuration: z114.object({
|
|
17119
17158
|
trace_clearance: length
|
|
17120
17159
|
}).optional(),
|
|
17121
|
-
autorouter_used_string:
|
|
17160
|
+
autorouter_used_string: z114.string().optional()
|
|
17122
17161
|
}).describe("Defines a group of components on the PCB");
|
|
17123
17162
|
expectTypesMatch(true);
|
|
17124
|
-
var pcb_autorouting_error =
|
|
17125
|
-
type:
|
|
17163
|
+
var pcb_autorouting_error = z115.object({
|
|
17164
|
+
type: z115.literal("pcb_autorouting_error"),
|
|
17126
17165
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
|
|
17127
|
-
error_type:
|
|
17128
|
-
message:
|
|
17129
|
-
subcircuit_id:
|
|
17166
|
+
error_type: z115.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
|
|
17167
|
+
message: z115.string(),
|
|
17168
|
+
subcircuit_id: z115.string().optional()
|
|
17130
17169
|
}).describe("The autorouting has failed to route a portion of the board");
|
|
17131
17170
|
expectTypesMatch(true);
|
|
17132
|
-
var pcb_manual_edit_conflict_warning =
|
|
17133
|
-
type:
|
|
17171
|
+
var pcb_manual_edit_conflict_warning = z116.object({
|
|
17172
|
+
type: z116.literal("pcb_manual_edit_conflict_warning"),
|
|
17134
17173
|
pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
|
|
17135
17174
|
"pcb_manual_edit_conflict_warning"
|
|
17136
17175
|
),
|
|
17137
|
-
warning_type:
|
|
17138
|
-
message:
|
|
17139
|
-
pcb_component_id:
|
|
17140
|
-
pcb_group_id:
|
|
17141
|
-
subcircuit_id:
|
|
17142
|
-
source_component_id:
|
|
17176
|
+
warning_type: z116.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
|
|
17177
|
+
message: z116.string(),
|
|
17178
|
+
pcb_component_id: z116.string(),
|
|
17179
|
+
pcb_group_id: z116.string().optional(),
|
|
17180
|
+
subcircuit_id: z116.string().optional(),
|
|
17181
|
+
source_component_id: z116.string()
|
|
17143
17182
|
}).describe(
|
|
17144
17183
|
"Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
|
|
17145
17184
|
);
|
|
17146
17185
|
expectTypesMatch(true);
|
|
17147
|
-
var pcb_breakout_point =
|
|
17148
|
-
type:
|
|
17186
|
+
var pcb_breakout_point = z117.object({
|
|
17187
|
+
type: z117.literal("pcb_breakout_point"),
|
|
17149
17188
|
pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
|
|
17150
|
-
pcb_group_id:
|
|
17151
|
-
subcircuit_id:
|
|
17152
|
-
source_trace_id:
|
|
17153
|
-
source_port_id:
|
|
17154
|
-
source_net_id:
|
|
17189
|
+
pcb_group_id: z117.string(),
|
|
17190
|
+
subcircuit_id: z117.string().optional(),
|
|
17191
|
+
source_trace_id: z117.string().optional(),
|
|
17192
|
+
source_port_id: z117.string().optional(),
|
|
17193
|
+
source_net_id: z117.string().optional(),
|
|
17155
17194
|
x: distance,
|
|
17156
17195
|
y: distance
|
|
17157
17196
|
}).describe(
|
|
17158
17197
|
"Defines a routing target within a pcb_group for a source_trace or source_net"
|
|
17159
17198
|
);
|
|
17160
17199
|
expectTypesMatch(true);
|
|
17161
|
-
var pcb_ground_plane =
|
|
17162
|
-
type:
|
|
17200
|
+
var pcb_ground_plane = z118.object({
|
|
17201
|
+
type: z118.literal("pcb_ground_plane"),
|
|
17163
17202
|
pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
|
|
17164
|
-
source_pcb_ground_plane_id:
|
|
17165
|
-
source_net_id:
|
|
17166
|
-
pcb_group_id:
|
|
17167
|
-
subcircuit_id:
|
|
17203
|
+
source_pcb_ground_plane_id: z118.string(),
|
|
17204
|
+
source_net_id: z118.string(),
|
|
17205
|
+
pcb_group_id: z118.string().optional(),
|
|
17206
|
+
subcircuit_id: z118.string().optional()
|
|
17168
17207
|
}).describe("Defines a ground plane on the PCB");
|
|
17169
17208
|
expectTypesMatch(true);
|
|
17170
|
-
var pcb_ground_plane_region =
|
|
17171
|
-
type:
|
|
17209
|
+
var pcb_ground_plane_region = z119.object({
|
|
17210
|
+
type: z119.literal("pcb_ground_plane_region"),
|
|
17172
17211
|
pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
|
|
17173
17212
|
"pcb_ground_plane_region"
|
|
17174
17213
|
),
|
|
17175
|
-
pcb_ground_plane_id:
|
|
17176
|
-
pcb_group_id:
|
|
17177
|
-
subcircuit_id:
|
|
17214
|
+
pcb_ground_plane_id: z119.string(),
|
|
17215
|
+
pcb_group_id: z119.string().optional(),
|
|
17216
|
+
subcircuit_id: z119.string().optional(),
|
|
17178
17217
|
layer: layer_ref,
|
|
17179
|
-
points:
|
|
17218
|
+
points: z119.array(point)
|
|
17180
17219
|
}).describe("Defines a polygon region of a ground plane");
|
|
17181
17220
|
expectTypesMatch(true);
|
|
17182
|
-
var pcb_thermal_spoke =
|
|
17183
|
-
type:
|
|
17221
|
+
var pcb_thermal_spoke = z120.object({
|
|
17222
|
+
type: z120.literal("pcb_thermal_spoke"),
|
|
17184
17223
|
pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
|
|
17185
|
-
pcb_ground_plane_id:
|
|
17186
|
-
shape:
|
|
17187
|
-
spoke_count:
|
|
17224
|
+
pcb_ground_plane_id: z120.string(),
|
|
17225
|
+
shape: z120.string(),
|
|
17226
|
+
spoke_count: z120.number(),
|
|
17188
17227
|
spoke_thickness: distance,
|
|
17189
17228
|
spoke_inner_diameter: distance,
|
|
17190
17229
|
spoke_outer_diameter: distance,
|
|
17191
|
-
pcb_plated_hole_id:
|
|
17192
|
-
subcircuit_id:
|
|
17230
|
+
pcb_plated_hole_id: z120.string().optional(),
|
|
17231
|
+
subcircuit_id: z120.string().optional()
|
|
17193
17232
|
}).describe("Pattern for connecting a ground plane to a plated hole");
|
|
17194
17233
|
expectTypesMatch(true);
|
|
17195
|
-
var pcb_copper_pour_base =
|
|
17196
|
-
type:
|
|
17234
|
+
var pcb_copper_pour_base = z121.object({
|
|
17235
|
+
type: z121.literal("pcb_copper_pour"),
|
|
17197
17236
|
pcb_copper_pour_id: getZodPrefixedIdWithDefault("pcb_copper_pour"),
|
|
17198
|
-
pcb_group_id:
|
|
17199
|
-
subcircuit_id:
|
|
17237
|
+
pcb_group_id: z121.string().optional(),
|
|
17238
|
+
subcircuit_id: z121.string().optional(),
|
|
17200
17239
|
layer: layer_ref,
|
|
17201
|
-
source_net_id:
|
|
17202
|
-
covered_with_solder_mask:
|
|
17240
|
+
source_net_id: z121.string().optional(),
|
|
17241
|
+
covered_with_solder_mask: z121.boolean().optional().default(true)
|
|
17203
17242
|
});
|
|
17204
17243
|
var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
|
|
17205
|
-
shape:
|
|
17244
|
+
shape: z121.literal("rect"),
|
|
17206
17245
|
center: point,
|
|
17207
17246
|
width: length,
|
|
17208
17247
|
height: length,
|
|
@@ -17210,141 +17249,141 @@ var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
|
|
|
17210
17249
|
});
|
|
17211
17250
|
expectTypesMatch(true);
|
|
17212
17251
|
var pcb_copper_pour_brep = pcb_copper_pour_base.extend({
|
|
17213
|
-
shape:
|
|
17252
|
+
shape: z121.literal("brep"),
|
|
17214
17253
|
brep_shape
|
|
17215
17254
|
});
|
|
17216
17255
|
expectTypesMatch(true);
|
|
17217
17256
|
var pcb_copper_pour_polygon = pcb_copper_pour_base.extend({
|
|
17218
|
-
shape:
|
|
17219
|
-
points:
|
|
17257
|
+
shape: z121.literal("polygon"),
|
|
17258
|
+
points: z121.array(point)
|
|
17220
17259
|
});
|
|
17221
17260
|
expectTypesMatch(true);
|
|
17222
|
-
var pcb_copper_pour =
|
|
17261
|
+
var pcb_copper_pour = z121.discriminatedUnion("shape", [
|
|
17223
17262
|
pcb_copper_pour_rect,
|
|
17224
17263
|
pcb_copper_pour_brep,
|
|
17225
17264
|
pcb_copper_pour_polygon
|
|
17226
17265
|
]).describe("Defines a copper pour on the PCB.");
|
|
17227
17266
|
expectTypesMatch(true);
|
|
17228
|
-
var pcb_component_outside_board_error =
|
|
17229
|
-
type:
|
|
17267
|
+
var pcb_component_outside_board_error = z122.object({
|
|
17268
|
+
type: z122.literal("pcb_component_outside_board_error"),
|
|
17230
17269
|
pcb_component_outside_board_error_id: getZodPrefixedIdWithDefault(
|
|
17231
17270
|
"pcb_component_outside_board_error"
|
|
17232
17271
|
),
|
|
17233
|
-
error_type:
|
|
17234
|
-
message:
|
|
17235
|
-
pcb_component_id:
|
|
17236
|
-
pcb_board_id:
|
|
17272
|
+
error_type: z122.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
|
|
17273
|
+
message: z122.string(),
|
|
17274
|
+
pcb_component_id: z122.string(),
|
|
17275
|
+
pcb_board_id: z122.string(),
|
|
17237
17276
|
component_center: point,
|
|
17238
|
-
component_bounds:
|
|
17239
|
-
min_x:
|
|
17240
|
-
max_x:
|
|
17241
|
-
min_y:
|
|
17242
|
-
max_y:
|
|
17277
|
+
component_bounds: z122.object({
|
|
17278
|
+
min_x: z122.number(),
|
|
17279
|
+
max_x: z122.number(),
|
|
17280
|
+
min_y: z122.number(),
|
|
17281
|
+
max_y: z122.number()
|
|
17243
17282
|
}),
|
|
17244
|
-
subcircuit_id:
|
|
17245
|
-
source_component_id:
|
|
17283
|
+
subcircuit_id: z122.string().optional(),
|
|
17284
|
+
source_component_id: z122.string().optional()
|
|
17246
17285
|
}).describe(
|
|
17247
17286
|
"Error emitted when a PCB component is placed outside the board boundaries"
|
|
17248
17287
|
);
|
|
17249
17288
|
expectTypesMatch(true);
|
|
17250
|
-
var pcb_component_invalid_layer_error =
|
|
17251
|
-
type:
|
|
17289
|
+
var pcb_component_invalid_layer_error = z123.object({
|
|
17290
|
+
type: z123.literal("pcb_component_invalid_layer_error"),
|
|
17252
17291
|
pcb_component_invalid_layer_error_id: getZodPrefixedIdWithDefault(
|
|
17253
17292
|
"pcb_component_invalid_layer_error"
|
|
17254
17293
|
),
|
|
17255
|
-
error_type:
|
|
17256
|
-
message:
|
|
17257
|
-
pcb_component_id:
|
|
17258
|
-
source_component_id:
|
|
17294
|
+
error_type: z123.literal("pcb_component_invalid_layer_error").default("pcb_component_invalid_layer_error"),
|
|
17295
|
+
message: z123.string(),
|
|
17296
|
+
pcb_component_id: z123.string().optional(),
|
|
17297
|
+
source_component_id: z123.string(),
|
|
17259
17298
|
layer: layer_ref,
|
|
17260
|
-
subcircuit_id:
|
|
17299
|
+
subcircuit_id: z123.string().optional()
|
|
17261
17300
|
}).describe(
|
|
17262
17301
|
"Error emitted when a component is placed on an invalid layer (components can only be on 'top' or 'bottom' layers)"
|
|
17263
17302
|
);
|
|
17264
17303
|
expectTypesMatch(true);
|
|
17265
|
-
var pcb_via_clearance_error =
|
|
17266
|
-
type:
|
|
17304
|
+
var pcb_via_clearance_error = z124.object({
|
|
17305
|
+
type: z124.literal("pcb_via_clearance_error"),
|
|
17267
17306
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
17268
|
-
error_type:
|
|
17269
|
-
message:
|
|
17270
|
-
pcb_via_ids:
|
|
17307
|
+
error_type: z124.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
|
|
17308
|
+
message: z124.string(),
|
|
17309
|
+
pcb_via_ids: z124.array(z124.string()).min(2),
|
|
17271
17310
|
minimum_clearance: distance.optional(),
|
|
17272
17311
|
actual_clearance: distance.optional(),
|
|
17273
|
-
pcb_center:
|
|
17274
|
-
x:
|
|
17275
|
-
y:
|
|
17312
|
+
pcb_center: z124.object({
|
|
17313
|
+
x: z124.number().optional(),
|
|
17314
|
+
y: z124.number().optional()
|
|
17276
17315
|
}).optional(),
|
|
17277
|
-
subcircuit_id:
|
|
17316
|
+
subcircuit_id: z124.string().optional()
|
|
17278
17317
|
}).describe("Error emitted when vias are closer than the allowed clearance");
|
|
17279
17318
|
expectTypesMatch(true);
|
|
17280
|
-
var pcb_courtyard_rect =
|
|
17281
|
-
type:
|
|
17319
|
+
var pcb_courtyard_rect = z125.object({
|
|
17320
|
+
type: z125.literal("pcb_courtyard_rect"),
|
|
17282
17321
|
pcb_courtyard_rect_id: getZodPrefixedIdWithDefault("pcb_courtyard_rect"),
|
|
17283
|
-
pcb_component_id:
|
|
17284
|
-
pcb_group_id:
|
|
17285
|
-
subcircuit_id:
|
|
17322
|
+
pcb_component_id: z125.string(),
|
|
17323
|
+
pcb_group_id: z125.string().optional(),
|
|
17324
|
+
subcircuit_id: z125.string().optional(),
|
|
17286
17325
|
center: point,
|
|
17287
17326
|
width: length,
|
|
17288
17327
|
height: length,
|
|
17289
17328
|
layer: visible_layer,
|
|
17290
|
-
color:
|
|
17329
|
+
color: z125.string().optional()
|
|
17291
17330
|
}).describe("Defines a courtyard rectangle on the PCB");
|
|
17292
17331
|
expectTypesMatch(true);
|
|
17293
|
-
var pcb_courtyard_outline =
|
|
17294
|
-
type:
|
|
17332
|
+
var pcb_courtyard_outline = z126.object({
|
|
17333
|
+
type: z126.literal("pcb_courtyard_outline"),
|
|
17295
17334
|
pcb_courtyard_outline_id: getZodPrefixedIdWithDefault(
|
|
17296
17335
|
"pcb_courtyard_outline"
|
|
17297
17336
|
),
|
|
17298
|
-
pcb_component_id:
|
|
17299
|
-
pcb_group_id:
|
|
17300
|
-
subcircuit_id:
|
|
17337
|
+
pcb_component_id: z126.string(),
|
|
17338
|
+
pcb_group_id: z126.string().optional(),
|
|
17339
|
+
subcircuit_id: z126.string().optional(),
|
|
17301
17340
|
layer: visible_layer,
|
|
17302
|
-
outline:
|
|
17341
|
+
outline: z126.array(point).min(2),
|
|
17303
17342
|
stroke_width: length.default("0.1mm"),
|
|
17304
|
-
is_closed:
|
|
17305
|
-
is_stroke_dashed:
|
|
17306
|
-
color:
|
|
17343
|
+
is_closed: z126.boolean().optional(),
|
|
17344
|
+
is_stroke_dashed: z126.boolean().optional(),
|
|
17345
|
+
color: z126.string().optional()
|
|
17307
17346
|
}).describe("Defines a courtyard outline on the PCB");
|
|
17308
17347
|
expectTypesMatch(true);
|
|
17309
|
-
var pcb_courtyard_polygon =
|
|
17310
|
-
type:
|
|
17348
|
+
var pcb_courtyard_polygon = z127.object({
|
|
17349
|
+
type: z127.literal("pcb_courtyard_polygon"),
|
|
17311
17350
|
pcb_courtyard_polygon_id: getZodPrefixedIdWithDefault(
|
|
17312
17351
|
"pcb_courtyard_polygon"
|
|
17313
17352
|
),
|
|
17314
|
-
pcb_component_id:
|
|
17315
|
-
pcb_group_id:
|
|
17316
|
-
subcircuit_id:
|
|
17353
|
+
pcb_component_id: z127.string(),
|
|
17354
|
+
pcb_group_id: z127.string().optional(),
|
|
17355
|
+
subcircuit_id: z127.string().optional(),
|
|
17317
17356
|
layer: visible_layer,
|
|
17318
|
-
points:
|
|
17319
|
-
color:
|
|
17357
|
+
points: z127.array(point).min(3),
|
|
17358
|
+
color: z127.string().optional()
|
|
17320
17359
|
}).describe("Defines a courtyard polygon on the PCB");
|
|
17321
17360
|
expectTypesMatch(true);
|
|
17322
|
-
var cad_component =
|
|
17323
|
-
type:
|
|
17324
|
-
cad_component_id:
|
|
17325
|
-
pcb_component_id:
|
|
17326
|
-
source_component_id:
|
|
17361
|
+
var cad_component = z128.object({
|
|
17362
|
+
type: z128.literal("cad_component"),
|
|
17363
|
+
cad_component_id: z128.string(),
|
|
17364
|
+
pcb_component_id: z128.string(),
|
|
17365
|
+
source_component_id: z128.string(),
|
|
17327
17366
|
position: point3,
|
|
17328
17367
|
rotation: point3.optional(),
|
|
17329
17368
|
size: point3.optional(),
|
|
17330
17369
|
layer: layer_ref.optional(),
|
|
17331
|
-
subcircuit_id:
|
|
17370
|
+
subcircuit_id: z128.string().optional(),
|
|
17332
17371
|
// These are all ways to generate/load the 3d model
|
|
17333
|
-
footprinter_string:
|
|
17334
|
-
model_obj_url:
|
|
17335
|
-
model_stl_url:
|
|
17336
|
-
model_3mf_url:
|
|
17337
|
-
model_gltf_url:
|
|
17338
|
-
model_glb_url:
|
|
17339
|
-
model_step_url:
|
|
17340
|
-
model_wrl_url:
|
|
17341
|
-
model_unit_to_mm_scale_factor:
|
|
17342
|
-
model_jscad:
|
|
17343
|
-
show_as_translucent_model:
|
|
17372
|
+
footprinter_string: z128.string().optional(),
|
|
17373
|
+
model_obj_url: z128.string().optional(),
|
|
17374
|
+
model_stl_url: z128.string().optional(),
|
|
17375
|
+
model_3mf_url: z128.string().optional(),
|
|
17376
|
+
model_gltf_url: z128.string().optional(),
|
|
17377
|
+
model_glb_url: z128.string().optional(),
|
|
17378
|
+
model_step_url: z128.string().optional(),
|
|
17379
|
+
model_wrl_url: z128.string().optional(),
|
|
17380
|
+
model_unit_to_mm_scale_factor: z128.number().optional(),
|
|
17381
|
+
model_jscad: z128.any().optional(),
|
|
17382
|
+
show_as_translucent_model: z128.boolean().optional()
|
|
17344
17383
|
}).describe("Defines a component on the PCB");
|
|
17345
17384
|
expectTypesMatch(true);
|
|
17346
|
-
var wave_shape =
|
|
17347
|
-
var percentage =
|
|
17385
|
+
var wave_shape = z129.enum(["sinewave", "square", "triangle", "sawtooth"]);
|
|
17386
|
+
var percentage = z129.union([z129.string(), z129.number()]).transform((val) => {
|
|
17348
17387
|
if (typeof val === "string") {
|
|
17349
17388
|
if (val.endsWith("%")) {
|
|
17350
17389
|
return parseFloat(val.slice(0, -1)) / 100;
|
|
@@ -17353,30 +17392,30 @@ var percentage = z126.union([z126.string(), z126.number()]).transform((val) => {
|
|
|
17353
17392
|
}
|
|
17354
17393
|
return val;
|
|
17355
17394
|
}).pipe(
|
|
17356
|
-
|
|
17395
|
+
z129.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
|
|
17357
17396
|
);
|
|
17358
|
-
var simulation_dc_voltage_source =
|
|
17359
|
-
type:
|
|
17397
|
+
var simulation_dc_voltage_source = z129.object({
|
|
17398
|
+
type: z129.literal("simulation_voltage_source"),
|
|
17360
17399
|
simulation_voltage_source_id: getZodPrefixedIdWithDefault(
|
|
17361
17400
|
"simulation_voltage_source"
|
|
17362
17401
|
),
|
|
17363
|
-
is_dc_source:
|
|
17364
|
-
positive_source_port_id:
|
|
17365
|
-
negative_source_port_id:
|
|
17366
|
-
positive_source_net_id:
|
|
17367
|
-
negative_source_net_id:
|
|
17402
|
+
is_dc_source: z129.literal(true).optional().default(true),
|
|
17403
|
+
positive_source_port_id: z129.string().optional(),
|
|
17404
|
+
negative_source_port_id: z129.string().optional(),
|
|
17405
|
+
positive_source_net_id: z129.string().optional(),
|
|
17406
|
+
negative_source_net_id: z129.string().optional(),
|
|
17368
17407
|
voltage
|
|
17369
17408
|
}).describe("Defines a DC voltage source for simulation");
|
|
17370
|
-
var simulation_ac_voltage_source =
|
|
17371
|
-
type:
|
|
17409
|
+
var simulation_ac_voltage_source = z129.object({
|
|
17410
|
+
type: z129.literal("simulation_voltage_source"),
|
|
17372
17411
|
simulation_voltage_source_id: getZodPrefixedIdWithDefault(
|
|
17373
17412
|
"simulation_voltage_source"
|
|
17374
17413
|
),
|
|
17375
|
-
is_dc_source:
|
|
17376
|
-
terminal1_source_port_id:
|
|
17377
|
-
terminal2_source_port_id:
|
|
17378
|
-
terminal1_source_net_id:
|
|
17379
|
-
terminal2_source_net_id:
|
|
17414
|
+
is_dc_source: z129.literal(false),
|
|
17415
|
+
terminal1_source_port_id: z129.string().optional(),
|
|
17416
|
+
terminal2_source_port_id: z129.string().optional(),
|
|
17417
|
+
terminal1_source_net_id: z129.string().optional(),
|
|
17418
|
+
terminal2_source_net_id: z129.string().optional(),
|
|
17380
17419
|
voltage: voltage.optional(),
|
|
17381
17420
|
frequency: frequency.optional(),
|
|
17382
17421
|
peak_to_peak_voltage: voltage.optional(),
|
|
@@ -17384,68 +17423,68 @@ var simulation_ac_voltage_source = z126.object({
|
|
|
17384
17423
|
phase: rotation.optional(),
|
|
17385
17424
|
duty_cycle: percentage.optional()
|
|
17386
17425
|
}).describe("Defines an AC voltage source for simulation");
|
|
17387
|
-
var simulation_voltage_source =
|
|
17426
|
+
var simulation_voltage_source = z129.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
|
|
17388
17427
|
expectTypesMatch(true);
|
|
17389
17428
|
expectTypesMatch(true);
|
|
17390
17429
|
expectTypesMatch(true);
|
|
17391
|
-
var experiment_type =
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17430
|
+
var experiment_type = z130.union([
|
|
17431
|
+
z130.literal("spice_dc_sweep"),
|
|
17432
|
+
z130.literal("spice_dc_operating_point"),
|
|
17433
|
+
z130.literal("spice_transient_analysis"),
|
|
17434
|
+
z130.literal("spice_ac_analysis")
|
|
17396
17435
|
]);
|
|
17397
|
-
var simulation_experiment =
|
|
17398
|
-
type:
|
|
17436
|
+
var simulation_experiment = z130.object({
|
|
17437
|
+
type: z130.literal("simulation_experiment"),
|
|
17399
17438
|
simulation_experiment_id: getZodPrefixedIdWithDefault(
|
|
17400
17439
|
"simulation_experiment"
|
|
17401
17440
|
),
|
|
17402
|
-
name:
|
|
17441
|
+
name: z130.string(),
|
|
17403
17442
|
experiment_type,
|
|
17404
17443
|
time_per_step: duration_ms.optional(),
|
|
17405
17444
|
start_time_ms: ms.optional(),
|
|
17406
17445
|
end_time_ms: ms.optional()
|
|
17407
17446
|
}).describe("Defines a simulation experiment configuration");
|
|
17408
17447
|
expectTypesMatch(true);
|
|
17409
|
-
var simulation_transient_voltage_graph =
|
|
17410
|
-
type:
|
|
17448
|
+
var simulation_transient_voltage_graph = z131.object({
|
|
17449
|
+
type: z131.literal("simulation_transient_voltage_graph"),
|
|
17411
17450
|
simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
|
|
17412
17451
|
"simulation_transient_voltage_graph"
|
|
17413
17452
|
),
|
|
17414
|
-
simulation_experiment_id:
|
|
17415
|
-
timestamps_ms:
|
|
17416
|
-
voltage_levels:
|
|
17417
|
-
source_component_id:
|
|
17418
|
-
subcircuit_connectivity_map_key:
|
|
17453
|
+
simulation_experiment_id: z131.string(),
|
|
17454
|
+
timestamps_ms: z131.array(z131.number()).optional(),
|
|
17455
|
+
voltage_levels: z131.array(z131.number()),
|
|
17456
|
+
source_component_id: z131.string().optional(),
|
|
17457
|
+
subcircuit_connectivity_map_key: z131.string().optional(),
|
|
17419
17458
|
time_per_step: duration_ms,
|
|
17420
17459
|
start_time_ms: ms,
|
|
17421
17460
|
end_time_ms: ms,
|
|
17422
|
-
name:
|
|
17423
|
-
color:
|
|
17461
|
+
name: z131.string().optional(),
|
|
17462
|
+
color: z131.string().optional()
|
|
17424
17463
|
}).describe("Stores voltage measurements over time for a simulation");
|
|
17425
17464
|
expectTypesMatch(true);
|
|
17426
|
-
var simulation_switch =
|
|
17427
|
-
type:
|
|
17465
|
+
var simulation_switch = z132.object({
|
|
17466
|
+
type: z132.literal("simulation_switch"),
|
|
17428
17467
|
simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
|
|
17429
|
-
source_component_id:
|
|
17468
|
+
source_component_id: z132.string().optional(),
|
|
17430
17469
|
closes_at: ms.optional(),
|
|
17431
17470
|
opens_at: ms.optional(),
|
|
17432
|
-
starts_closed:
|
|
17471
|
+
starts_closed: z132.boolean().optional(),
|
|
17433
17472
|
switching_frequency: frequency.optional()
|
|
17434
17473
|
}).describe("Defines a switch for simulation timing control");
|
|
17435
17474
|
expectTypesMatch(true);
|
|
17436
|
-
var simulation_voltage_probe =
|
|
17437
|
-
type:
|
|
17475
|
+
var simulation_voltage_probe = z133.object({
|
|
17476
|
+
type: z133.literal("simulation_voltage_probe"),
|
|
17438
17477
|
simulation_voltage_probe_id: getZodPrefixedIdWithDefault(
|
|
17439
17478
|
"simulation_voltage_probe"
|
|
17440
17479
|
),
|
|
17441
|
-
source_component_id:
|
|
17442
|
-
name:
|
|
17443
|
-
signal_input_source_port_id:
|
|
17444
|
-
signal_input_source_net_id:
|
|
17445
|
-
reference_input_source_port_id:
|
|
17446
|
-
reference_input_source_net_id:
|
|
17447
|
-
subcircuit_id:
|
|
17448
|
-
color:
|
|
17480
|
+
source_component_id: z133.string().optional(),
|
|
17481
|
+
name: z133.string().optional(),
|
|
17482
|
+
signal_input_source_port_id: z133.string().optional(),
|
|
17483
|
+
signal_input_source_net_id: z133.string().optional(),
|
|
17484
|
+
reference_input_source_port_id: z133.string().optional(),
|
|
17485
|
+
reference_input_source_net_id: z133.string().optional(),
|
|
17486
|
+
subcircuit_id: z133.string().optional(),
|
|
17487
|
+
color: z133.string().optional()
|
|
17449
17488
|
}).describe(
|
|
17450
17489
|
"Defines a voltage probe for simulation. If a reference input is not provided, it measures against ground. If a reference input is provided, it measures the differential voltage between two points."
|
|
17451
17490
|
).superRefine((data, ctx) => {
|
|
@@ -17455,20 +17494,20 @@ var simulation_voltage_probe = z130.object({
|
|
|
17455
17494
|
const has_nets = !!data.signal_input_source_net_id || !!data.reference_input_source_net_id;
|
|
17456
17495
|
if (has_ports && has_nets) {
|
|
17457
17496
|
ctx.addIssue({
|
|
17458
|
-
code:
|
|
17497
|
+
code: z133.ZodIssueCode.custom,
|
|
17459
17498
|
message: "Cannot mix port and net connections in a differential probe."
|
|
17460
17499
|
});
|
|
17461
17500
|
} else if (has_ports) {
|
|
17462
17501
|
if (!data.signal_input_source_port_id || !data.reference_input_source_port_id) {
|
|
17463
17502
|
ctx.addIssue({
|
|
17464
|
-
code:
|
|
17503
|
+
code: z133.ZodIssueCode.custom,
|
|
17465
17504
|
message: "Differential port probe requires both signal_input_source_port_id and reference_input_source_port_id."
|
|
17466
17505
|
});
|
|
17467
17506
|
}
|
|
17468
17507
|
} else if (has_nets) {
|
|
17469
17508
|
if (!data.signal_input_source_net_id || !data.reference_input_source_net_id) {
|
|
17470
17509
|
ctx.addIssue({
|
|
17471
|
-
code:
|
|
17510
|
+
code: z133.ZodIssueCode.custom,
|
|
17472
17511
|
message: "Differential net probe requires both signal_input_source_net_id and reference_input_source_net_id."
|
|
17473
17512
|
});
|
|
17474
17513
|
}
|
|
@@ -17476,27 +17515,28 @@ var simulation_voltage_probe = z130.object({
|
|
|
17476
17515
|
} else {
|
|
17477
17516
|
if (!!data.signal_input_source_port_id === !!data.signal_input_source_net_id) {
|
|
17478
17517
|
ctx.addIssue({
|
|
17479
|
-
code:
|
|
17518
|
+
code: z133.ZodIssueCode.custom,
|
|
17480
17519
|
message: "A voltage probe must have exactly one of signal_input_source_port_id or signal_input_source_net_id."
|
|
17481
17520
|
});
|
|
17482
17521
|
}
|
|
17483
17522
|
}
|
|
17484
17523
|
});
|
|
17485
17524
|
expectTypesMatch(true);
|
|
17486
|
-
var simulation_unknown_experiment_error =
|
|
17487
|
-
type:
|
|
17525
|
+
var simulation_unknown_experiment_error = z134.object({
|
|
17526
|
+
type: z134.literal("simulation_unknown_experiment_error"),
|
|
17488
17527
|
simulation_unknown_experiment_error_id: getZodPrefixedIdWithDefault(
|
|
17489
17528
|
"simulation_unknown_experiment_error"
|
|
17490
17529
|
),
|
|
17491
|
-
error_type:
|
|
17492
|
-
message:
|
|
17493
|
-
simulation_experiment_id:
|
|
17494
|
-
subcircuit_id:
|
|
17530
|
+
error_type: z134.literal("simulation_unknown_experiment_error").default("simulation_unknown_experiment_error"),
|
|
17531
|
+
message: z134.string(),
|
|
17532
|
+
simulation_experiment_id: z134.string().optional(),
|
|
17533
|
+
subcircuit_id: z134.string().optional()
|
|
17495
17534
|
}).describe("An unknown error occurred during the simulation experiment.");
|
|
17496
17535
|
expectTypesMatch(true);
|
|
17497
|
-
var any_circuit_element =
|
|
17536
|
+
var any_circuit_element = z135.union([
|
|
17498
17537
|
source_trace,
|
|
17499
17538
|
source_port,
|
|
17539
|
+
source_component_internal_connection,
|
|
17500
17540
|
any_source_component,
|
|
17501
17541
|
source_net,
|
|
17502
17542
|
source_group,
|
|
@@ -17621,7 +17661,7 @@ import { z as z910 } from "zod";
|
|
|
17621
17661
|
import "zod";
|
|
17622
17662
|
import "zod";
|
|
17623
17663
|
import { z as z1210 } from "zod";
|
|
17624
|
-
import { z as
|
|
17664
|
+
import { z as z137 } from "zod";
|
|
17625
17665
|
import { z as z142 } from "zod";
|
|
17626
17666
|
import { z as z152 } from "zod";
|
|
17627
17667
|
import { z as z162 } from "zod";
|
|
@@ -17796,12 +17836,12 @@ function convertMilToMm(value) {
|
|
|
17796
17836
|
}
|
|
17797
17837
|
return Number(value);
|
|
17798
17838
|
}
|
|
17799
|
-
var lengthInMm =
|
|
17800
|
-
var extendDipDef = (newDefaults) =>
|
|
17801
|
-
fn:
|
|
17802
|
-
num_pins:
|
|
17803
|
-
wide:
|
|
17804
|
-
narrow:
|
|
17839
|
+
var lengthInMm = z136.union([z136.string(), z136.number()]).transform((val) => convertMilToMm(val));
|
|
17840
|
+
var extendDipDef = (newDefaults) => z136.object({
|
|
17841
|
+
fn: z136.string(),
|
|
17842
|
+
num_pins: z136.number().optional().default(6),
|
|
17843
|
+
wide: z136.boolean().optional(),
|
|
17844
|
+
narrow: z136.boolean().optional(),
|
|
17805
17845
|
w: lengthInMm.optional(),
|
|
17806
17846
|
p: lengthInMm.default(newDefaults.p ?? "2.54mm"),
|
|
17807
17847
|
id: lengthInMm.optional(),
|
|
@@ -19507,13 +19547,13 @@ var ms013 = (raw_params) => {
|
|
|
19507
19547
|
parameters
|
|
19508
19548
|
};
|
|
19509
19549
|
};
|
|
19510
|
-
var sot723_def =
|
|
19511
|
-
fn:
|
|
19512
|
-
num_pins:
|
|
19513
|
-
w:
|
|
19514
|
-
h:
|
|
19515
|
-
pl:
|
|
19516
|
-
pw:
|
|
19550
|
+
var sot723_def = z137.object({
|
|
19551
|
+
fn: z137.string(),
|
|
19552
|
+
num_pins: z137.literal(3).default(3),
|
|
19553
|
+
w: z137.string().default("1.2mm"),
|
|
19554
|
+
h: z137.string().default("1.2mm"),
|
|
19555
|
+
pl: z137.string().default("0.3mm"),
|
|
19556
|
+
pw: z137.string().default("0.32mm")
|
|
19517
19557
|
});
|
|
19518
19558
|
var sot723 = (raw_params) => {
|
|
19519
19559
|
const parameters = sot723_def.parse(raw_params);
|
|
@@ -24939,10 +24979,10 @@ var svgPathPoints = normalizeOnY([
|
|
|
24939
24979
|
]);
|
|
24940
24980
|
var DIP_PIN_HEIGHT = 5.47;
|
|
24941
24981
|
var heightAboveSurface = 0.5;
|
|
24942
|
-
var DipPinLeg = ({ x, y, z:
|
|
24982
|
+
var DipPinLeg = ({ x, y, z: z138 }) => {
|
|
24943
24983
|
const isRotated = x > 0;
|
|
24944
24984
|
return /* @__PURE__ */ jsxs(Fragment22, { children: [
|
|
24945
|
-
/* @__PURE__ */ jsx5(Translate, { offset: { x: x + 0.25 / 2, y, z:
|
|
24985
|
+
/* @__PURE__ */ jsx5(Translate, { offset: { x: x + 0.25 / 2, y, z: z138 }, children: /* @__PURE__ */ jsx5(Rotate, { rotation: ["-90deg", 0, "90deg"], children: /* @__PURE__ */ jsx5(ExtrudeLinear, { height: 0.25, children: /* @__PURE__ */ jsx5(
|
|
24946
24986
|
Polygon,
|
|
24947
24987
|
{
|
|
24948
24988
|
points: svgPathPoints.slice().reverse().map((p) => [p.x, p.y])
|
|
@@ -24954,7 +24994,7 @@ var DipPinLeg = ({ x, y, z: z135 }) => {
|
|
|
24954
24994
|
offset: {
|
|
24955
24995
|
x,
|
|
24956
24996
|
y: y + (isRotated ? 1 : -1),
|
|
24957
|
-
z:
|
|
24997
|
+
z: z138
|
|
24958
24998
|
},
|
|
24959
24999
|
children: /* @__PURE__ */ jsx5(Rotate, { rotation: ["-90deg", "90deg", isRotated ? "180deg" : "0deg"], children: /* @__PURE__ */ jsx5(ExtrudeLinear, { height: 2, children: /* @__PURE__ */ jsx5(
|
|
24960
25000
|
Polygon,
|
|
@@ -25412,7 +25452,7 @@ var PinRow = ({
|
|
|
25412
25452
|
const shortSidePinLength = 3;
|
|
25413
25453
|
const xoff = -((pinsPerRow - 1) / 2) * pitch;
|
|
25414
25454
|
const bodyCenterY = rows > 1 ? -((rows - 1) * rowSpacing) / 2 : 0;
|
|
25415
|
-
const flipZ = (
|
|
25455
|
+
const flipZ = (z138) => invert || faceup ? -z138 + bodyHeight : z138;
|
|
25416
25456
|
return /* @__PURE__ */ jsxs(Fragment22, { children: [
|
|
25417
25457
|
/* @__PURE__ */ jsx5(
|
|
25418
25458
|
Cuboid,
|
|
@@ -27936,19 +27976,19 @@ var TO220 = () => {
|
|
|
27936
27976
|
/* @__PURE__ */ jsx5(Rotate, { rotation: [0, 55, 55], children: Array.from({ length: 3 }).map((_, i) => {
|
|
27937
27977
|
const x = prongCenterX;
|
|
27938
27978
|
const y = (i - 1) * prongPitch;
|
|
27939
|
-
const
|
|
27979
|
+
const z138 = -prongHeight - 0.6;
|
|
27940
27980
|
return /* @__PURE__ */ jsxs(Colorize, { color: "gold", children: [
|
|
27941
27981
|
/* @__PURE__ */ jsxs(Hull, { children: [
|
|
27942
|
-
/* @__PURE__ */ jsx5(Translate, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y,
|
|
27982
|
+
/* @__PURE__ */ jsx5(Translate, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y, z138], children: /* @__PURE__ */ jsx5(Cuboid, { size: [bodyHeight, prongWidth + 1, prongHeight] }) }),
|
|
27943
27983
|
/* @__PURE__ */ jsx5(
|
|
27944
27984
|
Translate,
|
|
27945
27985
|
{
|
|
27946
|
-
center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y,
|
|
27986
|
+
center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z138],
|
|
27947
27987
|
children: /* @__PURE__ */ jsx5(Cuboid, { size: [bodyHeight, prongWidth, prongHeight] })
|
|
27948
27988
|
}
|
|
27949
27989
|
)
|
|
27950
27990
|
] }),
|
|
27951
|
-
/* @__PURE__ */ jsx5(Translate, { center: [x, y,
|
|
27991
|
+
/* @__PURE__ */ jsx5(Translate, { center: [x, y, z138], children: /* @__PURE__ */ jsx5(Cuboid, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
|
|
27952
27992
|
] }, `prong-${i}`);
|
|
27953
27993
|
}) })
|
|
27954
27994
|
] }) });
|
|
@@ -29455,7 +29495,7 @@ import * as THREE15 from "three";
|
|
|
29455
29495
|
// package.json
|
|
29456
29496
|
var package_default = {
|
|
29457
29497
|
name: "@tscircuit/3d-viewer",
|
|
29458
|
-
version: "0.0.
|
|
29498
|
+
version: "0.0.474",
|
|
29459
29499
|
main: "./dist/index.js",
|
|
29460
29500
|
module: "./dist/index.js",
|
|
29461
29501
|
type: "module",
|
|
@@ -29502,15 +29542,8 @@ var package_default = {
|
|
|
29502
29542
|
"@jscad/modeling": "^2.12.5",
|
|
29503
29543
|
"@storybook/blocks": "9.0.0-alpha.17",
|
|
29504
29544
|
"@storybook/react-vite": "^9.1.5",
|
|
29505
|
-
"@tscircuit/circuit-json-util": "^0.0.72",
|
|
29506
|
-
"@tscircuit/core": "^0.0.890",
|
|
29507
|
-
"@tscircuit/props": "^0.0.422",
|
|
29508
|
-
"@tscircuit/checks": "^0.0.87",
|
|
29509
|
-
"@tscircuit/math-utils": "^0.0.29",
|
|
29510
29545
|
"@tscircuit/copper-pour-solver": "^0.0.14",
|
|
29511
29546
|
"@tscircuit/solver-utils": "^0.0.4",
|
|
29512
|
-
"@tscircuit/capacity-autorouter": "^0.0.131",
|
|
29513
|
-
"calculate-packing": "^0.0.48",
|
|
29514
29547
|
"@types/jsdom": "^21.1.7",
|
|
29515
29548
|
"@types/react": "19",
|
|
29516
29549
|
"@types/react-dom": "19",
|
|
@@ -29519,8 +29552,6 @@ var package_default = {
|
|
|
29519
29552
|
"@vitejs/plugin-react": "^4.3.4",
|
|
29520
29553
|
"bun-match-svg": "^0.0.9",
|
|
29521
29554
|
"bun-types": "1.2.1",
|
|
29522
|
-
"circuit-json": "0.0.325",
|
|
29523
|
-
"circuit-to-svg": "^0.0.179",
|
|
29524
29555
|
debug: "^4.4.0",
|
|
29525
29556
|
"jscad-electronics": "^0.0.109",
|
|
29526
29557
|
"jscad-planner": "^0.0.13",
|
|
@@ -29529,7 +29560,7 @@ var package_default = {
|
|
|
29529
29560
|
"react-use-gesture": "^9.1.3",
|
|
29530
29561
|
semver: "^7.7.0",
|
|
29531
29562
|
"strip-ansi": "^7.1.0",
|
|
29532
|
-
tscircuit: "^0.0.
|
|
29563
|
+
tscircuit: "^0.0.1056",
|
|
29533
29564
|
tsup: "^8.3.6",
|
|
29534
29565
|
typescript: "^5.7.3",
|
|
29535
29566
|
vite: "^7.1.5",
|
|
@@ -29623,11 +29654,11 @@ var CameraControllerProvider = ({ children, defaultTarget, initialCameraPosition
|
|
|
29623
29654
|
new THREE9.Euler(0, 0, 0)
|
|
29624
29655
|
);
|
|
29625
29656
|
const baseDistance = useMemo8(() => {
|
|
29626
|
-
const [x, y,
|
|
29657
|
+
const [x, y, z138] = initialCameraPosition ?? [5, -5, 5];
|
|
29627
29658
|
const distance2 = Math.hypot(
|
|
29628
29659
|
x - defaultTarget.x,
|
|
29629
29660
|
y - defaultTarget.y,
|
|
29630
|
-
|
|
29661
|
+
z138 - defaultTarget.z
|
|
29631
29662
|
);
|
|
29632
29663
|
return distance2 > 0 ? distance2 : 5;
|
|
29633
29664
|
}, [initialCameraPosition, defaultTarget]);
|