easyeda 0.0.144 → 0.0.146
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/browser/index.d.ts +27 -37
- package/dist/browser/index.js +725 -586
- package/dist/browser/index.js.map +1 -1
- package/dist/{chunk-7NBWRL4X.js → chunk-UZ5L5YJS.js} +965 -824
- package/dist/chunk-UZ5L5YJS.js.map +1 -0
- package/dist/cli/main.js +7 -6
- package/dist/cli/main.js.map +1 -1
- package/dist/lib/index.d.ts +81 -111
- package/dist/lib/index.js +1 -1
- package/package.json +6 -5
- package/dist/chunk-7NBWRL4X.js.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -857,11 +857,10 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
857
857
|
rotation?: number | undefined;
|
|
858
858
|
textAnchor?: "L" | "C" | "R" | undefined;
|
|
859
859
|
font?: string | undefined;
|
|
860
|
-
})[], string[]>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
861
|
-
type: z.ZodString;
|
|
860
|
+
})[], string[]>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
862
861
|
id: z.ZodOptional<z.ZodString>;
|
|
863
862
|
layer: z.ZodOptional<z.ZodNumber>;
|
|
864
|
-
}
|
|
863
|
+
} & {
|
|
865
864
|
type: z.ZodLiteral<"TRACK">;
|
|
866
865
|
width: z.ZodNumber;
|
|
867
866
|
points: z.ZodArray<z.ZodPipeline<z.ZodEffects<z.ZodAny, any, any>, z.ZodObject<{
|
|
@@ -874,7 +873,7 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
874
873
|
x: number;
|
|
875
874
|
y: number;
|
|
876
875
|
}>>, "many">;
|
|
877
|
-
}
|
|
876
|
+
}, "strip", z.ZodTypeAny, {
|
|
878
877
|
type: "TRACK";
|
|
879
878
|
width: number;
|
|
880
879
|
points: {
|
|
@@ -889,11 +888,10 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
889
888
|
points: any[];
|
|
890
889
|
id?: string | undefined;
|
|
891
890
|
layer?: number | undefined;
|
|
892
|
-
}>, z.ZodObject<
|
|
893
|
-
type: z.ZodString;
|
|
891
|
+
}>, z.ZodObject<{
|
|
894
892
|
id: z.ZodOptional<z.ZodString>;
|
|
895
893
|
layer: z.ZodOptional<z.ZodNumber>;
|
|
896
|
-
}
|
|
894
|
+
} & {
|
|
897
895
|
type: z.ZodLiteral<"PAD">;
|
|
898
896
|
shape: z.ZodEnum<["RECT", "ELLIPSE", "OVAL"]>;
|
|
899
897
|
center: z.ZodObject<{
|
|
@@ -924,7 +922,7 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
924
922
|
}>>, "many">>;
|
|
925
923
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
926
924
|
plated: z.ZodBoolean;
|
|
927
|
-
}
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
928
926
|
number: string | number;
|
|
929
927
|
type: "PAD";
|
|
930
928
|
width: string;
|
|
@@ -963,11 +961,10 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
963
961
|
net?: string | number | undefined;
|
|
964
962
|
holeRadius?: string | number | undefined;
|
|
965
963
|
rotation?: number | undefined;
|
|
966
|
-
}>, z.ZodObject<
|
|
967
|
-
type: z.ZodString;
|
|
964
|
+
}>, z.ZodObject<{
|
|
968
965
|
id: z.ZodOptional<z.ZodString>;
|
|
969
966
|
layer: z.ZodOptional<z.ZodNumber>;
|
|
970
|
-
}
|
|
967
|
+
} & {
|
|
971
968
|
type: z.ZodLiteral<"ARC">;
|
|
972
969
|
width: z.ZodNumber;
|
|
973
970
|
start: z.ZodPipeline<z.ZodEffects<z.ZodAny, any, any>, z.ZodObject<{
|
|
@@ -994,7 +991,7 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
994
991
|
radiusY: z.ZodNumber;
|
|
995
992
|
largeArc: z.ZodBoolean;
|
|
996
993
|
sweepDirection: z.ZodEnum<["CW", "CCW"]>;
|
|
997
|
-
}
|
|
994
|
+
}, "strip", z.ZodTypeAny, {
|
|
998
995
|
type: "ARC";
|
|
999
996
|
width: number;
|
|
1000
997
|
start: {
|
|
@@ -1022,11 +1019,10 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1022
1019
|
layer?: number | undefined;
|
|
1023
1020
|
start?: any;
|
|
1024
1021
|
end?: any;
|
|
1025
|
-
}>, z.ZodObject<
|
|
1026
|
-
type: z.ZodString;
|
|
1022
|
+
}>, z.ZodObject<{
|
|
1027
1023
|
id: z.ZodOptional<z.ZodString>;
|
|
1028
1024
|
layer: z.ZodOptional<z.ZodNumber>;
|
|
1029
|
-
}
|
|
1025
|
+
} & {
|
|
1030
1026
|
type: z.ZodLiteral<"CIRCLE">;
|
|
1031
1027
|
center: z.ZodPipeline<z.ZodEffects<z.ZodAny, any, any>, z.ZodObject<{
|
|
1032
1028
|
x: z.ZodNumber;
|
|
@@ -1040,7 +1036,7 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1040
1036
|
}>>;
|
|
1041
1037
|
radius: z.ZodNumber;
|
|
1042
1038
|
width: z.ZodNumber;
|
|
1043
|
-
}
|
|
1039
|
+
}, "strip", z.ZodTypeAny, {
|
|
1044
1040
|
type: "CIRCLE";
|
|
1045
1041
|
width: number;
|
|
1046
1042
|
center: {
|
|
@@ -1057,11 +1053,10 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1057
1053
|
id?: string | undefined;
|
|
1058
1054
|
layer?: number | undefined;
|
|
1059
1055
|
center?: any;
|
|
1060
|
-
}>, z.ZodObject<
|
|
1061
|
-
type: z.ZodString;
|
|
1056
|
+
}>, z.ZodObject<{
|
|
1062
1057
|
id: z.ZodOptional<z.ZodString>;
|
|
1063
1058
|
layer: z.ZodOptional<z.ZodNumber>;
|
|
1064
|
-
}
|
|
1059
|
+
} & {
|
|
1065
1060
|
type: z.ZodLiteral<"SOLIDREGION">;
|
|
1066
1061
|
layermask: z.ZodNumber;
|
|
1067
1062
|
points: z.ZodArray<z.ZodPipeline<z.ZodEffects<z.ZodAny, any, any>, z.ZodObject<{
|
|
@@ -1075,7 +1070,7 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1075
1070
|
y: number;
|
|
1076
1071
|
}>>, "many">;
|
|
1077
1072
|
fillStyle: z.ZodString;
|
|
1078
|
-
}
|
|
1073
|
+
}, "strip", z.ZodTypeAny, {
|
|
1079
1074
|
type: "SOLIDREGION";
|
|
1080
1075
|
points: {
|
|
1081
1076
|
x: number;
|
|
@@ -1092,11 +1087,10 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1092
1087
|
fillStyle: string;
|
|
1093
1088
|
id?: string | undefined;
|
|
1094
1089
|
layer?: number | undefined;
|
|
1095
|
-
}>, z.ZodObject<
|
|
1096
|
-
type: z.ZodString;
|
|
1090
|
+
}>, z.ZodObject<{
|
|
1097
1091
|
id: z.ZodOptional<z.ZodString>;
|
|
1098
1092
|
layer: z.ZodOptional<z.ZodNumber>;
|
|
1099
|
-
}
|
|
1093
|
+
} & {
|
|
1100
1094
|
type: z.ZodLiteral<"SVGNODE">;
|
|
1101
1095
|
svgData: z.ZodObject<{
|
|
1102
1096
|
gId: z.ZodString;
|
|
@@ -1120,7 +1114,7 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1120
1114
|
attrs: Record<string, string>;
|
|
1121
1115
|
childNodes: unknown[];
|
|
1122
1116
|
}>;
|
|
1123
|
-
}
|
|
1117
|
+
}, "strip", z.ZodTypeAny, {
|
|
1124
1118
|
type: "SVGNODE";
|
|
1125
1119
|
svgData: {
|
|
1126
1120
|
gId: string;
|
|
@@ -1144,11 +1138,10 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1144
1138
|
};
|
|
1145
1139
|
id?: string | undefined;
|
|
1146
1140
|
layer?: number | undefined;
|
|
1147
|
-
}>, z.ZodObject<
|
|
1148
|
-
type: z.ZodString;
|
|
1141
|
+
}>, z.ZodObject<{
|
|
1149
1142
|
id: z.ZodOptional<z.ZodString>;
|
|
1150
1143
|
layer: z.ZodOptional<z.ZodNumber>;
|
|
1151
|
-
}
|
|
1144
|
+
} & {
|
|
1152
1145
|
type: z.ZodLiteral<"HOLE">;
|
|
1153
1146
|
center: z.ZodPipeline<z.ZodEffects<z.ZodAny, any, any>, z.ZodObject<{
|
|
1154
1147
|
x: z.ZodNumber;
|
|
@@ -1161,7 +1154,7 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1161
1154
|
y: number;
|
|
1162
1155
|
}>>;
|
|
1163
1156
|
radius: z.ZodNumber;
|
|
1164
|
-
}
|
|
1157
|
+
}, "strip", z.ZodTypeAny, {
|
|
1165
1158
|
type: "HOLE";
|
|
1166
1159
|
center: {
|
|
1167
1160
|
x: number;
|
|
@@ -1176,11 +1169,10 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1176
1169
|
id?: string | undefined;
|
|
1177
1170
|
layer?: number | undefined;
|
|
1178
1171
|
center?: any;
|
|
1179
|
-
}>, z.ZodObject<
|
|
1180
|
-
type: z.ZodString;
|
|
1172
|
+
}>, z.ZodObject<{
|
|
1181
1173
|
id: z.ZodOptional<z.ZodString>;
|
|
1182
1174
|
layer: z.ZodOptional<z.ZodNumber>;
|
|
1183
|
-
}
|
|
1175
|
+
} & {
|
|
1184
1176
|
type: z.ZodLiteral<"RECT">;
|
|
1185
1177
|
x: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>, string, string | number | undefined>, z.ZodString>;
|
|
1186
1178
|
y: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>, string, string | number | undefined>, z.ZodString>;
|
|
@@ -1189,7 +1181,7 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1189
1181
|
lineWidth: z.ZodNumber;
|
|
1190
1182
|
fillStyle: z.ZodString;
|
|
1191
1183
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1192
|
-
}
|
|
1184
|
+
}, "strip", z.ZodTypeAny, {
|
|
1193
1185
|
type: "RECT";
|
|
1194
1186
|
x: string;
|
|
1195
1187
|
y: string;
|
|
@@ -1211,11 +1203,9 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1211
1203
|
width?: string | number | undefined;
|
|
1212
1204
|
height?: string | number | undefined;
|
|
1213
1205
|
rotation?: number | undefined;
|
|
1214
|
-
}>, z.ZodObject<
|
|
1215
|
-
type: z.ZodString;
|
|
1206
|
+
}>, z.ZodObject<{
|
|
1216
1207
|
id: z.ZodOptional<z.ZodString>;
|
|
1217
|
-
|
|
1218
|
-
}, {
|
|
1208
|
+
} & {
|
|
1219
1209
|
type: z.ZodLiteral<"TEXT">;
|
|
1220
1210
|
text: z.ZodString;
|
|
1221
1211
|
x: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>, string, string | number | undefined>, z.ZodString>;
|
|
@@ -1225,7 +1215,7 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
|
|
|
1225
1215
|
layer: z.ZodOptional<z.ZodNumber>;
|
|
1226
1216
|
textAnchor: z.ZodEffects<z.ZodOptional<z.ZodEnum<["L", "C", "R", ""]>>, "L" | "C" | "R" | undefined, "" | "L" | "C" | "R" | undefined>;
|
|
1227
1217
|
font: z.ZodOptional<z.ZodString>;
|
|
1228
|
-
}
|
|
1218
|
+
}, "strip", z.ZodTypeAny, {
|
|
1229
1219
|
type: "TEXT";
|
|
1230
1220
|
x: string;
|
|
1231
1221
|
y: string;
|