kicadts 0.0.17 → 0.0.18
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 +15 -1
- package/dist/index.js +40 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -619,6 +619,16 @@ declare class SymbolDuplicatePinNumbersAreJumpers extends SxPrimitiveBoolean {
|
|
|
619
619
|
static parentToken: string;
|
|
620
620
|
token: string;
|
|
621
621
|
}
|
|
622
|
+
declare class Mirror extends SxClass {
|
|
623
|
+
static token: string;
|
|
624
|
+
static parentToken: string;
|
|
625
|
+
token: string;
|
|
626
|
+
value: string;
|
|
627
|
+
constructor(value: string);
|
|
628
|
+
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): Mirror;
|
|
629
|
+
getChildren(): SxClass[];
|
|
630
|
+
getString(): string;
|
|
631
|
+
}
|
|
622
632
|
declare class SymbolPinNumbers extends SxClass {
|
|
623
633
|
static token: string;
|
|
624
634
|
static parentToken: string;
|
|
@@ -817,6 +827,7 @@ declare class SymbolPower extends SxClass {
|
|
|
817
827
|
interface SchematicSymbolConstructorParams {
|
|
818
828
|
libraryId?: string;
|
|
819
829
|
at?: AtInput;
|
|
830
|
+
mirror?: string | Mirror;
|
|
820
831
|
unit?: number | SymbolUnit;
|
|
821
832
|
pinNumbers?: SymbolPinNumbers;
|
|
822
833
|
pinNames?: SymbolPinNames;
|
|
@@ -843,6 +854,7 @@ declare class SchematicSymbol extends SxClass {
|
|
|
843
854
|
token: string;
|
|
844
855
|
private _sxLibId?;
|
|
845
856
|
_sxAt?: At;
|
|
857
|
+
_sxMirror?: Mirror;
|
|
846
858
|
_sxUnit?: SymbolUnit;
|
|
847
859
|
_sxPinNumbers?: SymbolPinNumbers;
|
|
848
860
|
_sxPinNames?: SymbolPinNames;
|
|
@@ -870,6 +882,8 @@ declare class SchematicSymbol extends SxClass {
|
|
|
870
882
|
set libraryId(value: string | SymbolLibId | undefined);
|
|
871
883
|
get at(): At | undefined;
|
|
872
884
|
set at(value: AtInput | undefined);
|
|
885
|
+
get mirror(): string | undefined;
|
|
886
|
+
set mirror(value: string | Mirror | undefined);
|
|
873
887
|
get unit(): number | undefined;
|
|
874
888
|
set unit(value: number | undefined);
|
|
875
889
|
get pinNumbers(): SymbolPinNumbers | undefined;
|
|
@@ -4828,4 +4842,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
|
|
|
4828
4842
|
declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
4829
4843
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
4830
4844
|
|
|
4831
|
-
export { At, type AtInput, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Color, Dnp, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcMid, type GrArcPoint, GrArcStart, GrCircle, GrCircleCenter, type GrCircleConstructorParams, GrCircleEnd, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrText, type GrTextConstructorParams, type GrTextPosition, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, 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, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, Paper, 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, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, type RGBAColor, RenderCache, SchematicPolyline, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolUnit, 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 };
|
|
4845
|
+
export { At, type AtInput, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Color, Dnp, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcMid, type GrArcPoint, GrArcStart, GrCircle, GrCircleCenter, type GrCircleConstructorParams, GrCircleEnd, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrText, type GrTextConstructorParams, type GrTextPosition, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, 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, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, Paper, 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, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, type RGBAColor, RenderCache, SchematicPolyline, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolUnit, 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
|
@@ -2064,6 +2064,31 @@ var SymbolDuplicatePinNumbersAreJumpers = class extends SxPrimitiveBoolean {
|
|
|
2064
2064
|
token = "duplicate_pin_numbers_are_jumpers";
|
|
2065
2065
|
};
|
|
2066
2066
|
SxClass.register(SymbolDuplicatePinNumbersAreJumpers);
|
|
2067
|
+
var Mirror = class _Mirror extends SxClass {
|
|
2068
|
+
static token = "mirror";
|
|
2069
|
+
static parentToken = "symbol";
|
|
2070
|
+
token = "mirror";
|
|
2071
|
+
value;
|
|
2072
|
+
constructor(value) {
|
|
2073
|
+
super();
|
|
2074
|
+
this.value = value;
|
|
2075
|
+
}
|
|
2076
|
+
static fromSexprPrimitives(primitiveSexprs) {
|
|
2077
|
+
const [valuePrimitive] = primitiveSexprs;
|
|
2078
|
+
const value = toStringValue(valuePrimitive);
|
|
2079
|
+
if (value === void 0) {
|
|
2080
|
+
throw new Error("mirror expects a string value (x or y)");
|
|
2081
|
+
}
|
|
2082
|
+
return new _Mirror(value);
|
|
2083
|
+
}
|
|
2084
|
+
getChildren() {
|
|
2085
|
+
return [];
|
|
2086
|
+
}
|
|
2087
|
+
getString() {
|
|
2088
|
+
return `(mirror ${this.value})`;
|
|
2089
|
+
}
|
|
2090
|
+
};
|
|
2091
|
+
SxClass.register(Mirror);
|
|
2067
2092
|
var SymbolPinNumbers = class _SymbolPinNumbers extends SxClass {
|
|
2068
2093
|
static token = "pin_numbers";
|
|
2069
2094
|
static parentToken = "symbol";
|
|
@@ -2521,6 +2546,7 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
2521
2546
|
token = "symbol";
|
|
2522
2547
|
_sxLibId;
|
|
2523
2548
|
_sxAt;
|
|
2549
|
+
_sxMirror;
|
|
2524
2550
|
_sxUnit;
|
|
2525
2551
|
_sxPinNumbers;
|
|
2526
2552
|
_sxPinNames;
|
|
@@ -2547,6 +2573,7 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
2547
2573
|
super();
|
|
2548
2574
|
if (params.libraryId !== void 0) this.libraryId = params.libraryId;
|
|
2549
2575
|
if (params.at !== void 0) this.at = params.at;
|
|
2576
|
+
if (params.mirror !== void 0) this.mirror = params.mirror;
|
|
2550
2577
|
if (params.unit !== void 0)
|
|
2551
2578
|
this.unit = typeof params.unit === "number" ? params.unit : params.unit.value;
|
|
2552
2579
|
if (params.pinNumbers !== void 0) this.pinNumbers = params.pinNumbers;
|
|
@@ -2598,6 +2625,16 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
2598
2625
|
set at(value) {
|
|
2599
2626
|
this._sxAt = value !== void 0 ? At.from(value) : void 0;
|
|
2600
2627
|
}
|
|
2628
|
+
get mirror() {
|
|
2629
|
+
return this._sxMirror?.value;
|
|
2630
|
+
}
|
|
2631
|
+
set mirror(value) {
|
|
2632
|
+
if (value === void 0) {
|
|
2633
|
+
this._sxMirror = void 0;
|
|
2634
|
+
return;
|
|
2635
|
+
}
|
|
2636
|
+
this._sxMirror = value instanceof Mirror ? value : new Mirror(value);
|
|
2637
|
+
}
|
|
2601
2638
|
get unit() {
|
|
2602
2639
|
return this._sxUnit?.value;
|
|
2603
2640
|
}
|
|
@@ -2688,6 +2725,7 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
2688
2725
|
symbol._inlineLibId = inlineId;
|
|
2689
2726
|
}
|
|
2690
2727
|
symbol._sxAt = propertyMap.at;
|
|
2728
|
+
symbol._sxMirror = propertyMap.mirror;
|
|
2691
2729
|
symbol._sxUnit = propertyMap.unit;
|
|
2692
2730
|
symbol._sxPinNumbers = propertyMap.pin_numbers;
|
|
2693
2731
|
symbol._sxPinNames = propertyMap.pin_names;
|
|
@@ -2715,6 +2753,7 @@ var SchematicSymbol = class _SchematicSymbol extends SxClass {
|
|
|
2715
2753
|
const children = [];
|
|
2716
2754
|
if (this._sxLibId) children.push(this._sxLibId);
|
|
2717
2755
|
if (this._sxAt) children.push(this._sxAt);
|
|
2756
|
+
if (this._sxMirror) children.push(this._sxMirror);
|
|
2718
2757
|
if (this._sxUnit) children.push(this._sxUnit);
|
|
2719
2758
|
if (this._sxPinNumbers) children.push(this._sxPinNumbers);
|
|
2720
2759
|
if (this._sxPinNames) children.push(this._sxPinNames);
|
|
@@ -15373,6 +15412,7 @@ export {
|
|
|
15373
15412
|
Layer,
|
|
15374
15413
|
Layers,
|
|
15375
15414
|
LibSymbols,
|
|
15415
|
+
Mirror,
|
|
15376
15416
|
NoConnect,
|
|
15377
15417
|
OnBoard,
|
|
15378
15418
|
PadChamfer,
|