kicadts 0.0.32 → 0.0.34
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 +71 -8
- package/dist/index.js +169 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -109,6 +109,11 @@ declare class InBom extends SxPrimitiveBoolean {
|
|
|
109
109
|
token: string;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
declare class InPosFiles extends SxPrimitiveBoolean {
|
|
113
|
+
static token: string;
|
|
114
|
+
token: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
112
117
|
declare class OnBoard extends SxPrimitiveBoolean {
|
|
113
118
|
static token: string;
|
|
114
119
|
token: string;
|
|
@@ -651,6 +656,36 @@ declare class FieldsAutoplaced extends SxPrimitiveBoolean {
|
|
|
651
656
|
token: string;
|
|
652
657
|
}
|
|
653
658
|
|
|
659
|
+
declare class PropertyDoNotAutoplace extends SxPrimitiveBoolean {
|
|
660
|
+
static token: string;
|
|
661
|
+
static parentToken: string;
|
|
662
|
+
token: string;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
declare class PropertyHide extends SxPrimitiveBoolean {
|
|
666
|
+
static token: string;
|
|
667
|
+
static parentToken: string;
|
|
668
|
+
token: string;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
declare class PropertyShowName extends SxPrimitiveBoolean {
|
|
672
|
+
static token: string;
|
|
673
|
+
static parentToken: string;
|
|
674
|
+
token: string;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
declare class SymbolBodyStyle extends SxPrimitiveNumber {
|
|
678
|
+
static token: string;
|
|
679
|
+
static parentToken: string;
|
|
680
|
+
token: string;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
declare class SymbolBodyStyles extends SxPrimitiveString {
|
|
684
|
+
static token: string;
|
|
685
|
+
static parentToken: string;
|
|
686
|
+
token: string;
|
|
687
|
+
}
|
|
688
|
+
|
|
654
689
|
declare class SymbolLibName extends SxPrimitiveString {
|
|
655
690
|
static token: string;
|
|
656
691
|
static parentToken: string;
|
|
@@ -941,7 +976,9 @@ declare class SymbolPower extends SxClass {
|
|
|
941
976
|
static token: string;
|
|
942
977
|
static parentToken: string;
|
|
943
978
|
token: string;
|
|
944
|
-
|
|
979
|
+
value?: string;
|
|
980
|
+
constructor(value?: string);
|
|
981
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): SymbolPower;
|
|
945
982
|
getChildren(): SxClass[];
|
|
946
983
|
getString(): string;
|
|
947
984
|
}
|
|
@@ -951,11 +988,14 @@ interface SchematicSymbolConstructorParams {
|
|
|
951
988
|
at?: AtInput;
|
|
952
989
|
mirror?: string | Mirror;
|
|
953
990
|
unit?: number | SymbolUnit;
|
|
991
|
+
bodyStyle?: number | SymbolBodyStyle;
|
|
992
|
+
bodyStyles?: string | SymbolBodyStyles;
|
|
954
993
|
pinNumbers?: SymbolPinNumbers;
|
|
955
994
|
pinNames?: SymbolPinNames;
|
|
956
995
|
excludeFromSim?: boolean;
|
|
957
996
|
inBom?: boolean;
|
|
958
997
|
onBoard?: boolean;
|
|
998
|
+
inPosFiles?: boolean;
|
|
959
999
|
dnp?: boolean;
|
|
960
1000
|
uuid?: string;
|
|
961
1001
|
duplicatePinNumbersAreJumpers?: boolean;
|
|
@@ -980,11 +1020,14 @@ declare class SchematicSymbol extends SxClass {
|
|
|
980
1020
|
_sxAt?: At;
|
|
981
1021
|
_sxMirror?: Mirror;
|
|
982
1022
|
_sxUnit?: SymbolUnit;
|
|
1023
|
+
_sxBodyStyle?: SymbolBodyStyle;
|
|
1024
|
+
_sxBodyStyles?: SymbolBodyStyles;
|
|
983
1025
|
_sxPinNumbers?: SymbolPinNumbers;
|
|
984
1026
|
_sxPinNames?: SymbolPinNames;
|
|
985
1027
|
_sxExcludeFromSim?: ExcludeFromSim;
|
|
986
1028
|
_sxInBom?: InBom;
|
|
987
1029
|
_sxOnBoard?: OnBoard;
|
|
1030
|
+
_sxInPosFiles?: InPosFiles;
|
|
988
1031
|
_sxDnp?: Dnp;
|
|
989
1032
|
_sxUuid?: Uuid;
|
|
990
1033
|
_sxDuplicatePinNumbersAreJumpers?: SymbolDuplicatePinNumbersAreJumpers;
|
|
@@ -1013,6 +1056,10 @@ declare class SchematicSymbol extends SxClass {
|
|
|
1013
1056
|
set mirror(value: string | Mirror | undefined);
|
|
1014
1057
|
get unit(): number | undefined;
|
|
1015
1058
|
set unit(value: number | undefined);
|
|
1059
|
+
get bodyStyle(): number | undefined;
|
|
1060
|
+
set bodyStyle(value: number | SymbolBodyStyle | undefined);
|
|
1061
|
+
get bodyStyles(): string | undefined;
|
|
1062
|
+
set bodyStyles(value: string | SymbolBodyStyles | undefined);
|
|
1016
1063
|
get pinNumbers(): SymbolPinNumbers | undefined;
|
|
1017
1064
|
set pinNumbers(value: SymbolPinNumbers | undefined);
|
|
1018
1065
|
get pinNames(): SymbolPinNames | undefined;
|
|
@@ -1023,6 +1070,8 @@ declare class SchematicSymbol extends SxClass {
|
|
|
1023
1070
|
set excludeFromSim(value: boolean);
|
|
1024
1071
|
get onBoard(): boolean | undefined;
|
|
1025
1072
|
set onBoard(value: boolean | undefined);
|
|
1073
|
+
get inPosFiles(): boolean | undefined;
|
|
1074
|
+
set inPosFiles(value: boolean | undefined);
|
|
1026
1075
|
get dnp(): boolean;
|
|
1027
1076
|
set dnp(value: boolean);
|
|
1028
1077
|
get fieldsAutoplaced(): boolean;
|
|
@@ -1051,12 +1100,18 @@ declare class SymbolProperty extends SxClass {
|
|
|
1051
1100
|
value: string;
|
|
1052
1101
|
_sxId?: SymbolPropertyId;
|
|
1053
1102
|
_sxAt?: At;
|
|
1103
|
+
_sxShowName?: PropertyShowName;
|
|
1104
|
+
_sxDoNotAutoplace?: PropertyDoNotAutoplace;
|
|
1105
|
+
_sxHide?: PropertyHide;
|
|
1054
1106
|
_sxEffects?: TextEffects;
|
|
1055
1107
|
constructor(params: {
|
|
1056
1108
|
key: string;
|
|
1057
1109
|
value: string;
|
|
1058
1110
|
id?: number | SymbolPropertyId;
|
|
1059
1111
|
at?: AtInput;
|
|
1112
|
+
showName?: boolean | PropertyShowName;
|
|
1113
|
+
doNotAutoplace?: boolean | PropertyDoNotAutoplace;
|
|
1114
|
+
hidden?: boolean | PropertyHide;
|
|
1060
1115
|
effects?: TextEffects;
|
|
1061
1116
|
});
|
|
1062
1117
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): SymbolProperty;
|
|
@@ -1064,6 +1119,12 @@ declare class SymbolProperty extends SxClass {
|
|
|
1064
1119
|
set id(value: number | undefined);
|
|
1065
1120
|
get at(): At | undefined;
|
|
1066
1121
|
set at(value: AtInput | undefined);
|
|
1122
|
+
get showName(): boolean | undefined;
|
|
1123
|
+
set showName(value: boolean | undefined);
|
|
1124
|
+
get doNotAutoplace(): boolean | undefined;
|
|
1125
|
+
set doNotAutoplace(value: boolean | undefined);
|
|
1126
|
+
get hidden(): boolean;
|
|
1127
|
+
set hidden(value: boolean);
|
|
1067
1128
|
get effects(): TextEffects | undefined;
|
|
1068
1129
|
set effects(value: TextEffects | undefined);
|
|
1069
1130
|
getChildren(): SxClass[];
|
|
@@ -1405,12 +1466,6 @@ declare class Label extends SxClass {
|
|
|
1405
1466
|
getString(): string;
|
|
1406
1467
|
}
|
|
1407
1468
|
|
|
1408
|
-
declare class PropertyHide extends SxPrimitiveBoolean {
|
|
1409
|
-
static token: string;
|
|
1410
|
-
static parentToken: string;
|
|
1411
|
-
token: string;
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
1469
|
declare class PropertyUnlocked extends SxPrimitiveBoolean {
|
|
1415
1470
|
static token: string;
|
|
1416
1471
|
static parentToken: string;
|
|
@@ -1691,12 +1746,16 @@ declare class SheetProperty extends SxClass {
|
|
|
1691
1746
|
value: string;
|
|
1692
1747
|
private _sxId?;
|
|
1693
1748
|
private _sxAt?;
|
|
1749
|
+
private _sxShowName?;
|
|
1750
|
+
private _sxDoNotAutoplace?;
|
|
1694
1751
|
private _sxEffects?;
|
|
1695
1752
|
constructor(params: {
|
|
1696
1753
|
key: string;
|
|
1697
1754
|
value: string;
|
|
1698
1755
|
id?: number | SymbolPropertyId;
|
|
1699
1756
|
at?: At;
|
|
1757
|
+
showName?: boolean | PropertyShowName;
|
|
1758
|
+
doNotAutoplace?: boolean | PropertyDoNotAutoplace;
|
|
1700
1759
|
effects?: TextEffects;
|
|
1701
1760
|
});
|
|
1702
1761
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): SheetProperty;
|
|
@@ -1705,6 +1764,10 @@ declare class SheetProperty extends SxClass {
|
|
|
1705
1764
|
get idClass(): SymbolPropertyId | undefined;
|
|
1706
1765
|
get at(): At | undefined;
|
|
1707
1766
|
set at(value: At | undefined);
|
|
1767
|
+
get showName(): boolean | undefined;
|
|
1768
|
+
set showName(value: boolean | PropertyShowName | undefined);
|
|
1769
|
+
get doNotAutoplace(): boolean | undefined;
|
|
1770
|
+
set doNotAutoplace(value: boolean | PropertyDoNotAutoplace | undefined);
|
|
1708
1771
|
get effects(): TextEffects | undefined;
|
|
1709
1772
|
set effects(value: TextEffects | undefined);
|
|
1710
1773
|
getChildren(): SxClass[];
|
|
@@ -5869,4 +5932,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
|
|
|
5869
5932
|
declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
5870
5933
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
5871
5934
|
|
|
5872
|
-
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, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintUnit, FootprintUnitName, FootprintUnitPins, FootprintUnits, 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, Front, 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, GrPolyNet, 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, KicadSymbolLibGeneratorVersion, KicadSymbolLibVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, Mirror, type ModelVector, NoConnect, type NoConnectConstructorParams, OnBoard, PadChamfer, PadChamferRatio, PadClearance, PadDieLength, PadDrill, PadDrillOffset, PadLayers, type PadLayersInput, PadNet, PadOptions, type PadOptionsAnchorShape, type PadOptionsClearanceType, PadPinFunction, PadPinType, PadPrimitiveGrArc, type PadPrimitiveGrArcConstructorParams, PadPrimitiveGrCircle, type PadPrimitiveGrCircleConstructorParams, PadPrimitiveGrCircleFill, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadProperty, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, PadZoneLayerConnections, Paper, PcbArc, type PcbArcConstructorParams, type PcbArcPoint, PcbGeneral, PcbGeneralLegacyTeardrops, PcbGeneralThickness, PcbGenerator, PcbGeneratorVersion, PcbLayerDefinition, PcbLayers, PcbNet, PcbPlotParams, PcbVersion, PlotParamCreateGerberJobFile, PlotParamCrossoutDnpOnFab, PlotParamDashedLineDashRatio, PlotParamDashedLineGapRatio, PlotParamDisableApertMacros, PlotParamDrillShape, PlotParamDxfImperialUnits, PlotParamDxfPolygonMode, PlotParamDxfUsePcbnewFont, PlotParamExcludeEdgeLayer, PlotParamHideDnpOnFab, PlotParamHpglPenDiameter, PlotParamHpglPenNumber, PlotParamHpglPenOverlay, PlotParamHpglPenSpeed, PlotParamLayerSelection, PlotParamLineWidth, PlotParamMirror, PlotParamMode, PlotParamOutputDirectory, PlotParamOutputFormat, PlotParamPadOnSilk, PlotParamPdfBackFpPropertyPopups, PlotParamPdfFrontFpPropertyPopups, PlotParamPdfMetadata, PlotParamPdfSingleDocument, PlotParamPlotBlackAndWhite, PlotParamPlotFpText, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Plugging, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicRectangle, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, SchematicTextBox, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolLibName, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolTextBox, SymbolUnit, Target, TextBoxFill, TextBoxSize, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
|
5935
|
+
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, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintUnit, FootprintUnitName, FootprintUnitPins, FootprintUnits, 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, Front, 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, GrPolyNet, 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, InPosFiles, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibGeneratorVersion, KicadSymbolLibVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, Mirror, type ModelVector, NoConnect, type NoConnectConstructorParams, OnBoard, PadChamfer, PadChamferRatio, PadClearance, PadDieLength, PadDrill, PadDrillOffset, PadLayers, type PadLayersInput, PadNet, PadOptions, type PadOptionsAnchorShape, type PadOptionsClearanceType, PadPinFunction, PadPinType, PadPrimitiveGrArc, type PadPrimitiveGrArcConstructorParams, PadPrimitiveGrCircle, type PadPrimitiveGrCircleConstructorParams, PadPrimitiveGrCircleFill, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadProperty, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, PadZoneLayerConnections, Paper, PcbArc, type PcbArcConstructorParams, type PcbArcPoint, PcbGeneral, PcbGeneralLegacyTeardrops, PcbGeneralThickness, PcbGenerator, PcbGeneratorVersion, PcbLayerDefinition, PcbLayers, PcbNet, PcbPlotParams, PcbVersion, PlotParamCreateGerberJobFile, PlotParamCrossoutDnpOnFab, PlotParamDashedLineDashRatio, PlotParamDashedLineGapRatio, PlotParamDisableApertMacros, PlotParamDrillShape, PlotParamDxfImperialUnits, PlotParamDxfPolygonMode, PlotParamDxfUsePcbnewFont, PlotParamExcludeEdgeLayer, PlotParamHideDnpOnFab, PlotParamHpglPenDiameter, PlotParamHpglPenNumber, PlotParamHpglPenOverlay, PlotParamHpglPenSpeed, PlotParamLayerSelection, PlotParamLineWidth, PlotParamMirror, PlotParamMode, PlotParamOutputDirectory, PlotParamOutputFormat, PlotParamPadOnSilk, PlotParamPdfBackFpPropertyPopups, PlotParamPdfFrontFpPropertyPopups, PlotParamPdfMetadata, PlotParamPdfSingleDocument, PlotParamPlotBlackAndWhite, PlotParamPlotFpText, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Plugging, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyDoNotAutoplace, PropertyHide, PropertyShowName, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicRectangle, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, SchematicTextBox, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolBodyStyle, SymbolBodyStyles, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolLibName, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolTextBox, SymbolUnit, Target, TextBoxFill, TextBoxSize, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
package/dist/index.js
CHANGED
|
@@ -442,6 +442,13 @@ var InBom = class extends SxPrimitiveBoolean {
|
|
|
442
442
|
};
|
|
443
443
|
SxClass.register(InBom);
|
|
444
444
|
|
|
445
|
+
// lib/sexpr/classes/InPosFiles.ts
|
|
446
|
+
var InPosFiles = class extends SxPrimitiveBoolean {
|
|
447
|
+
static token = "in_pos_files";
|
|
448
|
+
token = "in_pos_files";
|
|
449
|
+
};
|
|
450
|
+
SxClass.register(InPosFiles);
|
|
451
|
+
|
|
445
452
|
// lib/sexpr/classes/OnBoard.ts
|
|
446
453
|
var OnBoard = class extends SxPrimitiveBoolean {
|
|
447
454
|
static token = "on_board";
|
|
@@ -2122,6 +2129,46 @@ var FieldsAutoplaced = class extends SxPrimitiveBoolean {
|
|
|
2122
2129
|
};
|
|
2123
2130
|
SxClass.register(FieldsAutoplaced);
|
|
2124
2131
|
|
|
2132
|
+
// lib/sexpr/classes/PropertyDoNotAutoplace.ts
|
|
2133
|
+
var PropertyDoNotAutoplace = class extends SxPrimitiveBoolean {
|
|
2134
|
+
static token = "do_not_autoplace";
|
|
2135
|
+
static parentToken = "property";
|
|
2136
|
+
token = "do_not_autoplace";
|
|
2137
|
+
};
|
|
2138
|
+
SxClass.register(PropertyDoNotAutoplace);
|
|
2139
|
+
|
|
2140
|
+
// lib/sexpr/classes/PropertyHide.ts
|
|
2141
|
+
var PropertyHide = class extends SxPrimitiveBoolean {
|
|
2142
|
+
static token = "hide";
|
|
2143
|
+
static parentToken = "property";
|
|
2144
|
+
token = "hide";
|
|
2145
|
+
};
|
|
2146
|
+
SxClass.register(PropertyHide);
|
|
2147
|
+
|
|
2148
|
+
// lib/sexpr/classes/PropertyShowName.ts
|
|
2149
|
+
var PropertyShowName = class extends SxPrimitiveBoolean {
|
|
2150
|
+
static token = "show_name";
|
|
2151
|
+
static parentToken = "property";
|
|
2152
|
+
token = "show_name";
|
|
2153
|
+
};
|
|
2154
|
+
SxClass.register(PropertyShowName);
|
|
2155
|
+
|
|
2156
|
+
// lib/sexpr/classes/SymbolBodyStyle.ts
|
|
2157
|
+
var SymbolBodyStyle = class extends SxPrimitiveNumber {
|
|
2158
|
+
static token = "body_style";
|
|
2159
|
+
static parentToken = "symbol";
|
|
2160
|
+
token = "body_style";
|
|
2161
|
+
};
|
|
2162
|
+
SxClass.register(SymbolBodyStyle);
|
|
2163
|
+
|
|
2164
|
+
// lib/sexpr/classes/SymbolBodyStyles.ts
|
|
2165
|
+
var SymbolBodyStyles = class extends SxPrimitiveString {
|
|
2166
|
+
static token = "body_styles";
|
|
2167
|
+
static parentToken = "symbol";
|
|
2168
|
+
token = "body_styles";
|
|
2169
|
+
};
|
|
2170
|
+
SxClass.register(SymbolBodyStyles);
|
|
2171
|
+
|
|
2125
2172
|
// lib/sexpr/classes/SymbolLibName.ts
|
|
2126
2173
|
var SymbolLibName = class _SymbolLibName extends SxPrimitiveString {
|
|
2127
2174
|
static token = "lib_name";
|
|
@@ -2889,14 +2936,24 @@ var SymbolPower = class _SymbolPower extends SxClass {
|
|
|
2889
2936
|
static token = "power";
|
|
2890
2937
|
static parentToken = "symbol";
|
|
2891
2938
|
token = "power";
|
|
2892
|
-
|
|
2893
|
-
|
|
2939
|
+
value;
|
|
2940
|
+
constructor(value) {
|
|
2941
|
+
super();
|
|
2942
|
+
this.value = value;
|
|
2943
|
+
}
|
|
2944
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
2945
|
+
const [valuePrimitive] = primitiveSexprs;
|
|
2946
|
+
const value = toStringValue(valuePrimitive);
|
|
2947
|
+
return new _SymbolPower(value);
|
|
2894
2948
|
}
|
|
2895
2949
|
getChildren() {
|
|
2896
2950
|
return [];
|
|
2897
2951
|
}
|
|
2898
2952
|
getString() {
|
|
2899
|
-
|
|
2953
|
+
if (this.value === void 0) {
|
|
2954
|
+
return "(power)";
|
|
2955
|
+
}
|
|
2956
|
+
return `(power ${quoteIfNeeded(this.value)})`;
|
|
2900
2957
|
}
|
|
2901
2958
|
};
|
|
2902
2959
|
SxClass.register(SymbolPower);
|
|
@@ -2908,11 +2965,14 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
2908
2965
|
_sxAt;
|
|
2909
2966
|
_sxMirror;
|
|
2910
2967
|
_sxUnit;
|
|
2968
|
+
_sxBodyStyle;
|
|
2969
|
+
_sxBodyStyles;
|
|
2911
2970
|
_sxPinNumbers;
|
|
2912
2971
|
_sxPinNames;
|
|
2913
2972
|
_sxExcludeFromSim;
|
|
2914
2973
|
_sxInBom;
|
|
2915
2974
|
_sxOnBoard;
|
|
2975
|
+
_sxInPosFiles;
|
|
2916
2976
|
_sxDnp;
|
|
2917
2977
|
_sxUuid;
|
|
2918
2978
|
_sxDuplicatePinNumbersAreJumpers;
|
|
@@ -2938,12 +2998,15 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
2938
2998
|
if (params.mirror !== void 0) this.mirror = params.mirror;
|
|
2939
2999
|
if (params.unit !== void 0)
|
|
2940
3000
|
this.unit = typeof params.unit === "number" ? params.unit : params.unit.value;
|
|
3001
|
+
if (params.bodyStyle !== void 0) this.bodyStyle = params.bodyStyle;
|
|
3002
|
+
if (params.bodyStyles !== void 0) this.bodyStyles = params.bodyStyles;
|
|
2941
3003
|
if (params.pinNumbers !== void 0) this.pinNumbers = params.pinNumbers;
|
|
2942
3004
|
if (params.pinNames !== void 0) this.pinNames = params.pinNames;
|
|
2943
3005
|
if (params.excludeFromSim !== void 0)
|
|
2944
3006
|
this.excludeFromSim = params.excludeFromSim;
|
|
2945
3007
|
if (params.inBom !== void 0) this.inBom = params.inBom;
|
|
2946
3008
|
if (params.onBoard !== void 0) this.onBoard = params.onBoard;
|
|
3009
|
+
if (params.inPosFiles !== void 0) this.inPosFiles = params.inPosFiles;
|
|
2947
3010
|
if (params.dnp !== void 0) this.dnp = params.dnp;
|
|
2948
3011
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
2949
3012
|
if (params.duplicatePinNumbersAreJumpers !== void 0)
|
|
@@ -3014,6 +3077,26 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
3014
3077
|
set unit(value) {
|
|
3015
3078
|
this._sxUnit = value === void 0 ? void 0 : SymbolUnit.from(value);
|
|
3016
3079
|
}
|
|
3080
|
+
get bodyStyle() {
|
|
3081
|
+
return this._sxBodyStyle?.value;
|
|
3082
|
+
}
|
|
3083
|
+
set bodyStyle(value) {
|
|
3084
|
+
if (value === void 0) {
|
|
3085
|
+
this._sxBodyStyle = void 0;
|
|
3086
|
+
return;
|
|
3087
|
+
}
|
|
3088
|
+
this._sxBodyStyle = value instanceof SymbolBodyStyle ? value : new SymbolBodyStyle(value);
|
|
3089
|
+
}
|
|
3090
|
+
get bodyStyles() {
|
|
3091
|
+
return this._sxBodyStyles?.value;
|
|
3092
|
+
}
|
|
3093
|
+
set bodyStyles(value) {
|
|
3094
|
+
if (value === void 0) {
|
|
3095
|
+
this._sxBodyStyles = void 0;
|
|
3096
|
+
return;
|
|
3097
|
+
}
|
|
3098
|
+
this._sxBodyStyles = value instanceof SymbolBodyStyles ? value : new SymbolBodyStyles(value);
|
|
3099
|
+
}
|
|
3017
3100
|
get pinNumbers() {
|
|
3018
3101
|
return this._sxPinNumbers;
|
|
3019
3102
|
}
|
|
@@ -3044,6 +3127,12 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
3044
3127
|
set onBoard(value) {
|
|
3045
3128
|
this._sxOnBoard = value === void 0 ? void 0 : new OnBoard(value);
|
|
3046
3129
|
}
|
|
3130
|
+
get inPosFiles() {
|
|
3131
|
+
return this._sxInPosFiles?.value;
|
|
3132
|
+
}
|
|
3133
|
+
set inPosFiles(value) {
|
|
3134
|
+
this._sxInPosFiles = value === void 0 ? void 0 : new InPosFiles(value);
|
|
3135
|
+
}
|
|
3047
3136
|
get dnp() {
|
|
3048
3137
|
return this._sxDnp?.value ?? false;
|
|
3049
3138
|
}
|
|
@@ -3101,11 +3190,14 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
3101
3190
|
symbol._sxAt = propertyMap.at;
|
|
3102
3191
|
symbol._sxMirror = propertyMap.mirror;
|
|
3103
3192
|
symbol._sxUnit = propertyMap.unit;
|
|
3193
|
+
symbol._sxBodyStyle = propertyMap.body_style;
|
|
3194
|
+
symbol._sxBodyStyles = propertyMap.body_styles;
|
|
3104
3195
|
symbol._sxPinNumbers = propertyMap.pin_numbers;
|
|
3105
3196
|
symbol._sxPinNames = propertyMap.pin_names;
|
|
3106
3197
|
symbol._sxExcludeFromSim = propertyMap.exclude_from_sim;
|
|
3107
3198
|
symbol._sxInBom = propertyMap.in_bom;
|
|
3108
3199
|
symbol._sxOnBoard = propertyMap.on_board;
|
|
3200
|
+
symbol._sxInPosFiles = propertyMap.in_pos_files;
|
|
3109
3201
|
symbol._sxDnp = propertyMap.dnp;
|
|
3110
3202
|
symbol._sxUuid = propertyMap.uuid;
|
|
3111
3203
|
symbol._sxDuplicatePinNumbersAreJumpers = propertyMap.duplicate_pin_numbers_are_jumpers;
|
|
@@ -3131,11 +3223,14 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
3131
3223
|
if (this._sxAt) children.push(this._sxAt);
|
|
3132
3224
|
if (this._sxMirror) children.push(this._sxMirror);
|
|
3133
3225
|
if (this._sxUnit) children.push(this._sxUnit);
|
|
3226
|
+
if (this._sxBodyStyle) children.push(this._sxBodyStyle);
|
|
3227
|
+
if (this._sxBodyStyles) children.push(this._sxBodyStyles);
|
|
3134
3228
|
if (this._sxPinNumbers) children.push(this._sxPinNumbers);
|
|
3135
3229
|
if (this._sxPinNames) children.push(this._sxPinNames);
|
|
3136
3230
|
if (this._sxExcludeFromSim) children.push(this._sxExcludeFromSim);
|
|
3137
3231
|
if (this._sxInBom) children.push(this._sxInBom);
|
|
3138
3232
|
if (this._sxOnBoard) children.push(this._sxOnBoard);
|
|
3233
|
+
if (this._sxInPosFiles) children.push(this._sxInPosFiles);
|
|
3139
3234
|
if (this._sxDnp) children.push(this._sxDnp);
|
|
3140
3235
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
3141
3236
|
if (this._sxDuplicatePinNumbersAreJumpers) {
|
|
@@ -3187,6 +3282,9 @@ var SymbolProperty = class _SymbolProperty extends SxClass {
|
|
|
3187
3282
|
value;
|
|
3188
3283
|
_sxId;
|
|
3189
3284
|
_sxAt;
|
|
3285
|
+
_sxShowName;
|
|
3286
|
+
_sxDoNotAutoplace;
|
|
3287
|
+
_sxHide;
|
|
3190
3288
|
_sxEffects;
|
|
3191
3289
|
constructor(params) {
|
|
3192
3290
|
super();
|
|
@@ -3194,6 +3292,15 @@ var SymbolProperty = class _SymbolProperty extends SxClass {
|
|
|
3194
3292
|
this.value = params.value;
|
|
3195
3293
|
this._sxId = params.id !== void 0 ? SymbolPropertyId.from(params.id) : void 0;
|
|
3196
3294
|
this._sxAt = params.at !== void 0 ? At.from(params.at) : void 0;
|
|
3295
|
+
if (params.showName !== void 0) {
|
|
3296
|
+
this._sxShowName = params.showName instanceof PropertyShowName ? params.showName : new PropertyShowName(params.showName);
|
|
3297
|
+
}
|
|
3298
|
+
if (params.doNotAutoplace !== void 0) {
|
|
3299
|
+
this._sxDoNotAutoplace = params.doNotAutoplace instanceof PropertyDoNotAutoplace ? params.doNotAutoplace : new PropertyDoNotAutoplace(params.doNotAutoplace);
|
|
3300
|
+
}
|
|
3301
|
+
if (params.hidden !== void 0) {
|
|
3302
|
+
this._sxHide = params.hidden instanceof PropertyHide ? params.hidden : new PropertyHide(params.hidden);
|
|
3303
|
+
}
|
|
3197
3304
|
this._sxEffects = params.effects;
|
|
3198
3305
|
}
|
|
3199
3306
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
@@ -3209,6 +3316,9 @@ var SymbolProperty = class _SymbolProperty extends SxClass {
|
|
|
3209
3316
|
value,
|
|
3210
3317
|
id: propertyMap.id,
|
|
3211
3318
|
at: propertyMap.at,
|
|
3319
|
+
showName: propertyMap.show_name,
|
|
3320
|
+
doNotAutoplace: propertyMap.do_not_autoplace,
|
|
3321
|
+
hidden: propertyMap.hide,
|
|
3212
3322
|
effects: propertyMap.effects
|
|
3213
3323
|
});
|
|
3214
3324
|
}
|
|
@@ -3224,6 +3334,24 @@ var SymbolProperty = class _SymbolProperty extends SxClass {
|
|
|
3224
3334
|
set at(value) {
|
|
3225
3335
|
this._sxAt = value !== void 0 ? At.from(value) : void 0;
|
|
3226
3336
|
}
|
|
3337
|
+
get showName() {
|
|
3338
|
+
return this._sxShowName?.value;
|
|
3339
|
+
}
|
|
3340
|
+
set showName(value) {
|
|
3341
|
+
this._sxShowName = value === void 0 ? void 0 : new PropertyShowName(value);
|
|
3342
|
+
}
|
|
3343
|
+
get doNotAutoplace() {
|
|
3344
|
+
return this._sxDoNotAutoplace?.value;
|
|
3345
|
+
}
|
|
3346
|
+
set doNotAutoplace(value) {
|
|
3347
|
+
this._sxDoNotAutoplace = value === void 0 ? void 0 : new PropertyDoNotAutoplace(value);
|
|
3348
|
+
}
|
|
3349
|
+
get hidden() {
|
|
3350
|
+
return this._sxHide?.value ?? false;
|
|
3351
|
+
}
|
|
3352
|
+
set hidden(value) {
|
|
3353
|
+
this._sxHide = new PropertyHide(value);
|
|
3354
|
+
}
|
|
3227
3355
|
get effects() {
|
|
3228
3356
|
return this._sxEffects;
|
|
3229
3357
|
}
|
|
@@ -3234,6 +3362,9 @@ var SymbolProperty = class _SymbolProperty extends SxClass {
|
|
|
3234
3362
|
const children = [];
|
|
3235
3363
|
if (this._sxId) children.push(this._sxId);
|
|
3236
3364
|
if (this._sxAt) children.push(this._sxAt);
|
|
3365
|
+
if (this._sxShowName) children.push(this._sxShowName);
|
|
3366
|
+
if (this._sxDoNotAutoplace) children.push(this._sxDoNotAutoplace);
|
|
3367
|
+
if (this._sxHide) children.push(this._sxHide);
|
|
3237
3368
|
if (this._sxEffects) children.push(this._sxEffects);
|
|
3238
3369
|
return children;
|
|
3239
3370
|
}
|
|
@@ -3241,14 +3372,8 @@ var SymbolProperty = class _SymbolProperty extends SxClass {
|
|
|
3241
3372
|
const lines = [
|
|
3242
3373
|
`(property ${quoteSExprString(this.key)} ${quoteSExprString(this.value)}`
|
|
3243
3374
|
];
|
|
3244
|
-
|
|
3245
|
-
lines.push(...indentLines(
|
|
3246
|
-
}
|
|
3247
|
-
if (this._sxAt) {
|
|
3248
|
-
lines.push(...indentLines(this._sxAt.getString()));
|
|
3249
|
-
}
|
|
3250
|
-
if (this._sxEffects) {
|
|
3251
|
-
lines.push(...indentLines(this._sxEffects.getString()));
|
|
3375
|
+
for (const child of this.getChildren()) {
|
|
3376
|
+
lines.push(...indentLines(child.getString()));
|
|
3252
3377
|
}
|
|
3253
3378
|
lines.push(")");
|
|
3254
3379
|
return lines.join("\n");
|
|
@@ -4409,14 +4534,6 @@ var Label = class _Label extends SxClass {
|
|
|
4409
4534
|
};
|
|
4410
4535
|
SxClass.register(Label);
|
|
4411
4536
|
|
|
4412
|
-
// lib/sexpr/classes/PropertyHide.ts
|
|
4413
|
-
var PropertyHide = class extends SxPrimitiveBoolean {
|
|
4414
|
-
static token = "hide";
|
|
4415
|
-
static parentToken = "property";
|
|
4416
|
-
token = "hide";
|
|
4417
|
-
};
|
|
4418
|
-
SxClass.register(PropertyHide);
|
|
4419
|
-
|
|
4420
4537
|
// lib/sexpr/classes/PropertyUnlocked.ts
|
|
4421
4538
|
var PropertyUnlocked = class extends SxPrimitiveBoolean {
|
|
4422
4539
|
static token = "unlocked";
|
|
@@ -5445,6 +5562,8 @@ var SheetProperty = class _SheetProperty extends SxClass {
|
|
|
5445
5562
|
value;
|
|
5446
5563
|
_sxId;
|
|
5447
5564
|
_sxAt;
|
|
5565
|
+
_sxShowName;
|
|
5566
|
+
_sxDoNotAutoplace;
|
|
5448
5567
|
_sxEffects;
|
|
5449
5568
|
constructor(params) {
|
|
5450
5569
|
super();
|
|
@@ -5452,6 +5571,8 @@ var SheetProperty = class _SheetProperty extends SxClass {
|
|
|
5452
5571
|
this.value = params.value;
|
|
5453
5572
|
this.id = params.id;
|
|
5454
5573
|
this.at = params.at;
|
|
5574
|
+
this.showName = params.showName;
|
|
5575
|
+
this.doNotAutoplace = params.doNotAutoplace;
|
|
5455
5576
|
this.effects = params.effects;
|
|
5456
5577
|
}
|
|
5457
5578
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
@@ -5470,6 +5591,8 @@ var SheetProperty = class _SheetProperty extends SxClass {
|
|
|
5470
5591
|
value,
|
|
5471
5592
|
id: propertyMap.id,
|
|
5472
5593
|
at: propertyMap.at,
|
|
5594
|
+
showName: propertyMap.show_name,
|
|
5595
|
+
doNotAutoplace: propertyMap.do_not_autoplace,
|
|
5473
5596
|
effects: propertyMap.effects
|
|
5474
5597
|
});
|
|
5475
5598
|
}
|
|
@@ -5492,6 +5615,26 @@ var SheetProperty = class _SheetProperty extends SxClass {
|
|
|
5492
5615
|
set at(value) {
|
|
5493
5616
|
this._sxAt = value;
|
|
5494
5617
|
}
|
|
5618
|
+
get showName() {
|
|
5619
|
+
return this._sxShowName?.value;
|
|
5620
|
+
}
|
|
5621
|
+
set showName(value) {
|
|
5622
|
+
if (value === void 0) {
|
|
5623
|
+
this._sxShowName = void 0;
|
|
5624
|
+
return;
|
|
5625
|
+
}
|
|
5626
|
+
this._sxShowName = value instanceof PropertyShowName ? value : new PropertyShowName(value);
|
|
5627
|
+
}
|
|
5628
|
+
get doNotAutoplace() {
|
|
5629
|
+
return this._sxDoNotAutoplace?.value;
|
|
5630
|
+
}
|
|
5631
|
+
set doNotAutoplace(value) {
|
|
5632
|
+
if (value === void 0) {
|
|
5633
|
+
this._sxDoNotAutoplace = void 0;
|
|
5634
|
+
return;
|
|
5635
|
+
}
|
|
5636
|
+
this._sxDoNotAutoplace = value instanceof PropertyDoNotAutoplace ? value : new PropertyDoNotAutoplace(value);
|
|
5637
|
+
}
|
|
5495
5638
|
get effects() {
|
|
5496
5639
|
return this._sxEffects;
|
|
5497
5640
|
}
|
|
@@ -5502,6 +5645,8 @@ var SheetProperty = class _SheetProperty extends SxClass {
|
|
|
5502
5645
|
const children = [];
|
|
5503
5646
|
if (this._sxId) children.push(this._sxId);
|
|
5504
5647
|
if (this._sxAt) children.push(this._sxAt);
|
|
5648
|
+
if (this._sxShowName) children.push(this._sxShowName);
|
|
5649
|
+
if (this._sxDoNotAutoplace) children.push(this._sxDoNotAutoplace);
|
|
5505
5650
|
if (this._sxEffects) children.push(this._sxEffects);
|
|
5506
5651
|
return children;
|
|
5507
5652
|
}
|
|
@@ -18953,6 +19098,7 @@ export {
|
|
|
18953
19098
|
ImageData,
|
|
18954
19099
|
ImageScale,
|
|
18955
19100
|
InBom,
|
|
19101
|
+
InPosFiles,
|
|
18956
19102
|
Junction,
|
|
18957
19103
|
JunctionDiameter,
|
|
18958
19104
|
KicadPcb,
|
|
@@ -19066,7 +19212,9 @@ export {
|
|
|
19066
19212
|
Plugging,
|
|
19067
19213
|
Polyline,
|
|
19068
19214
|
Property,
|
|
19215
|
+
PropertyDoNotAutoplace,
|
|
19069
19216
|
PropertyHide,
|
|
19217
|
+
PropertyShowName,
|
|
19070
19218
|
PropertyUnlocked,
|
|
19071
19219
|
Pts,
|
|
19072
19220
|
PtsArc,
|
|
@@ -19153,6 +19301,8 @@ export {
|
|
|
19153
19301
|
SymbolArcFill,
|
|
19154
19302
|
SymbolArcMid,
|
|
19155
19303
|
SymbolArcStart,
|
|
19304
|
+
SymbolBodyStyle,
|
|
19305
|
+
SymbolBodyStyles,
|
|
19156
19306
|
SymbolCircle,
|
|
19157
19307
|
SymbolCircleCenter,
|
|
19158
19308
|
SymbolCircleFill,
|