kicadts 0.0.40 → 0.0.42
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 +23 -2
- package/dist/index.js +76 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3787,19 +3787,23 @@ declare class ZoneConnectPadsClearance extends SxPrimitiveNumber {
|
|
|
3787
3787
|
token: string;
|
|
3788
3788
|
}
|
|
3789
3789
|
|
|
3790
|
+
type ZoneConnectPadsMode = "yes" | "no" | "thru_hole_only";
|
|
3790
3791
|
declare class ZoneConnectPads extends SxClass {
|
|
3791
3792
|
static token: string;
|
|
3792
3793
|
static parentToken: string;
|
|
3793
3794
|
token: string;
|
|
3794
|
-
private
|
|
3795
|
+
private _mode?;
|
|
3795
3796
|
private _sxClearance?;
|
|
3796
3797
|
constructor(params?: {
|
|
3797
3798
|
enabled?: boolean;
|
|
3799
|
+
mode?: ZoneConnectPadsMode;
|
|
3798
3800
|
clearance?: number;
|
|
3799
3801
|
});
|
|
3800
3802
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): ZoneConnectPads;
|
|
3801
3803
|
get enabled(): boolean | undefined;
|
|
3802
3804
|
set enabled(value: boolean | undefined);
|
|
3805
|
+
get mode(): ZoneConnectPadsMode | undefined;
|
|
3806
|
+
set mode(value: ZoneConnectPadsMode | undefined);
|
|
3803
3807
|
get clearance(): number | undefined;
|
|
3804
3808
|
set clearance(value: ZoneConnectPadsClearance | number | undefined);
|
|
3805
3809
|
getChildren(): SxClass[];
|
|
@@ -4685,6 +4689,7 @@ interface GrRectConstructorParams {
|
|
|
4685
4689
|
width?: number | Width;
|
|
4686
4690
|
stroke?: Stroke;
|
|
4687
4691
|
fill?: boolean | GrRectFill;
|
|
4692
|
+
tstamp?: string | Tstamp;
|
|
4688
4693
|
uuid?: string | Uuid;
|
|
4689
4694
|
locked?: boolean;
|
|
4690
4695
|
}
|
|
@@ -4697,6 +4702,7 @@ declare class GrRect extends SxClass {
|
|
|
4697
4702
|
private _sxWidth?;
|
|
4698
4703
|
private _sxStroke?;
|
|
4699
4704
|
private _sxFill?;
|
|
4705
|
+
private _sxTstamp?;
|
|
4700
4706
|
private _sxUuid?;
|
|
4701
4707
|
private _sxLocked?;
|
|
4702
4708
|
constructor(params?: GrRectConstructorParams);
|
|
@@ -4733,6 +4739,8 @@ declare class GrRect extends SxClass {
|
|
|
4733
4739
|
get uuid(): string | undefined;
|
|
4734
4740
|
set uuid(value: string | Uuid | undefined);
|
|
4735
4741
|
get uuidClass(): Uuid | undefined;
|
|
4742
|
+
get tstamp(): Tstamp | undefined;
|
|
4743
|
+
set tstamp(value: string | Tstamp | undefined);
|
|
4736
4744
|
get locked(): boolean;
|
|
4737
4745
|
set locked(value: boolean);
|
|
4738
4746
|
getChildren(): SxClass[];
|
|
@@ -4992,6 +5000,7 @@ declare class Dimension extends SxClass {
|
|
|
4992
5000
|
private _sxLocked?;
|
|
4993
5001
|
private _sxType?;
|
|
4994
5002
|
private _sxLayer?;
|
|
5003
|
+
private _sxTstamp?;
|
|
4995
5004
|
private _sxUuid?;
|
|
4996
5005
|
private _sxPts?;
|
|
4997
5006
|
private _sxHeight?;
|
|
@@ -5002,6 +5011,8 @@ declare class Dimension extends SxClass {
|
|
|
5002
5011
|
private _sxGrText?;
|
|
5003
5012
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): Dimension;
|
|
5004
5013
|
getChildren(): SxClass[];
|
|
5014
|
+
get tstamp(): Tstamp | undefined;
|
|
5015
|
+
get uuid(): Uuid | undefined;
|
|
5005
5016
|
}
|
|
5006
5017
|
|
|
5007
5018
|
declare class Target extends SxClass {
|
|
@@ -5045,6 +5056,7 @@ interface PcbArcConstructorParams {
|
|
|
5045
5056
|
layer?: string | Layer;
|
|
5046
5057
|
net?: number | string;
|
|
5047
5058
|
locked?: boolean;
|
|
5059
|
+
tstamp?: string | Tstamp;
|
|
5048
5060
|
uuid?: string | Uuid;
|
|
5049
5061
|
}
|
|
5050
5062
|
declare class PcbArc extends SxClass {
|
|
@@ -5058,6 +5070,7 @@ declare class PcbArc extends SxClass {
|
|
|
5058
5070
|
private _sxLayer?;
|
|
5059
5071
|
private _net?;
|
|
5060
5072
|
private _locked;
|
|
5073
|
+
private _sxTstamp?;
|
|
5061
5074
|
private _sxUuid?;
|
|
5062
5075
|
constructor(params?: PcbArcConstructorParams);
|
|
5063
5076
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): PcbArc;
|
|
@@ -5077,6 +5090,8 @@ declare class PcbArc extends SxClass {
|
|
|
5077
5090
|
set locked(value: boolean);
|
|
5078
5091
|
get uuid(): Uuid | undefined;
|
|
5079
5092
|
set uuid(value: string | Uuid | undefined);
|
|
5093
|
+
get tstamp(): Tstamp | undefined;
|
|
5094
|
+
set tstamp(value: string | Tstamp | undefined);
|
|
5080
5095
|
getChildren(): SxClass[];
|
|
5081
5096
|
getString(): string;
|
|
5082
5097
|
}
|
|
@@ -5344,6 +5359,8 @@ declare class PcbPlotParams extends SxClass {
|
|
|
5344
5359
|
set dashed_line_dash_ratio(value: number | undefined);
|
|
5345
5360
|
get dashed_line_gap_ratio(): number | undefined;
|
|
5346
5361
|
set dashed_line_gap_ratio(value: number | undefined);
|
|
5362
|
+
get svguseinch(): string | undefined;
|
|
5363
|
+
set svguseinch(value: string | undefined);
|
|
5347
5364
|
get svgprecision(): number | undefined;
|
|
5348
5365
|
set svgprecision(value: number | undefined);
|
|
5349
5366
|
get linewidth(): number | undefined;
|
|
@@ -5770,6 +5787,10 @@ declare class PlotParamCreateGerberJobFile extends PlotParamProperty<string> {
|
|
|
5770
5787
|
static token: string;
|
|
5771
5788
|
token: string;
|
|
5772
5789
|
}
|
|
5790
|
+
declare class PlotParamSvgUseInch extends PlotParamProperty<string> {
|
|
5791
|
+
static token: string;
|
|
5792
|
+
token: string;
|
|
5793
|
+
}
|
|
5773
5794
|
declare class PlotParamExcludeEdgeLayer extends PlotParamProperty<string> {
|
|
5774
5795
|
static token: string;
|
|
5775
5796
|
token: string;
|
|
@@ -6420,4 +6441,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
|
|
|
6420
6441
|
declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
6421
6442
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
6422
6443
|
|
|
6423
|
-
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, 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 };
|
|
6444
|
+
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 ZoneConnectPadsMode, 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
|
@@ -12343,10 +12343,11 @@ var ZoneConnectPads = class _ZoneConnectPads extends SxClass {
|
|
|
12343
12343
|
static token = "connect_pads";
|
|
12344
12344
|
static parentToken = "zone";
|
|
12345
12345
|
token = "connect_pads";
|
|
12346
|
-
|
|
12346
|
+
_mode;
|
|
12347
12347
|
_sxClearance;
|
|
12348
12348
|
constructor(params = {}) {
|
|
12349
12349
|
super();
|
|
12350
|
+
if (params.mode !== void 0) this.mode = params.mode;
|
|
12350
12351
|
if (params.enabled !== void 0) this.enabled = params.enabled;
|
|
12351
12352
|
if (params.clearance !== void 0) this.clearance = params.clearance;
|
|
12352
12353
|
}
|
|
@@ -12358,6 +12359,10 @@ var ZoneConnectPads = class _ZoneConnectPads extends SxClass {
|
|
|
12358
12359
|
connectPads.enabled = enabled;
|
|
12359
12360
|
continue;
|
|
12360
12361
|
}
|
|
12362
|
+
if (primitive === "thru_hole_only") {
|
|
12363
|
+
connectPads.mode = primitive;
|
|
12364
|
+
continue;
|
|
12365
|
+
}
|
|
12361
12366
|
if (!Array.isArray(primitive) || typeof primitive[0] !== "string") {
|
|
12362
12367
|
throw new Error(
|
|
12363
12368
|
`zone connect_pads encountered invalid child expression: ${JSON.stringify(primitive)}`
|
|
@@ -12380,10 +12385,17 @@ var ZoneConnectPads = class _ZoneConnectPads extends SxClass {
|
|
|
12380
12385
|
return connectPads;
|
|
12381
12386
|
}
|
|
12382
12387
|
get enabled() {
|
|
12383
|
-
|
|
12388
|
+
if (this._mode === void 0) return void 0;
|
|
12389
|
+
return this._mode !== "no";
|
|
12384
12390
|
}
|
|
12385
12391
|
set enabled(value) {
|
|
12386
|
-
this.
|
|
12392
|
+
this._mode = value === void 0 ? void 0 : value ? "yes" : "no";
|
|
12393
|
+
}
|
|
12394
|
+
get mode() {
|
|
12395
|
+
return this._mode;
|
|
12396
|
+
}
|
|
12397
|
+
set mode(value) {
|
|
12398
|
+
this._mode = value;
|
|
12387
12399
|
}
|
|
12388
12400
|
get clearance() {
|
|
12389
12401
|
return this._sxClearance?.value;
|
|
@@ -12395,12 +12407,12 @@ var ZoneConnectPads = class _ZoneConnectPads extends SxClass {
|
|
|
12395
12407
|
return this._sxClearance ? [this._sxClearance] : [];
|
|
12396
12408
|
}
|
|
12397
12409
|
getString() {
|
|
12398
|
-
if (this.
|
|
12410
|
+
if (this._mode === void 0) return super.getString();
|
|
12399
12411
|
const children = this.getChildren();
|
|
12400
12412
|
if (children.length === 0) {
|
|
12401
|
-
return `(connect_pads ${this.
|
|
12413
|
+
return `(connect_pads ${this._mode})`;
|
|
12402
12414
|
}
|
|
12403
|
-
const lines = [`(connect_pads ${this.
|
|
12415
|
+
const lines = [`(connect_pads ${this._mode}`];
|
|
12404
12416
|
for (const child of children) lines.push(child.getStringIndented());
|
|
12405
12417
|
lines.push(")");
|
|
12406
12418
|
return lines.join("\n");
|
|
@@ -15111,6 +15123,7 @@ var SUPPORTED_SINGLE_TOKENS10 = /* @__PURE__ */ new Set([
|
|
|
15111
15123
|
"width",
|
|
15112
15124
|
"stroke",
|
|
15113
15125
|
"fill",
|
|
15126
|
+
"tstamp",
|
|
15114
15127
|
"uuid",
|
|
15115
15128
|
"locked"
|
|
15116
15129
|
]);
|
|
@@ -15123,6 +15136,7 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15123
15136
|
_sxWidth;
|
|
15124
15137
|
_sxStroke;
|
|
15125
15138
|
_sxFill;
|
|
15139
|
+
_sxTstamp;
|
|
15126
15140
|
_sxUuid;
|
|
15127
15141
|
_sxLocked;
|
|
15128
15142
|
constructor(params = {}) {
|
|
@@ -15133,6 +15147,7 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15133
15147
|
if (params.width !== void 0) this.width = params.width;
|
|
15134
15148
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
15135
15149
|
if (params.fill !== void 0) this.fill = params.fill;
|
|
15150
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
15136
15151
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
15137
15152
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
15138
15153
|
}
|
|
@@ -15173,6 +15188,7 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15173
15188
|
grRect._sxWidth = propertyMap.width;
|
|
15174
15189
|
grRect._sxStroke = propertyMap.stroke;
|
|
15175
15190
|
grRect._sxFill = propertyMap.fill;
|
|
15191
|
+
grRect._sxTstamp = propertyMap.tstamp;
|
|
15176
15192
|
const locked = propertyMap.locked;
|
|
15177
15193
|
grRect._sxLocked = locked && locked.value ? locked : void 0;
|
|
15178
15194
|
grRect._sxUuid = propertyMap.uuid;
|
|
@@ -15296,6 +15312,16 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15296
15312
|
get uuidClass() {
|
|
15297
15313
|
return this._sxUuid;
|
|
15298
15314
|
}
|
|
15315
|
+
get tstamp() {
|
|
15316
|
+
return this._sxTstamp;
|
|
15317
|
+
}
|
|
15318
|
+
set tstamp(value) {
|
|
15319
|
+
if (value === void 0) {
|
|
15320
|
+
this._sxTstamp = void 0;
|
|
15321
|
+
return;
|
|
15322
|
+
}
|
|
15323
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
15324
|
+
}
|
|
15299
15325
|
get locked() {
|
|
15300
15326
|
return this._sxLocked?.value ?? false;
|
|
15301
15327
|
}
|
|
@@ -15311,6 +15337,7 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15311
15337
|
if (this._sxFill) children.push(this._sxFill);
|
|
15312
15338
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
15313
15339
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
15340
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
15314
15341
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
15315
15342
|
return children;
|
|
15316
15343
|
}
|
|
@@ -16405,6 +16432,7 @@ var SUPPORTED_TOKENS22 = /* @__PURE__ */ new Set([
|
|
|
16405
16432
|
"locked",
|
|
16406
16433
|
"type",
|
|
16407
16434
|
"layer",
|
|
16435
|
+
"tstamp",
|
|
16408
16436
|
"uuid",
|
|
16409
16437
|
"pts",
|
|
16410
16438
|
"height",
|
|
@@ -16421,6 +16449,7 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16421
16449
|
_sxLocked;
|
|
16422
16450
|
_sxType;
|
|
16423
16451
|
_sxLayer;
|
|
16452
|
+
_sxTstamp;
|
|
16424
16453
|
_sxUuid;
|
|
16425
16454
|
_sxPts;
|
|
16426
16455
|
_sxHeight;
|
|
@@ -16452,6 +16481,7 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16452
16481
|
dimension._sxLocked = propertyMap.locked;
|
|
16453
16482
|
dimension._sxType = propertyMap.type;
|
|
16454
16483
|
dimension._sxLayer = propertyMap.layer;
|
|
16484
|
+
dimension._sxTstamp = propertyMap.tstamp;
|
|
16455
16485
|
dimension._sxUuid = propertyMap.uuid;
|
|
16456
16486
|
dimension._sxPts = propertyMap.pts;
|
|
16457
16487
|
dimension._sxHeight = propertyMap.height;
|
|
@@ -16466,8 +16496,8 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16466
16496
|
if (!dimension._sxLayer) {
|
|
16467
16497
|
throw new Error("dimension requires a layer child token");
|
|
16468
16498
|
}
|
|
16469
|
-
if (!dimension._sxUuid) {
|
|
16470
|
-
throw new Error("dimension requires a uuid child token");
|
|
16499
|
+
if (!dimension._sxUuid && !dimension._sxTstamp) {
|
|
16500
|
+
throw new Error("dimension requires a uuid or tstamp child token");
|
|
16471
16501
|
}
|
|
16472
16502
|
if (!dimension._sxPts) {
|
|
16473
16503
|
throw new Error("dimension requires a pts child token");
|
|
@@ -16482,6 +16512,7 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16482
16512
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
16483
16513
|
if (this._sxType) children.push(this._sxType);
|
|
16484
16514
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
16515
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
16485
16516
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
16486
16517
|
if (this._sxPts) children.push(this._sxPts);
|
|
16487
16518
|
if (this._sxHeight) children.push(this._sxHeight);
|
|
@@ -16492,6 +16523,12 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16492
16523
|
if (this._sxGrText) children.push(this._sxGrText);
|
|
16493
16524
|
return children;
|
|
16494
16525
|
}
|
|
16526
|
+
get tstamp() {
|
|
16527
|
+
return this._sxTstamp;
|
|
16528
|
+
}
|
|
16529
|
+
get uuid() {
|
|
16530
|
+
return this._sxUuid;
|
|
16531
|
+
}
|
|
16495
16532
|
};
|
|
16496
16533
|
SxClass.register(Dimension);
|
|
16497
16534
|
|
|
@@ -16636,6 +16673,7 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16636
16673
|
_sxLayer;
|
|
16637
16674
|
_net;
|
|
16638
16675
|
_locked = false;
|
|
16676
|
+
_sxTstamp;
|
|
16639
16677
|
_sxUuid;
|
|
16640
16678
|
constructor(params = {}) {
|
|
16641
16679
|
super();
|
|
@@ -16646,6 +16684,7 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16646
16684
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
16647
16685
|
if (params.net !== void 0) this.net = params.net;
|
|
16648
16686
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
16687
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
16649
16688
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
16650
16689
|
}
|
|
16651
16690
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
@@ -16690,6 +16729,10 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16690
16729
|
arc._sxUuid = new Uuid(parseString(args[0], "uuid"));
|
|
16691
16730
|
continue;
|
|
16692
16731
|
}
|
|
16732
|
+
if (token === "tstamp") {
|
|
16733
|
+
arc._sxTstamp = new Tstamp(parseString(args[0], "tstamp"));
|
|
16734
|
+
continue;
|
|
16735
|
+
}
|
|
16693
16736
|
throw new Error(`arc encountered unsupported child token "${token}"`);
|
|
16694
16737
|
}
|
|
16695
16738
|
if (!arc._start || !arc._mid || !arc._end) {
|
|
@@ -16760,6 +16803,16 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16760
16803
|
}
|
|
16761
16804
|
this._sxUuid = value instanceof Uuid ? value : new Uuid(value);
|
|
16762
16805
|
}
|
|
16806
|
+
get tstamp() {
|
|
16807
|
+
return this._sxTstamp;
|
|
16808
|
+
}
|
|
16809
|
+
set tstamp(value) {
|
|
16810
|
+
if (value === void 0) {
|
|
16811
|
+
this._sxTstamp = void 0;
|
|
16812
|
+
return;
|
|
16813
|
+
}
|
|
16814
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
16815
|
+
}
|
|
16763
16816
|
getChildren() {
|
|
16764
16817
|
return [];
|
|
16765
16818
|
}
|
|
@@ -16775,6 +16828,7 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16775
16828
|
const netValue = typeof this._net === "number" ? String(this._net) : quoteSExprString(this._net);
|
|
16776
16829
|
lines.push(` (net ${netValue})`);
|
|
16777
16830
|
}
|
|
16831
|
+
if (this._sxTstamp) lines.push(this._sxTstamp.getStringIndented());
|
|
16778
16832
|
if (this._sxUuid) lines.push(this._sxUuid.getStringIndented());
|
|
16779
16833
|
lines.push(")");
|
|
16780
16834
|
return lines.join("\n");
|
|
@@ -17503,6 +17557,11 @@ var PlotParamCreateGerberJobFile = class extends PlotParamProperty {
|
|
|
17503
17557
|
token = "creategerberjobfile";
|
|
17504
17558
|
};
|
|
17505
17559
|
SxClass.register(PlotParamCreateGerberJobFile);
|
|
17560
|
+
var PlotParamSvgUseInch = class extends PlotParamProperty {
|
|
17561
|
+
static token = "svguseinch";
|
|
17562
|
+
token = "svguseinch";
|
|
17563
|
+
};
|
|
17564
|
+
SxClass.register(PlotParamSvgUseInch);
|
|
17506
17565
|
var PlotParamExcludeEdgeLayer = class extends PlotParamProperty {
|
|
17507
17566
|
static token = "excludeedgelayer";
|
|
17508
17567
|
token = "excludeedgelayer";
|
|
@@ -17664,6 +17723,7 @@ var TOKEN_TO_KEY = {
|
|
|
17664
17723
|
excludeedgelayer: "excludeedgelayer",
|
|
17665
17724
|
dashed_line_dash_ratio: "dashed_line_dash_ratio",
|
|
17666
17725
|
dashed_line_gap_ratio: "dashed_line_gap_ratio",
|
|
17726
|
+
svguseinch: "svguseinch",
|
|
17667
17727
|
svgprecision: "svgprecision",
|
|
17668
17728
|
linewidth: "linewidth",
|
|
17669
17729
|
plotframeref: "plotframeref",
|
|
@@ -17715,6 +17775,7 @@ var PCB_PLOT_PARAM_CHILD_ORDER = [
|
|
|
17715
17775
|
"excludeedgelayer",
|
|
17716
17776
|
"dashed_line_dash_ratio",
|
|
17717
17777
|
"dashed_line_gap_ratio",
|
|
17778
|
+
"svguseinch",
|
|
17718
17779
|
"svgprecision",
|
|
17719
17780
|
"linewidth",
|
|
17720
17781
|
"plotframeref",
|
|
@@ -17905,6 +17966,12 @@ var PcbPlotParams = class _PcbPlotParams extends SxClass {
|
|
|
17905
17966
|
PlotParamDashedLineGapRatio
|
|
17906
17967
|
);
|
|
17907
17968
|
}
|
|
17969
|
+
get svguseinch() {
|
|
17970
|
+
return this._properties.svguseinch?.value;
|
|
17971
|
+
}
|
|
17972
|
+
set svguseinch(value) {
|
|
17973
|
+
this.setStringProperty("svguseinch", value, PlotParamSvgUseInch);
|
|
17974
|
+
}
|
|
17908
17975
|
get svgprecision() {
|
|
17909
17976
|
return this._properties.svgprecision?.value;
|
|
17910
17977
|
}
|
|
@@ -20635,6 +20702,7 @@ export {
|
|
|
20635
20702
|
PlotParamSketchPadsOnFab,
|
|
20636
20703
|
PlotParamSubtractMaskFromSilk,
|
|
20637
20704
|
PlotParamSvgPrecision,
|
|
20705
|
+
PlotParamSvgUseInch,
|
|
20638
20706
|
PlotParamUseAuxOrigin,
|
|
20639
20707
|
PlotParamUseGerberAdvancedAttributes,
|
|
20640
20708
|
PlotParamUseGerberAttributes,
|