easyeda 0.0.368 → 0.0.369
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 +29 -0
- package/dist/browser/index.d.ts +7 -3
- package/dist/browser/index.js +8326 -523
- package/dist/browser/index.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +12360 -4541
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +13008 -5189
- package/dist/main.cjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CommonComponentProps, ChipProps } from '@tscircuit/props';
|
|
1
2
|
import { AnyCircuitElement } from 'circuit-json';
|
|
2
3
|
import { z } from 'zod';
|
|
3
4
|
|
|
@@ -5333,6 +5334,7 @@ type RawEasyEdaJson = z.input<typeof EasyEdaJsonSchema>;
|
|
|
5333
5334
|
type BetterEasyEdaJson = z.infer<typeof EasyEdaJsonSchema>;
|
|
5334
5335
|
|
|
5335
5336
|
interface Options {
|
|
5337
|
+
pinAttributes?: NonNullable<CommonComponentProps["pinAttributes"]>;
|
|
5336
5338
|
useModelCdn?: boolean;
|
|
5337
5339
|
shouldRecenter?: boolean;
|
|
5338
5340
|
cadPositionXMm?: number;
|
|
@@ -5352,15 +5354,16 @@ interface Options {
|
|
|
5352
5354
|
};
|
|
5353
5355
|
showDesignator?: boolean;
|
|
5354
5356
|
}
|
|
5355
|
-
declare const convertEasyEdaJsonToCircuitJson: (easyEdaJson: BetterEasyEdaJson,
|
|
5357
|
+
declare const convertEasyEdaJsonToCircuitJson: (easyEdaJson: BetterEasyEdaJson, options?: Options) => AnyCircuitElement[];
|
|
5356
5358
|
|
|
5357
5359
|
declare function fetchEasyEDAComponent(jlcpcbPartNumber: string, { fetch, includeModelMetadata, }?: {
|
|
5358
5360
|
fetch?: typeof globalThis.fetch;
|
|
5359
5361
|
includeModelMetadata?: boolean;
|
|
5360
5362
|
}): Promise<RawEasyEdaJson>;
|
|
5361
5363
|
|
|
5362
|
-
declare const convertRawEasyToTsx: ({ rawEasy }: {
|
|
5364
|
+
declare const convertRawEasyToTsx: ({ rawEasy, pinAttributes, }: {
|
|
5363
5365
|
rawEasy: any;
|
|
5366
|
+
pinAttributes?: ChipProps["pinAttributes"];
|
|
5364
5367
|
}) => Promise<string>;
|
|
5365
5368
|
|
|
5366
5369
|
declare function normalizeManufacturerPartNumber(partNumber: string): string;
|