kicadts 0.0.50 → 0.0.52
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 +59 -1
- package/dist/index.js +190 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3494,9 +3494,16 @@ declare class FpPoly extends SxClass {
|
|
|
3494
3494
|
getChildren(): SxClass[];
|
|
3495
3495
|
}
|
|
3496
3496
|
|
|
3497
|
+
declare class GroupId extends SxPrimitiveString {
|
|
3498
|
+
static token: string;
|
|
3499
|
+
static parentToken: string;
|
|
3500
|
+
token: string;
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3497
3503
|
interface GroupConstructorParams {
|
|
3498
3504
|
name?: string;
|
|
3499
3505
|
uuid?: string | Uuid;
|
|
3506
|
+
id?: string | GroupId;
|
|
3500
3507
|
locked?: boolean;
|
|
3501
3508
|
members?: string[];
|
|
3502
3509
|
}
|
|
@@ -3505,6 +3512,7 @@ declare class Group extends SxClass {
|
|
|
3505
3512
|
token: string;
|
|
3506
3513
|
private _name;
|
|
3507
3514
|
private _sxUuid?;
|
|
3515
|
+
private _sxId?;
|
|
3508
3516
|
private _sxLocked?;
|
|
3509
3517
|
private _sxMembers?;
|
|
3510
3518
|
constructor(params?: GroupConstructorParams);
|
|
@@ -3514,6 +3522,9 @@ declare class Group extends SxClass {
|
|
|
3514
3522
|
get uuid(): string | undefined;
|
|
3515
3523
|
set uuid(value: string | Uuid | undefined);
|
|
3516
3524
|
get uuidClass(): Uuid | undefined;
|
|
3525
|
+
get id(): string | undefined;
|
|
3526
|
+
set id(value: string | GroupId | undefined);
|
|
3527
|
+
get idClass(): GroupId | undefined;
|
|
3517
3528
|
get locked(): boolean;
|
|
3518
3529
|
set locked(value: boolean);
|
|
3519
3530
|
get members(): string[];
|
|
@@ -4493,6 +4504,16 @@ declare class FootprintUnitPins extends SxClass {
|
|
|
4493
4504
|
getString(): string;
|
|
4494
4505
|
}
|
|
4495
4506
|
|
|
4507
|
+
declare class GrArcNet extends SxClass {
|
|
4508
|
+
value: number | string;
|
|
4509
|
+
static token: string;
|
|
4510
|
+
static parentToken: string;
|
|
4511
|
+
token: string;
|
|
4512
|
+
constructor(value: number | string);
|
|
4513
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): GrArcNet;
|
|
4514
|
+
getString(): string;
|
|
4515
|
+
}
|
|
4516
|
+
|
|
4496
4517
|
interface GrArcPoint {
|
|
4497
4518
|
x: number;
|
|
4498
4519
|
y: number;
|
|
@@ -4504,6 +4525,7 @@ interface GrArcConstructorParams {
|
|
|
4504
4525
|
layer?: Layer | string | Array<string | number>;
|
|
4505
4526
|
width?: Width | number;
|
|
4506
4527
|
stroke?: Stroke;
|
|
4528
|
+
net?: GrArcNet | number | string;
|
|
4507
4529
|
tstamp?: Tstamp | string;
|
|
4508
4530
|
uuid?: Uuid | string;
|
|
4509
4531
|
locked?: boolean;
|
|
@@ -4517,6 +4539,7 @@ declare class GrArc extends SxClass {
|
|
|
4517
4539
|
private _sxLayer?;
|
|
4518
4540
|
private _sxWidth?;
|
|
4519
4541
|
private _sxStroke?;
|
|
4542
|
+
private _sxNet?;
|
|
4520
4543
|
private _sxTstamp?;
|
|
4521
4544
|
private _sxUuid?;
|
|
4522
4545
|
private _sxLocked?;
|
|
@@ -4539,6 +4562,8 @@ declare class GrArc extends SxClass {
|
|
|
4539
4562
|
set widthClass(value: Width | undefined);
|
|
4540
4563
|
get stroke(): Stroke | undefined;
|
|
4541
4564
|
set stroke(value: Stroke | undefined);
|
|
4565
|
+
get net(): number | string | undefined;
|
|
4566
|
+
set net(value: GrArcNet | number | string | undefined);
|
|
4542
4567
|
get tstamp(): Tstamp | undefined;
|
|
4543
4568
|
set tstamp(value: Tstamp | string | undefined);
|
|
4544
4569
|
get uuid(): Uuid | undefined;
|
|
@@ -5051,6 +5076,7 @@ interface GrPolyConstructorParams {
|
|
|
5051
5076
|
fill?: GrPolyFill | boolean;
|
|
5052
5077
|
net?: GrPolyNet | number;
|
|
5053
5078
|
uuid?: Uuid | string;
|
|
5079
|
+
tstamp?: Tstamp | string;
|
|
5054
5080
|
}
|
|
5055
5081
|
declare class GrPoly extends SxClass {
|
|
5056
5082
|
static token: string;
|
|
@@ -5062,6 +5088,7 @@ declare class GrPoly extends SxClass {
|
|
|
5062
5088
|
private _sxFill?;
|
|
5063
5089
|
private _sxNet?;
|
|
5064
5090
|
private _sxUuid?;
|
|
5091
|
+
private _sxTstamp?;
|
|
5065
5092
|
constructor(params?: GrPolyConstructorParams);
|
|
5066
5093
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): GrPoly;
|
|
5067
5094
|
get points(): Pts | undefined;
|
|
@@ -5083,6 +5110,8 @@ declare class GrPoly extends SxClass {
|
|
|
5083
5110
|
get uuid(): string | undefined;
|
|
5084
5111
|
set uuid(value: Uuid | string | undefined);
|
|
5085
5112
|
get uuidClass(): Uuid | undefined;
|
|
5113
|
+
get tstamp(): Tstamp | undefined;
|
|
5114
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
5086
5115
|
get net(): number | undefined;
|
|
5087
5116
|
set net(value: GrPolyNet | number | undefined);
|
|
5088
5117
|
getChildren(): SxClass[];
|
|
@@ -6432,6 +6461,27 @@ declare class ViaNet extends SxClass {
|
|
|
6432
6461
|
getString(): string;
|
|
6433
6462
|
}
|
|
6434
6463
|
|
|
6464
|
+
declare class ViaZoneLayerConnections extends SxClass {
|
|
6465
|
+
static token: string;
|
|
6466
|
+
static parentToken: string;
|
|
6467
|
+
token: string;
|
|
6468
|
+
layers: string[];
|
|
6469
|
+
constructor(layers?: string[]);
|
|
6470
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): ViaZoneLayerConnections;
|
|
6471
|
+
getString(): string;
|
|
6472
|
+
}
|
|
6473
|
+
|
|
6474
|
+
declare class ViaTenting extends SxClass {
|
|
6475
|
+
static token: string;
|
|
6476
|
+
static parentToken: string;
|
|
6477
|
+
token: string;
|
|
6478
|
+
sides: string[];
|
|
6479
|
+
constructor(sides?: string[]);
|
|
6480
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): ViaTenting;
|
|
6481
|
+
getString(): string;
|
|
6482
|
+
}
|
|
6483
|
+
|
|
6484
|
+
type ViaZoneLayerConnectionsInput = ViaZoneLayerConnections | string[];
|
|
6435
6485
|
interface ViaConstructorParams {
|
|
6436
6486
|
type?: string;
|
|
6437
6487
|
locked?: boolean;
|
|
@@ -6450,6 +6500,8 @@ interface ViaConstructorParams {
|
|
|
6450
6500
|
covering?: Covering;
|
|
6451
6501
|
plugging?: Plugging;
|
|
6452
6502
|
filling?: string | Filling;
|
|
6503
|
+
zoneLayerConnections?: ViaZoneLayerConnectionsInput;
|
|
6504
|
+
tenting?: ViaTenting | string[];
|
|
6453
6505
|
}
|
|
6454
6506
|
declare class Via extends SxClass {
|
|
6455
6507
|
static token: string;
|
|
@@ -6471,6 +6523,8 @@ declare class Via extends SxClass {
|
|
|
6471
6523
|
private _sxCovering?;
|
|
6472
6524
|
private _sxPlugging?;
|
|
6473
6525
|
private _sxFilling?;
|
|
6526
|
+
private _sxZoneLayerConnections?;
|
|
6527
|
+
private _sxTenting?;
|
|
6474
6528
|
constructor(params?: ViaConstructorParams);
|
|
6475
6529
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): Via;
|
|
6476
6530
|
private consumeBareToken;
|
|
@@ -6510,6 +6564,10 @@ declare class Via extends SxClass {
|
|
|
6510
6564
|
set filling(value: string | Filling | undefined);
|
|
6511
6565
|
get tstamp(): Tstamp | undefined;
|
|
6512
6566
|
set tstamp(value: Tstamp | string | undefined);
|
|
6567
|
+
get zoneLayerConnections(): ViaZoneLayerConnections | undefined;
|
|
6568
|
+
set zoneLayerConnections(value: ViaZoneLayerConnectionsInput | undefined);
|
|
6569
|
+
get tenting(): ViaTenting | undefined;
|
|
6570
|
+
set tenting(value: ViaTenting | string[] | undefined);
|
|
6513
6571
|
getChildren(): SxClass[];
|
|
6514
6572
|
getString(): string;
|
|
6515
6573
|
}
|
|
@@ -6635,4 +6693,4 @@ declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
|
6635
6693
|
declare const parseKicadSym: (sexpr: string) => KicadSymbolLib;
|
|
6636
6694
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
6637
6695
|
|
|
6638
|
-
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 };
|
|
6696
|
+
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, GroupId, 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, ViaTenting, ViaZoneLayerConnections, 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
|
@@ -11315,19 +11315,29 @@ var FpPoly = class _FpPoly extends SxClass {
|
|
|
11315
11315
|
};
|
|
11316
11316
|
SxClass.register(FpPoly);
|
|
11317
11317
|
|
|
11318
|
+
// lib/sexpr/classes/GroupId.ts
|
|
11319
|
+
var GroupId = class extends SxPrimitiveString {
|
|
11320
|
+
static token = "id";
|
|
11321
|
+
static parentToken = "group";
|
|
11322
|
+
token = "id";
|
|
11323
|
+
};
|
|
11324
|
+
SxClass.register(GroupId);
|
|
11325
|
+
|
|
11318
11326
|
// lib/sexpr/classes/Group.ts
|
|
11319
|
-
var SUPPORTED_SINGLE_TOKENS4 = /* @__PURE__ */ new Set(["uuid", "locked", "members"]);
|
|
11327
|
+
var SUPPORTED_SINGLE_TOKENS4 = /* @__PURE__ */ new Set(["uuid", "id", "locked", "members"]);
|
|
11320
11328
|
var Group = class _Group extends SxClass {
|
|
11321
11329
|
static token = "group";
|
|
11322
11330
|
token = "group";
|
|
11323
11331
|
_name = "";
|
|
11324
11332
|
_sxUuid;
|
|
11333
|
+
_sxId;
|
|
11325
11334
|
_sxLocked;
|
|
11326
11335
|
_sxMembers;
|
|
11327
11336
|
constructor(params = {}) {
|
|
11328
11337
|
super();
|
|
11329
11338
|
if (params.name !== void 0) this.name = params.name;
|
|
11330
11339
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
11340
|
+
if (params.id !== void 0) this.id = params.id;
|
|
11331
11341
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
11332
11342
|
if (params.members !== void 0) this.members = params.members;
|
|
11333
11343
|
}
|
|
@@ -11369,6 +11379,7 @@ var Group = class _Group extends SxClass {
|
|
|
11369
11379
|
);
|
|
11370
11380
|
}
|
|
11371
11381
|
group._sxUuid = propertyMap.uuid;
|
|
11382
|
+
group._sxId = propertyMap.id;
|
|
11372
11383
|
const locked = propertyMap.locked;
|
|
11373
11384
|
group._sxLocked = locked && locked.value ? locked : void 0;
|
|
11374
11385
|
group._sxMembers = propertyMap.members;
|
|
@@ -11393,6 +11404,19 @@ var Group = class _Group extends SxClass {
|
|
|
11393
11404
|
get uuidClass() {
|
|
11394
11405
|
return this._sxUuid;
|
|
11395
11406
|
}
|
|
11407
|
+
get id() {
|
|
11408
|
+
return this._sxId?.value;
|
|
11409
|
+
}
|
|
11410
|
+
set id(value) {
|
|
11411
|
+
if (value === void 0) {
|
|
11412
|
+
this._sxId = void 0;
|
|
11413
|
+
return;
|
|
11414
|
+
}
|
|
11415
|
+
this._sxId = value instanceof GroupId ? value : new GroupId(value);
|
|
11416
|
+
}
|
|
11417
|
+
get idClass() {
|
|
11418
|
+
return this._sxId;
|
|
11419
|
+
}
|
|
11396
11420
|
get locked() {
|
|
11397
11421
|
return this._sxLocked?.value ?? false;
|
|
11398
11422
|
}
|
|
@@ -11411,6 +11435,7 @@ var Group = class _Group extends SxClass {
|
|
|
11411
11435
|
getChildren() {
|
|
11412
11436
|
const children = [];
|
|
11413
11437
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
11438
|
+
if (this._sxId) children.push(this._sxId);
|
|
11414
11439
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
11415
11440
|
if (this._sxMembers) children.push(this._sxMembers);
|
|
11416
11441
|
return children;
|
|
@@ -11422,6 +11447,7 @@ var Group = class _Group extends SxClass {
|
|
|
11422
11447
|
lines.push(value.getStringIndented());
|
|
11423
11448
|
};
|
|
11424
11449
|
push(this._sxUuid);
|
|
11450
|
+
push(this._sxId);
|
|
11425
11451
|
push(this._sxLocked);
|
|
11426
11452
|
push(this._sxMembers);
|
|
11427
11453
|
lines.push(")");
|
|
@@ -14372,6 +14398,37 @@ var GrArcLocked = class _GrArcLocked extends SxPrimitiveBoolean {
|
|
|
14372
14398
|
};
|
|
14373
14399
|
SxClass.register(GrArcLocked);
|
|
14374
14400
|
|
|
14401
|
+
// lib/sexpr/classes/GrArcNet.ts
|
|
14402
|
+
var GrArcNet = class _GrArcNet extends SxClass {
|
|
14403
|
+
constructor(value) {
|
|
14404
|
+
super();
|
|
14405
|
+
this.value = value;
|
|
14406
|
+
}
|
|
14407
|
+
value;
|
|
14408
|
+
static token = "net";
|
|
14409
|
+
static parentToken = "gr_arc";
|
|
14410
|
+
token = "net";
|
|
14411
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
14412
|
+
const value = primitiveSexprs[0];
|
|
14413
|
+
const id = toNumberValue(value);
|
|
14414
|
+
if (id !== void 0) {
|
|
14415
|
+
return new _GrArcNet(id);
|
|
14416
|
+
}
|
|
14417
|
+
const name = toStringValue(value);
|
|
14418
|
+
if (name !== void 0) {
|
|
14419
|
+
return new _GrArcNet(name);
|
|
14420
|
+
}
|
|
14421
|
+
throw new Error("gr_arc net requires a numeric id or string name");
|
|
14422
|
+
}
|
|
14423
|
+
getString() {
|
|
14424
|
+
if (typeof this.value === "number") {
|
|
14425
|
+
return `(net ${this.value})`;
|
|
14426
|
+
}
|
|
14427
|
+
return `(net ${quoteSExprString(this.value)})`;
|
|
14428
|
+
}
|
|
14429
|
+
};
|
|
14430
|
+
SxClass.register(GrArcNet);
|
|
14431
|
+
|
|
14375
14432
|
// lib/sexpr/classes/GrArc.ts
|
|
14376
14433
|
var SUPPORTED_SINGLE_TOKENS7 = /* @__PURE__ */ new Set([
|
|
14377
14434
|
"start",
|
|
@@ -14380,6 +14437,7 @@ var SUPPORTED_SINGLE_TOKENS7 = /* @__PURE__ */ new Set([
|
|
|
14380
14437
|
"layer",
|
|
14381
14438
|
"width",
|
|
14382
14439
|
"stroke",
|
|
14440
|
+
"net",
|
|
14383
14441
|
"tstamp",
|
|
14384
14442
|
"uuid",
|
|
14385
14443
|
"locked"
|
|
@@ -14393,6 +14451,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14393
14451
|
_sxLayer;
|
|
14394
14452
|
_sxWidth;
|
|
14395
14453
|
_sxStroke;
|
|
14454
|
+
_sxNet;
|
|
14396
14455
|
_sxTstamp;
|
|
14397
14456
|
_sxUuid;
|
|
14398
14457
|
_sxLocked;
|
|
@@ -14404,6 +14463,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14404
14463
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
14405
14464
|
if (params.width !== void 0) this.width = params.width;
|
|
14406
14465
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
14466
|
+
if (params.net !== void 0) this.net = params.net;
|
|
14407
14467
|
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
14408
14468
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
14409
14469
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
@@ -14445,6 +14505,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14445
14505
|
grArc._sxLayer = propertyMap.layer;
|
|
14446
14506
|
grArc._sxWidth = propertyMap.width;
|
|
14447
14507
|
grArc._sxStroke = propertyMap.stroke;
|
|
14508
|
+
grArc._sxNet = propertyMap.net;
|
|
14448
14509
|
grArc._sxTstamp = propertyMap.tstamp;
|
|
14449
14510
|
grArc._sxUuid = propertyMap.uuid;
|
|
14450
14511
|
const locked = propertyMap.locked;
|
|
@@ -14527,6 +14588,20 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14527
14588
|
set stroke(value) {
|
|
14528
14589
|
this._sxStroke = value;
|
|
14529
14590
|
}
|
|
14591
|
+
get net() {
|
|
14592
|
+
return this._sxNet?.value;
|
|
14593
|
+
}
|
|
14594
|
+
set net(value) {
|
|
14595
|
+
if (value === void 0) {
|
|
14596
|
+
this._sxNet = void 0;
|
|
14597
|
+
return;
|
|
14598
|
+
}
|
|
14599
|
+
if (value instanceof GrArcNet) {
|
|
14600
|
+
this._sxNet = value;
|
|
14601
|
+
return;
|
|
14602
|
+
}
|
|
14603
|
+
this._sxNet = new GrArcNet(value);
|
|
14604
|
+
}
|
|
14530
14605
|
get tstamp() {
|
|
14531
14606
|
return this._sxTstamp;
|
|
14532
14607
|
}
|
|
@@ -14560,6 +14635,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
14560
14635
|
if (this._sxEnd) children.push(this._sxEnd);
|
|
14561
14636
|
if (this._sxStroke) children.push(this._sxStroke);
|
|
14562
14637
|
if (this._sxWidth) children.push(this._sxWidth);
|
|
14638
|
+
if (this._sxNet) children.push(this._sxNet);
|
|
14563
14639
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
14564
14640
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
14565
14641
|
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
@@ -16206,7 +16282,8 @@ var SUPPORTED_TOKENS20 = /* @__PURE__ */ new Set([
|
|
|
16206
16282
|
"stroke",
|
|
16207
16283
|
"fill",
|
|
16208
16284
|
"net",
|
|
16209
|
-
"uuid"
|
|
16285
|
+
"uuid",
|
|
16286
|
+
"tstamp"
|
|
16210
16287
|
]);
|
|
16211
16288
|
var GrPoly = class _GrPoly extends SxClass {
|
|
16212
16289
|
static token = "gr_poly";
|
|
@@ -16218,6 +16295,7 @@ var GrPoly = class _GrPoly extends SxClass {
|
|
|
16218
16295
|
_sxFill;
|
|
16219
16296
|
_sxNet;
|
|
16220
16297
|
_sxUuid;
|
|
16298
|
+
_sxTstamp;
|
|
16221
16299
|
constructor(params = {}) {
|
|
16222
16300
|
super();
|
|
16223
16301
|
if (params.points !== void 0) this.points = params.points;
|
|
@@ -16227,6 +16305,7 @@ var GrPoly = class _GrPoly extends SxClass {
|
|
|
16227
16305
|
if (params.fill !== void 0) this.fill = params.fill;
|
|
16228
16306
|
if (params.net !== void 0) this.net = params.net;
|
|
16229
16307
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
16308
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
16230
16309
|
}
|
|
16231
16310
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
16232
16311
|
const grPoly = new _GrPoly();
|
|
@@ -16272,6 +16351,7 @@ var GrPoly = class _GrPoly extends SxClass {
|
|
|
16272
16351
|
grPoly._sxFill = propertyMap.fill;
|
|
16273
16352
|
grPoly._sxNet = propertyMap.net;
|
|
16274
16353
|
grPoly._sxUuid = propertyMap.uuid;
|
|
16354
|
+
grPoly._sxTstamp = propertyMap.tstamp;
|
|
16275
16355
|
for (const primitive of primitiveSexprs) {
|
|
16276
16356
|
if (!Array.isArray(primitive) || primitive.length === 0) {
|
|
16277
16357
|
throw new Error(
|
|
@@ -16394,6 +16474,16 @@ var GrPoly = class _GrPoly extends SxClass {
|
|
|
16394
16474
|
get uuidClass() {
|
|
16395
16475
|
return this._sxUuid;
|
|
16396
16476
|
}
|
|
16477
|
+
get tstamp() {
|
|
16478
|
+
return this._sxTstamp;
|
|
16479
|
+
}
|
|
16480
|
+
set tstamp(value) {
|
|
16481
|
+
if (value === void 0) {
|
|
16482
|
+
this._sxTstamp = void 0;
|
|
16483
|
+
return;
|
|
16484
|
+
}
|
|
16485
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
16486
|
+
}
|
|
16397
16487
|
get net() {
|
|
16398
16488
|
return this._sxNet?.id;
|
|
16399
16489
|
}
|
|
@@ -16413,6 +16503,7 @@ var GrPoly = class _GrPoly extends SxClass {
|
|
|
16413
16503
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
16414
16504
|
if (this._sxNet) children.push(this._sxNet);
|
|
16415
16505
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
16506
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
16416
16507
|
return children;
|
|
16417
16508
|
}
|
|
16418
16509
|
};
|
|
@@ -20030,6 +20121,59 @@ var ViaNet = class _ViaNet extends SxClass {
|
|
|
20030
20121
|
};
|
|
20031
20122
|
SxClass.register(ViaNet);
|
|
20032
20123
|
|
|
20124
|
+
// lib/sexpr/classes/ViaZoneLayerConnections.ts
|
|
20125
|
+
var ViaZoneLayerConnections = class _ViaZoneLayerConnections extends SxClass {
|
|
20126
|
+
static token = "zone_layer_connections";
|
|
20127
|
+
static parentToken = "via";
|
|
20128
|
+
token = "zone_layer_connections";
|
|
20129
|
+
layers;
|
|
20130
|
+
constructor(layers = []) {
|
|
20131
|
+
super();
|
|
20132
|
+
this.layers = layers;
|
|
20133
|
+
}
|
|
20134
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
20135
|
+
const layers = primitiveSexprs.map((primitive) => {
|
|
20136
|
+
const layer = toStringValue(primitive);
|
|
20137
|
+
if (layer === void 0) {
|
|
20138
|
+
throw new Error("via zone_layer_connections expects layer name strings");
|
|
20139
|
+
}
|
|
20140
|
+
return layer;
|
|
20141
|
+
});
|
|
20142
|
+
return new _ViaZoneLayerConnections(layers);
|
|
20143
|
+
}
|
|
20144
|
+
getString() {
|
|
20145
|
+
const layers = this.layers.map(quoteSExprString).join(" ");
|
|
20146
|
+
return layers ? `(zone_layer_connections ${layers})` : "(zone_layer_connections)";
|
|
20147
|
+
}
|
|
20148
|
+
};
|
|
20149
|
+
SxClass.register(ViaZoneLayerConnections);
|
|
20150
|
+
|
|
20151
|
+
// lib/sexpr/classes/ViaTenting.ts
|
|
20152
|
+
var ViaTenting = class _ViaTenting extends SxClass {
|
|
20153
|
+
static token = "tenting";
|
|
20154
|
+
static parentToken = "via";
|
|
20155
|
+
token = "tenting";
|
|
20156
|
+
sides;
|
|
20157
|
+
constructor(sides = []) {
|
|
20158
|
+
super();
|
|
20159
|
+
this.sides = sides;
|
|
20160
|
+
}
|
|
20161
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
20162
|
+
const sides = primitiveSexprs.map((primitive) => {
|
|
20163
|
+
const side = toStringValue(primitive);
|
|
20164
|
+
if (side === void 0) {
|
|
20165
|
+
throw new Error("via tenting expects side name strings");
|
|
20166
|
+
}
|
|
20167
|
+
return side;
|
|
20168
|
+
});
|
|
20169
|
+
return new _ViaTenting(sides);
|
|
20170
|
+
}
|
|
20171
|
+
getString() {
|
|
20172
|
+
return this.sides.length > 0 ? `(tenting ${this.sides.join(" ")})` : "(tenting)";
|
|
20173
|
+
}
|
|
20174
|
+
};
|
|
20175
|
+
SxClass.register(ViaTenting);
|
|
20176
|
+
|
|
20033
20177
|
// lib/sexpr/classes/Via.ts
|
|
20034
20178
|
var BARE_FLAGS = /* @__PURE__ */ new Set([
|
|
20035
20179
|
"locked",
|
|
@@ -20057,6 +20201,8 @@ var Via = class _Via extends SxClass {
|
|
|
20057
20201
|
_sxCovering;
|
|
20058
20202
|
_sxPlugging;
|
|
20059
20203
|
_sxFilling;
|
|
20204
|
+
_sxZoneLayerConnections;
|
|
20205
|
+
_sxTenting;
|
|
20060
20206
|
constructor(params = {}) {
|
|
20061
20207
|
super();
|
|
20062
20208
|
if (params.type !== void 0) this.type = params.type;
|
|
@@ -20078,6 +20224,9 @@ var Via = class _Via extends SxClass {
|
|
|
20078
20224
|
if (params.covering !== void 0) this.covering = params.covering;
|
|
20079
20225
|
if (params.plugging !== void 0) this.plugging = params.plugging;
|
|
20080
20226
|
if (params.filling !== void 0) this.filling = params.filling;
|
|
20227
|
+
if (params.zoneLayerConnections !== void 0)
|
|
20228
|
+
this.zoneLayerConnections = params.zoneLayerConnections;
|
|
20229
|
+
if (params.tenting !== void 0) this.tenting = params.tenting;
|
|
20081
20230
|
}
|
|
20082
20231
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
20083
20232
|
const via = new _Via();
|
|
@@ -20248,6 +20397,14 @@ var Via = class _Via extends SxClass {
|
|
|
20248
20397
|
this._sxTstamp = new Tstamp(value);
|
|
20249
20398
|
return;
|
|
20250
20399
|
}
|
|
20400
|
+
case "zone_layer_connections": {
|
|
20401
|
+
this._sxZoneLayerConnections = ViaZoneLayerConnections.fromSexprPrimitives(args);
|
|
20402
|
+
return;
|
|
20403
|
+
}
|
|
20404
|
+
case "tenting": {
|
|
20405
|
+
this._sxTenting = ViaTenting.fromSexprPrimitives(args);
|
|
20406
|
+
return;
|
|
20407
|
+
}
|
|
20251
20408
|
default:
|
|
20252
20409
|
throw new Error(`via encountered unsupported child token "${token}"`);
|
|
20253
20410
|
}
|
|
@@ -20382,10 +20539,33 @@ var Via = class _Via extends SxClass {
|
|
|
20382
20539
|
}
|
|
20383
20540
|
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
20384
20541
|
}
|
|
20542
|
+
get zoneLayerConnections() {
|
|
20543
|
+
return this._sxZoneLayerConnections;
|
|
20544
|
+
}
|
|
20545
|
+
set zoneLayerConnections(value) {
|
|
20546
|
+
if (value === void 0) {
|
|
20547
|
+
this._sxZoneLayerConnections = void 0;
|
|
20548
|
+
return;
|
|
20549
|
+
}
|
|
20550
|
+
this._sxZoneLayerConnections = value instanceof ViaZoneLayerConnections ? value : new ViaZoneLayerConnections(value);
|
|
20551
|
+
}
|
|
20552
|
+
get tenting() {
|
|
20553
|
+
return this._sxTenting;
|
|
20554
|
+
}
|
|
20555
|
+
set tenting(value) {
|
|
20556
|
+
if (value === void 0) {
|
|
20557
|
+
this._sxTenting = void 0;
|
|
20558
|
+
return;
|
|
20559
|
+
}
|
|
20560
|
+
this._sxTenting = value instanceof ViaTenting ? value : new ViaTenting(value);
|
|
20561
|
+
}
|
|
20385
20562
|
getChildren() {
|
|
20386
20563
|
const children = [];
|
|
20387
20564
|
if (this._sxAt) children.push(this._sxAt);
|
|
20388
20565
|
if (this._sxLayers) children.push(this._sxLayers);
|
|
20566
|
+
if (this._sxZoneLayerConnections)
|
|
20567
|
+
children.push(this._sxZoneLayerConnections);
|
|
20568
|
+
if (this._sxTenting) children.push(this._sxTenting);
|
|
20389
20569
|
if (this._sxCapping) children.push(this._sxCapping);
|
|
20390
20570
|
if (this._sxCovering) children.push(this._sxCovering);
|
|
20391
20571
|
if (this._sxPlugging) children.push(this._sxPlugging);
|
|
@@ -20409,6 +20589,10 @@ var Via = class _Via extends SxClass {
|
|
|
20409
20589
|
if (this._size !== void 0) lines.push(` (size ${this._size})`);
|
|
20410
20590
|
if (this._drill !== void 0) lines.push(` (drill ${this._drill})`);
|
|
20411
20591
|
if (this._sxLayers) lines.push(this._sxLayers.getStringIndented());
|
|
20592
|
+
if (this._sxZoneLayerConnections) {
|
|
20593
|
+
lines.push(this._sxZoneLayerConnections.getStringIndented());
|
|
20594
|
+
}
|
|
20595
|
+
if (this._sxTenting) lines.push(this._sxTenting.getStringIndented());
|
|
20412
20596
|
if (this._sxCapping) lines.push(this._sxCapping.getStringIndented());
|
|
20413
20597
|
if (this._sxCovering) lines.push(this._sxCovering.getStringIndented());
|
|
20414
20598
|
if (this._sxPlugging) lines.push(this._sxPlugging.getStringIndented());
|
|
@@ -20938,6 +21122,7 @@ export {
|
|
|
20938
21122
|
GrArcEnd,
|
|
20939
21123
|
GrArcLocked,
|
|
20940
21124
|
GrArcMid,
|
|
21125
|
+
GrArcNet,
|
|
20941
21126
|
GrArcStart,
|
|
20942
21127
|
GrCircle,
|
|
20943
21128
|
GrCircleCenter,
|
|
@@ -20962,6 +21147,7 @@ export {
|
|
|
20962
21147
|
GrTextRenderCache,
|
|
20963
21148
|
GrTextRenderCachePolygon,
|
|
20964
21149
|
Group,
|
|
21150
|
+
GroupId,
|
|
20965
21151
|
GroupLocked,
|
|
20966
21152
|
GroupMembers,
|
|
20967
21153
|
Image,
|
|
@@ -21235,6 +21421,8 @@ export {
|
|
|
21235
21421
|
Uuid,
|
|
21236
21422
|
Via,
|
|
21237
21423
|
ViaNet,
|
|
21424
|
+
ViaTenting,
|
|
21425
|
+
ViaZoneLayerConnections,
|
|
21238
21426
|
Width,
|
|
21239
21427
|
Wire,
|
|
21240
21428
|
Xy,
|