kicadts 0.0.41 → 0.0.43
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 +21 -2
- package/dist/index.js +65 -9
- 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[];
|
|
@@ -3982,6 +3986,15 @@ declare class ZoneKeepout extends SxClass {
|
|
|
3982
3986
|
getChildren(): SxClass[];
|
|
3983
3987
|
}
|
|
3984
3988
|
|
|
3989
|
+
declare class ZoneLocked extends SxPrimitiveBoolean {
|
|
3990
|
+
static token: string;
|
|
3991
|
+
static parentToken: string;
|
|
3992
|
+
token: string;
|
|
3993
|
+
constructor(value: boolean);
|
|
3994
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): ZoneLocked;
|
|
3995
|
+
getString(): string;
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3985
3998
|
declare class ZoneMinThickness extends SxPrimitiveNumber {
|
|
3986
3999
|
static token: string;
|
|
3987
4000
|
static parentToken: string;
|
|
@@ -4061,6 +4074,7 @@ interface ZoneConstructorParams {
|
|
|
4061
4074
|
layers?: Layers | string[];
|
|
4062
4075
|
tstamp?: Tstamp | string;
|
|
4063
4076
|
uuid?: Uuid | string;
|
|
4077
|
+
locked?: ZoneLocked | boolean;
|
|
4064
4078
|
name?: ZoneName | string;
|
|
4065
4079
|
hatch?: ZoneHatch;
|
|
4066
4080
|
priority?: ZonePriority | number;
|
|
@@ -4083,6 +4097,7 @@ declare class Zone extends SxClass {
|
|
|
4083
4097
|
private _sxLayers?;
|
|
4084
4098
|
private _sxTstamp?;
|
|
4085
4099
|
private _sxUuid?;
|
|
4100
|
+
private _sxLocked?;
|
|
4086
4101
|
private _sxName?;
|
|
4087
4102
|
private _sxHatch?;
|
|
4088
4103
|
private _sxPriority?;
|
|
@@ -4110,6 +4125,8 @@ declare class Zone extends SxClass {
|
|
|
4110
4125
|
set tstamp(value: Tstamp | string | undefined);
|
|
4111
4126
|
get uuid(): Uuid | undefined;
|
|
4112
4127
|
set uuid(value: Uuid | string | undefined);
|
|
4128
|
+
get locked(): boolean;
|
|
4129
|
+
set locked(value: ZoneLocked | boolean | undefined);
|
|
4113
4130
|
get name(): string | undefined;
|
|
4114
4131
|
set name(value: ZoneName | string | undefined);
|
|
4115
4132
|
get hatch(): ZoneHatch | undefined;
|
|
@@ -5007,6 +5024,8 @@ declare class Dimension extends SxClass {
|
|
|
5007
5024
|
private _sxGrText?;
|
|
5008
5025
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): Dimension;
|
|
5009
5026
|
getChildren(): SxClass[];
|
|
5027
|
+
get tstamp(): Tstamp | undefined;
|
|
5028
|
+
get uuid(): Uuid | undefined;
|
|
5010
5029
|
}
|
|
5011
5030
|
|
|
5012
5031
|
declare class Target extends SxClass {
|
|
@@ -6435,4 +6454,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
|
|
|
6435
6454
|
declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
6436
6455
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
6437
6456
|
|
|
6438
|
-
export { At, type AtInput, Back, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Capping, Color, Covering, Dimension, DimensionFormat, DimensionStyle, Dnp, EmbeddedFile, EmbeddedFileChecksum, type EmbeddedFileConstructorParams, EmbeddedFileData, EmbeddedFileName, EmbeddedFileType, EmbeddedFiles, type EmbeddedFilesConstructorParams, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Filling, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintDuplicatePadNumbersAreJumpers, FootprintGenerator, FootprintGeneratorVersion, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPoint, FootprintPointSize, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteMarginRatio, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintUnit, FootprintUnitName, FootprintUnitPins, FootprintUnits, FootprintVersion, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpCircleNet, FpCurve, type FpCurveConstructorParams, FpCurveLocked, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineNet, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectNet, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, Front, Generated, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcLocked, GrArcMid, type GrArcPoint, GrArcStart, GrCircle, GrCircleCenter, type GrCircleConstructorParams, GrCircleEnd, GrCircleLocked, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrPoly, type GrPolyConstructorParams, GrPolyFill, GrPolyNet, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, GrTextLocked, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, InPosFiles, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibGeneratorVersion, KicadSymbolLibVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, Mirror, type ModelVector, NoConnect, type NoConnectConstructorParams, OnBoard, PadChamfer, PadChamferRatio, PadClearance, PadDieLength, PadDrill, PadDrillOffset, PadLayers, type PadLayersInput, PadNet, PadOptions, type PadOptionsAnchorShape, type PadOptionsClearanceType, PadPinFunction, PadPinType, PadPrimitiveGrArc, type PadPrimitiveGrArcConstructorParams, PadPrimitiveGrCircle, type PadPrimitiveGrCircleConstructorParams, PadPrimitiveGrCircleFill, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadProperty, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, PadZoneLayerConnections, Paper, PcbArc, type PcbArcConstructorParams, type PcbArcPoint, PcbGeneral, PcbGeneralLegacyTeardrops, PcbGeneralThickness, PcbGenerator, PcbGeneratorVersion, PcbLayerDefinition, PcbLayers, PcbNet, PcbPlotParams, PcbVersion, PlotParamCreateGerberJobFile, PlotParamCrossoutDnpOnFab, PlotParamDashedLineDashRatio, PlotParamDashedLineGapRatio, PlotParamDisableApertMacros, PlotParamDrillShape, PlotParamDxfImperialUnits, PlotParamDxfPolygonMode, PlotParamDxfUsePcbnewFont, PlotParamExcludeEdgeLayer, PlotParamHideDnpOnFab, PlotParamHpglPenDiameter, PlotParamHpglPenNumber, PlotParamHpglPenOverlay, PlotParamHpglPenSpeed, PlotParamLayerSelection, PlotParamLineWidth, PlotParamMirror, PlotParamMode, PlotParamOutputDirectory, PlotParamOutputFormat, PlotParamPadOnSilk, PlotParamPdfBackFpPropertyPopups, PlotParamPdfFrontFpPropertyPopups, PlotParamPdfMetadata, PlotParamPdfSingleDocument, PlotParamPlotBlackAndWhite, PlotParamPlotFpText, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamSvgUseInch, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Plugging, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyDoNotAutoplace, PropertyHide, PropertyShowName, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicRectangle, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, SchematicTextBox, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolBodyStyle, SymbolBodyStyles, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolLibName, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolTextBox, SymbolUnit, Target, TextBoxFill, TextBoxSize, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneFilledPolygonIsland, ZoneHatch, ZoneKeepout, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
|
6457
|
+
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, ZoneLocked, 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");
|
|
@@ -12821,6 +12833,26 @@ var ZoneKeepout = class _ZoneKeepout extends SxClass {
|
|
|
12821
12833
|
};
|
|
12822
12834
|
SxClass.register(ZoneKeepout);
|
|
12823
12835
|
|
|
12836
|
+
// lib/sexpr/classes/ZoneLocked.ts
|
|
12837
|
+
var ZoneLocked = class _ZoneLocked extends SxPrimitiveBoolean {
|
|
12838
|
+
static token = "locked";
|
|
12839
|
+
static parentToken = "zone";
|
|
12840
|
+
token = "locked";
|
|
12841
|
+
constructor(value) {
|
|
12842
|
+
super(value);
|
|
12843
|
+
}
|
|
12844
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
12845
|
+
if (primitiveSexprs.length === 0) {
|
|
12846
|
+
return new _ZoneLocked(true);
|
|
12847
|
+
}
|
|
12848
|
+
return new _ZoneLocked(parseYesNo(primitiveSexprs[0]) ?? false);
|
|
12849
|
+
}
|
|
12850
|
+
getString() {
|
|
12851
|
+
return `(locked ${this.value ? "yes" : "no"})`;
|
|
12852
|
+
}
|
|
12853
|
+
};
|
|
12854
|
+
SxClass.register(ZoneLocked);
|
|
12855
|
+
|
|
12824
12856
|
// lib/sexpr/classes/ZoneMinThickness.ts
|
|
12825
12857
|
var ZoneMinThickness = class extends SxPrimitiveNumber {
|
|
12826
12858
|
static token = "min_thickness";
|
|
@@ -12985,6 +13017,7 @@ var SINGLE_TOKENS4 = /* @__PURE__ */ new Set([
|
|
|
12985
13017
|
"layers",
|
|
12986
13018
|
"tstamp",
|
|
12987
13019
|
"uuid",
|
|
13020
|
+
"locked",
|
|
12988
13021
|
"name",
|
|
12989
13022
|
"hatch",
|
|
12990
13023
|
"priority",
|
|
@@ -13007,6 +13040,7 @@ var Zone = class _Zone extends SxClass {
|
|
|
13007
13040
|
_sxLayers;
|
|
13008
13041
|
_sxTstamp;
|
|
13009
13042
|
_sxUuid;
|
|
13043
|
+
_sxLocked;
|
|
13010
13044
|
_sxName;
|
|
13011
13045
|
_sxHatch;
|
|
13012
13046
|
_sxPriority;
|
|
@@ -13027,6 +13061,7 @@ var Zone = class _Zone extends SxClass {
|
|
|
13027
13061
|
if (params.layers !== void 0) this.layers = params.layers;
|
|
13028
13062
|
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
13029
13063
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
13064
|
+
if (params.locked !== void 0) this.locked = params.locked;
|
|
13030
13065
|
if (params.name !== void 0) this.name = params.name;
|
|
13031
13066
|
if (params.hatch !== void 0) this.hatch = params.hatch;
|
|
13032
13067
|
if (params.priority !== void 0) this.priority = params.priority;
|
|
@@ -13070,6 +13105,8 @@ var Zone = class _Zone extends SxClass {
|
|
|
13070
13105
|
}
|
|
13071
13106
|
zone._sxTstamp = propertyMap.tstamp;
|
|
13072
13107
|
zone._sxUuid = propertyMap.uuid;
|
|
13108
|
+
const locked = propertyMap.locked;
|
|
13109
|
+
zone._sxLocked = locked && locked.value ? locked : void 0;
|
|
13073
13110
|
zone._sxName = propertyMap.name;
|
|
13074
13111
|
zone._sxHatch = propertyMap.hatch;
|
|
13075
13112
|
zone._sxPriority = propertyMap.priority;
|
|
@@ -13133,6 +13170,20 @@ var Zone = class _Zone extends SxClass {
|
|
|
13133
13170
|
set uuid(value) {
|
|
13134
13171
|
this._sxUuid = value === void 0 ? void 0 : value instanceof Uuid ? value : new Uuid(value);
|
|
13135
13172
|
}
|
|
13173
|
+
get locked() {
|
|
13174
|
+
return this._sxLocked?.value ?? false;
|
|
13175
|
+
}
|
|
13176
|
+
set locked(value) {
|
|
13177
|
+
if (value === void 0) {
|
|
13178
|
+
this._sxLocked = void 0;
|
|
13179
|
+
return;
|
|
13180
|
+
}
|
|
13181
|
+
if (value instanceof ZoneLocked) {
|
|
13182
|
+
this._sxLocked = value.value ? value : void 0;
|
|
13183
|
+
return;
|
|
13184
|
+
}
|
|
13185
|
+
this._sxLocked = value ? new ZoneLocked(true) : void 0;
|
|
13186
|
+
}
|
|
13136
13187
|
get name() {
|
|
13137
13188
|
return this._sxName?.value;
|
|
13138
13189
|
}
|
|
@@ -13213,6 +13264,7 @@ var Zone = class _Zone extends SxClass {
|
|
|
13213
13264
|
if (this._sxLayers) children.push(this._sxLayers);
|
|
13214
13265
|
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
13215
13266
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
13267
|
+
if (this._sxLocked) children.push(this._sxLocked);
|
|
13216
13268
|
if (this._sxName) children.push(this._sxName);
|
|
13217
13269
|
if (this._sxHatch) children.push(this._sxHatch);
|
|
13218
13270
|
if (this._sxPriority) children.push(this._sxPriority);
|
|
@@ -15577,9 +15629,6 @@ var GrText = class _GrText extends SxClass {
|
|
|
15577
15629
|
if (!grText._sxLayer) {
|
|
15578
15630
|
throw new Error("gr_text requires a layer child token");
|
|
15579
15631
|
}
|
|
15580
|
-
if (!grText._sxUuid && !grText._sxTstamp) {
|
|
15581
|
-
throw new Error("gr_text requires a uuid or tstamp child token");
|
|
15582
|
-
}
|
|
15583
15632
|
if (!grText._sxEffects) {
|
|
15584
15633
|
throw new Error("gr_text requires an effects child token");
|
|
15585
15634
|
}
|
|
@@ -16511,6 +16560,12 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16511
16560
|
if (this._sxGrText) children.push(this._sxGrText);
|
|
16512
16561
|
return children;
|
|
16513
16562
|
}
|
|
16563
|
+
get tstamp() {
|
|
16564
|
+
return this._sxTstamp;
|
|
16565
|
+
}
|
|
16566
|
+
get uuid() {
|
|
16567
|
+
return this._sxUuid;
|
|
16568
|
+
}
|
|
16514
16569
|
};
|
|
16515
16570
|
SxClass.register(Dimension);
|
|
16516
16571
|
|
|
@@ -20867,6 +20922,7 @@ export {
|
|
|
20867
20922
|
ZoneKeepoutPads,
|
|
20868
20923
|
ZoneKeepoutTracks,
|
|
20869
20924
|
ZoneKeepoutVias,
|
|
20925
|
+
ZoneLocked,
|
|
20870
20926
|
ZoneMinThickness,
|
|
20871
20927
|
ZoneName,
|
|
20872
20928
|
ZoneNet,
|