kicadts 0.0.23 → 0.0.24

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
@@ -1832,6 +1832,26 @@ declare class FootprintAttr extends SxClass {
1832
1832
  getString(): string;
1833
1833
  }
1834
1834
 
1835
+ declare class FootprintVersion extends SxPrimitiveNumber {
1836
+ static token: string;
1837
+ static parentToken: string;
1838
+ token: string;
1839
+ }
1840
+
1841
+ declare class FootprintGenerator extends SxPrimitiveString {
1842
+ static token: string;
1843
+ static parentToken: string;
1844
+ token: string;
1845
+ getString(): string;
1846
+ }
1847
+
1848
+ declare class FootprintGeneratorVersion extends SxPrimitiveString {
1849
+ static token: string;
1850
+ static parentToken: string;
1851
+ token: string;
1852
+ getString(): string;
1853
+ }
1854
+
1835
1855
  declare class FootprintAutoplaceCost180 extends SxPrimitiveNumber {
1836
1856
  static token: string;
1837
1857
  static parentToken: string;
@@ -3257,6 +3277,9 @@ declare class FootprintPlaced extends SxPrimitiveBoolean {
3257
3277
 
3258
3278
  interface FootprintConstructorParams {
3259
3279
  libraryLink?: string;
3280
+ version?: number | FootprintVersion;
3281
+ generator?: string | FootprintGenerator;
3282
+ generatorVersion?: string | FootprintGeneratorVersion;
3260
3283
  locked?: boolean;
3261
3284
  placed?: boolean;
3262
3285
  layer?: Layer | string | string[];
@@ -3296,6 +3319,9 @@ declare class Footprint extends SxClass {
3296
3319
  static token: string;
3297
3320
  token: string;
3298
3321
  private _libraryLink?;
3322
+ private _sxVersion?;
3323
+ private _sxGenerator?;
3324
+ private _sxGeneratorVersion?;
3299
3325
  private _sxLocked?;
3300
3326
  private _sxPlaced?;
3301
3327
  private _sxLayer?;
@@ -3336,6 +3362,12 @@ declare class Footprint extends SxClass {
3336
3362
  static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): Footprint;
3337
3363
  get libraryLink(): string | undefined;
3338
3364
  set libraryLink(value: string | undefined);
3365
+ get version(): number | undefined;
3366
+ set version(value: number | FootprintVersion | undefined);
3367
+ get generator(): string | undefined;
3368
+ set generator(value: string | FootprintGenerator | undefined);
3369
+ get generatorVersion(): string | undefined;
3370
+ set generatorVersion(value: string | FootprintGeneratorVersion | undefined);
3339
3371
  get locked(): boolean;
3340
3372
  set locked(value: FootprintLocked | boolean | undefined);
3341
3373
  get placed(): boolean;
@@ -5233,4 +5265,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
5233
5265
  declare const parseKicadPcb: (sexpr: string) => KicadPcb;
5234
5266
  declare const parseKicadMod: (sexpr: string) => Footprint;
5235
5267
 
5236
- export { At, type AtInput, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Color, Dnp, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcMid, type GrArcPoint, GrArcStart, GrCircle, GrCircleCenter, type GrCircleConstructorParams, GrCircleEnd, GrCircleLocked, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrPoly, type GrPolyConstructorParams, GrPolyFill, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, Mirror, type ModelVector, NoConnect, type NoConnectConstructorParams, OnBoard, PadChamfer, PadChamferRatio, PadClearance, PadDieLength, PadDrill, PadDrillOffset, PadLayers, type PadLayersInput, PadNet, PadOptions, type PadOptionsAnchorShape, type PadOptionsClearanceType, PadPinFunction, PadPinType, PadPrimitiveGrArc, type PadPrimitiveGrArcConstructorParams, PadPrimitiveGrCircle, type PadPrimitiveGrCircleConstructorParams, PadPrimitiveGrCircleFill, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, Paper, PcbGeneral, PcbGeneralLegacyTeardrops, PcbGeneralThickness, PcbGenerator, PcbGeneratorVersion, PcbLayerDefinition, PcbLayers, PcbNet, PcbPlotParams, PcbVersion, PlotParamCreateGerberJobFile, PlotParamCrossoutDnpOnFab, PlotParamDashedLineDashRatio, PlotParamDashedLineGapRatio, PlotParamDisableApertMacros, PlotParamDrillShape, PlotParamDxfImperialUnits, PlotParamDxfPolygonMode, PlotParamDxfUsePcbnewFont, PlotParamExcludeEdgeLayer, PlotParamHideDnpOnFab, PlotParamHpglPenDiameter, PlotParamHpglPenNumber, PlotParamHpglPenOverlay, PlotParamHpglPenSpeed, PlotParamLayerSelection, PlotParamLineWidth, PlotParamMirror, PlotParamMode, PlotParamOutputDirectory, PlotParamOutputFormat, PlotParamPadOnSilk, PlotParamPdfBackFpPropertyPopups, PlotParamPdfFrontFpPropertyPopups, PlotParamPdfMetadata, PlotParamPdfSingleDocument, PlotParamPlotBlackAndWhite, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolUnit, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
5268
+ export { At, type AtInput, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Color, Dnp, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintGenerator, FootprintGeneratorVersion, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintVersion, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcMid, type GrArcPoint, GrArcStart, GrCircle, GrCircleCenter, type GrCircleConstructorParams, GrCircleEnd, GrCircleLocked, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrPoly, type GrPolyConstructorParams, GrPolyFill, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, Mirror, type ModelVector, NoConnect, type NoConnectConstructorParams, OnBoard, PadChamfer, PadChamferRatio, PadClearance, PadDieLength, PadDrill, PadDrillOffset, PadLayers, type PadLayersInput, PadNet, PadOptions, type PadOptionsAnchorShape, type PadOptionsClearanceType, PadPinFunction, PadPinType, PadPrimitiveGrArc, type PadPrimitiveGrArcConstructorParams, PadPrimitiveGrCircle, type PadPrimitiveGrCircleConstructorParams, PadPrimitiveGrCircleFill, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, Paper, PcbGeneral, PcbGeneralLegacyTeardrops, PcbGeneralThickness, PcbGenerator, PcbGeneratorVersion, PcbLayerDefinition, PcbLayers, PcbNet, PcbPlotParams, PcbVersion, PlotParamCreateGerberJobFile, PlotParamCrossoutDnpOnFab, PlotParamDashedLineDashRatio, PlotParamDashedLineGapRatio, PlotParamDisableApertMacros, PlotParamDrillShape, PlotParamDxfImperialUnits, PlotParamDxfPolygonMode, PlotParamDxfUsePcbnewFont, PlotParamExcludeEdgeLayer, PlotParamHideDnpOnFab, PlotParamHpglPenDiameter, PlotParamHpglPenNumber, PlotParamHpglPenOverlay, PlotParamHpglPenSpeed, PlotParamLayerSelection, PlotParamLineWidth, PlotParamMirror, PlotParamMode, PlotParamOutputDirectory, PlotParamOutputFormat, PlotParamPadOnSilk, PlotParamPdfBackFpPropertyPopups, PlotParamPdfFrontFpPropertyPopups, PlotParamPdfMetadata, PlotParamPdfSingleDocument, PlotParamPlotBlackAndWhite, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolUnit, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
package/dist/index.js CHANGED
@@ -5868,6 +5868,38 @@ var FootprintAttr = class _FootprintAttr extends SxClass {
5868
5868
  };
5869
5869
  SxClass.register(FootprintAttr);
5870
5870
 
5871
+ // lib/sexpr/classes/FootprintVersion.ts
5872
+ var FootprintVersion = class extends SxPrimitiveNumber {
5873
+ static token = "version";
5874
+ static parentToken = "footprint";
5875
+ token = "version";
5876
+ };
5877
+ SxClass.register(FootprintVersion);
5878
+
5879
+ // lib/sexpr/classes/FootprintGenerator.ts
5880
+ var isSymbol = (value) => /^[A-Za-z0-9._-]+$/.test(value);
5881
+ var FootprintGenerator = class extends SxPrimitiveString {
5882
+ static token = "generator";
5883
+ static parentToken = "footprint";
5884
+ token = "generator";
5885
+ getString() {
5886
+ return `(generator ${isSymbol(this.value) ? this.value : quoteSExprString(this.value)})`;
5887
+ }
5888
+ };
5889
+ SxClass.register(FootprintGenerator);
5890
+
5891
+ // lib/sexpr/classes/FootprintGeneratorVersion.ts
5892
+ var isSymbol2 = (value) => /^[A-Za-z0-9._-]+$/.test(value);
5893
+ var FootprintGeneratorVersion = class extends SxPrimitiveString {
5894
+ static token = "generator_version";
5895
+ static parentToken = "footprint";
5896
+ token = "generator_version";
5897
+ getString() {
5898
+ return `(generator_version ${isSymbol2(this.value) ? this.value : quoteSExprString(this.value)})`;
5899
+ }
5900
+ };
5901
+ SxClass.register(FootprintGeneratorVersion);
5902
+
5871
5903
  // lib/sexpr/classes/FootprintAutoplaceCost180.ts
5872
5904
  var FootprintAutoplaceCost180 = class extends SxPrimitiveNumber {
5873
5905
  static token = "autoplace_cost180";
@@ -10584,6 +10616,9 @@ SxClass.register(FootprintPlaced);
10584
10616
 
10585
10617
  // lib/sexpr/classes/Footprint.ts
10586
10618
  var SINGLE_TOKENS2 = /* @__PURE__ */ new Set([
10619
+ "version",
10620
+ "generator",
10621
+ "generator_version",
10587
10622
  "layer",
10588
10623
  "locked",
10589
10624
  "placed",
@@ -10628,6 +10663,9 @@ var Footprint = class _Footprint extends SxClass {
10628
10663
  static token = "footprint";
10629
10664
  token = "footprint";
10630
10665
  _libraryLink;
10666
+ _sxVersion;
10667
+ _sxGenerator;
10668
+ _sxGeneratorVersion;
10631
10669
  _sxLocked;
10632
10670
  _sxPlaced;
10633
10671
  _sxLayer;
@@ -10667,6 +10705,10 @@ var Footprint = class _Footprint extends SxClass {
10667
10705
  constructor(params = {}) {
10668
10706
  super();
10669
10707
  if (params.libraryLink !== void 0) this.libraryLink = params.libraryLink;
10708
+ if (params.version !== void 0) this.version = params.version;
10709
+ if (params.generator !== void 0) this.generator = params.generator;
10710
+ if (params.generatorVersion !== void 0)
10711
+ this.generatorVersion = params.generatorVersion;
10670
10712
  if (params.locked !== void 0) this.locked = params.locked;
10671
10713
  if (params.placed !== void 0) this.placed = params.placed;
10672
10714
  if (params.layer !== void 0) this.layer = params.layer;
@@ -10753,6 +10795,9 @@ var Footprint = class _Footprint extends SxClass {
10753
10795
  );
10754
10796
  }
10755
10797
  }
10798
+ footprint._sxVersion = propertyMap.version;
10799
+ footprint._sxGenerator = propertyMap.generator;
10800
+ footprint._sxGeneratorVersion = propertyMap.generator_version;
10756
10801
  footprint._sxLocked = propertyMap.locked;
10757
10802
  if (footprint._sxLocked && !footprint._sxLocked.value) {
10758
10803
  footprint._sxLocked = void 0;
@@ -10823,6 +10868,36 @@ var Footprint = class _Footprint extends SxClass {
10823
10868
  set libraryLink(value) {
10824
10869
  this._libraryLink = value;
10825
10870
  }
10871
+ get version() {
10872
+ return this._sxVersion?.value;
10873
+ }
10874
+ set version(value) {
10875
+ if (value === void 0) {
10876
+ this._sxVersion = void 0;
10877
+ return;
10878
+ }
10879
+ this._sxVersion = value instanceof FootprintVersion ? value : new FootprintVersion(value);
10880
+ }
10881
+ get generator() {
10882
+ return this._sxGenerator?.value;
10883
+ }
10884
+ set generator(value) {
10885
+ if (value === void 0) {
10886
+ this._sxGenerator = void 0;
10887
+ return;
10888
+ }
10889
+ this._sxGenerator = value instanceof FootprintGenerator ? value : new FootprintGenerator(value);
10890
+ }
10891
+ get generatorVersion() {
10892
+ return this._sxGeneratorVersion?.value;
10893
+ }
10894
+ set generatorVersion(value) {
10895
+ if (value === void 0) {
10896
+ this._sxGeneratorVersion = void 0;
10897
+ return;
10898
+ }
10899
+ this._sxGeneratorVersion = value instanceof FootprintGeneratorVersion ? value : new FootprintGeneratorVersion(value);
10900
+ }
10826
10901
  get locked() {
10827
10902
  return this._sxLocked?.value ?? false;
10828
10903
  }
@@ -11152,6 +11227,9 @@ var Footprint = class _Footprint extends SxClass {
11152
11227
  }
11153
11228
  getChildren() {
11154
11229
  const children = [];
11230
+ if (this._sxVersion) children.push(this._sxVersion);
11231
+ if (this._sxGenerator) children.push(this._sxGenerator);
11232
+ if (this._sxGeneratorVersion) children.push(this._sxGeneratorVersion);
11155
11233
  if (this._sxLocked) children.push(this._sxLocked);
11156
11234
  if (this._sxPlaced) children.push(this._sxPlaced);
11157
11235
  if (this._sxLayer) children.push(this._sxLayer);
@@ -15839,25 +15917,25 @@ var PcbVersion = class extends SxPrimitiveNumber {
15839
15917
  SxClass.register(PcbVersion);
15840
15918
 
15841
15919
  // lib/sexpr/classes/PcbGenerator.ts
15842
- var isSymbol = (value) => /^[A-Za-z0-9._-]+$/.test(value);
15920
+ var isSymbol3 = (value) => /^[A-Za-z0-9._-]+$/.test(value);
15843
15921
  var PcbGenerator = class extends SxPrimitiveString {
15844
15922
  static token = "generator";
15845
15923
  static parentToken = "kicad_pcb";
15846
15924
  token = "generator";
15847
15925
  getString() {
15848
- return `(generator ${isSymbol(this.value) ? this.value : quoteSExprString(this.value)})`;
15926
+ return `(generator ${isSymbol3(this.value) ? this.value : quoteSExprString(this.value)})`;
15849
15927
  }
15850
15928
  };
15851
15929
  SxClass.register(PcbGenerator);
15852
15930
 
15853
15931
  // lib/sexpr/classes/PcbGeneratorVersion.ts
15854
- var isSymbol2 = (value) => /^[A-Za-z0-9._-]+$/.test(value);
15932
+ var isSymbol4 = (value) => /^[A-Za-z0-9._-]+$/.test(value);
15855
15933
  var PcbGeneratorVersion = class extends SxPrimitiveString {
15856
15934
  static token = "generator_version";
15857
15935
  static parentToken = "kicad_pcb";
15858
15936
  token = "generator_version";
15859
15937
  getString() {
15860
- return `(generator_version ${isSymbol2(this.value) ? this.value : quoteSExprString(this.value)})`;
15938
+ return `(generator_version ${isSymbol4(this.value) ? this.value : quoteSExprString(this.value)})`;
15861
15939
  }
15862
15940
  };
15863
15941
  SxClass.register(PcbGeneratorVersion);
@@ -16551,6 +16629,8 @@ export {
16551
16629
  FootprintAutoplaceCost90,
16552
16630
  FootprintClearance,
16553
16631
  FootprintDescr,
16632
+ FootprintGenerator,
16633
+ FootprintGeneratorVersion,
16554
16634
  FootprintLocked,
16555
16635
  FootprintModel,
16556
16636
  FootprintNetTiePadGroups,
@@ -16567,6 +16647,7 @@ export {
16567
16647
  FootprintTedit,
16568
16648
  FootprintThermalGap,
16569
16649
  FootprintThermalWidth,
16650
+ FootprintVersion,
16570
16651
  FootprintZoneConnect,
16571
16652
  FpArc,
16572
16653
  FpArcEnd,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kicadts",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.23",
4
+ "version": "0.0.24",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",