jscad-electronics 0.0.171 → 0.0.173

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
@@ -215,13 +215,19 @@ declare const LegacySOIC: ({ pinCount, leadLength, leadWidth, pitch, bodyWidth,
215
215
  type SOICProps = Parameters<typeof LegacySOIC>[0] | DualRowGullWingDimensions;
216
216
  declare const SOIC: (props: SOICProps) => react_jsx_runtime.JSX.Element;
217
217
 
218
- declare const Tssop: ({ pinCount, leadLength, leadWidth, pitch, bodyWidth, }: {
218
+ declare const LegacyTssop: ({ pinCount, leadLength, leadWidth, pitch, bodyWidth, }: {
219
219
  pinCount: number;
220
220
  pitch: number;
221
221
  leadWidth: number;
222
222
  leadLength: number;
223
223
  bodyWidth: number;
224
224
  }) => react_jsx_runtime.JSX.Element;
225
+ /** TSSOP physical outline. leadSpan selects explicit package dimensions;
226
+ * existing land-derived callers retain their current geometry.
227
+ * See examples/fixtures/tssop-variants.ts for standard outline evidence.
228
+ */
229
+ type TssopProps = Parameters<typeof LegacyTssop>[0] | DualRowGullWingDimensions;
230
+ declare const Tssop: (props: TssopProps) => react_jsx_runtime.JSX.Element;
225
231
 
226
232
  declare const LegacyMSOP: ({ pinCount, padContactLength, leadWidth, pitch, bodyWidth, }: {
227
233
  pinCount: number;
@@ -245,7 +251,29 @@ declare const VSSOP: ({ pinCount, pitch, leadWidth, leadLength, bodyWidth, bodyL
245
251
  bodyLength?: number;
246
252
  }) => react_jsx_runtime.JSX.Element;
247
253
 
248
- declare const QFN: ({ num_pins, bodyWidth, bodyLength, bodyThickness, thermalPadSize, padWidth, padLength, pitch, thermalPadThickness, }: {
254
+ /** Physical QFN outline, in mm. Unlike the legacy land-derived API, bodyWidth
255
+ * and bodyLength measure the mold itself. Terminal spans measure outer edges,
256
+ * allowing both sawn and punched standard outlines. Pin 1 is at -X,+Y.
257
+ * This variant has equally many terminals on all four sides.
258
+ */
259
+ interface PhysicalQfnDimensions {
260
+ num_pins: number;
261
+ bodyWidth: number;
262
+ bodyLength: number;
263
+ /** Overall height A from the seating plane. */
264
+ bodyHeight: number;
265
+ standoff: number;
266
+ terminalSpanX: number;
267
+ terminalSpanY: number;
268
+ terminalThickness: number;
269
+ padWidth: number;
270
+ padLength: number;
271
+ pitch: number;
272
+ exposedPadWidth: number;
273
+ exposedPadLength: number;
274
+ }
275
+
276
+ declare const LegacyQFN: ({ num_pins, bodyWidth, bodyLength, bodyThickness, thermalPadSize, padWidth, padLength, pitch, thermalPadThickness, }: {
249
277
  num_pins: number;
250
278
  bodyWidth?: number;
251
279
  bodyLength?: number;
@@ -259,6 +287,9 @@ declare const QFN: ({ num_pins, bodyWidth, bodyLength, bodyThickness, thermalPad
259
287
  pitch?: number;
260
288
  thermalPadThickness?: number;
261
289
  }) => react_jsx_runtime.JSX.Element;
290
+ /** Supplying bodyHeight opts into physical dimensions; legacy callers are unchanged. */
291
+ type QFNProps = Parameters<typeof LegacyQFN>[0] | PhysicalQfnDimensions;
292
+ declare const QFN: (props: QFNProps) => react_jsx_runtime.JSX.Element;
262
293
 
263
294
  declare const DFN: ({ num_pins, bodyWidth, bodyLength, bodyThickness, thermalPadSize, padWidth, padLength, pitch, thermalPadThickness, bodyStyle, standoff, terminalInset, terminalThickness, pin1TerminalChamfer, pin1MarkWidth, }: {
264
295
  num_pins: number;
@@ -297,13 +328,42 @@ declare const QFP: ({ pinCount, pitch, leadWidth, padContactLength, bodyWidth, }
297
328
 
298
329
  declare const TQFP: () => react_jsx_runtime.JSX.Element;
299
330
 
300
- declare const LQFP: ({ pinCount, pitch, leadWidth, padContactLength, bodyWidth, }: {
331
+ /** Physical package dimensions in mm, independent of copper land dimensions.
332
+ * Four equal lead rows surround the mold. Z=0 is the seating plane.
333
+ * Pin 1 is at negative X, positive Y. Bend curvature and the pin-1 dimple are
334
+ * visual approximations, not additional package-identification parameters.
335
+ */
336
+ interface PhysicalLqfpDimensions {
337
+ pinCount: number;
338
+ pitch: number;
339
+ bodyWidth: number;
340
+ bodyLength: number;
341
+ /** Overall height A, including standoff A1. */
342
+ bodyHeight: number;
343
+ standoff: number;
344
+ /** Outer lead-tip to outer lead-tip dimension E. */
345
+ leadSpanX: number;
346
+ leadSpanY: number;
347
+ leadWidth: number;
348
+ leadThickness: number;
349
+ /** Horizontal terminal contact, not the PCB land length. */
350
+ contactLength: number;
351
+ /** Per-side inset of the top and bottom mold faces. */
352
+ taperInset: number;
353
+ }
354
+
355
+ declare const LegacyLQFP: ({ pinCount, pitch, leadWidth, padContactLength, bodyWidth, }: {
301
356
  pinCount: number;
302
357
  pitch?: number;
303
358
  leadWidth?: number;
304
359
  padContactLength?: number;
305
360
  bodyWidth?: number;
306
361
  }) => react_jsx_runtime.JSX.Element;
362
+ /** leadSpanX selects explicit physical dimensions. Existing callers retain
363
+ * their legacy geometry. See standard outline evidence in the fixtures.
364
+ */
365
+ type LQFPProps = Parameters<typeof LegacyLQFP>[0] | PhysicalLqfpDimensions;
366
+ declare const LQFP: (props: LQFPProps) => react_jsx_runtime.JSX.Element;
307
367
 
308
368
  interface SOD123Props {
309
369
  /** Overall package length, including the leads, in millimeters. */
@@ -1165,4 +1225,4 @@ declare const MelfResistor: ({ size, footprint, }: {
1165
1225
  footprint?: string;
1166
1226
  }) => react_jsx_runtime.JSX.Element;
1167
1227
 
1168
- export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, AxialCapacitor, BGA, CeramicChipAntenna, ChipBody, type ChipBodyProps, Crystal, type CrystalProps, DFN, DO219AD, type DO219ADProps, DPAK, type DPAKProps, Display, ElectrolyticCapacitor, type ElectrolyticCapacitorProps, ExtrudedPads, FPC, type FPCProps, FemaleHeader, FemaleHeaderRow, FlexScreen, type FlexScreenAspectRatio, type FlexScreenOrientation, type FlexScreenProps, FootprintPad, FootprintPlatedHole, Footprinter3d, GullWingBody, type GullWingBodyProps, HC49, type HC49Props, JSTPH2_0mm, JSTXH2_5mm, type JSTXH2_5mmProps, JSTZH1_5mm, JstSh, LQFP, Led2835, type Led2835Props, Led5050, type Led5050Props, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MS013, MSOP, type MSOPProps, MelfResistor, type MelfResistorSize, MicroMELF, type MicroMELFProps, MountedPcbModule, PinHeader, PinRow, Potentiometer, type PotentiometerLead, type PotentiometerProps, QFN, QFP, RJ45, type RJ45Props, type ResolvedFlexScreenSize, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, type SOD123Props, SOD123W, type SOD123WProps, SOD128, SOD323, SOD323F, SOD323FL, SOD323HE, type SOD323HEProps, SOD523, SOD723, SOD882, SOD923, SOIC, type SOICProps, SOT143, SOT223, type SOT223Props, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SOT886, SOT963, Screen, type ScreenProps, SmdChipLead, type SmdChipLeadProps, type SmdLeadPad, SmdPinHeader, type SmdPinHeaderProps, SmdPushButton, type SmdPushButtonProps, SmdSlideSwitch, StampBoard, TO220, type TO220Lead, type TO220Props, TO92, type TO92Lead, type TO92Props, TQFP, TantalumCapacitor, type TantalumCase, Tssop, TwoPadCrystal, type TwoPadCrystalPackage, UsbCMidmount, VSSOP, isJstShFootprint, melfResistorSizes, resolveFlexScreenSize, tantalumCases, twoPadCrystalPackages };
1228
+ export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, AxialCapacitor, BGA, CeramicChipAntenna, ChipBody, type ChipBodyProps, Crystal, type CrystalProps, DFN, DO219AD, type DO219ADProps, DPAK, type DPAKProps, Display, ElectrolyticCapacitor, type ElectrolyticCapacitorProps, ExtrudedPads, FPC, type FPCProps, FemaleHeader, FemaleHeaderRow, FlexScreen, type FlexScreenAspectRatio, type FlexScreenOrientation, type FlexScreenProps, FootprintPad, FootprintPlatedHole, Footprinter3d, GullWingBody, type GullWingBodyProps, HC49, type HC49Props, JSTPH2_0mm, JSTXH2_5mm, type JSTXH2_5mmProps, JSTZH1_5mm, JstSh, LQFP, type LQFPProps, Led2835, type Led2835Props, Led5050, type Led5050Props, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MS013, MSOP, type MSOPProps, MelfResistor, type MelfResistorSize, MicroMELF, type MicroMELFProps, MountedPcbModule, PinHeader, PinRow, Potentiometer, type PotentiometerLead, type PotentiometerProps, QFN, type QFNProps, QFP, RJ45, type RJ45Props, type ResolvedFlexScreenSize, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, type SOD123Props, SOD123W, type SOD123WProps, SOD128, SOD323, SOD323F, SOD323FL, SOD323HE, type SOD323HEProps, SOD523, SOD723, SOD882, SOD923, SOIC, type SOICProps, SOT143, SOT223, type SOT223Props, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SOT886, SOT963, Screen, type ScreenProps, SmdChipLead, type SmdChipLeadProps, type SmdLeadPad, SmdPinHeader, type SmdPinHeaderProps, SmdPushButton, type SmdPushButtonProps, SmdSlideSwitch, StampBoard, TO220, type TO220Lead, type TO220Props, TO92, type TO92Lead, type TO92Props, TQFP, TantalumCapacitor, type TantalumCase, Tssop, type TssopProps, TwoPadCrystal, type TwoPadCrystalPackage, UsbCMidmount, VSSOP, isJstShFootprint, melfResistorSizes, resolveFlexScreenSize, tantalumCases, twoPadCrystalPackages };