kicadts 0.0.35 → 0.0.36
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 +28 -4
- package/dist/index.js +144 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2818,6 +2818,7 @@ interface FpTextConstructorParams {
|
|
|
2818
2818
|
type?: FpTextType;
|
|
2819
2819
|
text?: string;
|
|
2820
2820
|
position?: AtInput | Xy;
|
|
2821
|
+
locked?: boolean;
|
|
2821
2822
|
unlocked?: boolean;
|
|
2822
2823
|
hidden?: boolean;
|
|
2823
2824
|
layer?: Layer | string | string[];
|
|
@@ -2831,6 +2832,7 @@ declare class FpText extends SxClass {
|
|
|
2831
2832
|
private _type?;
|
|
2832
2833
|
private _text;
|
|
2833
2834
|
private _sxPosition?;
|
|
2835
|
+
private _sxLocked?;
|
|
2834
2836
|
private _sxUnlocked?;
|
|
2835
2837
|
private _sxHide?;
|
|
2836
2838
|
private _sxLayer?;
|
|
@@ -2845,6 +2847,8 @@ declare class FpText extends SxClass {
|
|
|
2845
2847
|
set text(value: string);
|
|
2846
2848
|
get position(): At | Xy | undefined;
|
|
2847
2849
|
set position(value: AtInput | Xy | undefined);
|
|
2850
|
+
get locked(): boolean;
|
|
2851
|
+
set locked(value: boolean);
|
|
2848
2852
|
get unlocked(): boolean;
|
|
2849
2853
|
set unlocked(value: boolean);
|
|
2850
2854
|
get hidden(): boolean;
|
|
@@ -3454,6 +3458,7 @@ declare class FootprintModel extends SxClass {
|
|
|
3454
3458
|
private _offset?;
|
|
3455
3459
|
private _scale?;
|
|
3456
3460
|
private _rotate?;
|
|
3461
|
+
private _opacity?;
|
|
3457
3462
|
private _hide;
|
|
3458
3463
|
constructor(path: string);
|
|
3459
3464
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): FootprintModel;
|
|
@@ -3465,6 +3470,8 @@ declare class FootprintModel extends SxClass {
|
|
|
3465
3470
|
set scale(value: ModelVector | undefined);
|
|
3466
3471
|
get rotate(): ModelVector | undefined;
|
|
3467
3472
|
set rotate(value: ModelVector | undefined);
|
|
3473
|
+
get opacity(): number | undefined;
|
|
3474
|
+
set opacity(value: number | undefined);
|
|
3468
3475
|
get hide(): boolean;
|
|
3469
3476
|
set hide(value: boolean);
|
|
3470
3477
|
getChildren(): SxClass[];
|
|
@@ -4235,6 +4242,7 @@ interface GrArcConstructorParams {
|
|
|
4235
4242
|
stroke?: Stroke;
|
|
4236
4243
|
tstamp?: Tstamp | string;
|
|
4237
4244
|
uuid?: Uuid | string;
|
|
4245
|
+
locked?: boolean;
|
|
4238
4246
|
}
|
|
4239
4247
|
declare class GrArc extends SxClass {
|
|
4240
4248
|
static token: string;
|
|
@@ -4247,6 +4255,7 @@ declare class GrArc extends SxClass {
|
|
|
4247
4255
|
private _sxStroke?;
|
|
4248
4256
|
private _sxTstamp?;
|
|
4249
4257
|
private _sxUuid?;
|
|
4258
|
+
private _sxLocked?;
|
|
4250
4259
|
constructor(params?: GrArcConstructorParams);
|
|
4251
4260
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): GrArc;
|
|
4252
4261
|
get start(): GrArcStart | undefined;
|
|
@@ -4270,6 +4279,8 @@ declare class GrArc extends SxClass {
|
|
|
4270
4279
|
set tstamp(value: Tstamp | string | undefined);
|
|
4271
4280
|
get uuid(): Uuid | undefined;
|
|
4272
4281
|
set uuid(value: Uuid | string | undefined);
|
|
4282
|
+
get locked(): boolean;
|
|
4283
|
+
set locked(value: boolean);
|
|
4273
4284
|
getChildren(): SxClass[];
|
|
4274
4285
|
private normalizeStart;
|
|
4275
4286
|
private normalizeMid;
|
|
@@ -4518,6 +4529,15 @@ declare class GrLineLocked extends SxPrimitiveBoolean {
|
|
|
4518
4529
|
getString(): string;
|
|
4519
4530
|
}
|
|
4520
4531
|
|
|
4532
|
+
declare class GrArcLocked extends SxPrimitiveBoolean {
|
|
4533
|
+
static token: string;
|
|
4534
|
+
static parentToken: string;
|
|
4535
|
+
token: string;
|
|
4536
|
+
constructor(value: boolean);
|
|
4537
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): GrArcLocked;
|
|
4538
|
+
getString(): string;
|
|
4539
|
+
}
|
|
4540
|
+
|
|
4521
4541
|
interface GrRectConstructorParams {
|
|
4522
4542
|
start?: GrRectStart | {
|
|
4523
4543
|
x: number;
|
|
@@ -4923,7 +4943,8 @@ interface PcbArcConstructorParams {
|
|
|
4923
4943
|
end?: PcbArcPoint;
|
|
4924
4944
|
width?: number | Width;
|
|
4925
4945
|
layer?: string | Layer;
|
|
4926
|
-
net?: number;
|
|
4946
|
+
net?: number | string;
|
|
4947
|
+
locked?: boolean;
|
|
4927
4948
|
uuid?: string | Uuid;
|
|
4928
4949
|
}
|
|
4929
4950
|
declare class PcbArc extends SxClass {
|
|
@@ -4936,6 +4957,7 @@ declare class PcbArc extends SxClass {
|
|
|
4936
4957
|
private _sxWidth?;
|
|
4937
4958
|
private _sxLayer?;
|
|
4938
4959
|
private _net?;
|
|
4960
|
+
private _locked;
|
|
4939
4961
|
private _sxUuid?;
|
|
4940
4962
|
constructor(params?: PcbArcConstructorParams);
|
|
4941
4963
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): PcbArc;
|
|
@@ -4949,8 +4971,10 @@ declare class PcbArc extends SxClass {
|
|
|
4949
4971
|
set width(value: number | Width | undefined);
|
|
4950
4972
|
get layer(): Layer | undefined;
|
|
4951
4973
|
set layer(value: string | Layer | undefined);
|
|
4952
|
-
get net(): number | undefined;
|
|
4953
|
-
set net(value: number | undefined);
|
|
4974
|
+
get net(): number | string | undefined;
|
|
4975
|
+
set net(value: number | string | undefined);
|
|
4976
|
+
get locked(): boolean;
|
|
4977
|
+
set locked(value: boolean);
|
|
4954
4978
|
get uuid(): Uuid | undefined;
|
|
4955
4979
|
set uuid(value: string | Uuid | undefined);
|
|
4956
4980
|
getChildren(): SxClass[];
|
|
@@ -6296,4 +6320,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
|
|
|
6296
6320
|
declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
6297
6321
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
6298
6322
|
|
|
6299
|
-
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, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneHatch, ZoneKeepout, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
|
6323
|
+
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, 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, 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, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneHatch, ZoneKeepout, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
package/dist/index.js
CHANGED
|
@@ -9006,6 +9006,7 @@ var SUPPORTED_SINGLE_TOKENS2 = /* @__PURE__ */ new Set([
|
|
|
9006
9006
|
"effects",
|
|
9007
9007
|
"tstamp",
|
|
9008
9008
|
"uuid",
|
|
9009
|
+
"locked",
|
|
9009
9010
|
"unlocked",
|
|
9010
9011
|
"hide"
|
|
9011
9012
|
]);
|
|
@@ -9016,6 +9017,7 @@ var FpText = class _FpText extends SxClass {
|
|
|
9016
9017
|
_type;
|
|
9017
9018
|
_text = "";
|
|
9018
9019
|
_sxPosition;
|
|
9020
|
+
_sxLocked;
|
|
9019
9021
|
_sxUnlocked;
|
|
9020
9022
|
_sxHide;
|
|
9021
9023
|
_sxLayer;
|
|
@@ -9027,6 +9029,7 @@ var FpText = class _FpText extends SxClass {
|
|
|
9027
9029
|
if (params.type !== void 0) this.type = params.type;
|
|
9028
9030
|
if (params.text !== void 0) this.text = params.text;
|
|
9029
9031
|
if (params.position !== void 0) this.position = params.position;
|
|
9032
|
+
if (params.locked !== void 0) this.locked = params.locked;
|
|
9030
9033
|
if (params.unlocked !== void 0) this.unlocked = params.unlocked;
|
|
9031
9034
|
if (params.hidden !== void 0) this.hidden = params.hidden;
|
|
9032
9035
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
@@ -9107,6 +9110,7 @@ var FpText = class _FpText extends SxClass {
|
|
|
9107
9110
|
fpText._sxEffects = propertyMap.effects;
|
|
9108
9111
|
fpText._sxTstamp = propertyMap.tstamp;
|
|
9109
9112
|
fpText._sxUuid = propertyMap.uuid;
|
|
9113
|
+
fpText._sxLocked = propertyMap.locked;
|
|
9110
9114
|
const unlockedEntry = propertyMap.unlocked;
|
|
9111
9115
|
const hideEntry = propertyMap.hide;
|
|
9112
9116
|
if (unlockedEntry && sawBareUnlocked) {
|
|
@@ -9155,6 +9159,12 @@ var FpText = class _FpText extends SxClass {
|
|
|
9155
9159
|
}
|
|
9156
9160
|
this._sxPosition = At.from(value);
|
|
9157
9161
|
}
|
|
9162
|
+
get locked() {
|
|
9163
|
+
return this._sxLocked?.value ?? false;
|
|
9164
|
+
}
|
|
9165
|
+
set locked(value) {
|
|
9166
|
+
this._sxLocked = value ? new FpTextLocked({ value: true }) : void 0;
|
|
9167
|
+
}
|
|
9158
9168
|
get unlocked() {
|
|
9159
9169
|
return this._sxUnlocked?.value ?? false;
|
|
9160
9170
|
}
|
|
@@ -9210,6 +9220,7 @@ var FpText = class _FpText extends SxClass {
|
|
|
9210
9220
|
}
|
|
9211
9221
|
getChildren() {
|
|
9212
9222
|
const children = [];
|
|
9223
|
+
if (this._sxLocked) children.push(this._sxLocked);
|
|
9213
9224
|
if (this._sxPosition) children.push(this._sxPosition);
|
|
9214
9225
|
if (this._sxUnlocked) children.push(this._sxUnlocked);
|
|
9215
9226
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
@@ -9267,6 +9278,29 @@ var FpTextUnlocked = class _FpTextUnlocked extends SxClass {
|
|
|
9267
9278
|
}
|
|
9268
9279
|
};
|
|
9269
9280
|
SxClass.register(FpTextUnlocked);
|
|
9281
|
+
var FpTextLocked = class _FpTextLocked extends SxClass {
|
|
9282
|
+
static token = "locked";
|
|
9283
|
+
static parentToken = "fp_text";
|
|
9284
|
+
token = "locked";
|
|
9285
|
+
value;
|
|
9286
|
+
constructor(options = {}) {
|
|
9287
|
+
super();
|
|
9288
|
+
this.value = options.value ?? true;
|
|
9289
|
+
}
|
|
9290
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
9291
|
+
const [raw] = primitiveSexprs;
|
|
9292
|
+
const rawString = toStringValue(raw);
|
|
9293
|
+
const value = rawString === void 0 ? true : !/^(no|false)$/iu.test(rawString);
|
|
9294
|
+
return new _FpTextLocked({ value });
|
|
9295
|
+
}
|
|
9296
|
+
getChildren() {
|
|
9297
|
+
return [];
|
|
9298
|
+
}
|
|
9299
|
+
getString() {
|
|
9300
|
+
return `(locked ${this.value ? "yes" : "no"})`;
|
|
9301
|
+
}
|
|
9302
|
+
};
|
|
9303
|
+
SxClass.register(FpTextLocked);
|
|
9270
9304
|
var FpTextHide = class _FpTextHide extends SxClass {
|
|
9271
9305
|
static token = "hide";
|
|
9272
9306
|
static parentToken = "fp_text";
|
|
@@ -11129,6 +11163,7 @@ var FootprintModel = class _FootprintModel extends SxClass {
|
|
|
11129
11163
|
_offset;
|
|
11130
11164
|
_scale;
|
|
11131
11165
|
_rotate;
|
|
11166
|
+
_opacity;
|
|
11132
11167
|
_hide = false;
|
|
11133
11168
|
constructor(path) {
|
|
11134
11169
|
super();
|
|
@@ -11170,6 +11205,10 @@ var FootprintModel = class _FootprintModel extends SxClass {
|
|
|
11170
11205
|
model._rotate = parseVectorArgs(args, "rotate");
|
|
11171
11206
|
continue;
|
|
11172
11207
|
}
|
|
11208
|
+
if (token === "opacity") {
|
|
11209
|
+
model._opacity = parseOpacityArgs(args);
|
|
11210
|
+
continue;
|
|
11211
|
+
}
|
|
11173
11212
|
if (token === "hide") {
|
|
11174
11213
|
model._hide = parseHideArgs(args);
|
|
11175
11214
|
continue;
|
|
@@ -11202,6 +11241,12 @@ var FootprintModel = class _FootprintModel extends SxClass {
|
|
|
11202
11241
|
set rotate(value) {
|
|
11203
11242
|
this._rotate = value ? { ...value } : void 0;
|
|
11204
11243
|
}
|
|
11244
|
+
get opacity() {
|
|
11245
|
+
return this._opacity;
|
|
11246
|
+
}
|
|
11247
|
+
set opacity(value) {
|
|
11248
|
+
this._opacity = value;
|
|
11249
|
+
}
|
|
11205
11250
|
get hide() {
|
|
11206
11251
|
return this._hide;
|
|
11207
11252
|
}
|
|
@@ -11216,6 +11261,9 @@ var FootprintModel = class _FootprintModel extends SxClass {
|
|
|
11216
11261
|
if (this._hide) {
|
|
11217
11262
|
lines.push(" (hide yes)");
|
|
11218
11263
|
}
|
|
11264
|
+
if (this._opacity !== void 0) {
|
|
11265
|
+
lines.push(` (opacity ${this._opacity})`);
|
|
11266
|
+
}
|
|
11219
11267
|
if (this._offset) {
|
|
11220
11268
|
lines.push(renderVectorBlock("offset", this._offset));
|
|
11221
11269
|
}
|
|
@@ -11266,6 +11314,18 @@ function parseHideArgs(args) {
|
|
|
11266
11314
|
}
|
|
11267
11315
|
return parsed;
|
|
11268
11316
|
}
|
|
11317
|
+
function parseOpacityArgs(args) {
|
|
11318
|
+
if (args.length !== 1) {
|
|
11319
|
+
throw new Error("model opacity expects a single number");
|
|
11320
|
+
}
|
|
11321
|
+
const opacity = toNumberValue(args[0]);
|
|
11322
|
+
if (opacity === void 0) {
|
|
11323
|
+
throw new Error(
|
|
11324
|
+
`model opacity expects a number, received ${JSON.stringify(args[0])}`
|
|
11325
|
+
);
|
|
11326
|
+
}
|
|
11327
|
+
return opacity;
|
|
11328
|
+
}
|
|
11269
11329
|
|
|
11270
11330
|
// lib/sexpr/classes/EmbeddedFileChecksum.ts
|
|
11271
11331
|
var EmbeddedFileChecksum = class _EmbeddedFileChecksum extends SxClass {
|
|
@@ -13469,6 +13529,34 @@ var Footprint = class _Footprint extends SxClass {
|
|
|
13469
13529
|
};
|
|
13470
13530
|
SxClass.register(Footprint);
|
|
13471
13531
|
|
|
13532
|
+
// lib/sexpr/classes/GrArcLocked.ts
|
|
13533
|
+
var truthyStrings3 = /* @__PURE__ */ new Set(["true", "yes", "1"]);
|
|
13534
|
+
var GrArcLocked = class _GrArcLocked extends SxPrimitiveBoolean {
|
|
13535
|
+
static token = "locked";
|
|
13536
|
+
static parentToken = "gr_arc";
|
|
13537
|
+
token = "locked";
|
|
13538
|
+
constructor(value) {
|
|
13539
|
+
super(value);
|
|
13540
|
+
}
|
|
13541
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
13542
|
+
const [rawValue] = primitiveSexprs;
|
|
13543
|
+
if (rawValue === void 0) {
|
|
13544
|
+
return new _GrArcLocked(true);
|
|
13545
|
+
}
|
|
13546
|
+
if (typeof rawValue === "boolean") {
|
|
13547
|
+
return new _GrArcLocked(rawValue);
|
|
13548
|
+
}
|
|
13549
|
+
if (typeof rawValue === "string") {
|
|
13550
|
+
return new _GrArcLocked(truthyStrings3.has(rawValue.toLowerCase()));
|
|
13551
|
+
}
|
|
13552
|
+
return new _GrArcLocked(false);
|
|
13553
|
+
}
|
|
13554
|
+
getString() {
|
|
13555
|
+
return `(locked ${this.value ? "yes" : "no"})`;
|
|
13556
|
+
}
|
|
13557
|
+
};
|
|
13558
|
+
SxClass.register(GrArcLocked);
|
|
13559
|
+
|
|
13472
13560
|
// lib/sexpr/classes/GrArc.ts
|
|
13473
13561
|
var SUPPORTED_SINGLE_TOKENS6 = /* @__PURE__ */ new Set([
|
|
13474
13562
|
"start",
|
|
@@ -13478,7 +13566,8 @@ var SUPPORTED_SINGLE_TOKENS6 = /* @__PURE__ */ new Set([
|
|
|
13478
13566
|
"width",
|
|
13479
13567
|
"stroke",
|
|
13480
13568
|
"tstamp",
|
|
13481
|
-
"uuid"
|
|
13569
|
+
"uuid",
|
|
13570
|
+
"locked"
|
|
13482
13571
|
]);
|
|
13483
13572
|
var GrArc = class _GrArc extends SxClass {
|
|
13484
13573
|
static token = "gr_arc";
|
|
@@ -13491,6 +13580,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
13491
13580
|
_sxStroke;
|
|
13492
13581
|
_sxTstamp;
|
|
13493
13582
|
_sxUuid;
|
|
13583
|
+
_sxLocked;
|
|
13494
13584
|
constructor(params = {}) {
|
|
13495
13585
|
super();
|
|
13496
13586
|
if (params.start !== void 0) this.start = params.start;
|
|
@@ -13501,6 +13591,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
13501
13591
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
13502
13592
|
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
13503
13593
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
13594
|
+
if (params.locked !== void 0) this.locked = params.locked;
|
|
13504
13595
|
}
|
|
13505
13596
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
13506
13597
|
const grArc = new _GrArc();
|
|
@@ -13541,6 +13632,8 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
13541
13632
|
grArc._sxStroke = propertyMap.stroke;
|
|
13542
13633
|
grArc._sxTstamp = propertyMap.tstamp;
|
|
13543
13634
|
grArc._sxUuid = propertyMap.uuid;
|
|
13635
|
+
const locked = propertyMap.locked;
|
|
13636
|
+
grArc._sxLocked = locked && locked.value ? locked : void 0;
|
|
13544
13637
|
if (!grArc._sxStart) {
|
|
13545
13638
|
throw new Error("gr_arc requires a start child token");
|
|
13546
13639
|
}
|
|
@@ -13639,6 +13732,12 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
13639
13732
|
}
|
|
13640
13733
|
this._sxUuid = value instanceof Uuid ? value : new Uuid(value);
|
|
13641
13734
|
}
|
|
13735
|
+
get locked() {
|
|
13736
|
+
return this._sxLocked?.value ?? false;
|
|
13737
|
+
}
|
|
13738
|
+
set locked(value) {
|
|
13739
|
+
this._sxLocked = value ? new GrArcLocked(true) : void 0;
|
|
13740
|
+
}
|
|
13642
13741
|
getChildren() {
|
|
13643
13742
|
const children = [];
|
|
13644
13743
|
if (this._sxStart) children.push(this._sxStart);
|
|
@@ -13646,6 +13745,7 @@ var GrArc = class _GrArc extends SxClass {
|
|
|
13646
13745
|
if (this._sxEnd) children.push(this._sxEnd);
|
|
13647
13746
|
if (this._sxStroke) children.push(this._sxStroke);
|
|
13648
13747
|
if (this._sxWidth) children.push(this._sxWidth);
|
|
13748
|
+
if (this._sxLocked) children.push(this._sxLocked);
|
|
13649
13749
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
13650
13750
|
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
13651
13751
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
@@ -14287,7 +14387,7 @@ var GrLineAngle = class _GrLineAngle extends SxPrimitiveNumber {
|
|
|
14287
14387
|
SxClass.register(GrLineAngle);
|
|
14288
14388
|
|
|
14289
14389
|
// lib/sexpr/classes/GrLineLocked.ts
|
|
14290
|
-
var
|
|
14390
|
+
var truthyStrings4 = /* @__PURE__ */ new Set(["true", "yes", "1"]);
|
|
14291
14391
|
var GrLineLocked = class _GrLineLocked extends SxPrimitiveBoolean {
|
|
14292
14392
|
static token = "locked";
|
|
14293
14393
|
static parentToken = "gr_line";
|
|
@@ -14304,7 +14404,7 @@ var GrLineLocked = class _GrLineLocked extends SxPrimitiveBoolean {
|
|
|
14304
14404
|
return new _GrLineLocked(rawValue);
|
|
14305
14405
|
}
|
|
14306
14406
|
if (typeof rawValue === "string") {
|
|
14307
|
-
return new _GrLineLocked(
|
|
14407
|
+
return new _GrLineLocked(truthyStrings4.has(rawValue.toLowerCase()));
|
|
14308
14408
|
}
|
|
14309
14409
|
return new _GrLineLocked(false);
|
|
14310
14410
|
}
|
|
@@ -16170,6 +16270,7 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16170
16270
|
_sxWidth;
|
|
16171
16271
|
_sxLayer;
|
|
16172
16272
|
_net;
|
|
16273
|
+
_locked = false;
|
|
16173
16274
|
_sxUuid;
|
|
16174
16275
|
constructor(params = {}) {
|
|
16175
16276
|
super();
|
|
@@ -16179,6 +16280,7 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16179
16280
|
if (params.width !== void 0) this.width = params.width;
|
|
16180
16281
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
16181
16282
|
if (params.net !== void 0) this.net = params.net;
|
|
16283
|
+
if (params.locked !== void 0) this.locked = params.locked;
|
|
16182
16284
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
16183
16285
|
}
|
|
16184
16286
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
@@ -16212,7 +16314,11 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16212
16314
|
continue;
|
|
16213
16315
|
}
|
|
16214
16316
|
if (token === "net") {
|
|
16215
|
-
arc._net =
|
|
16317
|
+
arc._net = parseNet(args[0]);
|
|
16318
|
+
continue;
|
|
16319
|
+
}
|
|
16320
|
+
if (token === "locked") {
|
|
16321
|
+
arc._locked = parseLocked(args);
|
|
16216
16322
|
continue;
|
|
16217
16323
|
}
|
|
16218
16324
|
if (token === "uuid") {
|
|
@@ -16273,6 +16379,12 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16273
16379
|
set net(value) {
|
|
16274
16380
|
this._net = value;
|
|
16275
16381
|
}
|
|
16382
|
+
get locked() {
|
|
16383
|
+
return this._locked;
|
|
16384
|
+
}
|
|
16385
|
+
set locked(value) {
|
|
16386
|
+
this._locked = value;
|
|
16387
|
+
}
|
|
16276
16388
|
get uuid() {
|
|
16277
16389
|
return this._sxUuid;
|
|
16278
16390
|
}
|
|
@@ -16292,8 +16404,12 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16292
16404
|
if (this._mid) lines.push(renderPoint("mid", this._mid));
|
|
16293
16405
|
if (this._end) lines.push(renderPoint("end", this._end));
|
|
16294
16406
|
if (this._sxWidth) lines.push(this._sxWidth.getStringIndented());
|
|
16407
|
+
if (this._locked) lines.push(" (locked yes)");
|
|
16295
16408
|
if (this._sxLayer) lines.push(this._sxLayer.getStringIndented());
|
|
16296
|
-
if (this._net !== void 0)
|
|
16409
|
+
if (this._net !== void 0) {
|
|
16410
|
+
const netValue = typeof this._net === "number" ? String(this._net) : quoteSExprString(this._net);
|
|
16411
|
+
lines.push(` (net ${netValue})`);
|
|
16412
|
+
}
|
|
16297
16413
|
if (this._sxUuid) lines.push(this._sxUuid.getStringIndented());
|
|
16298
16414
|
lines.push(")");
|
|
16299
16415
|
return lines.join("\n");
|
|
@@ -16322,6 +16438,26 @@ function parseString(value, label) {
|
|
|
16322
16438
|
}
|
|
16323
16439
|
return value;
|
|
16324
16440
|
}
|
|
16441
|
+
function parseNet(value) {
|
|
16442
|
+
const numeric = toNumberValue(value);
|
|
16443
|
+
if (numeric !== void 0) return numeric;
|
|
16444
|
+
const stringValue = toStringValue(value);
|
|
16445
|
+
if (stringValue !== void 0) return stringValue;
|
|
16446
|
+
throw new Error("arc net expects a numeric id or string name");
|
|
16447
|
+
}
|
|
16448
|
+
function parseLocked(args) {
|
|
16449
|
+
if (args.length === 0) return true;
|
|
16450
|
+
if (args.length !== 1) {
|
|
16451
|
+
throw new Error("arc locked expects at most one value");
|
|
16452
|
+
}
|
|
16453
|
+
const parsed = parseYesNo(args[0]);
|
|
16454
|
+
if (parsed === void 0) {
|
|
16455
|
+
throw new Error(
|
|
16456
|
+
`arc locked expects yes/no, received ${JSON.stringify(args[0])}`
|
|
16457
|
+
);
|
|
16458
|
+
}
|
|
16459
|
+
return parsed;
|
|
16460
|
+
}
|
|
16325
16461
|
function parseLayer(args) {
|
|
16326
16462
|
if (args.length !== 1) {
|
|
16327
16463
|
throw new Error("arc layer expects a single string value");
|
|
@@ -16378,7 +16514,7 @@ var SegmentEnd = class _SegmentEnd extends SxClass {
|
|
|
16378
16514
|
SxClass.register(SegmentEnd);
|
|
16379
16515
|
|
|
16380
16516
|
// lib/sexpr/classes/SegmentLocked.ts
|
|
16381
|
-
var
|
|
16517
|
+
var truthyStrings5 = /* @__PURE__ */ new Set(["true", "yes", "1"]);
|
|
16382
16518
|
var SegmentLocked = class _SegmentLocked extends SxPrimitiveBoolean {
|
|
16383
16519
|
static token = "locked";
|
|
16384
16520
|
static parentToken = "segment";
|
|
@@ -16392,7 +16528,7 @@ var SegmentLocked = class _SegmentLocked extends SxPrimitiveBoolean {
|
|
|
16392
16528
|
return new _SegmentLocked(rawValue);
|
|
16393
16529
|
}
|
|
16394
16530
|
if (typeof rawValue === "string") {
|
|
16395
|
-
return new _SegmentLocked(
|
|
16531
|
+
return new _SegmentLocked(truthyStrings5.has(rawValue.toLowerCase()));
|
|
16396
16532
|
}
|
|
16397
16533
|
return new _SegmentLocked(false);
|
|
16398
16534
|
}
|
|
@@ -19993,6 +20129,7 @@ export {
|
|
|
19993
20129
|
GlobalLabel,
|
|
19994
20130
|
GrArc,
|
|
19995
20131
|
GrArcEnd,
|
|
20132
|
+
GrArcLocked,
|
|
19996
20133
|
GrArcMid,
|
|
19997
20134
|
GrArcStart,
|
|
19998
20135
|
GrCircle,
|