kicadts 0.0.51 → 0.0.52

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
@@ -3494,9 +3494,16 @@ declare class FpPoly extends SxClass {
3494
3494
  getChildren(): SxClass[];
3495
3495
  }
3496
3496
 
3497
+ declare class GroupId extends SxPrimitiveString {
3498
+ static token: string;
3499
+ static parentToken: string;
3500
+ token: string;
3501
+ }
3502
+
3497
3503
  interface GroupConstructorParams {
3498
3504
  name?: string;
3499
3505
  uuid?: string | Uuid;
3506
+ id?: string | GroupId;
3500
3507
  locked?: boolean;
3501
3508
  members?: string[];
3502
3509
  }
@@ -3505,6 +3512,7 @@ declare class Group extends SxClass {
3505
3512
  token: string;
3506
3513
  private _name;
3507
3514
  private _sxUuid?;
3515
+ private _sxId?;
3508
3516
  private _sxLocked?;
3509
3517
  private _sxMembers?;
3510
3518
  constructor(params?: GroupConstructorParams);
@@ -3514,6 +3522,9 @@ declare class Group extends SxClass {
3514
3522
  get uuid(): string | undefined;
3515
3523
  set uuid(value: string | Uuid | undefined);
3516
3524
  get uuidClass(): Uuid | undefined;
3525
+ get id(): string | undefined;
3526
+ set id(value: string | GroupId | undefined);
3527
+ get idClass(): GroupId | undefined;
3517
3528
  get locked(): boolean;
3518
3529
  set locked(value: boolean);
3519
3530
  get members(): string[];
@@ -5065,6 +5076,7 @@ interface GrPolyConstructorParams {
5065
5076
  fill?: GrPolyFill | boolean;
5066
5077
  net?: GrPolyNet | number;
5067
5078
  uuid?: Uuid | string;
5079
+ tstamp?: Tstamp | string;
5068
5080
  }
5069
5081
  declare class GrPoly extends SxClass {
5070
5082
  static token: string;
@@ -5076,6 +5088,7 @@ declare class GrPoly extends SxClass {
5076
5088
  private _sxFill?;
5077
5089
  private _sxNet?;
5078
5090
  private _sxUuid?;
5091
+ private _sxTstamp?;
5079
5092
  constructor(params?: GrPolyConstructorParams);
5080
5093
  static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): GrPoly;
5081
5094
  get points(): Pts | undefined;
@@ -5097,6 +5110,8 @@ declare class GrPoly extends SxClass {
5097
5110
  get uuid(): string | undefined;
5098
5111
  set uuid(value: Uuid | string | undefined);
5099
5112
  get uuidClass(): Uuid | undefined;
5113
+ get tstamp(): Tstamp | undefined;
5114
+ set tstamp(value: Tstamp | string | undefined);
5100
5115
  get net(): number | undefined;
5101
5116
  set net(value: GrPolyNet | number | undefined);
5102
5117
  getChildren(): SxClass[];
@@ -6446,6 +6461,27 @@ declare class ViaNet extends SxClass {
6446
6461
  getString(): string;
6447
6462
  }
6448
6463
 
6464
+ declare class ViaZoneLayerConnections extends SxClass {
6465
+ static token: string;
6466
+ static parentToken: string;
6467
+ token: string;
6468
+ layers: string[];
6469
+ constructor(layers?: string[]);
6470
+ static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): ViaZoneLayerConnections;
6471
+ getString(): string;
6472
+ }
6473
+
6474
+ declare class ViaTenting extends SxClass {
6475
+ static token: string;
6476
+ static parentToken: string;
6477
+ token: string;
6478
+ sides: string[];
6479
+ constructor(sides?: string[]);
6480
+ static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): ViaTenting;
6481
+ getString(): string;
6482
+ }
6483
+
6484
+ type ViaZoneLayerConnectionsInput = ViaZoneLayerConnections | string[];
6449
6485
  interface ViaConstructorParams {
6450
6486
  type?: string;
6451
6487
  locked?: boolean;
@@ -6464,6 +6500,8 @@ interface ViaConstructorParams {
6464
6500
  covering?: Covering;
6465
6501
  plugging?: Plugging;
6466
6502
  filling?: string | Filling;
6503
+ zoneLayerConnections?: ViaZoneLayerConnectionsInput;
6504
+ tenting?: ViaTenting | string[];
6467
6505
  }
6468
6506
  declare class Via extends SxClass {
6469
6507
  static token: string;
@@ -6485,6 +6523,8 @@ declare class Via extends SxClass {
6485
6523
  private _sxCovering?;
6486
6524
  private _sxPlugging?;
6487
6525
  private _sxFilling?;
6526
+ private _sxZoneLayerConnections?;
6527
+ private _sxTenting?;
6488
6528
  constructor(params?: ViaConstructorParams);
6489
6529
  static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): Via;
6490
6530
  private consumeBareToken;
@@ -6524,6 +6564,10 @@ declare class Via extends SxClass {
6524
6564
  set filling(value: string | Filling | undefined);
6525
6565
  get tstamp(): Tstamp | undefined;
6526
6566
  set tstamp(value: Tstamp | string | undefined);
6567
+ get zoneLayerConnections(): ViaZoneLayerConnections | undefined;
6568
+ set zoneLayerConnections(value: ViaZoneLayerConnectionsInput | undefined);
6569
+ get tenting(): ViaTenting | undefined;
6570
+ set tenting(value: ViaTenting | string[] | undefined);
6527
6571
  getChildren(): SxClass[];
6528
6572
  getString(): string;
6529
6573
  }
@@ -6649,4 +6693,4 @@ declare const parseKicadPcb: (sexpr: string) => KicadPcb;
6649
6693
  declare const parseKicadSym: (sexpr: string) => KicadSymbolLib;
6650
6694
  declare const parseKicadMod: (sexpr: string) => Footprint;
6651
6695
 
6652
- 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, GrArcNet, 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, KicadSym, 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, type PinElectricalType, type PinGraphicStyle, 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, SchematicArc, type SchematicArcConstructorParams, SchematicArcLocked, type SchematicArcPoint, SchematicPolyline, SchematicRectangle, type SchematicRectangleConstructorParams, type SchematicRectanglePoint, 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, SymbolPinAlternate, type SymbolPinAlternateConstructorParams, 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 ZoneConnectPadsMode, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneFilledPolygonIsland, ZoneHatch, ZoneKeepout, type ZoneKeepoutConstructorParams, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, type ZoneKeepoutRule, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneLocked, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr, parseKicadSym };
6696
+ 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, GrArcNet, 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, GroupId, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, InPosFiles, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSym, 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, type PinElectricalType, type PinGraphicStyle, 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, SchematicArc, type SchematicArcConstructorParams, SchematicArcLocked, type SchematicArcPoint, SchematicPolyline, SchematicRectangle, type SchematicRectangleConstructorParams, type SchematicRectanglePoint, 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, SymbolPinAlternate, type SymbolPinAlternateConstructorParams, 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, ViaTenting, ViaZoneLayerConnections, Width, Wire, type WireConstructorParams, Xy, Zone, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConnectPadsMode, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneFilledPolygonIsland, ZoneHatch, ZoneKeepout, type ZoneKeepoutConstructorParams, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, type ZoneKeepoutRule, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneLocked, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr, parseKicadSym };
package/dist/index.js CHANGED
@@ -11315,19 +11315,29 @@ var FpPoly = class _FpPoly extends SxClass {
11315
11315
  };
11316
11316
  SxClass.register(FpPoly);
11317
11317
 
11318
+ // lib/sexpr/classes/GroupId.ts
11319
+ var GroupId = class extends SxPrimitiveString {
11320
+ static token = "id";
11321
+ static parentToken = "group";
11322
+ token = "id";
11323
+ };
11324
+ SxClass.register(GroupId);
11325
+
11318
11326
  // lib/sexpr/classes/Group.ts
11319
- var SUPPORTED_SINGLE_TOKENS4 = /* @__PURE__ */ new Set(["uuid", "locked", "members"]);
11327
+ var SUPPORTED_SINGLE_TOKENS4 = /* @__PURE__ */ new Set(["uuid", "id", "locked", "members"]);
11320
11328
  var Group = class _Group extends SxClass {
11321
11329
  static token = "group";
11322
11330
  token = "group";
11323
11331
  _name = "";
11324
11332
  _sxUuid;
11333
+ _sxId;
11325
11334
  _sxLocked;
11326
11335
  _sxMembers;
11327
11336
  constructor(params = {}) {
11328
11337
  super();
11329
11338
  if (params.name !== void 0) this.name = params.name;
11330
11339
  if (params.uuid !== void 0) this.uuid = params.uuid;
11340
+ if (params.id !== void 0) this.id = params.id;
11331
11341
  if (params.locked !== void 0) this.locked = params.locked;
11332
11342
  if (params.members !== void 0) this.members = params.members;
11333
11343
  }
@@ -11369,6 +11379,7 @@ var Group = class _Group extends SxClass {
11369
11379
  );
11370
11380
  }
11371
11381
  group._sxUuid = propertyMap.uuid;
11382
+ group._sxId = propertyMap.id;
11372
11383
  const locked = propertyMap.locked;
11373
11384
  group._sxLocked = locked && locked.value ? locked : void 0;
11374
11385
  group._sxMembers = propertyMap.members;
@@ -11393,6 +11404,19 @@ var Group = class _Group extends SxClass {
11393
11404
  get uuidClass() {
11394
11405
  return this._sxUuid;
11395
11406
  }
11407
+ get id() {
11408
+ return this._sxId?.value;
11409
+ }
11410
+ set id(value) {
11411
+ if (value === void 0) {
11412
+ this._sxId = void 0;
11413
+ return;
11414
+ }
11415
+ this._sxId = value instanceof GroupId ? value : new GroupId(value);
11416
+ }
11417
+ get idClass() {
11418
+ return this._sxId;
11419
+ }
11396
11420
  get locked() {
11397
11421
  return this._sxLocked?.value ?? false;
11398
11422
  }
@@ -11411,6 +11435,7 @@ var Group = class _Group extends SxClass {
11411
11435
  getChildren() {
11412
11436
  const children = [];
11413
11437
  if (this._sxUuid) children.push(this._sxUuid);
11438
+ if (this._sxId) children.push(this._sxId);
11414
11439
  if (this._sxLocked) children.push(this._sxLocked);
11415
11440
  if (this._sxMembers) children.push(this._sxMembers);
11416
11441
  return children;
@@ -11422,6 +11447,7 @@ var Group = class _Group extends SxClass {
11422
11447
  lines.push(value.getStringIndented());
11423
11448
  };
11424
11449
  push(this._sxUuid);
11450
+ push(this._sxId);
11425
11451
  push(this._sxLocked);
11426
11452
  push(this._sxMembers);
11427
11453
  lines.push(")");
@@ -16256,7 +16282,8 @@ var SUPPORTED_TOKENS20 = /* @__PURE__ */ new Set([
16256
16282
  "stroke",
16257
16283
  "fill",
16258
16284
  "net",
16259
- "uuid"
16285
+ "uuid",
16286
+ "tstamp"
16260
16287
  ]);
16261
16288
  var GrPoly = class _GrPoly extends SxClass {
16262
16289
  static token = "gr_poly";
@@ -16268,6 +16295,7 @@ var GrPoly = class _GrPoly extends SxClass {
16268
16295
  _sxFill;
16269
16296
  _sxNet;
16270
16297
  _sxUuid;
16298
+ _sxTstamp;
16271
16299
  constructor(params = {}) {
16272
16300
  super();
16273
16301
  if (params.points !== void 0) this.points = params.points;
@@ -16277,6 +16305,7 @@ var GrPoly = class _GrPoly extends SxClass {
16277
16305
  if (params.fill !== void 0) this.fill = params.fill;
16278
16306
  if (params.net !== void 0) this.net = params.net;
16279
16307
  if (params.uuid !== void 0) this.uuid = params.uuid;
16308
+ if (params.tstamp !== void 0) this.tstamp = params.tstamp;
16280
16309
  }
16281
16310
  static fromSexprPrimitives(primitiveSexprs) {
16282
16311
  const grPoly = new _GrPoly();
@@ -16322,6 +16351,7 @@ var GrPoly = class _GrPoly extends SxClass {
16322
16351
  grPoly._sxFill = propertyMap.fill;
16323
16352
  grPoly._sxNet = propertyMap.net;
16324
16353
  grPoly._sxUuid = propertyMap.uuid;
16354
+ grPoly._sxTstamp = propertyMap.tstamp;
16325
16355
  for (const primitive of primitiveSexprs) {
16326
16356
  if (!Array.isArray(primitive) || primitive.length === 0) {
16327
16357
  throw new Error(
@@ -16444,6 +16474,16 @@ var GrPoly = class _GrPoly extends SxClass {
16444
16474
  get uuidClass() {
16445
16475
  return this._sxUuid;
16446
16476
  }
16477
+ get tstamp() {
16478
+ return this._sxTstamp;
16479
+ }
16480
+ set tstamp(value) {
16481
+ if (value === void 0) {
16482
+ this._sxTstamp = void 0;
16483
+ return;
16484
+ }
16485
+ this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
16486
+ }
16447
16487
  get net() {
16448
16488
  return this._sxNet?.id;
16449
16489
  }
@@ -16463,6 +16503,7 @@ var GrPoly = class _GrPoly extends SxClass {
16463
16503
  if (this._sxLayer) children.push(this._sxLayer);
16464
16504
  if (this._sxNet) children.push(this._sxNet);
16465
16505
  if (this._sxUuid) children.push(this._sxUuid);
16506
+ if (this._sxTstamp) children.push(this._sxTstamp);
16466
16507
  return children;
16467
16508
  }
16468
16509
  };
@@ -20080,6 +20121,59 @@ var ViaNet = class _ViaNet extends SxClass {
20080
20121
  };
20081
20122
  SxClass.register(ViaNet);
20082
20123
 
20124
+ // lib/sexpr/classes/ViaZoneLayerConnections.ts
20125
+ var ViaZoneLayerConnections = class _ViaZoneLayerConnections extends SxClass {
20126
+ static token = "zone_layer_connections";
20127
+ static parentToken = "via";
20128
+ token = "zone_layer_connections";
20129
+ layers;
20130
+ constructor(layers = []) {
20131
+ super();
20132
+ this.layers = layers;
20133
+ }
20134
+ static fromSexprPrimitives(primitiveSexprs) {
20135
+ const layers = primitiveSexprs.map((primitive) => {
20136
+ const layer = toStringValue(primitive);
20137
+ if (layer === void 0) {
20138
+ throw new Error("via zone_layer_connections expects layer name strings");
20139
+ }
20140
+ return layer;
20141
+ });
20142
+ return new _ViaZoneLayerConnections(layers);
20143
+ }
20144
+ getString() {
20145
+ const layers = this.layers.map(quoteSExprString).join(" ");
20146
+ return layers ? `(zone_layer_connections ${layers})` : "(zone_layer_connections)";
20147
+ }
20148
+ };
20149
+ SxClass.register(ViaZoneLayerConnections);
20150
+
20151
+ // lib/sexpr/classes/ViaTenting.ts
20152
+ var ViaTenting = class _ViaTenting extends SxClass {
20153
+ static token = "tenting";
20154
+ static parentToken = "via";
20155
+ token = "tenting";
20156
+ sides;
20157
+ constructor(sides = []) {
20158
+ super();
20159
+ this.sides = sides;
20160
+ }
20161
+ static fromSexprPrimitives(primitiveSexprs) {
20162
+ const sides = primitiveSexprs.map((primitive) => {
20163
+ const side = toStringValue(primitive);
20164
+ if (side === void 0) {
20165
+ throw new Error("via tenting expects side name strings");
20166
+ }
20167
+ return side;
20168
+ });
20169
+ return new _ViaTenting(sides);
20170
+ }
20171
+ getString() {
20172
+ return this.sides.length > 0 ? `(tenting ${this.sides.join(" ")})` : "(tenting)";
20173
+ }
20174
+ };
20175
+ SxClass.register(ViaTenting);
20176
+
20083
20177
  // lib/sexpr/classes/Via.ts
20084
20178
  var BARE_FLAGS = /* @__PURE__ */ new Set([
20085
20179
  "locked",
@@ -20107,6 +20201,8 @@ var Via = class _Via extends SxClass {
20107
20201
  _sxCovering;
20108
20202
  _sxPlugging;
20109
20203
  _sxFilling;
20204
+ _sxZoneLayerConnections;
20205
+ _sxTenting;
20110
20206
  constructor(params = {}) {
20111
20207
  super();
20112
20208
  if (params.type !== void 0) this.type = params.type;
@@ -20128,6 +20224,9 @@ var Via = class _Via extends SxClass {
20128
20224
  if (params.covering !== void 0) this.covering = params.covering;
20129
20225
  if (params.plugging !== void 0) this.plugging = params.plugging;
20130
20226
  if (params.filling !== void 0) this.filling = params.filling;
20227
+ if (params.zoneLayerConnections !== void 0)
20228
+ this.zoneLayerConnections = params.zoneLayerConnections;
20229
+ if (params.tenting !== void 0) this.tenting = params.tenting;
20131
20230
  }
20132
20231
  static fromSexprPrimitives(primitiveSexprs) {
20133
20232
  const via = new _Via();
@@ -20298,6 +20397,14 @@ var Via = class _Via extends SxClass {
20298
20397
  this._sxTstamp = new Tstamp(value);
20299
20398
  return;
20300
20399
  }
20400
+ case "zone_layer_connections": {
20401
+ this._sxZoneLayerConnections = ViaZoneLayerConnections.fromSexprPrimitives(args);
20402
+ return;
20403
+ }
20404
+ case "tenting": {
20405
+ this._sxTenting = ViaTenting.fromSexprPrimitives(args);
20406
+ return;
20407
+ }
20301
20408
  default:
20302
20409
  throw new Error(`via encountered unsupported child token "${token}"`);
20303
20410
  }
@@ -20432,10 +20539,33 @@ var Via = class _Via extends SxClass {
20432
20539
  }
20433
20540
  this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
20434
20541
  }
20542
+ get zoneLayerConnections() {
20543
+ return this._sxZoneLayerConnections;
20544
+ }
20545
+ set zoneLayerConnections(value) {
20546
+ if (value === void 0) {
20547
+ this._sxZoneLayerConnections = void 0;
20548
+ return;
20549
+ }
20550
+ this._sxZoneLayerConnections = value instanceof ViaZoneLayerConnections ? value : new ViaZoneLayerConnections(value);
20551
+ }
20552
+ get tenting() {
20553
+ return this._sxTenting;
20554
+ }
20555
+ set tenting(value) {
20556
+ if (value === void 0) {
20557
+ this._sxTenting = void 0;
20558
+ return;
20559
+ }
20560
+ this._sxTenting = value instanceof ViaTenting ? value : new ViaTenting(value);
20561
+ }
20435
20562
  getChildren() {
20436
20563
  const children = [];
20437
20564
  if (this._sxAt) children.push(this._sxAt);
20438
20565
  if (this._sxLayers) children.push(this._sxLayers);
20566
+ if (this._sxZoneLayerConnections)
20567
+ children.push(this._sxZoneLayerConnections);
20568
+ if (this._sxTenting) children.push(this._sxTenting);
20439
20569
  if (this._sxCapping) children.push(this._sxCapping);
20440
20570
  if (this._sxCovering) children.push(this._sxCovering);
20441
20571
  if (this._sxPlugging) children.push(this._sxPlugging);
@@ -20459,6 +20589,10 @@ var Via = class _Via extends SxClass {
20459
20589
  if (this._size !== void 0) lines.push(` (size ${this._size})`);
20460
20590
  if (this._drill !== void 0) lines.push(` (drill ${this._drill})`);
20461
20591
  if (this._sxLayers) lines.push(this._sxLayers.getStringIndented());
20592
+ if (this._sxZoneLayerConnections) {
20593
+ lines.push(this._sxZoneLayerConnections.getStringIndented());
20594
+ }
20595
+ if (this._sxTenting) lines.push(this._sxTenting.getStringIndented());
20462
20596
  if (this._sxCapping) lines.push(this._sxCapping.getStringIndented());
20463
20597
  if (this._sxCovering) lines.push(this._sxCovering.getStringIndented());
20464
20598
  if (this._sxPlugging) lines.push(this._sxPlugging.getStringIndented());
@@ -21013,6 +21147,7 @@ export {
21013
21147
  GrTextRenderCache,
21014
21148
  GrTextRenderCachePolygon,
21015
21149
  Group,
21150
+ GroupId,
21016
21151
  GroupLocked,
21017
21152
  GroupMembers,
21018
21153
  Image,
@@ -21286,6 +21421,8 @@ export {
21286
21421
  Uuid,
21287
21422
  Via,
21288
21423
  ViaNet,
21424
+ ViaTenting,
21425
+ ViaZoneLayerConnections,
21289
21426
  Width,
21290
21427
  Wire,
21291
21428
  Xy,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kicadts",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.51",
4
+ "version": "0.0.52",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",