kicadts 0.0.39 → 0.0.41

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
@@ -2082,6 +2082,12 @@ declare class FootprintSolderPasteRatio extends SxPrimitiveNumber {
2082
2082
  token: string;
2083
2083
  }
2084
2084
 
2085
+ declare class FootprintSolderPasteMarginRatio extends FootprintSolderPasteRatio {
2086
+ static token: string;
2087
+ static parentToken: string;
2088
+ token: string;
2089
+ }
2090
+
2085
2091
  declare class FootprintTags extends SxClass {
2086
2092
  static token: string;
2087
2093
  static parentToken: string;
@@ -4150,6 +4156,7 @@ interface FootprintConstructorParams {
4150
4156
  solderMaskMargin?: number | FootprintSolderMaskMargin;
4151
4157
  solderPasteMargin?: number | FootprintSolderPasteMargin;
4152
4158
  solderPasteRatio?: number | FootprintSolderPasteRatio;
4159
+ solderPasteMarginRatio?: number | FootprintSolderPasteMarginRatio;
4153
4160
  clearance?: number | FootprintClearance;
4154
4161
  zoneConnect?: number | FootprintZoneConnect;
4155
4162
  thermalWidth?: number | FootprintThermalWidth;
@@ -4268,6 +4275,8 @@ declare class Footprint extends SxClass {
4268
4275
  set solderPasteMargin(value: FootprintSolderPasteMargin | number | undefined);
4269
4276
  get solderPasteRatio(): FootprintSolderPasteRatio | undefined;
4270
4277
  set solderPasteRatio(value: FootprintSolderPasteRatio | number | undefined);
4278
+ get solderPasteMarginRatio(): FootprintSolderPasteMarginRatio | undefined;
4279
+ set solderPasteMarginRatio(value: FootprintSolderPasteMarginRatio | number | undefined);
4271
4280
  get clearance(): FootprintClearance | undefined;
4272
4281
  set clearance(value: FootprintClearance | number | undefined);
4273
4282
  get zoneConnect(): FootprintZoneConnect | undefined;
@@ -4676,6 +4685,7 @@ interface GrRectConstructorParams {
4676
4685
  width?: number | Width;
4677
4686
  stroke?: Stroke;
4678
4687
  fill?: boolean | GrRectFill;
4688
+ tstamp?: string | Tstamp;
4679
4689
  uuid?: string | Uuid;
4680
4690
  locked?: boolean;
4681
4691
  }
@@ -4688,6 +4698,7 @@ declare class GrRect extends SxClass {
4688
4698
  private _sxWidth?;
4689
4699
  private _sxStroke?;
4690
4700
  private _sxFill?;
4701
+ private _sxTstamp?;
4691
4702
  private _sxUuid?;
4692
4703
  private _sxLocked?;
4693
4704
  constructor(params?: GrRectConstructorParams);
@@ -4724,6 +4735,8 @@ declare class GrRect extends SxClass {
4724
4735
  get uuid(): string | undefined;
4725
4736
  set uuid(value: string | Uuid | undefined);
4726
4737
  get uuidClass(): Uuid | undefined;
4738
+ get tstamp(): Tstamp | undefined;
4739
+ set tstamp(value: string | Tstamp | undefined);
4727
4740
  get locked(): boolean;
4728
4741
  set locked(value: boolean);
4729
4742
  getChildren(): SxClass[];
@@ -4983,6 +4996,7 @@ declare class Dimension extends SxClass {
4983
4996
  private _sxLocked?;
4984
4997
  private _sxType?;
4985
4998
  private _sxLayer?;
4999
+ private _sxTstamp?;
4986
5000
  private _sxUuid?;
4987
5001
  private _sxPts?;
4988
5002
  private _sxHeight?;
@@ -5036,6 +5050,7 @@ interface PcbArcConstructorParams {
5036
5050
  layer?: string | Layer;
5037
5051
  net?: number | string;
5038
5052
  locked?: boolean;
5053
+ tstamp?: string | Tstamp;
5039
5054
  uuid?: string | Uuid;
5040
5055
  }
5041
5056
  declare class PcbArc extends SxClass {
@@ -5049,6 +5064,7 @@ declare class PcbArc extends SxClass {
5049
5064
  private _sxLayer?;
5050
5065
  private _net?;
5051
5066
  private _locked;
5067
+ private _sxTstamp?;
5052
5068
  private _sxUuid?;
5053
5069
  constructor(params?: PcbArcConstructorParams);
5054
5070
  static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): PcbArc;
@@ -5068,6 +5084,8 @@ declare class PcbArc extends SxClass {
5068
5084
  set locked(value: boolean);
5069
5085
  get uuid(): Uuid | undefined;
5070
5086
  set uuid(value: string | Uuid | undefined);
5087
+ get tstamp(): Tstamp | undefined;
5088
+ set tstamp(value: string | Tstamp | undefined);
5071
5089
  getChildren(): SxClass[];
5072
5090
  getString(): string;
5073
5091
  }
@@ -5335,6 +5353,8 @@ declare class PcbPlotParams extends SxClass {
5335
5353
  set dashed_line_dash_ratio(value: number | undefined);
5336
5354
  get dashed_line_gap_ratio(): number | undefined;
5337
5355
  set dashed_line_gap_ratio(value: number | undefined);
5356
+ get svguseinch(): string | undefined;
5357
+ set svguseinch(value: string | undefined);
5338
5358
  get svgprecision(): number | undefined;
5339
5359
  set svgprecision(value: number | undefined);
5340
5360
  get linewidth(): number | undefined;
@@ -5761,6 +5781,10 @@ declare class PlotParamCreateGerberJobFile extends PlotParamProperty<string> {
5761
5781
  static token: string;
5762
5782
  token: string;
5763
5783
  }
5784
+ declare class PlotParamSvgUseInch extends PlotParamProperty<string> {
5785
+ static token: string;
5786
+ token: string;
5787
+ }
5764
5788
  declare class PlotParamExcludeEdgeLayer extends PlotParamProperty<string> {
5765
5789
  static token: string;
5766
5790
  token: string;
@@ -6411,4 +6435,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
6411
6435
  declare const parseKicadPcb: (sexpr: string) => KicadPcb;
6412
6436
  declare const parseKicadMod: (sexpr: string) => Footprint;
6413
6437
 
6414
- export { At, type AtInput, Back, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Capping, Color, Covering, Dimension, DimensionFormat, DimensionStyle, Dnp, EmbeddedFile, EmbeddedFileChecksum, type EmbeddedFileConstructorParams, EmbeddedFileData, EmbeddedFileName, EmbeddedFileType, EmbeddedFiles, type EmbeddedFilesConstructorParams, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Filling, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintDuplicatePadNumbersAreJumpers, FootprintGenerator, FootprintGeneratorVersion, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPoint, FootprintPointSize, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintUnit, FootprintUnitName, FootprintUnitPins, FootprintUnits, FootprintVersion, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpCircleNet, FpCurve, type FpCurveConstructorParams, FpCurveLocked, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineNet, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectNet, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, Front, Generated, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcLocked, 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, GrPolyNet, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, GrTextLocked, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, InPosFiles, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibGeneratorVersion, 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, PadProperty, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, PadZoneLayerConnections, Paper, PcbArc, type PcbArcConstructorParams, type PcbArcPoint, 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, PlotParamPlotFpText, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Plugging, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyDoNotAutoplace, PropertyHide, PropertyShowName, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicRectangle, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, SchematicTextBox, 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, SymbolBodyStyle, SymbolBodyStyles, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolLibName, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolTextBox, SymbolUnit, Target, TextBoxFill, TextBoxSize, 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, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneFilledPolygonIsland, ZoneHatch, ZoneKeepout, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
6438
+ export { At, type AtInput, Back, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Capping, Color, Covering, Dimension, DimensionFormat, DimensionStyle, Dnp, EmbeddedFile, EmbeddedFileChecksum, type EmbeddedFileConstructorParams, EmbeddedFileData, EmbeddedFileName, EmbeddedFileType, EmbeddedFiles, type EmbeddedFilesConstructorParams, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Filling, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintDuplicatePadNumbersAreJumpers, FootprintGenerator, FootprintGeneratorVersion, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPoint, FootprintPointSize, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteMarginRatio, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintUnit, FootprintUnitName, FootprintUnitPins, FootprintUnits, FootprintVersion, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpCircleNet, FpCurve, type FpCurveConstructorParams, FpCurveLocked, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineNet, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectNet, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, Front, Generated, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcLocked, 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, GrPolyNet, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, GrTextLocked, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, InPosFiles, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibGeneratorVersion, 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, PadProperty, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, PadZoneLayerConnections, Paper, PcbArc, type PcbArcConstructorParams, type PcbArcPoint, 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, PlotParamPlotFpText, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamSvgUseInch, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Plugging, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyDoNotAutoplace, PropertyHide, PropertyShowName, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicRectangle, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, SchematicTextBox, 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, SymbolBodyStyle, SymbolBodyStyles, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolLibName, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolTextBox, SymbolUnit, Target, TextBoxFill, TextBoxSize, 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, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneFilledPolygonIsland, ZoneHatch, ZoneKeepout, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
package/dist/index.js CHANGED
@@ -6553,6 +6553,14 @@ var FootprintSolderPasteRatio = class extends SxPrimitiveNumber {
6553
6553
  };
6554
6554
  SxClass.register(FootprintSolderPasteRatio);
6555
6555
 
6556
+ // lib/sexpr/classes/FootprintSolderPasteMarginRatio.ts
6557
+ var FootprintSolderPasteMarginRatio = class extends FootprintSolderPasteRatio {
6558
+ static token = "solder_paste_margin_ratio";
6559
+ static parentToken = "footprint";
6560
+ token = "solder_paste_margin_ratio";
6561
+ };
6562
+ SxClass.register(FootprintSolderPasteMarginRatio);
6563
+
6556
6564
  // lib/sexpr/classes/FootprintTags.ts
6557
6565
  var FootprintTags = class _FootprintTags extends SxClass {
6558
6566
  static token = "tags";
@@ -13244,6 +13252,7 @@ var SINGLE_TOKENS5 = /* @__PURE__ */ new Set([
13244
13252
  "solder_mask_margin",
13245
13253
  "solder_paste_margin",
13246
13254
  "solder_paste_ratio",
13255
+ "solder_paste_margin_ratio",
13247
13256
  "clearance",
13248
13257
  "zone_connect",
13249
13258
  "thermal_width",
@@ -13351,6 +13360,8 @@ var Footprint = class _Footprint extends SxClass {
13351
13360
  this.solderPasteMargin = params.solderPasteMargin;
13352
13361
  if (params.solderPasteRatio !== void 0)
13353
13362
  this.solderPasteRatio = params.solderPasteRatio;
13363
+ if (params.solderPasteMarginRatio !== void 0)
13364
+ this.solderPasteMarginRatio = params.solderPasteMarginRatio;
13354
13365
  if (params.clearance !== void 0) this.clearance = params.clearance;
13355
13366
  if (params.zoneConnect !== void 0) this.zoneConnect = params.zoneConnect;
13356
13367
  if (params.thermalWidth !== void 0)
@@ -13455,7 +13466,14 @@ var Footprint = class _Footprint extends SxClass {
13455
13466
  footprint._sxAutoplaceCost180 = propertyMap.autoplace_cost180;
13456
13467
  footprint._sxSolderMaskMargin = propertyMap.solder_mask_margin;
13457
13468
  footprint._sxSolderPasteMargin = propertyMap.solder_paste_margin;
13458
- footprint._sxSolderPasteRatio = propertyMap.solder_paste_ratio;
13469
+ const solderPasteRatio = propertyMap.solder_paste_ratio;
13470
+ const solderPasteMarginRatio = propertyMap.solder_paste_margin_ratio;
13471
+ if (solderPasteRatio && solderPasteMarginRatio) {
13472
+ throw new Error(
13473
+ "footprint cannot include both solder_paste_ratio and solder_paste_margin_ratio children"
13474
+ );
13475
+ }
13476
+ footprint._sxSolderPasteRatio = solderPasteRatio ?? solderPasteMarginRatio;
13459
13477
  footprint._sxClearance = propertyMap.clearance;
13460
13478
  footprint._sxZoneConnect = propertyMap.zone_connect;
13461
13479
  footprint._sxThermalWidth = propertyMap.thermal_width;
@@ -13713,6 +13731,16 @@ var Footprint = class _Footprint extends SxClass {
13713
13731
  }
13714
13732
  this._sxSolderPasteRatio = value instanceof FootprintSolderPasteRatio ? value : new FootprintSolderPasteRatio(value);
13715
13733
  }
13734
+ get solderPasteMarginRatio() {
13735
+ return this._sxSolderPasteRatio instanceof FootprintSolderPasteMarginRatio ? this._sxSolderPasteRatio : void 0;
13736
+ }
13737
+ set solderPasteMarginRatio(value) {
13738
+ if (value === void 0) {
13739
+ this._sxSolderPasteRatio = void 0;
13740
+ return;
13741
+ }
13742
+ this._sxSolderPasteRatio = value instanceof FootprintSolderPasteMarginRatio ? value : new FootprintSolderPasteMarginRatio(value);
13743
+ }
13716
13744
  get clearance() {
13717
13745
  return this._sxClearance;
13718
13746
  }
@@ -15083,6 +15111,7 @@ var SUPPORTED_SINGLE_TOKENS10 = /* @__PURE__ */ new Set([
15083
15111
  "width",
15084
15112
  "stroke",
15085
15113
  "fill",
15114
+ "tstamp",
15086
15115
  "uuid",
15087
15116
  "locked"
15088
15117
  ]);
@@ -15095,6 +15124,7 @@ var GrRect = class _GrRect extends SxClass {
15095
15124
  _sxWidth;
15096
15125
  _sxStroke;
15097
15126
  _sxFill;
15127
+ _sxTstamp;
15098
15128
  _sxUuid;
15099
15129
  _sxLocked;
15100
15130
  constructor(params = {}) {
@@ -15105,6 +15135,7 @@ var GrRect = class _GrRect extends SxClass {
15105
15135
  if (params.width !== void 0) this.width = params.width;
15106
15136
  if (params.stroke !== void 0) this.stroke = params.stroke;
15107
15137
  if (params.fill !== void 0) this.fill = params.fill;
15138
+ if (params.tstamp !== void 0) this.tstamp = params.tstamp;
15108
15139
  if (params.uuid !== void 0) this.uuid = params.uuid;
15109
15140
  if (params.locked !== void 0) this.locked = params.locked;
15110
15141
  }
@@ -15145,6 +15176,7 @@ var GrRect = class _GrRect extends SxClass {
15145
15176
  grRect._sxWidth = propertyMap.width;
15146
15177
  grRect._sxStroke = propertyMap.stroke;
15147
15178
  grRect._sxFill = propertyMap.fill;
15179
+ grRect._sxTstamp = propertyMap.tstamp;
15148
15180
  const locked = propertyMap.locked;
15149
15181
  grRect._sxLocked = locked && locked.value ? locked : void 0;
15150
15182
  grRect._sxUuid = propertyMap.uuid;
@@ -15268,6 +15300,16 @@ var GrRect = class _GrRect extends SxClass {
15268
15300
  get uuidClass() {
15269
15301
  return this._sxUuid;
15270
15302
  }
15303
+ get tstamp() {
15304
+ return this._sxTstamp;
15305
+ }
15306
+ set tstamp(value) {
15307
+ if (value === void 0) {
15308
+ this._sxTstamp = void 0;
15309
+ return;
15310
+ }
15311
+ this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
15312
+ }
15271
15313
  get locked() {
15272
15314
  return this._sxLocked?.value ?? false;
15273
15315
  }
@@ -15283,6 +15325,7 @@ var GrRect = class _GrRect extends SxClass {
15283
15325
  if (this._sxFill) children.push(this._sxFill);
15284
15326
  if (this._sxLocked) children.push(this._sxLocked);
15285
15327
  if (this._sxLayer) children.push(this._sxLayer);
15328
+ if (this._sxTstamp) children.push(this._sxTstamp);
15286
15329
  if (this._sxUuid) children.push(this._sxUuid);
15287
15330
  return children;
15288
15331
  }
@@ -16377,6 +16420,7 @@ var SUPPORTED_TOKENS22 = /* @__PURE__ */ new Set([
16377
16420
  "locked",
16378
16421
  "type",
16379
16422
  "layer",
16423
+ "tstamp",
16380
16424
  "uuid",
16381
16425
  "pts",
16382
16426
  "height",
@@ -16393,6 +16437,7 @@ var Dimension = class _Dimension extends SxClass {
16393
16437
  _sxLocked;
16394
16438
  _sxType;
16395
16439
  _sxLayer;
16440
+ _sxTstamp;
16396
16441
  _sxUuid;
16397
16442
  _sxPts;
16398
16443
  _sxHeight;
@@ -16424,6 +16469,7 @@ var Dimension = class _Dimension extends SxClass {
16424
16469
  dimension._sxLocked = propertyMap.locked;
16425
16470
  dimension._sxType = propertyMap.type;
16426
16471
  dimension._sxLayer = propertyMap.layer;
16472
+ dimension._sxTstamp = propertyMap.tstamp;
16427
16473
  dimension._sxUuid = propertyMap.uuid;
16428
16474
  dimension._sxPts = propertyMap.pts;
16429
16475
  dimension._sxHeight = propertyMap.height;
@@ -16438,8 +16484,8 @@ var Dimension = class _Dimension extends SxClass {
16438
16484
  if (!dimension._sxLayer) {
16439
16485
  throw new Error("dimension requires a layer child token");
16440
16486
  }
16441
- if (!dimension._sxUuid) {
16442
- throw new Error("dimension requires a uuid child token");
16487
+ if (!dimension._sxUuid && !dimension._sxTstamp) {
16488
+ throw new Error("dimension requires a uuid or tstamp child token");
16443
16489
  }
16444
16490
  if (!dimension._sxPts) {
16445
16491
  throw new Error("dimension requires a pts child token");
@@ -16454,6 +16500,7 @@ var Dimension = class _Dimension extends SxClass {
16454
16500
  if (this._sxLocked) children.push(this._sxLocked);
16455
16501
  if (this._sxType) children.push(this._sxType);
16456
16502
  if (this._sxLayer) children.push(this._sxLayer);
16503
+ if (this._sxTstamp) children.push(this._sxTstamp);
16457
16504
  if (this._sxUuid) children.push(this._sxUuid);
16458
16505
  if (this._sxPts) children.push(this._sxPts);
16459
16506
  if (this._sxHeight) children.push(this._sxHeight);
@@ -16608,6 +16655,7 @@ var PcbArc = class _PcbArc extends SxClass {
16608
16655
  _sxLayer;
16609
16656
  _net;
16610
16657
  _locked = false;
16658
+ _sxTstamp;
16611
16659
  _sxUuid;
16612
16660
  constructor(params = {}) {
16613
16661
  super();
@@ -16618,6 +16666,7 @@ var PcbArc = class _PcbArc extends SxClass {
16618
16666
  if (params.layer !== void 0) this.layer = params.layer;
16619
16667
  if (params.net !== void 0) this.net = params.net;
16620
16668
  if (params.locked !== void 0) this.locked = params.locked;
16669
+ if (params.tstamp !== void 0) this.tstamp = params.tstamp;
16621
16670
  if (params.uuid !== void 0) this.uuid = params.uuid;
16622
16671
  }
16623
16672
  static fromSexprPrimitives(primitiveSexprs) {
@@ -16662,6 +16711,10 @@ var PcbArc = class _PcbArc extends SxClass {
16662
16711
  arc._sxUuid = new Uuid(parseString(args[0], "uuid"));
16663
16712
  continue;
16664
16713
  }
16714
+ if (token === "tstamp") {
16715
+ arc._sxTstamp = new Tstamp(parseString(args[0], "tstamp"));
16716
+ continue;
16717
+ }
16665
16718
  throw new Error(`arc encountered unsupported child token "${token}"`);
16666
16719
  }
16667
16720
  if (!arc._start || !arc._mid || !arc._end) {
@@ -16732,6 +16785,16 @@ var PcbArc = class _PcbArc extends SxClass {
16732
16785
  }
16733
16786
  this._sxUuid = value instanceof Uuid ? value : new Uuid(value);
16734
16787
  }
16788
+ get tstamp() {
16789
+ return this._sxTstamp;
16790
+ }
16791
+ set tstamp(value) {
16792
+ if (value === void 0) {
16793
+ this._sxTstamp = void 0;
16794
+ return;
16795
+ }
16796
+ this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
16797
+ }
16735
16798
  getChildren() {
16736
16799
  return [];
16737
16800
  }
@@ -16747,6 +16810,7 @@ var PcbArc = class _PcbArc extends SxClass {
16747
16810
  const netValue = typeof this._net === "number" ? String(this._net) : quoteSExprString(this._net);
16748
16811
  lines.push(` (net ${netValue})`);
16749
16812
  }
16813
+ if (this._sxTstamp) lines.push(this._sxTstamp.getStringIndented());
16750
16814
  if (this._sxUuid) lines.push(this._sxUuid.getStringIndented());
16751
16815
  lines.push(")");
16752
16816
  return lines.join("\n");
@@ -17475,6 +17539,11 @@ var PlotParamCreateGerberJobFile = class extends PlotParamProperty {
17475
17539
  token = "creategerberjobfile";
17476
17540
  };
17477
17541
  SxClass.register(PlotParamCreateGerberJobFile);
17542
+ var PlotParamSvgUseInch = class extends PlotParamProperty {
17543
+ static token = "svguseinch";
17544
+ token = "svguseinch";
17545
+ };
17546
+ SxClass.register(PlotParamSvgUseInch);
17478
17547
  var PlotParamExcludeEdgeLayer = class extends PlotParamProperty {
17479
17548
  static token = "excludeedgelayer";
17480
17549
  token = "excludeedgelayer";
@@ -17636,6 +17705,7 @@ var TOKEN_TO_KEY = {
17636
17705
  excludeedgelayer: "excludeedgelayer",
17637
17706
  dashed_line_dash_ratio: "dashed_line_dash_ratio",
17638
17707
  dashed_line_gap_ratio: "dashed_line_gap_ratio",
17708
+ svguseinch: "svguseinch",
17639
17709
  svgprecision: "svgprecision",
17640
17710
  linewidth: "linewidth",
17641
17711
  plotframeref: "plotframeref",
@@ -17687,6 +17757,7 @@ var PCB_PLOT_PARAM_CHILD_ORDER = [
17687
17757
  "excludeedgelayer",
17688
17758
  "dashed_line_dash_ratio",
17689
17759
  "dashed_line_gap_ratio",
17760
+ "svguseinch",
17690
17761
  "svgprecision",
17691
17762
  "linewidth",
17692
17763
  "plotframeref",
@@ -17877,6 +17948,12 @@ var PcbPlotParams = class _PcbPlotParams extends SxClass {
17877
17948
  PlotParamDashedLineGapRatio
17878
17949
  );
17879
17950
  }
17951
+ get svguseinch() {
17952
+ return this._properties.svguseinch?.value;
17953
+ }
17954
+ set svguseinch(value) {
17955
+ this.setStringProperty("svguseinch", value, PlotParamSvgUseInch);
17956
+ }
17880
17957
  get svgprecision() {
17881
17958
  return this._properties.svgprecision?.value;
17882
17959
  }
@@ -20424,6 +20501,7 @@ export {
20424
20501
  FootprintSheetname,
20425
20502
  FootprintSolderMaskMargin,
20426
20503
  FootprintSolderPasteMargin,
20504
+ FootprintSolderPasteMarginRatio,
20427
20505
  FootprintSolderPasteRatio,
20428
20506
  FootprintTags,
20429
20507
  FootprintTedit,
@@ -20606,6 +20684,7 @@ export {
20606
20684
  PlotParamSketchPadsOnFab,
20607
20685
  PlotParamSubtractMaskFromSilk,
20608
20686
  PlotParamSvgPrecision,
20687
+ PlotParamSvgUseInch,
20609
20688
  PlotParamUseAuxOrigin,
20610
20689
  PlotParamUseGerberAdvancedAttributes,
20611
20690
  PlotParamUseGerberAttributes,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kicadts",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.39",
4
+ "version": "0.0.41",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",