kicadts 0.0.14 → 0.0.16

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
@@ -187,7 +187,7 @@ declare class TextEffects extends SxClass {
187
187
  getChildren(): SxClass[];
188
188
  getString(): string;
189
189
  }
190
- type TextEffectsFontProperty = TextEffectsFontFace | TextEffectsFontSize | TextEffectsFontThickness | TextEffectsFontLineSpacing;
190
+ type TextEffectsFontProperty = TextEffectsFontFace | TextEffectsFontSize | TextEffectsFontThickness | TextEffectsFontLineSpacing | TextEffectsFontBold | TextEffectsFontItalic;
191
191
  declare class TextEffectsFont extends SxClass {
192
192
  static token: string;
193
193
  static parentToken: string;
@@ -196,8 +196,8 @@ declare class TextEffectsFont extends SxClass {
196
196
  _sxSize?: TextEffectsFontSize;
197
197
  _sxThickness?: TextEffectsFontThickness;
198
198
  _sxLineSpacing?: TextEffectsFontLineSpacing;
199
- private _bold;
200
- private _italic;
199
+ _sxBold?: TextEffectsFontBold;
200
+ _sxItalic?: TextEffectsFontItalic;
201
201
  get face(): string | undefined;
202
202
  set face(value: string | undefined);
203
203
  get size(): {
@@ -245,6 +245,20 @@ declare class TextEffectsFontThickness extends SxPrimitiveNumber {
245
245
  static parentToken: string;
246
246
  token: string;
247
247
  }
248
+ declare class TextEffectsFontBold extends SxPrimitiveBoolean {
249
+ static token: string;
250
+ static parentToken: string;
251
+ token: string;
252
+ constructor(value?: boolean);
253
+ getString(): string;
254
+ }
255
+ declare class TextEffectsFontItalic extends SxPrimitiveBoolean {
256
+ static token: string;
257
+ static parentToken: string;
258
+ token: string;
259
+ constructor(value?: boolean);
260
+ getString(): string;
261
+ }
248
262
  declare class TextEffectsFontLineSpacing extends SxPrimitiveNumber {
249
263
  static token: string;
250
264
  static parentToken: string;
@@ -1577,6 +1591,7 @@ interface KicadSchConstructorParams {
1577
1591
  globalLabels?: GlobalLabel[];
1578
1592
  wires?: Wire[];
1579
1593
  junctions?: Junction[];
1594
+ noConnects?: NoConnect[];
1580
1595
  }
1581
1596
  declare class KicadSch extends SxClass {
1582
1597
  static token: string;
@@ -1599,6 +1614,7 @@ declare class KicadSch extends SxClass {
1599
1614
  private _globalLabels;
1600
1615
  private _wires;
1601
1616
  private _junctions;
1617
+ private _noConnects;
1602
1618
  constructor(params?: KicadSchConstructorParams);
1603
1619
  static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): KicadSch;
1604
1620
  get version(): number | undefined;
@@ -1637,6 +1653,8 @@ declare class KicadSch extends SxClass {
1637
1653
  set junctions(value: Junction[]);
1638
1654
  get wires(): Wire[];
1639
1655
  set wires(value: Wire[]);
1656
+ get noConnects(): NoConnect[];
1657
+ set noConnects(value: NoConnect[]);
1640
1658
  getChildren(): SxClass[];
1641
1659
  }
1642
1660
 
@@ -4782,4 +4800,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
4782
4800
  declare const parseKicadPcb: (sexpr: string) => KicadPcb;
4783
4801
  declare const parseKicadMod: (sexpr: string) => Footprint;
4784
4802
 
4785
- 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, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrText, type GrTextConstructorParams, type GrTextPosition, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, 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, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, type RGBAColor, RenderCache, 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, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolUnit, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontFace, 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 };
4803
+ 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, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrText, type GrTextConstructorParams, type GrTextPosition, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, 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, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, type RGBAColor, RenderCache, 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, 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
@@ -711,8 +711,8 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
711
711
  _sxSize;
712
712
  _sxThickness;
713
713
  _sxLineSpacing;
714
- _bold = false;
715
- _italic = false;
714
+ _sxBold;
715
+ _sxItalic;
716
716
  get face() {
717
717
  return this._sxFace?.value;
718
718
  }
@@ -747,16 +747,16 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
747
747
  this._sxLineSpacing = value === void 0 ? void 0 : new TextEffectsFontLineSpacing(value);
748
748
  }
749
749
  get bold() {
750
- return this._bold;
750
+ return this._sxBold?.value ?? false;
751
751
  }
752
752
  set bold(value) {
753
- this._bold = value;
753
+ this._sxBold = value ? new TextEffectsFontBold(value) : void 0;
754
754
  }
755
755
  get italic() {
756
- return this._italic;
756
+ return this._sxItalic?.value ?? false;
757
757
  }
758
758
  set italic(value) {
759
- this._italic = value;
759
+ this._sxItalic = value ? new TextEffectsFontItalic(value) : void 0;
760
760
  }
761
761
  static fromSexprPrimitives(primitiveSexprs) {
762
762
  const font = new _TextEffectsFont();
@@ -768,14 +768,16 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
768
768
  font._sxSize = propertyMap.size;
769
769
  font._sxThickness = propertyMap.thickness;
770
770
  font._sxLineSpacing = propertyMap.line_spacing;
771
+ font._sxBold = propertyMap.bold;
772
+ font._sxItalic = propertyMap.italic;
771
773
  for (const primitive of primitiveSexprs) {
772
774
  if (typeof primitive === "string") {
773
775
  if (primitive === "bold") {
774
- font._bold = true;
776
+ font._sxBold = new TextEffectsFontBold(true);
775
777
  continue;
776
778
  }
777
779
  if (primitive === "italic") {
778
- font._italic = true;
780
+ font._sxItalic = new TextEffectsFontItalic(true);
779
781
  continue;
780
782
  }
781
783
  throw new Error(`Unknown font token: ${primitive}`);
@@ -794,6 +796,8 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
794
796
  if (this._sxFace) children.push(this._sxFace);
795
797
  if (this._sxSize) children.push(this._sxSize);
796
798
  if (this._sxThickness) children.push(this._sxThickness);
799
+ if (this._sxBold) children.push(this._sxBold);
800
+ if (this._sxItalic) children.push(this._sxItalic);
797
801
  if (this._sxLineSpacing) children.push(this._sxLineSpacing);
798
802
  return children;
799
803
  }
@@ -808,11 +812,11 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
808
812
  if (this._sxThickness) {
809
813
  lines.push(this._sxThickness.getStringIndented());
810
814
  }
811
- if (this._bold) {
812
- lines.push(" bold");
815
+ if (this._sxBold) {
816
+ lines.push(this._sxBold.getStringIndented());
813
817
  }
814
- if (this._italic) {
815
- lines.push(" italic");
818
+ if (this._sxItalic) {
819
+ lines.push(this._sxItalic.getStringIndented());
816
820
  }
817
821
  if (this._sxLineSpacing) {
818
822
  lines.push(this._sxLineSpacing.getStringIndented());
@@ -870,6 +874,30 @@ var TextEffectsFontThickness = class extends SxPrimitiveNumber {
870
874
  token = "thickness";
871
875
  };
872
876
  SxClass.register(TextEffectsFontThickness);
877
+ var TextEffectsFontBold = class extends SxPrimitiveBoolean {
878
+ static token = "bold";
879
+ static parentToken = "font";
880
+ token = "bold";
881
+ constructor(value) {
882
+ super(value ?? true);
883
+ }
884
+ getString() {
885
+ return this.value ? "bold" : "";
886
+ }
887
+ };
888
+ SxClass.register(TextEffectsFontBold);
889
+ var TextEffectsFontItalic = class extends SxPrimitiveBoolean {
890
+ static token = "italic";
891
+ static parentToken = "font";
892
+ token = "italic";
893
+ constructor(value) {
894
+ super(value ?? true);
895
+ }
896
+ getString() {
897
+ return this.value ? "italic" : "";
898
+ }
899
+ };
900
+ SxClass.register(TextEffectsFontItalic);
873
901
  var TextEffectsHide = class extends SxPrimitiveBoolean {
874
902
  static token = "hide";
875
903
  static parentToken = "effects";
@@ -3502,11 +3530,15 @@ var NoConnect = class _NoConnect extends SxClass {
3502
3530
  static fromSexprPrimitives(primitiveSexprs) {
3503
3531
  const noConnect = new _NoConnect();
3504
3532
  const { propertyMap, arrayPropertyMap } = SxClass.parsePrimitivesToClassProperties(primitiveSexprs, this.token);
3505
- if (Object.keys(arrayPropertyMap).length > 0) {
3506
- const tokens = Object.keys(arrayPropertyMap).join(", ");
3507
- throw new Error(
3508
- `no_connect does not support repeated child tokens: ${tokens}`
3509
- );
3533
+ for (const token of Object.keys(arrayPropertyMap)) {
3534
+ if (!SUPPORTED_TOKENS3.has(token)) {
3535
+ continue;
3536
+ }
3537
+ if (arrayPropertyMap[token].length > 1) {
3538
+ throw new Error(
3539
+ `no_connect does not support repeated child tokens: ${token}`
3540
+ );
3541
+ }
3510
3542
  }
3511
3543
  const unsupportedTokens = Object.keys(propertyMap).filter(
3512
3544
  (token) => !SUPPORTED_TOKENS3.has(token)
@@ -5054,6 +5086,7 @@ var MULTI_CHILD_TOKENS = /* @__PURE__ */ new Set([
5054
5086
  "global_label",
5055
5087
  "junction",
5056
5088
  "wire",
5089
+ "no_connect",
5057
5090
  "sheet_instances"
5058
5091
  ]);
5059
5092
  var SUPPORTED_CHILD_TOKENS2 = /* @__PURE__ */ new Set([
@@ -5081,6 +5114,7 @@ var KicadSch = class _KicadSch extends SxClass {
5081
5114
  _globalLabels = [];
5082
5115
  _wires = [];
5083
5116
  _junctions = [];
5117
+ _noConnects = [];
5084
5118
  constructor(params = {}) {
5085
5119
  super();
5086
5120
  if (params.version instanceof KicadSchVersion) {
@@ -5143,6 +5177,9 @@ var KicadSch = class _KicadSch extends SxClass {
5143
5177
  if (params.junctions !== void 0) {
5144
5178
  this.junctions = params.junctions;
5145
5179
  }
5180
+ if (params.noConnects !== void 0) {
5181
+ this.noConnects = params.noConnects;
5182
+ }
5146
5183
  }
5147
5184
  static fromSexprPrimitives(primitiveSexprs) {
5148
5185
  for (const primitive of primitiveSexprs) {
@@ -5195,7 +5232,8 @@ var KicadSch = class _KicadSch extends SxClass {
5195
5232
  labels: arrayPropertyMap.label ?? [],
5196
5233
  globalLabels: arrayPropertyMap.global_label ?? [],
5197
5234
  junctions: arrayPropertyMap.junction ?? [],
5198
- wires: arrayPropertyMap.wire ?? []
5235
+ wires: arrayPropertyMap.wire ?? [],
5236
+ noConnects: arrayPropertyMap.no_connect ?? []
5199
5237
  });
5200
5238
  }
5201
5239
  get version() {
@@ -5314,6 +5352,12 @@ var KicadSch = class _KicadSch extends SxClass {
5314
5352
  set wires(value) {
5315
5353
  this._wires = [...value];
5316
5354
  }
5355
+ get noConnects() {
5356
+ return [...this._noConnects];
5357
+ }
5358
+ set noConnects(value) {
5359
+ this._noConnects = [...value];
5360
+ }
5317
5361
  getChildren() {
5318
5362
  const children = [];
5319
5363
  if (this._sxVersion) children.push(this._sxVersion);
@@ -5334,6 +5378,7 @@ var KicadSch = class _KicadSch extends SxClass {
5334
5378
  children.push(...this._globalLabels);
5335
5379
  children.push(...this._junctions);
5336
5380
  children.push(...this._wires);
5381
+ children.push(...this._noConnects);
5337
5382
  return children;
5338
5383
  }
5339
5384
  };
@@ -15463,7 +15508,9 @@ export {
15463
15508
  SymbolUnit,
15464
15509
  TextEffects,
15465
15510
  TextEffectsFont,
15511
+ TextEffectsFontBold,
15466
15512
  TextEffectsFontFace,
15513
+ TextEffectsFontItalic,
15467
15514
  TextEffectsFontLineSpacing,
15468
15515
  TextEffectsFontSize,
15469
15516
  TextEffectsFontThickness,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kicadts",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.14",
4
+ "version": "0.0.16",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",