kicadts 0.0.49 → 0.0.51
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 +82 -1
- package/dist/index.js +90 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4493,6 +4493,16 @@ declare class FootprintUnitPins extends SxClass {
|
|
|
4493
4493
|
getString(): string;
|
|
4494
4494
|
}
|
|
4495
4495
|
|
|
4496
|
+
declare class GrArcNet extends SxClass {
|
|
4497
|
+
value: number | string;
|
|
4498
|
+
static token: string;
|
|
4499
|
+
static parentToken: string;
|
|
4500
|
+
token: string;
|
|
4501
|
+
constructor(value: number | string);
|
|
4502
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): GrArcNet;
|
|
4503
|
+
getString(): string;
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4496
4506
|
interface GrArcPoint {
|
|
4497
4507
|
x: number;
|
|
4498
4508
|
y: number;
|
|
@@ -4504,6 +4514,7 @@ interface GrArcConstructorParams {
|
|
|
4504
4514
|
layer?: Layer | string | Array<string | number>;
|
|
4505
4515
|
width?: Width | number;
|
|
4506
4516
|
stroke?: Stroke;
|
|
4517
|
+
net?: GrArcNet | number | string;
|
|
4507
4518
|
tstamp?: Tstamp | string;
|
|
4508
4519
|
uuid?: Uuid | string;
|
|
4509
4520
|
locked?: boolean;
|
|
@@ -4517,6 +4528,7 @@ declare class GrArc extends SxClass {
|
|
|
4517
4528
|
private _sxLayer?;
|
|
4518
4529
|
private _sxWidth?;
|
|
4519
4530
|
private _sxStroke?;
|
|
4531
|
+
private _sxNet?;
|
|
4520
4532
|
private _sxTstamp?;
|
|
4521
4533
|
private _sxUuid?;
|
|
4522
4534
|
private _sxLocked?;
|
|
@@ -4539,6 +4551,8 @@ declare class GrArc extends SxClass {
|
|
|
4539
4551
|
set widthClass(value: Width | undefined);
|
|
4540
4552
|
get stroke(): Stroke | undefined;
|
|
4541
4553
|
set stroke(value: Stroke | undefined);
|
|
4554
|
+
get net(): number | string | undefined;
|
|
4555
|
+
set net(value: GrArcNet | number | string | undefined);
|
|
4542
4556
|
get tstamp(): Tstamp | undefined;
|
|
4543
4557
|
set tstamp(value: Tstamp | string | undefined);
|
|
4544
4558
|
get uuid(): Uuid | undefined;
|
|
@@ -5103,6 +5117,60 @@ declare class DimensionFormat extends SxClass {
|
|
|
5103
5117
|
getChildren(): SxClass[];
|
|
5104
5118
|
}
|
|
5105
5119
|
|
|
5120
|
+
declare class DimensionHeight extends SxPrimitiveNumber {
|
|
5121
|
+
static token: string;
|
|
5122
|
+
static parentToken: string;
|
|
5123
|
+
token: string;
|
|
5124
|
+
}
|
|
5125
|
+
|
|
5126
|
+
declare class DimensionArrowDirection extends SxPrimitiveString {
|
|
5127
|
+
static token: string;
|
|
5128
|
+
static parentToken: string;
|
|
5129
|
+
token: string;
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
declare class DimensionArrowLength extends SxPrimitiveNumber {
|
|
5133
|
+
static token: string;
|
|
5134
|
+
static parentToken: string;
|
|
5135
|
+
token: string;
|
|
5136
|
+
}
|
|
5137
|
+
|
|
5138
|
+
declare class DimensionExtensionHeight extends SxPrimitiveNumber {
|
|
5139
|
+
static token: string;
|
|
5140
|
+
static parentToken: string;
|
|
5141
|
+
token: string;
|
|
5142
|
+
}
|
|
5143
|
+
|
|
5144
|
+
declare class DimensionExtensionOffset extends SxPrimitiveNumber {
|
|
5145
|
+
static token: string;
|
|
5146
|
+
static parentToken: string;
|
|
5147
|
+
token: string;
|
|
5148
|
+
}
|
|
5149
|
+
|
|
5150
|
+
declare class DimensionKeepTextAligned extends SxPrimitiveBoolean {
|
|
5151
|
+
static token: string;
|
|
5152
|
+
static parentToken: string;
|
|
5153
|
+
token: string;
|
|
5154
|
+
}
|
|
5155
|
+
|
|
5156
|
+
declare class DimensionStyleThickness extends SxPrimitiveNumber {
|
|
5157
|
+
static token: string;
|
|
5158
|
+
static parentToken: string;
|
|
5159
|
+
token: string;
|
|
5160
|
+
}
|
|
5161
|
+
|
|
5162
|
+
declare class DimensionTextFrame extends SxPrimitiveNumber {
|
|
5163
|
+
static token: string;
|
|
5164
|
+
static parentToken: string;
|
|
5165
|
+
token: string;
|
|
5166
|
+
}
|
|
5167
|
+
|
|
5168
|
+
declare class DimensionTextPositionMode extends SxPrimitiveNumber {
|
|
5169
|
+
static token: string;
|
|
5170
|
+
static parentToken: string;
|
|
5171
|
+
token: string;
|
|
5172
|
+
}
|
|
5173
|
+
|
|
5106
5174
|
declare class DimensionStyle extends SxClass {
|
|
5107
5175
|
static token: string;
|
|
5108
5176
|
static parentToken: string;
|
|
@@ -5117,6 +5185,14 @@ declare class DimensionStyle extends SxClass {
|
|
|
5117
5185
|
private _sxKeepTextAligned?;
|
|
5118
5186
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): DimensionStyle;
|
|
5119
5187
|
getChildren(): SxClass[];
|
|
5188
|
+
get thickness(): DimensionStyleThickness | undefined;
|
|
5189
|
+
get arrowLength(): DimensionArrowLength | undefined;
|
|
5190
|
+
get textPositionMode(): DimensionTextPositionMode | undefined;
|
|
5191
|
+
get arrowDirection(): DimensionArrowDirection | undefined;
|
|
5192
|
+
get extensionHeight(): DimensionExtensionHeight | undefined;
|
|
5193
|
+
get textFrame(): DimensionTextFrame | undefined;
|
|
5194
|
+
get extensionOffset(): DimensionExtensionOffset | undefined;
|
|
5195
|
+
get keepTextAligned(): DimensionKeepTextAligned | undefined;
|
|
5120
5196
|
}
|
|
5121
5197
|
|
|
5122
5198
|
declare class Dimension extends SxClass {
|
|
@@ -5139,6 +5215,11 @@ declare class Dimension extends SxClass {
|
|
|
5139
5215
|
getChildren(): SxClass[];
|
|
5140
5216
|
get tstamp(): Tstamp | undefined;
|
|
5141
5217
|
get uuid(): Uuid | undefined;
|
|
5218
|
+
get layer(): Layer | undefined;
|
|
5219
|
+
get pts(): Pts | undefined;
|
|
5220
|
+
get height(): DimensionHeight | undefined;
|
|
5221
|
+
get style(): DimensionStyle | undefined;
|
|
5222
|
+
get grText(): GrText | undefined;
|
|
5142
5223
|
}
|
|
5143
5224
|
|
|
5144
5225
|
declare class Target extends SxClass {
|
|
@@ -6568,4 +6649,4 @@ declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
|
6568
6649
|
declare const parseKicadSym: (sexpr: string) => KicadSymbolLib;
|
|
6569
6650
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
6570
6651
|
|
|
6571
|
-
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, KicadSym, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibGeneratorVersion, KicadSymbolLibVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, Mirror, type ModelVector, NoConnect, type NoConnectConstructorParams, OnBoard, PadChamfer, PadChamferRatio, PadClearance, PadDieLength, PadDrill, PadDrillOffset, PadLayers, type PadLayersInput, PadNet, PadOptions, type PadOptionsAnchorShape, type PadOptionsClearanceType, PadPinFunction, PadPinType, PadPrimitiveGrArc, type PadPrimitiveGrArcConstructorParams, PadPrimitiveGrCircle, type PadPrimitiveGrCircleConstructorParams, PadPrimitiveGrCircleFill, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadProperty, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, PadZoneLayerConnections, Paper, PcbArc, type PcbArcConstructorParams, type PcbArcPoint, PcbGeneral, PcbGeneralLegacyTeardrops, PcbGeneralThickness, PcbGenerator, PcbGeneratorVersion, PcbLayerDefinition, PcbLayers, PcbNet, PcbPlotParams, PcbVersion, type PinElectricalType, type PinGraphicStyle, PlotParamCreateGerberJobFile, PlotParamCrossoutDnpOnFab, PlotParamDashedLineDashRatio, PlotParamDashedLineGapRatio, PlotParamDisableApertMacros, PlotParamDrillShape, PlotParamDxfImperialUnits, PlotParamDxfPolygonMode, PlotParamDxfUsePcbnewFont, PlotParamExcludeEdgeLayer, PlotParamHideDnpOnFab, PlotParamHpglPenDiameter, PlotParamHpglPenNumber, PlotParamHpglPenOverlay, PlotParamHpglPenSpeed, PlotParamLayerSelection, PlotParamLineWidth, PlotParamMirror, PlotParamMode, PlotParamOutputDirectory, PlotParamOutputFormat, PlotParamPadOnSilk, PlotParamPdfBackFpPropertyPopups, PlotParamPdfFrontFpPropertyPopups, PlotParamPdfMetadata, PlotParamPdfSingleDocument, PlotParamPlotBlackAndWhite, PlotParamPlotFpText, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamSvgUseInch, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Plugging, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyDoNotAutoplace, PropertyHide, PropertyShowName, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicArc, type SchematicArcConstructorParams, SchematicArcLocked, type SchematicArcPoint, SchematicPolyline, SchematicRectangle, type SchematicRectangleConstructorParams, type SchematicRectanglePoint, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, SchematicTextBox, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolBodyStyle, SymbolBodyStyles, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolLibName, SymbolPin, SymbolPinAlternate, type SymbolPinAlternateConstructorParams, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolTextBox, SymbolUnit, Target, TextBoxFill, TextBoxSize, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConnectPadsMode, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneFilledPolygonIsland, ZoneHatch, ZoneKeepout, type ZoneKeepoutConstructorParams, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, type ZoneKeepoutRule, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneLocked, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr, parseKicadSym };
|
|
6652
|
+
export { At, type AtInput, Back, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Capping, Color, Covering, Dimension, DimensionFormat, DimensionStyle, Dnp, EmbeddedFile, EmbeddedFileChecksum, type EmbeddedFileConstructorParams, EmbeddedFileData, EmbeddedFileName, EmbeddedFileType, EmbeddedFiles, type EmbeddedFilesConstructorParams, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Filling, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintDuplicatePadNumbersAreJumpers, FootprintGenerator, FootprintGeneratorVersion, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPoint, FootprintPointSize, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteMarginRatio, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintUnit, FootprintUnitName, FootprintUnitPins, FootprintUnits, FootprintVersion, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpCircleNet, FpCurve, type FpCurveConstructorParams, FpCurveLocked, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineNet, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectNet, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, Front, Generated, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcLocked, GrArcMid, GrArcNet, type GrArcPoint, GrArcStart, GrCircle, GrCircleCenter, type GrCircleConstructorParams, GrCircleEnd, GrCircleLocked, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrPoly, type GrPolyConstructorParams, GrPolyFill, GrPolyNet, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, GrTextLocked, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, InPosFiles, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSym, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibGeneratorVersion, KicadSymbolLibVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, Mirror, type ModelVector, NoConnect, type NoConnectConstructorParams, OnBoard, PadChamfer, PadChamferRatio, PadClearance, PadDieLength, PadDrill, PadDrillOffset, PadLayers, type PadLayersInput, PadNet, PadOptions, type PadOptionsAnchorShape, type PadOptionsClearanceType, PadPinFunction, PadPinType, PadPrimitiveGrArc, type PadPrimitiveGrArcConstructorParams, PadPrimitiveGrCircle, type PadPrimitiveGrCircleConstructorParams, PadPrimitiveGrCircleFill, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadProperty, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, PadZoneLayerConnections, Paper, PcbArc, type PcbArcConstructorParams, type PcbArcPoint, PcbGeneral, PcbGeneralLegacyTeardrops, PcbGeneralThickness, PcbGenerator, PcbGeneratorVersion, PcbLayerDefinition, PcbLayers, PcbNet, PcbPlotParams, PcbVersion, type PinElectricalType, type PinGraphicStyle, PlotParamCreateGerberJobFile, PlotParamCrossoutDnpOnFab, PlotParamDashedLineDashRatio, PlotParamDashedLineGapRatio, PlotParamDisableApertMacros, PlotParamDrillShape, PlotParamDxfImperialUnits, PlotParamDxfPolygonMode, PlotParamDxfUsePcbnewFont, PlotParamExcludeEdgeLayer, PlotParamHideDnpOnFab, PlotParamHpglPenDiameter, PlotParamHpglPenNumber, PlotParamHpglPenOverlay, PlotParamHpglPenSpeed, PlotParamLayerSelection, PlotParamLineWidth, PlotParamMirror, PlotParamMode, PlotParamOutputDirectory, PlotParamOutputFormat, PlotParamPadOnSilk, PlotParamPdfBackFpPropertyPopups, PlotParamPdfFrontFpPropertyPopups, PlotParamPdfMetadata, PlotParamPdfSingleDocument, PlotParamPlotBlackAndWhite, PlotParamPlotFpText, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamSvgUseInch, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Plugging, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyDoNotAutoplace, PropertyHide, PropertyShowName, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicArc, type SchematicArcConstructorParams, SchematicArcLocked, type SchematicArcPoint, SchematicPolyline, SchematicRectangle, type SchematicRectangleConstructorParams, type SchematicRectanglePoint, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, SchematicTextBox, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolBodyStyle, SymbolBodyStyles, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolLibName, SymbolPin, SymbolPinAlternate, type SymbolPinAlternateConstructorParams, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolTextBox, SymbolUnit, Target, TextBoxFill, TextBoxSize, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConnectPadsMode, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneFilledPolygonIsland, ZoneHatch, ZoneKeepout, type ZoneKeepoutConstructorParams, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, type ZoneKeepoutRule, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneLocked, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr, parseKicadSym };
|
package/dist/index.js
CHANGED
|
@@ -14372,6 +14372,37 @@ var GrArcLocked = class _GrArcLocked extends SxPrimitiveBoolean {
|
|
|
14372
14372
|
};
|
|
14373
14373
|
SxClass.register(GrArcLocked);
|
|
14374
14374
|
|
|
14375
|
+
// lib/sexpr/classes/GrArcNet.ts
|
|
14376
|
+
var GrArcNet = class _GrArcNet extends SxClass {
|
|
14377
|
+
constructor(value) {
|
|
14378
|
+
super();
|
|
14379
|
+
this.value = value;
|
|
14380
|
+
}
|
|
14381
|
+
value;
|
|
14382
|
+
static token = "net";
|
|
14383
|
+
static parentToken = "gr_arc";
|
|
14384
|
+
token = "net";
|
|
14385
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
14386
|
+
const value = primitiveSexprs[0];
|
|
14387
|
+
const id = toNumberValue(value);
|
|
14388
|
+
if (id !== void 0) {
|
|
14389
|
+
return new _GrArcNet(id);
|
|
14390
|
+
}
|
|
14391
|
+
const name = toStringValue(value);
|
|
14392
|
+
if (name !== void 0) {
|
|
14393
|
+
return new _GrArcNet(name);
|
|
14394
|
+
}
|
|
14395
|
+
throw new Error("gr_arc net requires a numeric id or string name");
|
|
14396
|
+
}
|
|
14397
|
+
getString() {
|
|
14398
|
+
if (typeof this.value === "number") {
|
|
14399
|
+
return `(net ${this.value})`;
|
|
14400
|
+
}
|
|
14401
|
+
return `(net ${quoteSExprString(this.value)})`;
|
|
14402
|
+
}
|
|
14403
|
+
};
|
|
14404
|
+
SxClass.register(GrArcNet);
|
|
14405
|
+
|
|
14375
14406
|
// lib/sexpr/classes/GrArc.ts
|
|
14376
14407
|
var SUPPORTED_SINGLE_TOKENS7 = /* @__PURE__ */ new Set([
|
|
14377
14408
|
"start",
|
|
@@ -14380,6 +14411,7 @@ var SUPPORTED_SINGLE_TOKENS7 = /* @__PURE__ */ new Set([
|
|
|
14380
14411
|
"layer",
|
|
14381
14412
|
"width",
|
|
14382
14413
|
"stroke",
|
|
14414
|
+
"net",
|
|
14383
14415
|
"tstamp",
|
|
14384
14416
|
"uuid",
|
|
14385
14417
|
"locked"
|
|
@@ -14393,6 +14425,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14393
14425
|
_sxLayer;
|
|
14394
14426
|
_sxWidth;
|
|
14395
14427
|
_sxStroke;
|
|
14428
|
+
_sxNet;
|
|
14396
14429
|
_sxTstamp;
|
|
14397
14430
|
_sxUuid;
|
|
14398
14431
|
_sxLocked;
|
|
@@ -14404,6 +14437,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14404
14437
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
14405
14438
|
if (params.width !== void 0) this.width = params.width;
|
|
14406
14439
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
14440
|
+
if (params.net !== void 0) this.net = params.net;
|
|
14407
14441
|
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
14408
14442
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
14409
14443
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
@@ -14445,6 +14479,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14445
14479
|
grArc._sxLayer = propertyMap.layer;
|
|
14446
14480
|
grArc._sxWidth = propertyMap.width;
|
|
14447
14481
|
grArc._sxStroke = propertyMap.stroke;
|
|
14482
|
+
grArc._sxNet = propertyMap.net;
|
|
14448
14483
|
grArc._sxTstamp = propertyMap.tstamp;
|
|
14449
14484
|
grArc._sxUuid = propertyMap.uuid;
|
|
14450
14485
|
const locked = propertyMap.locked;
|
|
@@ -14527,6 +14562,20 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14527
14562
|
set stroke(value) {
|
|
14528
14563
|
this._sxStroke = value;
|
|
14529
14564
|
}
|
|
14565
|
+
get net() {
|
|
14566
|
+
return this._sxNet?.value;
|
|
14567
|
+
}
|
|
14568
|
+
set net(value) {
|
|
14569
|
+
if (value === void 0) {
|
|
14570
|
+
this._sxNet = void 0;
|
|
14571
|
+
return;
|
|
14572
|
+
}
|
|
14573
|
+
if (value instanceof GrArcNet) {
|
|
14574
|
+
this._sxNet = value;
|
|
14575
|
+
return;
|
|
14576
|
+
}
|
|
14577
|
+
this._sxNet = new GrArcNet(value);
|
|
14578
|
+
}
|
|
14530
14579
|
get tstamp() {
|
|
14531
14580
|
return this._sxTstamp;
|
|
14532
14581
|
}
|
|
@@ -14560,6 +14609,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14560
14609
|
if (this._sxEnd) children.push(this._sxEnd);
|
|
14561
14610
|
if (this._sxStroke) children.push(this._sxStroke);
|
|
14562
14611
|
if (this._sxWidth) children.push(this._sxWidth);
|
|
14612
|
+
if (this._sxNet) children.push(this._sxNet);
|
|
14563
14613
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
14564
14614
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
14565
14615
|
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
@@ -16740,6 +16790,30 @@ var DimensionStyle = class _DimensionStyle extends SxClass {
|
|
|
16740
16790
|
if (this._sxKeepTextAligned) children.push(this._sxKeepTextAligned);
|
|
16741
16791
|
return children;
|
|
16742
16792
|
}
|
|
16793
|
+
get thickness() {
|
|
16794
|
+
return this._sxThickness;
|
|
16795
|
+
}
|
|
16796
|
+
get arrowLength() {
|
|
16797
|
+
return this._sxArrowLength;
|
|
16798
|
+
}
|
|
16799
|
+
get textPositionMode() {
|
|
16800
|
+
return this._sxTextPositionMode;
|
|
16801
|
+
}
|
|
16802
|
+
get arrowDirection() {
|
|
16803
|
+
return this._sxArrowDirection;
|
|
16804
|
+
}
|
|
16805
|
+
get extensionHeight() {
|
|
16806
|
+
return this._sxExtensionHeight;
|
|
16807
|
+
}
|
|
16808
|
+
get textFrame() {
|
|
16809
|
+
return this._sxTextFrame;
|
|
16810
|
+
}
|
|
16811
|
+
get extensionOffset() {
|
|
16812
|
+
return this._sxExtensionOffset;
|
|
16813
|
+
}
|
|
16814
|
+
get keepTextAligned() {
|
|
16815
|
+
return this._sxKeepTextAligned;
|
|
16816
|
+
}
|
|
16743
16817
|
};
|
|
16744
16818
|
SxClass.register(DimensionStyle);
|
|
16745
16819
|
|
|
@@ -16853,6 +16927,21 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16853
16927
|
get uuid() {
|
|
16854
16928
|
return this._sxUuid;
|
|
16855
16929
|
}
|
|
16930
|
+
get layer() {
|
|
16931
|
+
return this._sxLayer;
|
|
16932
|
+
}
|
|
16933
|
+
get pts() {
|
|
16934
|
+
return this._sxPts;
|
|
16935
|
+
}
|
|
16936
|
+
get height() {
|
|
16937
|
+
return this._sxHeight;
|
|
16938
|
+
}
|
|
16939
|
+
get style() {
|
|
16940
|
+
return this._sxStyle;
|
|
16941
|
+
}
|
|
16942
|
+
get grText() {
|
|
16943
|
+
return this._sxGrText;
|
|
16944
|
+
}
|
|
16856
16945
|
};
|
|
16857
16946
|
SxClass.register(Dimension);
|
|
16858
16947
|
|
|
@@ -20899,6 +20988,7 @@ export {
|
|
|
20899
20988
|
GrArcEnd,
|
|
20900
20989
|
GrArcLocked,
|
|
20901
20990
|
GrArcMid,
|
|
20991
|
+
GrArcNet,
|
|
20902
20992
|
GrArcStart,
|
|
20903
20993
|
GrCircle,
|
|
20904
20994
|
GrCircleCenter,
|