kicadts 0.0.28 → 0.0.30
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 +74 -1
- package/dist/index.js +209 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2449,6 +2449,14 @@ declare class PadZoneConnect extends SxPrimitiveNumber {
|
|
|
2449
2449
|
token: string;
|
|
2450
2450
|
}
|
|
2451
2451
|
|
|
2452
|
+
declare class PadZoneLayerConnections extends SxClass {
|
|
2453
|
+
static token: string;
|
|
2454
|
+
static parentToken: string;
|
|
2455
|
+
token: string;
|
|
2456
|
+
static fromSexprPrimitives(): PadZoneLayerConnections;
|
|
2457
|
+
getChildren(): SxClass[];
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2452
2460
|
declare class PadProperty extends SxClass {
|
|
2453
2461
|
static token: string;
|
|
2454
2462
|
static parentToken: string;
|
|
@@ -2543,6 +2551,7 @@ interface FootprintPadConstructorParams {
|
|
|
2543
2551
|
solderPasteMarginRatio?: number | PadSolderPasteMarginRatio;
|
|
2544
2552
|
clearance?: number | PadClearance;
|
|
2545
2553
|
zoneConnect?: number | PadZoneConnect;
|
|
2554
|
+
zoneLayerConnections?: PadZoneLayerConnections;
|
|
2546
2555
|
thermalWidth?: number | PadThermalWidth;
|
|
2547
2556
|
thermalGap?: number | PadThermalGap;
|
|
2548
2557
|
thermalBridgeAngle?: number | PadThermalBridgeAngle;
|
|
@@ -2581,6 +2590,7 @@ declare class FootprintPad extends SxClass {
|
|
|
2581
2590
|
private _sxSolderPasteMarginRatio?;
|
|
2582
2591
|
private _sxClearance?;
|
|
2583
2592
|
private _sxZoneConnect?;
|
|
2593
|
+
private _sxZoneLayerConnections?;
|
|
2584
2594
|
private _sxThermalWidth?;
|
|
2585
2595
|
private _sxThermalGap?;
|
|
2586
2596
|
private _sxThermalBridgeAngle?;
|
|
@@ -2661,6 +2671,8 @@ declare class FootprintPad extends SxClass {
|
|
|
2661
2671
|
set primitives(value: PadPrimitives | undefined);
|
|
2662
2672
|
get teardrops(): PadTeardrops | undefined;
|
|
2663
2673
|
set teardrops(value: PadTeardrops | undefined);
|
|
2674
|
+
get zoneLayerConnections(): PadZoneLayerConnections | undefined;
|
|
2675
|
+
set zoneLayerConnections(value: PadZoneLayerConnections | undefined);
|
|
2664
2676
|
getChildren(): SxClass[];
|
|
2665
2677
|
getString(): string;
|
|
2666
2678
|
}
|
|
@@ -2812,6 +2824,17 @@ declare class FpTextBoxAngle extends SxClass {
|
|
|
2812
2824
|
getString(): string;
|
|
2813
2825
|
}
|
|
2814
2826
|
|
|
2827
|
+
declare class FpRectNet extends SxClass {
|
|
2828
|
+
id: number;
|
|
2829
|
+
static token: string;
|
|
2830
|
+
static parentToken: string;
|
|
2831
|
+
token: string;
|
|
2832
|
+
constructor(id: number);
|
|
2833
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): FpRectNet;
|
|
2834
|
+
getChildren(): SxClass[];
|
|
2835
|
+
getString(): string;
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2815
2838
|
interface FpRectConstructorParams {
|
|
2816
2839
|
start?: FpRectStart | {
|
|
2817
2840
|
x: number;
|
|
@@ -2825,6 +2848,7 @@ interface FpRectConstructorParams {
|
|
|
2825
2848
|
width?: number | Width;
|
|
2826
2849
|
stroke?: Stroke;
|
|
2827
2850
|
fill?: boolean | FpRectFill;
|
|
2851
|
+
net?: FpRectNet | number;
|
|
2828
2852
|
uuid?: string | Uuid;
|
|
2829
2853
|
locked?: boolean;
|
|
2830
2854
|
}
|
|
@@ -2837,6 +2861,7 @@ declare class FpRect extends SxClass {
|
|
|
2837
2861
|
private _sxWidth?;
|
|
2838
2862
|
private _sxStroke?;
|
|
2839
2863
|
private _sxFill?;
|
|
2864
|
+
private _sxNet?;
|
|
2840
2865
|
private _sxUuid?;
|
|
2841
2866
|
private _locked;
|
|
2842
2867
|
constructor(params?: FpRectConstructorParams);
|
|
@@ -2861,6 +2886,8 @@ declare class FpRect extends SxClass {
|
|
|
2861
2886
|
get fill(): boolean | undefined;
|
|
2862
2887
|
set fill(value: boolean | FpRectFill | undefined);
|
|
2863
2888
|
get fillClass(): FpRectFill | undefined;
|
|
2889
|
+
get net(): FpRectNet | undefined;
|
|
2890
|
+
set net(value: FpRectNet | number | undefined);
|
|
2864
2891
|
get uuid(): string | undefined;
|
|
2865
2892
|
set uuid(value: string | Uuid | undefined);
|
|
2866
2893
|
get uuidClass(): Uuid | undefined;
|
|
@@ -2899,6 +2926,17 @@ declare class FpRectFill extends SxClass {
|
|
|
2899
2926
|
getString(): string;
|
|
2900
2927
|
}
|
|
2901
2928
|
|
|
2929
|
+
declare class FpCircleNet extends SxClass {
|
|
2930
|
+
id: number;
|
|
2931
|
+
static token: string;
|
|
2932
|
+
static parentToken: string;
|
|
2933
|
+
token: string;
|
|
2934
|
+
constructor(id: number);
|
|
2935
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): FpCircleNet;
|
|
2936
|
+
getChildren(): SxClass[];
|
|
2937
|
+
getString(): string;
|
|
2938
|
+
}
|
|
2939
|
+
|
|
2902
2940
|
interface FpCircleConstructorParams {
|
|
2903
2941
|
center?: FpCircleCenter | {
|
|
2904
2942
|
x: number;
|
|
@@ -2912,6 +2950,7 @@ interface FpCircleConstructorParams {
|
|
|
2912
2950
|
width?: number | Width;
|
|
2913
2951
|
stroke?: Stroke;
|
|
2914
2952
|
fill?: boolean | FpCircleFill;
|
|
2953
|
+
net?: FpCircleNet | number;
|
|
2915
2954
|
uuid?: string | Uuid;
|
|
2916
2955
|
locked?: boolean;
|
|
2917
2956
|
}
|
|
@@ -2924,6 +2963,7 @@ declare class FpCircle extends SxClass {
|
|
|
2924
2963
|
private _sxWidth?;
|
|
2925
2964
|
private _sxStroke?;
|
|
2926
2965
|
private _sxFill?;
|
|
2966
|
+
private _sxNet?;
|
|
2927
2967
|
private _sxUuid?;
|
|
2928
2968
|
private _locked;
|
|
2929
2969
|
constructor(params?: FpCircleConstructorParams);
|
|
@@ -2948,6 +2988,8 @@ declare class FpCircle extends SxClass {
|
|
|
2948
2988
|
get fill(): boolean | undefined;
|
|
2949
2989
|
set fill(value: boolean | FpCircleFill | undefined);
|
|
2950
2990
|
get fillClass(): FpCircleFill | undefined;
|
|
2991
|
+
get net(): FpCircleNet | undefined;
|
|
2992
|
+
set net(value: FpCircleNet | number | undefined);
|
|
2951
2993
|
get uuid(): string | undefined;
|
|
2952
2994
|
set uuid(value: string | Uuid | undefined);
|
|
2953
2995
|
get uuidClass(): Uuid | undefined;
|
|
@@ -3171,6 +3213,17 @@ declare class FootprintSheetfile extends SxClass {
|
|
|
3171
3213
|
getString(): string;
|
|
3172
3214
|
}
|
|
3173
3215
|
|
|
3216
|
+
declare class FpLineNet extends SxClass {
|
|
3217
|
+
id: number;
|
|
3218
|
+
static token: string;
|
|
3219
|
+
static parentToken: string;
|
|
3220
|
+
token: string;
|
|
3221
|
+
constructor(id: number);
|
|
3222
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): FpLineNet;
|
|
3223
|
+
getChildren(): SxClass[];
|
|
3224
|
+
getString(): string;
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3174
3227
|
interface FpLineConstructorParams {
|
|
3175
3228
|
start?: FpLineStart | {
|
|
3176
3229
|
x: number;
|
|
@@ -3183,6 +3236,7 @@ interface FpLineConstructorParams {
|
|
|
3183
3236
|
layer?: Layer | string | string[];
|
|
3184
3237
|
width?: number;
|
|
3185
3238
|
stroke?: Stroke;
|
|
3239
|
+
net?: FpLineNet | number;
|
|
3186
3240
|
tstamp?: Tstamp | string;
|
|
3187
3241
|
uuid?: Uuid | string;
|
|
3188
3242
|
locked?: boolean;
|
|
@@ -3196,6 +3250,7 @@ declare class FpLine extends SxClass {
|
|
|
3196
3250
|
private _sxLayer?;
|
|
3197
3251
|
private _sxWidth?;
|
|
3198
3252
|
private _sxStroke?;
|
|
3253
|
+
private _sxNet?;
|
|
3199
3254
|
private _sxTstamp?;
|
|
3200
3255
|
private _sxUuid?;
|
|
3201
3256
|
private _locked;
|
|
@@ -3217,6 +3272,8 @@ declare class FpLine extends SxClass {
|
|
|
3217
3272
|
set width(value: number | undefined);
|
|
3218
3273
|
get stroke(): Stroke | undefined;
|
|
3219
3274
|
set stroke(value: Stroke | undefined);
|
|
3275
|
+
get net(): FpLineNet | undefined;
|
|
3276
|
+
set net(value: FpLineNet | number | undefined);
|
|
3220
3277
|
get tstamp(): Tstamp | undefined;
|
|
3221
3278
|
set tstamp(value: Tstamp | string | undefined);
|
|
3222
3279
|
get uuid(): Uuid | undefined;
|
|
@@ -5432,6 +5489,10 @@ interface KicadPcbConstructorParams {
|
|
|
5432
5489
|
footprints?: Footprint[];
|
|
5433
5490
|
images?: Image[];
|
|
5434
5491
|
segments?: Segment[];
|
|
5492
|
+
arcs?: PcbArc[];
|
|
5493
|
+
graphicArcs?: GrArc[];
|
|
5494
|
+
graphicCircles?: GrCircle[];
|
|
5495
|
+
graphicCurves?: GrCurve[];
|
|
5435
5496
|
graphicLines?: GrLine[];
|
|
5436
5497
|
graphicTexts?: GrText[];
|
|
5437
5498
|
graphicPolys?: GrPoly[];
|
|
@@ -5458,6 +5519,10 @@ declare class KicadPcb extends SxClass {
|
|
|
5458
5519
|
private _footprints;
|
|
5459
5520
|
private _images;
|
|
5460
5521
|
private _segments;
|
|
5522
|
+
private _arcs;
|
|
5523
|
+
private _grArcs;
|
|
5524
|
+
private _grCircles;
|
|
5525
|
+
private _grCurves;
|
|
5461
5526
|
private _grLines;
|
|
5462
5527
|
private _grTexts;
|
|
5463
5528
|
private _grPolys;
|
|
@@ -5496,6 +5561,14 @@ declare class KicadPcb extends SxClass {
|
|
|
5496
5561
|
set images(value: Image[]);
|
|
5497
5562
|
get segments(): Segment[];
|
|
5498
5563
|
set segments(value: Segment[]);
|
|
5564
|
+
get arcs(): PcbArc[];
|
|
5565
|
+
set arcs(value: PcbArc[]);
|
|
5566
|
+
get graphicArcs(): GrArc[];
|
|
5567
|
+
set graphicArcs(value: GrArc[]);
|
|
5568
|
+
get graphicCircles(): GrCircle[];
|
|
5569
|
+
set graphicCircles(value: GrCircle[]);
|
|
5570
|
+
get graphicCurves(): GrCurve[];
|
|
5571
|
+
set graphicCurves(value: GrCurve[]);
|
|
5499
5572
|
get graphicLines(): GrLine[];
|
|
5500
5573
|
set graphicLines(value: GrLine[]);
|
|
5501
5574
|
get graphicTexts(): GrText[];
|
|
@@ -5522,4 +5595,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
|
|
|
5522
5595
|
declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
5523
5596
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
5524
5597
|
|
|
5525
|
-
export { At, type AtInput, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Color, Dimension, DimensionFormat, DimensionStyle, Dnp, EmbeddedFile, EmbeddedFileChecksum, type EmbeddedFileConstructorParams, EmbeddedFileData, EmbeddedFileName, EmbeddedFileType, EmbeddedFiles, type EmbeddedFilesConstructorParams, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintGenerator, FootprintGeneratorVersion, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintVersion, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, Generated, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, 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, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, 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, 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, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolUnit, Target, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
|
5598
|
+
export { At, type AtInput, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Color, Dimension, DimensionFormat, DimensionStyle, Dnp, EmbeddedFile, EmbeddedFileChecksum, type EmbeddedFileConstructorParams, EmbeddedFileData, EmbeddedFileName, EmbeddedFileType, EmbeddedFiles, type EmbeddedFilesConstructorParams, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintGenerator, FootprintGeneratorVersion, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintVersion, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpCircleNet, 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, Generated, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, 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, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, 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, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolUnit, Target, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
package/dist/index.js
CHANGED
|
@@ -7612,6 +7612,20 @@ var PadZoneConnect = class extends SxPrimitiveNumber {
|
|
|
7612
7612
|
};
|
|
7613
7613
|
SxClass.register(PadZoneConnect);
|
|
7614
7614
|
|
|
7615
|
+
// lib/sexpr/classes/PadZoneLayerConnections.ts
|
|
7616
|
+
var PadZoneLayerConnections = class _PadZoneLayerConnections extends SxClass {
|
|
7617
|
+
static token = "zone_layer_connections";
|
|
7618
|
+
static parentToken = "pad";
|
|
7619
|
+
token = "zone_layer_connections";
|
|
7620
|
+
static fromSexprPrimitives() {
|
|
7621
|
+
return new _PadZoneLayerConnections();
|
|
7622
|
+
}
|
|
7623
|
+
getChildren() {
|
|
7624
|
+
return [];
|
|
7625
|
+
}
|
|
7626
|
+
};
|
|
7627
|
+
SxClass.register(PadZoneLayerConnections);
|
|
7628
|
+
|
|
7615
7629
|
// lib/sexpr/classes/PadProperty.ts
|
|
7616
7630
|
var primitiveToValue = (primitive) => {
|
|
7617
7631
|
if (primitive === void 0) {
|
|
@@ -7894,6 +7908,7 @@ var SINGLE_TOKENS = /* @__PURE__ */ new Set([
|
|
|
7894
7908
|
"solder_paste_margin_ratio",
|
|
7895
7909
|
"clearance",
|
|
7896
7910
|
"zone_connect",
|
|
7911
|
+
"zone_layer_connections",
|
|
7897
7912
|
"thermal_width",
|
|
7898
7913
|
"thermal_gap",
|
|
7899
7914
|
"thermal_bridge_angle",
|
|
@@ -7942,6 +7957,7 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
7942
7957
|
_sxSolderPasteMarginRatio;
|
|
7943
7958
|
_sxClearance;
|
|
7944
7959
|
_sxZoneConnect;
|
|
7960
|
+
_sxZoneLayerConnections;
|
|
7945
7961
|
_sxThermalWidth;
|
|
7946
7962
|
_sxThermalGap;
|
|
7947
7963
|
_sxThermalBridgeAngle;
|
|
@@ -7989,6 +8005,8 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
7989
8005
|
this.solderPasteMarginRatio = p.solderPasteMarginRatio;
|
|
7990
8006
|
if (p.clearance !== void 0) this.clearance = p.clearance;
|
|
7991
8007
|
if (p.zoneConnect !== void 0) this.zoneConnect = p.zoneConnect;
|
|
8008
|
+
if (p.zoneLayerConnections !== void 0)
|
|
8009
|
+
this.zoneLayerConnections = p.zoneLayerConnections;
|
|
7992
8010
|
if (p.thermalWidth !== void 0) this.thermalWidth = p.thermalWidth;
|
|
7993
8011
|
if (p.thermalGap !== void 0) this.thermalGap = p.thermalGap;
|
|
7994
8012
|
if (p.thermalBridgeAngle !== void 0)
|
|
@@ -8077,6 +8095,7 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
8077
8095
|
ensureSingle(arrayPropertyMap, "solder_paste_margin_ratio");
|
|
8078
8096
|
ensureSingle(arrayPropertyMap, "clearance");
|
|
8079
8097
|
ensureSingle(arrayPropertyMap, "zone_connect");
|
|
8098
|
+
ensureSingle(arrayPropertyMap, "zone_layer_connections");
|
|
8080
8099
|
ensureSingle(arrayPropertyMap, "thermal_width");
|
|
8081
8100
|
ensureSingle(arrayPropertyMap, "thermal_gap");
|
|
8082
8101
|
ensureSingle(arrayPropertyMap, "thermal_bridge_angle");
|
|
@@ -8104,6 +8123,7 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
8104
8123
|
pad._sxSolderPasteMarginRatio = propertyMap.solder_paste_margin_ratio;
|
|
8105
8124
|
pad._sxClearance = propertyMap.clearance;
|
|
8106
8125
|
pad._sxZoneConnect = propertyMap.zone_connect;
|
|
8126
|
+
pad._sxZoneLayerConnections = propertyMap.zone_layer_connections;
|
|
8107
8127
|
pad._sxThermalWidth = propertyMap.thermal_width;
|
|
8108
8128
|
pad._sxThermalGap = propertyMap.thermal_gap;
|
|
8109
8129
|
pad._sxThermalBridgeAngle = propertyMap.thermal_bridge_angle;
|
|
@@ -8393,6 +8413,12 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
8393
8413
|
set teardrops(value) {
|
|
8394
8414
|
this._sxTeardrops = value;
|
|
8395
8415
|
}
|
|
8416
|
+
get zoneLayerConnections() {
|
|
8417
|
+
return this._sxZoneLayerConnections;
|
|
8418
|
+
}
|
|
8419
|
+
set zoneLayerConnections(value) {
|
|
8420
|
+
this._sxZoneLayerConnections = value;
|
|
8421
|
+
}
|
|
8396
8422
|
getChildren() {
|
|
8397
8423
|
const children = [];
|
|
8398
8424
|
if (this._sxAt) children.push(this._sxAt);
|
|
@@ -8416,6 +8442,8 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
8416
8442
|
children.push(this._sxSolderPasteMarginRatio);
|
|
8417
8443
|
if (this._sxClearance) children.push(this._sxClearance);
|
|
8418
8444
|
if (this._sxZoneConnect) children.push(this._sxZoneConnect);
|
|
8445
|
+
if (this._sxZoneLayerConnections)
|
|
8446
|
+
children.push(this._sxZoneLayerConnections);
|
|
8419
8447
|
if (this._sxThermalWidth) children.push(this._sxThermalWidth);
|
|
8420
8448
|
if (this._sxThermalGap) children.push(this._sxThermalGap);
|
|
8421
8449
|
if (this._sxThermalBridgeAngle) children.push(this._sxThermalBridgeAngle);
|
|
@@ -9154,6 +9182,32 @@ var FpTextBoxLocked = class _FpTextBoxLocked extends SxClass {
|
|
|
9154
9182
|
};
|
|
9155
9183
|
SxClass.register(FpTextBoxLocked);
|
|
9156
9184
|
|
|
9185
|
+
// lib/sexpr/classes/FpRectNet.ts
|
|
9186
|
+
var FpRectNet = class _FpRectNet extends SxClass {
|
|
9187
|
+
constructor(id) {
|
|
9188
|
+
super();
|
|
9189
|
+
this.id = id;
|
|
9190
|
+
}
|
|
9191
|
+
id;
|
|
9192
|
+
static token = "net";
|
|
9193
|
+
static parentToken = "fp_rect";
|
|
9194
|
+
token = "net";
|
|
9195
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
9196
|
+
const id = toNumberValue(primitiveSexprs[0]);
|
|
9197
|
+
if (id === void 0) {
|
|
9198
|
+
throw new Error("fp_rect net requires a numeric id");
|
|
9199
|
+
}
|
|
9200
|
+
return new _FpRectNet(id);
|
|
9201
|
+
}
|
|
9202
|
+
getChildren() {
|
|
9203
|
+
return [];
|
|
9204
|
+
}
|
|
9205
|
+
getString() {
|
|
9206
|
+
return `(net ${this.id})`;
|
|
9207
|
+
}
|
|
9208
|
+
};
|
|
9209
|
+
SxClass.register(FpRectNet);
|
|
9210
|
+
|
|
9157
9211
|
// lib/sexpr/classes/FpRect.ts
|
|
9158
9212
|
var FpRect = class _FpRect extends SxClass {
|
|
9159
9213
|
static token = "fp_rect";
|
|
@@ -9164,6 +9218,7 @@ var FpRect = class _FpRect extends SxClass {
|
|
|
9164
9218
|
_sxWidth;
|
|
9165
9219
|
_sxStroke;
|
|
9166
9220
|
_sxFill;
|
|
9221
|
+
_sxNet;
|
|
9167
9222
|
_sxUuid;
|
|
9168
9223
|
_locked = false;
|
|
9169
9224
|
constructor(params = {}) {
|
|
@@ -9174,6 +9229,7 @@ var FpRect = class _FpRect extends SxClass {
|
|
|
9174
9229
|
if (params.width !== void 0) this.width = params.width;
|
|
9175
9230
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
9176
9231
|
if (params.fill !== void 0) this.fill = params.fill;
|
|
9232
|
+
if (params.net !== void 0) this.net = params.net;
|
|
9177
9233
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
9178
9234
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
9179
9235
|
}
|
|
@@ -9189,6 +9245,7 @@ var FpRect = class _FpRect extends SxClass {
|
|
|
9189
9245
|
rect._sxWidth = propertyMap.width;
|
|
9190
9246
|
rect._sxStroke = propertyMap.stroke;
|
|
9191
9247
|
rect._sxFill = propertyMap.fill;
|
|
9248
|
+
rect._sxNet = propertyMap.net;
|
|
9192
9249
|
rect._sxUuid = propertyMap.uuid;
|
|
9193
9250
|
for (const primitive of primitiveSexprs) {
|
|
9194
9251
|
if (primitive === "locked") {
|
|
@@ -9280,6 +9337,16 @@ var FpRect = class _FpRect extends SxClass {
|
|
|
9280
9337
|
get fillClass() {
|
|
9281
9338
|
return this._sxFill;
|
|
9282
9339
|
}
|
|
9340
|
+
get net() {
|
|
9341
|
+
return this._sxNet;
|
|
9342
|
+
}
|
|
9343
|
+
set net(value) {
|
|
9344
|
+
if (value === void 0) {
|
|
9345
|
+
this._sxNet = void 0;
|
|
9346
|
+
return;
|
|
9347
|
+
}
|
|
9348
|
+
this._sxNet = value instanceof FpRectNet ? value : new FpRectNet(value);
|
|
9349
|
+
}
|
|
9283
9350
|
get uuid() {
|
|
9284
9351
|
return this._sxUuid?.value;
|
|
9285
9352
|
}
|
|
@@ -9311,6 +9378,7 @@ var FpRect = class _FpRect extends SxClass {
|
|
|
9311
9378
|
if (this._sxWidth) children.push(this._sxWidth);
|
|
9312
9379
|
if (this._sxStroke) children.push(this._sxStroke);
|
|
9313
9380
|
if (this._sxFill) children.push(this._sxFill);
|
|
9381
|
+
if (this._sxNet) children.push(this._sxNet);
|
|
9314
9382
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
9315
9383
|
return children;
|
|
9316
9384
|
}
|
|
@@ -9326,6 +9394,7 @@ var FpRect = class _FpRect extends SxClass {
|
|
|
9326
9394
|
push(this._sxWidth);
|
|
9327
9395
|
push(this._sxStroke);
|
|
9328
9396
|
push(this._sxFill);
|
|
9397
|
+
push(this._sxNet);
|
|
9329
9398
|
push(this._sxUuid);
|
|
9330
9399
|
if (this._locked) {
|
|
9331
9400
|
lines.push(" locked");
|
|
@@ -9396,6 +9465,32 @@ var FpRectFill = class _FpRectFill extends SxClass {
|
|
|
9396
9465
|
};
|
|
9397
9466
|
SxClass.register(FpRectFill);
|
|
9398
9467
|
|
|
9468
|
+
// lib/sexpr/classes/FpCircleNet.ts
|
|
9469
|
+
var FpCircleNet = class _FpCircleNet extends SxClass {
|
|
9470
|
+
constructor(id) {
|
|
9471
|
+
super();
|
|
9472
|
+
this.id = id;
|
|
9473
|
+
}
|
|
9474
|
+
id;
|
|
9475
|
+
static token = "net";
|
|
9476
|
+
static parentToken = "fp_circle";
|
|
9477
|
+
token = "net";
|
|
9478
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
9479
|
+
const id = toNumberValue(primitiveSexprs[0]);
|
|
9480
|
+
if (id === void 0) {
|
|
9481
|
+
throw new Error("fp_circle net requires a numeric id");
|
|
9482
|
+
}
|
|
9483
|
+
return new _FpCircleNet(id);
|
|
9484
|
+
}
|
|
9485
|
+
getChildren() {
|
|
9486
|
+
return [];
|
|
9487
|
+
}
|
|
9488
|
+
getString() {
|
|
9489
|
+
return `(net ${this.id})`;
|
|
9490
|
+
}
|
|
9491
|
+
};
|
|
9492
|
+
SxClass.register(FpCircleNet);
|
|
9493
|
+
|
|
9399
9494
|
// lib/sexpr/classes/FpCircle.ts
|
|
9400
9495
|
var FpCircle = class _FpCircle extends SxClass {
|
|
9401
9496
|
static token = "fp_circle";
|
|
@@ -9406,6 +9501,7 @@ var FpCircle = class _FpCircle extends SxClass {
|
|
|
9406
9501
|
_sxWidth;
|
|
9407
9502
|
_sxStroke;
|
|
9408
9503
|
_sxFill;
|
|
9504
|
+
_sxNet;
|
|
9409
9505
|
_sxUuid;
|
|
9410
9506
|
_locked = false;
|
|
9411
9507
|
constructor(params = {}) {
|
|
@@ -9416,6 +9512,7 @@ var FpCircle = class _FpCircle extends SxClass {
|
|
|
9416
9512
|
if (params.width !== void 0) this.width = params.width;
|
|
9417
9513
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
9418
9514
|
if (params.fill !== void 0) this.fill = params.fill;
|
|
9515
|
+
if (params.net !== void 0) this.net = params.net;
|
|
9419
9516
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
9420
9517
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
9421
9518
|
}
|
|
@@ -9431,6 +9528,7 @@ var FpCircle = class _FpCircle extends SxClass {
|
|
|
9431
9528
|
circle._sxWidth = propertyMap.width;
|
|
9432
9529
|
circle._sxStroke = propertyMap.stroke;
|
|
9433
9530
|
circle._sxFill = propertyMap.fill;
|
|
9531
|
+
circle._sxNet = propertyMap.net;
|
|
9434
9532
|
circle._sxUuid = propertyMap.uuid;
|
|
9435
9533
|
for (const primitive of primitiveSexprs) {
|
|
9436
9534
|
if (primitive === "locked") {
|
|
@@ -9522,6 +9620,16 @@ var FpCircle = class _FpCircle extends SxClass {
|
|
|
9522
9620
|
get fillClass() {
|
|
9523
9621
|
return this._sxFill;
|
|
9524
9622
|
}
|
|
9623
|
+
get net() {
|
|
9624
|
+
return this._sxNet;
|
|
9625
|
+
}
|
|
9626
|
+
set net(value) {
|
|
9627
|
+
if (value === void 0) {
|
|
9628
|
+
this._sxNet = void 0;
|
|
9629
|
+
return;
|
|
9630
|
+
}
|
|
9631
|
+
this._sxNet = value instanceof FpCircleNet ? value : new FpCircleNet(value);
|
|
9632
|
+
}
|
|
9525
9633
|
get uuid() {
|
|
9526
9634
|
return this._sxUuid?.value;
|
|
9527
9635
|
}
|
|
@@ -9553,6 +9661,7 @@ var FpCircle = class _FpCircle extends SxClass {
|
|
|
9553
9661
|
if (this._sxWidth) children.push(this._sxWidth);
|
|
9554
9662
|
if (this._sxStroke) children.push(this._sxStroke);
|
|
9555
9663
|
if (this._sxFill) children.push(this._sxFill);
|
|
9664
|
+
if (this._sxNet) children.push(this._sxNet);
|
|
9556
9665
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
9557
9666
|
return children;
|
|
9558
9667
|
}
|
|
@@ -9568,6 +9677,7 @@ var FpCircle = class _FpCircle extends SxClass {
|
|
|
9568
9677
|
push(this._sxWidth);
|
|
9569
9678
|
push(this._sxStroke);
|
|
9570
9679
|
push(this._sxFill);
|
|
9680
|
+
push(this._sxNet);
|
|
9571
9681
|
push(this._sxUuid);
|
|
9572
9682
|
if (this._locked) {
|
|
9573
9683
|
lines.push(" locked");
|
|
@@ -10264,6 +10374,32 @@ var FootprintSheetfile = class _FootprintSheetfile extends SxClass {
|
|
|
10264
10374
|
};
|
|
10265
10375
|
SxClass.register(FootprintSheetfile);
|
|
10266
10376
|
|
|
10377
|
+
// lib/sexpr/classes/FpLineNet.ts
|
|
10378
|
+
var FpLineNet = class _FpLineNet extends SxClass {
|
|
10379
|
+
constructor(id) {
|
|
10380
|
+
super();
|
|
10381
|
+
this.id = id;
|
|
10382
|
+
}
|
|
10383
|
+
id;
|
|
10384
|
+
static token = "net";
|
|
10385
|
+
static parentToken = "fp_line";
|
|
10386
|
+
token = "net";
|
|
10387
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
10388
|
+
const id = toNumberValue(primitiveSexprs[0]);
|
|
10389
|
+
if (id === void 0) {
|
|
10390
|
+
throw new Error("fp_line net requires a numeric id");
|
|
10391
|
+
}
|
|
10392
|
+
return new _FpLineNet(id);
|
|
10393
|
+
}
|
|
10394
|
+
getChildren() {
|
|
10395
|
+
return [];
|
|
10396
|
+
}
|
|
10397
|
+
getString() {
|
|
10398
|
+
return `(net ${this.id})`;
|
|
10399
|
+
}
|
|
10400
|
+
};
|
|
10401
|
+
SxClass.register(FpLineNet);
|
|
10402
|
+
|
|
10267
10403
|
// lib/sexpr/classes/FpLine.ts
|
|
10268
10404
|
var SUPPORTED_SINGLE_TOKENS4 = /* @__PURE__ */ new Set([
|
|
10269
10405
|
"start",
|
|
@@ -10271,6 +10407,7 @@ var SUPPORTED_SINGLE_TOKENS4 = /* @__PURE__ */ new Set([
|
|
|
10271
10407
|
"layer",
|
|
10272
10408
|
"width",
|
|
10273
10409
|
"stroke",
|
|
10410
|
+
"net",
|
|
10274
10411
|
"tstamp",
|
|
10275
10412
|
"uuid"
|
|
10276
10413
|
]);
|
|
@@ -10283,6 +10420,7 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
10283
10420
|
_sxLayer;
|
|
10284
10421
|
_sxWidth;
|
|
10285
10422
|
_sxStroke;
|
|
10423
|
+
_sxNet;
|
|
10286
10424
|
_sxTstamp;
|
|
10287
10425
|
_sxUuid;
|
|
10288
10426
|
_locked = false;
|
|
@@ -10293,6 +10431,7 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
10293
10431
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
10294
10432
|
if (params.width !== void 0) this.width = params.width;
|
|
10295
10433
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
10434
|
+
if (params.net !== void 0) this.net = params.net;
|
|
10296
10435
|
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
10297
10436
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
10298
10437
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
@@ -10343,6 +10482,7 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
10343
10482
|
fpLine._sxLayer = arrayPropertyMap.layer?.[0] ?? propertyMap.layer;
|
|
10344
10483
|
fpLine._sxWidth = arrayPropertyMap.width?.[0] ?? propertyMap.width;
|
|
10345
10484
|
fpLine._sxStroke = arrayPropertyMap.stroke?.[0] ?? propertyMap.stroke;
|
|
10485
|
+
fpLine._sxNet = arrayPropertyMap.net?.[0] ?? propertyMap.net;
|
|
10346
10486
|
fpLine._sxTstamp = arrayPropertyMap.tstamp?.[0] ?? propertyMap.tstamp;
|
|
10347
10487
|
fpLine._sxUuid = arrayPropertyMap.uuid?.[0] ?? propertyMap.uuid;
|
|
10348
10488
|
if (!fpLine._sxStart) {
|
|
@@ -10403,6 +10543,16 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
10403
10543
|
set stroke(value) {
|
|
10404
10544
|
this._sxStroke = value;
|
|
10405
10545
|
}
|
|
10546
|
+
get net() {
|
|
10547
|
+
return this._sxNet;
|
|
10548
|
+
}
|
|
10549
|
+
set net(value) {
|
|
10550
|
+
if (value === void 0) {
|
|
10551
|
+
this._sxNet = void 0;
|
|
10552
|
+
return;
|
|
10553
|
+
}
|
|
10554
|
+
this._sxNet = value instanceof FpLineNet ? value : new FpLineNet(value);
|
|
10555
|
+
}
|
|
10406
10556
|
get tstamp() {
|
|
10407
10557
|
return this._sxTstamp;
|
|
10408
10558
|
}
|
|
@@ -10439,6 +10589,7 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
10439
10589
|
children.push(this._sxWidth);
|
|
10440
10590
|
}
|
|
10441
10591
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
10592
|
+
if (this._sxNet) children.push(this._sxNet);
|
|
10442
10593
|
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
10443
10594
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
10444
10595
|
if (this._locked) children.push(new FpLineLocked());
|
|
@@ -17441,6 +17592,10 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
17441
17592
|
_footprints = [];
|
|
17442
17593
|
_images = [];
|
|
17443
17594
|
_segments = [];
|
|
17595
|
+
_arcs = [];
|
|
17596
|
+
_grArcs = [];
|
|
17597
|
+
_grCircles = [];
|
|
17598
|
+
_grCurves = [];
|
|
17444
17599
|
_grLines = [];
|
|
17445
17600
|
_grTexts = [];
|
|
17446
17601
|
_grPolys = [];
|
|
@@ -17466,6 +17621,12 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
17466
17621
|
if (params.footprints !== void 0) this.footprints = params.footprints;
|
|
17467
17622
|
if (params.images !== void 0) this.images = params.images;
|
|
17468
17623
|
if (params.segments !== void 0) this.segments = params.segments;
|
|
17624
|
+
if (params.arcs !== void 0) this.arcs = params.arcs;
|
|
17625
|
+
if (params.graphicArcs !== void 0) this.graphicArcs = params.graphicArcs;
|
|
17626
|
+
if (params.graphicCircles !== void 0)
|
|
17627
|
+
this.graphicCircles = params.graphicCircles;
|
|
17628
|
+
if (params.graphicCurves !== void 0)
|
|
17629
|
+
this.graphicCurves = params.graphicCurves;
|
|
17469
17630
|
if (params.graphicLines !== void 0)
|
|
17470
17631
|
this.graphicLines = params.graphicLines;
|
|
17471
17632
|
if (params.graphicTexts !== void 0)
|
|
@@ -17556,6 +17717,22 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
17556
17717
|
this._segments.push(child);
|
|
17557
17718
|
return;
|
|
17558
17719
|
}
|
|
17720
|
+
if (child instanceof PcbArc) {
|
|
17721
|
+
this._arcs.push(child);
|
|
17722
|
+
return;
|
|
17723
|
+
}
|
|
17724
|
+
if (child instanceof GrArc) {
|
|
17725
|
+
this._grArcs.push(child);
|
|
17726
|
+
return;
|
|
17727
|
+
}
|
|
17728
|
+
if (child instanceof GrCircle) {
|
|
17729
|
+
this._grCircles.push(child);
|
|
17730
|
+
return;
|
|
17731
|
+
}
|
|
17732
|
+
if (child instanceof GrCurve) {
|
|
17733
|
+
this._grCurves.push(child);
|
|
17734
|
+
return;
|
|
17735
|
+
}
|
|
17559
17736
|
if (child instanceof GrLine) {
|
|
17560
17737
|
this._grLines.push(child);
|
|
17561
17738
|
return;
|
|
@@ -17668,6 +17845,30 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
17668
17845
|
set segments(value) {
|
|
17669
17846
|
this._segments = [...value];
|
|
17670
17847
|
}
|
|
17848
|
+
get arcs() {
|
|
17849
|
+
return [...this._arcs];
|
|
17850
|
+
}
|
|
17851
|
+
set arcs(value) {
|
|
17852
|
+
this._arcs = [...value];
|
|
17853
|
+
}
|
|
17854
|
+
get graphicArcs() {
|
|
17855
|
+
return [...this._grArcs];
|
|
17856
|
+
}
|
|
17857
|
+
set graphicArcs(value) {
|
|
17858
|
+
this._grArcs = [...value];
|
|
17859
|
+
}
|
|
17860
|
+
get graphicCircles() {
|
|
17861
|
+
return [...this._grCircles];
|
|
17862
|
+
}
|
|
17863
|
+
set graphicCircles(value) {
|
|
17864
|
+
this._grCircles = [...value];
|
|
17865
|
+
}
|
|
17866
|
+
get graphicCurves() {
|
|
17867
|
+
return [...this._grCurves];
|
|
17868
|
+
}
|
|
17869
|
+
set graphicCurves(value) {
|
|
17870
|
+
this._grCurves = [...value];
|
|
17871
|
+
}
|
|
17671
17872
|
get graphicLines() {
|
|
17672
17873
|
return [...this._grLines];
|
|
17673
17874
|
}
|
|
@@ -17737,6 +17938,10 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
17737
17938
|
children.push(...this._footprints);
|
|
17738
17939
|
children.push(...this._images);
|
|
17739
17940
|
children.push(...this._segments);
|
|
17941
|
+
children.push(...this._arcs);
|
|
17942
|
+
children.push(...this._grArcs);
|
|
17943
|
+
children.push(...this._grCircles);
|
|
17944
|
+
children.push(...this._grCurves);
|
|
17740
17945
|
children.push(...this._grLines);
|
|
17741
17946
|
children.push(...this._grTexts);
|
|
17742
17947
|
children.push(...this._grPolys);
|
|
@@ -17835,8 +18040,10 @@ export {
|
|
|
17835
18040
|
FpCircleCenter,
|
|
17836
18041
|
FpCircleEnd,
|
|
17837
18042
|
FpCircleFill,
|
|
18043
|
+
FpCircleNet,
|
|
17838
18044
|
FpLine,
|
|
17839
18045
|
FpLineEnd,
|
|
18046
|
+
FpLineNet,
|
|
17840
18047
|
FpLineStart,
|
|
17841
18048
|
FpPoly,
|
|
17842
18049
|
FpPolyFill,
|
|
@@ -17844,6 +18051,7 @@ export {
|
|
|
17844
18051
|
FpRect,
|
|
17845
18052
|
FpRectEnd,
|
|
17846
18053
|
FpRectFill,
|
|
18054
|
+
FpRectNet,
|
|
17847
18055
|
FpRectStart,
|
|
17848
18056
|
FpText,
|
|
17849
18057
|
FpTextBox,
|
|
@@ -17929,6 +18137,7 @@ export {
|
|
|
17929
18137
|
PadThermalGap,
|
|
17930
18138
|
PadThermalWidth,
|
|
17931
18139
|
PadZoneConnect,
|
|
18140
|
+
PadZoneLayerConnections,
|
|
17932
18141
|
Paper,
|
|
17933
18142
|
PcbArc,
|
|
17934
18143
|
PcbGeneral,
|