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/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, { useModelCdn, shouldRecenter, cadPositionXMm, cadPositionYMm, cadPositionZMm, cadModelBounds, showDesignator, }?: Options) => AnyCircuitElement[];
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;