easyeda 0.0.29 → 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 +1478 -29054
- package/dist/cli/main.cjs.map +1 -1
- package/dist/lib/index.cjs +1500 -29017
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.d.cts +10 -2
- package/package.json +5 -5
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>;
|
|
@@ -3892,4 +3894,10 @@ declare const convertRawEasyEdaToTs: (rawEasy: any) => Promise<string>;
|
|
|
3892
3894
|
|
|
3893
3895
|
declare function normalizeManufacturerPartNumber(partNumber: string): string;
|
|
3894
3896
|
|
|
3895
|
-
|
|
3897
|
+
declare const convertEasyEdaJsonToVariousFormats: ({ jlcpcbPartNumberOrFilepath, outputFilename, formatType, }: {
|
|
3898
|
+
jlcpcbPartNumberOrFilepath: string;
|
|
3899
|
+
outputFilename: string;
|
|
3900
|
+
formatType: string;
|
|
3901
|
+
}) => Promise<void>;
|
|
3902
|
+
|
|
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,18 +23,18 @@
|
|
|
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/
|
|
29
|
-
"@tscircuit/soup-util": "^0.0.
|
|
27
|
+
"@tscircuit/props": "^0.0.68",
|
|
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": {
|
|
34
34
|
"typescript": "^5.5.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@tscircuit/mm": "^0.0.
|
|
37
|
+
"@tscircuit/mm": "^0.0.8",
|
|
38
38
|
"commander": "^12.1.0",
|
|
39
39
|
"transformation-matrix": "^2.16.1",
|
|
40
40
|
"zod": "^3.23.8"
|