kicadts 0.0.23 → 0.0.25

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;
@@ -5157,6 +5189,7 @@ interface KicadPcbConstructorParams {
5157
5189
  graphicRects?: GrRect[];
5158
5190
  vias?: Via[];
5159
5191
  zones?: Zone[];
5192
+ embeddedFonts?: EmbeddedFonts;
5160
5193
  otherChildren?: SxClass[];
5161
5194
  }
5162
5195
  declare class KicadPcb extends SxClass {
@@ -5181,6 +5214,7 @@ declare class KicadPcb extends SxClass {
5181
5214
  private _grRects;
5182
5215
  private _vias;
5183
5216
  private _zones;
5217
+ private _sxEmbeddedFonts?;
5184
5218
  private _otherChildren;
5185
5219
  constructor(params?: KicadPcbConstructorParams);
5186
5220
  static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): KicadPcb;
@@ -5223,6 +5257,8 @@ declare class KicadPcb extends SxClass {
5223
5257
  set vias(value: Via[]);
5224
5258
  get zones(): Zone[];
5225
5259
  set zones(value: Zone[]);
5260
+ get embeddedFonts(): EmbeddedFonts | undefined;
5261
+ set embeddedFonts(value: EmbeddedFonts | undefined);
5226
5262
  get otherChildren(): SxClass[];
5227
5263
  set otherChildren(value: SxClass[]);
5228
5264
  getChildren(): SxClass[];
@@ -5233,4 +5269,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
5233
5269
  declare const parseKicadPcb: (sexpr: string) => KicadPcb;
5234
5270
  declare const parseKicadMod: (sexpr: string) => Footprint;
5235
5271
 
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 };
5272
+ 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
@@ -799,7 +799,7 @@ var TextEffects = class _TextEffects extends SxClass {
799
799
  const effects = new _TextEffects();
800
800
  const { propertyMap } = SxClass.parsePrimitivesToClassProperties(
801
801
  primitiveSexprs,
802
- this.token
802
+ _TextEffects.token
803
803
  );
804
804
  effects._sxFont = propertyMap.font;
805
805
  effects._sxJustify = propertyMap.justify;
@@ -906,7 +906,7 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
906
906
  const font = new _TextEffectsFont();
907
907
  const { propertyMap } = SxClass.parsePrimitivesToClassProperties(
908
908
  primitiveSexprs,
909
- this.token
909
+ _TextEffectsFont.token
910
910
  );
911
911
  font._sxFace = propertyMap.face;
912
912
  font._sxSize = propertyMap.size;
@@ -1026,7 +1026,7 @@ var TextEffectsFontBold = class extends SxPrimitiveBoolean {
1026
1026
  super(value ?? true);
1027
1027
  }
1028
1028
  getString() {
1029
- return this.value ? "bold" : "";
1029
+ return `(bold ${this.value ? "yes" : "no"})`;
1030
1030
  }
1031
1031
  };
1032
1032
  SxClass.register(TextEffectsFontBold);
@@ -1038,7 +1038,7 @@ var TextEffectsFontItalic = class extends SxPrimitiveBoolean {
1038
1038
  super(value ?? true);
1039
1039
  }
1040
1040
  getString() {
1041
- return this.value ? "italic" : "";
1041
+ return `(italic ${this.value ? "yes" : "no"})`;
1042
1042
  }
1043
1043
  };
1044
1044
  SxClass.register(TextEffectsFontItalic);
@@ -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);
@@ -16228,6 +16306,7 @@ var KicadPcb = class _KicadPcb extends SxClass {
16228
16306
  _grRects = [];
16229
16307
  _vias = [];
16230
16308
  _zones = [];
16309
+ _sxEmbeddedFonts;
16231
16310
  _otherChildren = [];
16232
16311
  constructor(params = {}) {
16233
16312
  super();
@@ -16255,6 +16334,8 @@ var KicadPcb = class _KicadPcb extends SxClass {
16255
16334
  this.graphicRects = params.graphicRects;
16256
16335
  if (params.vias !== void 0) this.vias = params.vias;
16257
16336
  if (params.zones !== void 0) this.zones = params.zones;
16337
+ if (params.embeddedFonts !== void 0)
16338
+ this.embeddedFonts = params.embeddedFonts;
16258
16339
  if (params.otherChildren !== void 0)
16259
16340
  this.otherChildren = params.otherChildren;
16260
16341
  }
@@ -16267,7 +16348,7 @@ var KicadPcb = class _KicadPcb extends SxClass {
16267
16348
  );
16268
16349
  }
16269
16350
  const parsed = SxClass.parsePrimitiveSexpr(primitive, {
16270
- parentToken: this.token
16351
+ parentToken: _KicadPcb.token
16271
16352
  });
16272
16353
  if (!(parsed instanceof SxClass)) {
16273
16354
  throw new Error(
@@ -16355,6 +16436,10 @@ var KicadPcb = class _KicadPcb extends SxClass {
16355
16436
  this._zones.push(child);
16356
16437
  return;
16357
16438
  }
16439
+ if (child instanceof EmbeddedFonts) {
16440
+ this._sxEmbeddedFonts = child;
16441
+ return;
16442
+ }
16358
16443
  this._otherChildren.push(child);
16359
16444
  }
16360
16445
  get version() {
@@ -16471,6 +16556,12 @@ var KicadPcb = class _KicadPcb extends SxClass {
16471
16556
  set zones(value) {
16472
16557
  this._zones = [...value];
16473
16558
  }
16559
+ get embeddedFonts() {
16560
+ return this._sxEmbeddedFonts;
16561
+ }
16562
+ set embeddedFonts(value) {
16563
+ this._sxEmbeddedFonts = value;
16564
+ }
16474
16565
  get otherChildren() {
16475
16566
  return [...this._otherChildren];
16476
16567
  }
@@ -16498,6 +16589,7 @@ var KicadPcb = class _KicadPcb extends SxClass {
16498
16589
  children.push(...this._grRects);
16499
16590
  children.push(...this._vias);
16500
16591
  children.push(...this._zones);
16592
+ if (this._sxEmbeddedFonts) children.push(this._sxEmbeddedFonts);
16501
16593
  children.push(...this._otherChildren);
16502
16594
  return children;
16503
16595
  }
@@ -16551,6 +16643,8 @@ export {
16551
16643
  FootprintAutoplaceCost90,
16552
16644
  FootprintClearance,
16553
16645
  FootprintDescr,
16646
+ FootprintGenerator,
16647
+ FootprintGeneratorVersion,
16554
16648
  FootprintLocked,
16555
16649
  FootprintModel,
16556
16650
  FootprintNetTiePadGroups,
@@ -16567,6 +16661,7 @@ export {
16567
16661
  FootprintTedit,
16568
16662
  FootprintThermalGap,
16569
16663
  FootprintThermalWidth,
16664
+ FootprintVersion,
16570
16665
  FootprintZoneConnect,
16571
16666
  FpArc,
16572
16667
  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.25",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",