easyeda 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -15
- package/dist/cli/main.cjs +1520 -30635
- package/dist/cli/main.cjs.map +1 -1
- package/dist/lib/index.cjs +1427 -30539
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.d.cts +4 -2
- package/package.json +3 -3
package/dist/lib/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AnySoupElement } from '
|
|
2
|
+
import { AnySoupElement } from 'circuit-json';
|
|
3
3
|
|
|
4
4
|
declare const maybeNumber: z.ZodPipeline<z.ZodEffects<z.ZodAny, any, any>, z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5
5
|
declare const SzlcscSchema: z.ZodObject<{
|
|
@@ -3884,6 +3884,8 @@ interface Options {
|
|
|
3884
3884
|
useModelCdn?: boolean;
|
|
3885
3885
|
shouldRecenter?: boolean;
|
|
3886
3886
|
}
|
|
3887
|
+
declare const convertEasyEdaJsonToCircuitJson: (easyEdaJson: BetterEasyEdaJson, { useModelCdn, shouldRecenter }?: Options) => AnySoupElement[];
|
|
3888
|
+
/** @deprecated Use `convertEasyEdaJsonToCircuitJson` instead. */
|
|
3887
3889
|
declare const convertEasyEdaJsonToTscircuitSoupJson: (easyEdaJson: BetterEasyEdaJson, { useModelCdn, shouldRecenter }?: Options) => AnySoupElement[];
|
|
3888
3890
|
|
|
3889
3891
|
declare function fetchEasyEDAComponent(jlcpcbPartNumber: string): Promise<RawEasyEdaJson>;
|
|
@@ -3898,4 +3900,4 @@ declare const convertEasyEdaJsonToVariousFormats: ({ jlcpcbPartNumberOrFilepath,
|
|
|
3898
3900
|
formatType: string;
|
|
3899
3901
|
}) => Promise<void>;
|
|
3900
3902
|
|
|
3901
|
-
export { BBoxSchema, type BetterEasyEdaJson, DataStrSchema, EasyEdaJsonSchema, HeadSchema, LayerItemSchema, LcscSchema, ObjectItemSchema, OwnerSchema, PackageDetailDataStrSchema, PackageDetailSchema, type RawEasyEdaJson, SzlcscSchema, convertEasyEdaJsonToTscircuitSoupJson, convertEasyEdaJsonToVariousFormats, convertRawEasyEdaToTs, fetchEasyEDAComponent, maybeNumber, normalizeManufacturerPartNumber };
|
|
3903
|
+
export { BBoxSchema, type BetterEasyEdaJson, DataStrSchema, EasyEdaJsonSchema, HeadSchema, LayerItemSchema, LcscSchema, ObjectItemSchema, OwnerSchema, PackageDetailDataStrSchema, PackageDetailSchema, type RawEasyEdaJson, SzlcscSchema, convertEasyEdaJsonToCircuitJson, convertEasyEdaJsonToTscircuitSoupJson, convertEasyEdaJsonToVariousFormats, convertRawEasyEdaToTs, fetchEasyEDAComponent, maybeNumber, normalizeManufacturerPartNumber };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easyeda",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.31",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@biomejs/biome": "^1.8.3",
|
|
26
|
-
"@tscircuit/builder": "^1.5.131",
|
|
27
26
|
"@tscircuit/log-soup": "1.0.2",
|
|
28
|
-
"@tscircuit/
|
|
27
|
+
"@tscircuit/props": "^0.0.68",
|
|
29
28
|
"@tscircuit/soup-util": "^0.0.31",
|
|
30
29
|
"@types/bun": "latest",
|
|
30
|
+
"circuit-json": "^0.0.83",
|
|
31
31
|
"tsup": "^8.1.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|