@tscircuit/core 0.0.459 → 0.0.460
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 +642 -2
- package/dist/index.js +111 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tscircuit_props from '@tscircuit/props';
|
|
2
|
-
import { PlatformConfig, subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, diodeProps, fuseProps, jumperProps, ledProps, powerSourceProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, breakoutProps, breakoutPointProps, holeProps, pcbKeepoutProps, netAliasProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, cutoutProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, schematicTextProps, schematicBoxProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
|
|
2
|
+
import { PlatformConfig, subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, diodeProps, fuseProps, jumperProps, solderjumperProps, ledProps, powerSourceProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, breakoutProps, breakoutPointProps, holeProps, pcbKeepoutProps, netAliasProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, cutoutProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, schematicTextProps, schematicBoxProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
|
|
3
3
|
import React, { ReactElement, DetailedHTMLProps, SVGProps } from 'react';
|
|
4
4
|
export { createElement } from 'react';
|
|
5
5
|
import * as zod from 'zod';
|
|
@@ -4810,6 +4810,645 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
|
|
|
4810
4810
|
doInitialPcbTraceRender(): void;
|
|
4811
4811
|
}
|
|
4812
4812
|
|
|
4813
|
+
declare class SolderJumper<PinLabels extends string = never> extends NormalComponent<typeof solderjumperProps, PinLabels> {
|
|
4814
|
+
schematicDimensions: SchematicBoxDimensions | null;
|
|
4815
|
+
get defaultInternallyConnectedPinNames(): string[][];
|
|
4816
|
+
get config(): {
|
|
4817
|
+
schematicSymbolName: string;
|
|
4818
|
+
componentName: string;
|
|
4819
|
+
zodProps: zod.ZodObject<{
|
|
4820
|
+
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4821
|
+
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4822
|
+
pcbRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4823
|
+
schX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4824
|
+
schY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4825
|
+
schRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4826
|
+
layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
|
|
4827
|
+
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
4828
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4829
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4830
|
+
}, {
|
|
4831
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4832
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
4833
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4834
|
+
}>>;
|
|
4835
|
+
footprint: zod.ZodOptional<zod.ZodType<_tscircuit_props.Footprint, zod.ZodTypeDef, _tscircuit_props.Footprint>>;
|
|
4836
|
+
} & {
|
|
4837
|
+
supplierPartNumbers: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, zod.ZodArray<zod.ZodString, "many">>>;
|
|
4838
|
+
} & {
|
|
4839
|
+
key: zod.ZodOptional<zod.ZodAny>;
|
|
4840
|
+
name: zod.ZodString;
|
|
4841
|
+
cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
|
|
4842
|
+
rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
|
|
4843
|
+
x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
4844
|
+
y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
4845
|
+
z: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
4846
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4847
|
+
x: string | number;
|
|
4848
|
+
y: string | number;
|
|
4849
|
+
z: string | number;
|
|
4850
|
+
}, {
|
|
4851
|
+
x: string | number;
|
|
4852
|
+
y: string | number;
|
|
4853
|
+
z: string | number;
|
|
4854
|
+
}>]>>;
|
|
4855
|
+
positionOffset: zod.ZodOptional<zod.ZodObject<{
|
|
4856
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4857
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4858
|
+
z: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4859
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4860
|
+
x: number;
|
|
4861
|
+
y: number;
|
|
4862
|
+
z: number;
|
|
4863
|
+
}, {
|
|
4864
|
+
x: string | number;
|
|
4865
|
+
y: string | number;
|
|
4866
|
+
z: string | number;
|
|
4867
|
+
}>>;
|
|
4868
|
+
size: zod.ZodOptional<zod.ZodObject<{
|
|
4869
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4870
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4871
|
+
z: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4872
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4873
|
+
x: number;
|
|
4874
|
+
y: number;
|
|
4875
|
+
z: number;
|
|
4876
|
+
}, {
|
|
4877
|
+
x: string | number;
|
|
4878
|
+
y: string | number;
|
|
4879
|
+
z: string | number;
|
|
4880
|
+
}>>;
|
|
4881
|
+
}, {
|
|
4882
|
+
stlUrl: zod.ZodString;
|
|
4883
|
+
}>, "strip", zod.ZodTypeAny, {
|
|
4884
|
+
stlUrl: string;
|
|
4885
|
+
rotationOffset?: number | {
|
|
4886
|
+
x: string | number;
|
|
4887
|
+
y: string | number;
|
|
4888
|
+
z: string | number;
|
|
4889
|
+
} | undefined;
|
|
4890
|
+
positionOffset?: {
|
|
4891
|
+
x: number;
|
|
4892
|
+
y: number;
|
|
4893
|
+
z: number;
|
|
4894
|
+
} | undefined;
|
|
4895
|
+
size?: {
|
|
4896
|
+
x: number;
|
|
4897
|
+
y: number;
|
|
4898
|
+
z: number;
|
|
4899
|
+
} | undefined;
|
|
4900
|
+
}, {
|
|
4901
|
+
stlUrl: string;
|
|
4902
|
+
rotationOffset?: number | {
|
|
4903
|
+
x: string | number;
|
|
4904
|
+
y: string | number;
|
|
4905
|
+
z: string | number;
|
|
4906
|
+
} | undefined;
|
|
4907
|
+
positionOffset?: {
|
|
4908
|
+
x: string | number;
|
|
4909
|
+
y: string | number;
|
|
4910
|
+
z: string | number;
|
|
4911
|
+
} | undefined;
|
|
4912
|
+
size?: {
|
|
4913
|
+
x: string | number;
|
|
4914
|
+
y: string | number;
|
|
4915
|
+
z: string | number;
|
|
4916
|
+
} | undefined;
|
|
4917
|
+
}>, zod.ZodObject<zod.objectUtil.extendShape<{
|
|
4918
|
+
rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
|
|
4919
|
+
x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
4920
|
+
y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
4921
|
+
z: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
4922
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4923
|
+
x: string | number;
|
|
4924
|
+
y: string | number;
|
|
4925
|
+
z: string | number;
|
|
4926
|
+
}, {
|
|
4927
|
+
x: string | number;
|
|
4928
|
+
y: string | number;
|
|
4929
|
+
z: string | number;
|
|
4930
|
+
}>]>>;
|
|
4931
|
+
positionOffset: zod.ZodOptional<zod.ZodObject<{
|
|
4932
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4933
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4934
|
+
z: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4935
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4936
|
+
x: number;
|
|
4937
|
+
y: number;
|
|
4938
|
+
z: number;
|
|
4939
|
+
}, {
|
|
4940
|
+
x: string | number;
|
|
4941
|
+
y: string | number;
|
|
4942
|
+
z: string | number;
|
|
4943
|
+
}>>;
|
|
4944
|
+
size: zod.ZodOptional<zod.ZodObject<{
|
|
4945
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4946
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4947
|
+
z: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4948
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4949
|
+
x: number;
|
|
4950
|
+
y: number;
|
|
4951
|
+
z: number;
|
|
4952
|
+
}, {
|
|
4953
|
+
x: string | number;
|
|
4954
|
+
y: string | number;
|
|
4955
|
+
z: string | number;
|
|
4956
|
+
}>>;
|
|
4957
|
+
}, {
|
|
4958
|
+
objUrl: zod.ZodString;
|
|
4959
|
+
mtlUrl: zod.ZodOptional<zod.ZodString>;
|
|
4960
|
+
}>, "strip", zod.ZodTypeAny, {
|
|
4961
|
+
objUrl: string;
|
|
4962
|
+
rotationOffset?: number | {
|
|
4963
|
+
x: string | number;
|
|
4964
|
+
y: string | number;
|
|
4965
|
+
z: string | number;
|
|
4966
|
+
} | undefined;
|
|
4967
|
+
positionOffset?: {
|
|
4968
|
+
x: number;
|
|
4969
|
+
y: number;
|
|
4970
|
+
z: number;
|
|
4971
|
+
} | undefined;
|
|
4972
|
+
size?: {
|
|
4973
|
+
x: number;
|
|
4974
|
+
y: number;
|
|
4975
|
+
z: number;
|
|
4976
|
+
} | undefined;
|
|
4977
|
+
mtlUrl?: string | undefined;
|
|
4978
|
+
}, {
|
|
4979
|
+
objUrl: string;
|
|
4980
|
+
rotationOffset?: number | {
|
|
4981
|
+
x: string | number;
|
|
4982
|
+
y: string | number;
|
|
4983
|
+
z: string | number;
|
|
4984
|
+
} | undefined;
|
|
4985
|
+
positionOffset?: {
|
|
4986
|
+
x: string | number;
|
|
4987
|
+
y: string | number;
|
|
4988
|
+
z: string | number;
|
|
4989
|
+
} | undefined;
|
|
4990
|
+
size?: {
|
|
4991
|
+
x: string | number;
|
|
4992
|
+
y: string | number;
|
|
4993
|
+
z: string | number;
|
|
4994
|
+
} | undefined;
|
|
4995
|
+
mtlUrl?: string | undefined;
|
|
4996
|
+
}>, zod.ZodObject<zod.objectUtil.extendShape<{
|
|
4997
|
+
rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
|
|
4998
|
+
x: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
4999
|
+
y: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
5000
|
+
z: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
5001
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5002
|
+
x: string | number;
|
|
5003
|
+
y: string | number;
|
|
5004
|
+
z: string | number;
|
|
5005
|
+
}, {
|
|
5006
|
+
x: string | number;
|
|
5007
|
+
y: string | number;
|
|
5008
|
+
z: string | number;
|
|
5009
|
+
}>]>>;
|
|
5010
|
+
positionOffset: zod.ZodOptional<zod.ZodObject<{
|
|
5011
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
5012
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
5013
|
+
z: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
5014
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5015
|
+
x: number;
|
|
5016
|
+
y: number;
|
|
5017
|
+
z: number;
|
|
5018
|
+
}, {
|
|
5019
|
+
x: string | number;
|
|
5020
|
+
y: string | number;
|
|
5021
|
+
z: string | number;
|
|
5022
|
+
}>>;
|
|
5023
|
+
size: zod.ZodOptional<zod.ZodObject<{
|
|
5024
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
5025
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
5026
|
+
z: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
5027
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5028
|
+
x: number;
|
|
5029
|
+
y: number;
|
|
5030
|
+
z: number;
|
|
5031
|
+
}, {
|
|
5032
|
+
x: string | number;
|
|
5033
|
+
y: string | number;
|
|
5034
|
+
z: string | number;
|
|
5035
|
+
}>>;
|
|
5036
|
+
}, {
|
|
5037
|
+
jscad: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
5038
|
+
}>, "strip", zod.ZodTypeAny, {
|
|
5039
|
+
jscad: Record<string, any>;
|
|
5040
|
+
rotationOffset?: number | {
|
|
5041
|
+
x: string | number;
|
|
5042
|
+
y: string | number;
|
|
5043
|
+
z: string | number;
|
|
5044
|
+
} | undefined;
|
|
5045
|
+
positionOffset?: {
|
|
5046
|
+
x: number;
|
|
5047
|
+
y: number;
|
|
5048
|
+
z: number;
|
|
5049
|
+
} | undefined;
|
|
5050
|
+
size?: {
|
|
5051
|
+
x: number;
|
|
5052
|
+
y: number;
|
|
5053
|
+
z: number;
|
|
5054
|
+
} | undefined;
|
|
5055
|
+
}, {
|
|
5056
|
+
jscad: Record<string, any>;
|
|
5057
|
+
rotationOffset?: number | {
|
|
5058
|
+
x: string | number;
|
|
5059
|
+
y: string | number;
|
|
5060
|
+
z: string | number;
|
|
5061
|
+
} | undefined;
|
|
5062
|
+
positionOffset?: {
|
|
5063
|
+
x: string | number;
|
|
5064
|
+
y: string | number;
|
|
5065
|
+
z: string | number;
|
|
5066
|
+
} | undefined;
|
|
5067
|
+
size?: {
|
|
5068
|
+
x: string | number;
|
|
5069
|
+
y: string | number;
|
|
5070
|
+
z: string | number;
|
|
5071
|
+
} | undefined;
|
|
5072
|
+
}>]>>;
|
|
5073
|
+
children: zod.ZodOptional<zod.ZodAny>;
|
|
5074
|
+
symbolName: zod.ZodOptional<zod.ZodString>;
|
|
5075
|
+
doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
|
|
5076
|
+
} & {
|
|
5077
|
+
manufacturerPartNumber: zod.ZodOptional<zod.ZodString>;
|
|
5078
|
+
pinLabels: zod.ZodOptional<zod.ZodRecord<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
5079
|
+
schPinStyle: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
5080
|
+
marginLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5081
|
+
marginRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5082
|
+
marginTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5083
|
+
marginBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5084
|
+
leftMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5085
|
+
rightMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5086
|
+
topMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5087
|
+
bottomMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5088
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5089
|
+
marginLeft?: number | undefined;
|
|
5090
|
+
marginRight?: number | undefined;
|
|
5091
|
+
marginTop?: number | undefined;
|
|
5092
|
+
marginBottom?: number | undefined;
|
|
5093
|
+
leftMargin?: number | undefined;
|
|
5094
|
+
rightMargin?: number | undefined;
|
|
5095
|
+
topMargin?: number | undefined;
|
|
5096
|
+
bottomMargin?: number | undefined;
|
|
5097
|
+
}, {
|
|
5098
|
+
marginLeft?: string | number | undefined;
|
|
5099
|
+
marginRight?: string | number | undefined;
|
|
5100
|
+
marginTop?: string | number | undefined;
|
|
5101
|
+
marginBottom?: string | number | undefined;
|
|
5102
|
+
leftMargin?: string | number | undefined;
|
|
5103
|
+
rightMargin?: string | number | undefined;
|
|
5104
|
+
topMargin?: string | number | undefined;
|
|
5105
|
+
bottomMargin?: string | number | undefined;
|
|
5106
|
+
}>>>;
|
|
5107
|
+
schPinSpacing: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5108
|
+
schWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5109
|
+
schHeight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5110
|
+
schDirection: zod.ZodOptional<zod.ZodEnum<["left", "right"]>>;
|
|
5111
|
+
schPortArrangement: zod.ZodOptional<zod.ZodObject<{
|
|
5112
|
+
leftSize: zod.ZodOptional<zod.ZodNumber>;
|
|
5113
|
+
topSize: zod.ZodOptional<zod.ZodNumber>;
|
|
5114
|
+
rightSize: zod.ZodOptional<zod.ZodNumber>;
|
|
5115
|
+
bottomSize: zod.ZodOptional<zod.ZodNumber>;
|
|
5116
|
+
leftPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
5117
|
+
rightPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
5118
|
+
topPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
5119
|
+
bottomPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
5120
|
+
leftSide: zod.ZodOptional<zod.ZodObject<{
|
|
5121
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
5122
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
5123
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5124
|
+
pins: (string | number)[];
|
|
5125
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5126
|
+
}, {
|
|
5127
|
+
pins: (string | number)[];
|
|
5128
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5129
|
+
}>>;
|
|
5130
|
+
rightSide: zod.ZodOptional<zod.ZodObject<{
|
|
5131
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
5132
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
5133
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5134
|
+
pins: (string | number)[];
|
|
5135
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5136
|
+
}, {
|
|
5137
|
+
pins: (string | number)[];
|
|
5138
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5139
|
+
}>>;
|
|
5140
|
+
topSide: zod.ZodOptional<zod.ZodObject<{
|
|
5141
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
5142
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
5143
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5144
|
+
pins: (string | number)[];
|
|
5145
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5146
|
+
}, {
|
|
5147
|
+
pins: (string | number)[];
|
|
5148
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5149
|
+
}>>;
|
|
5150
|
+
bottomSide: zod.ZodOptional<zod.ZodObject<{
|
|
5151
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
5152
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
5153
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5154
|
+
pins: (string | number)[];
|
|
5155
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5156
|
+
}, {
|
|
5157
|
+
pins: (string | number)[];
|
|
5158
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5159
|
+
}>>;
|
|
5160
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5161
|
+
leftSize?: number | undefined;
|
|
5162
|
+
topSize?: number | undefined;
|
|
5163
|
+
rightSize?: number | undefined;
|
|
5164
|
+
bottomSize?: number | undefined;
|
|
5165
|
+
leftSide?: {
|
|
5166
|
+
pins: (string | number)[];
|
|
5167
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5168
|
+
} | undefined;
|
|
5169
|
+
topSide?: {
|
|
5170
|
+
pins: (string | number)[];
|
|
5171
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5172
|
+
} | undefined;
|
|
5173
|
+
rightSide?: {
|
|
5174
|
+
pins: (string | number)[];
|
|
5175
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5176
|
+
} | undefined;
|
|
5177
|
+
bottomSide?: {
|
|
5178
|
+
pins: (string | number)[];
|
|
5179
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5180
|
+
} | undefined;
|
|
5181
|
+
leftPinCount?: number | undefined;
|
|
5182
|
+
rightPinCount?: number | undefined;
|
|
5183
|
+
topPinCount?: number | undefined;
|
|
5184
|
+
bottomPinCount?: number | undefined;
|
|
5185
|
+
}, {
|
|
5186
|
+
leftSize?: number | undefined;
|
|
5187
|
+
topSize?: number | undefined;
|
|
5188
|
+
rightSize?: number | undefined;
|
|
5189
|
+
bottomSize?: number | undefined;
|
|
5190
|
+
leftSide?: {
|
|
5191
|
+
pins: (string | number)[];
|
|
5192
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5193
|
+
} | undefined;
|
|
5194
|
+
topSide?: {
|
|
5195
|
+
pins: (string | number)[];
|
|
5196
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5197
|
+
} | undefined;
|
|
5198
|
+
rightSide?: {
|
|
5199
|
+
pins: (string | number)[];
|
|
5200
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5201
|
+
} | undefined;
|
|
5202
|
+
bottomSide?: {
|
|
5203
|
+
pins: (string | number)[];
|
|
5204
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5205
|
+
} | undefined;
|
|
5206
|
+
leftPinCount?: number | undefined;
|
|
5207
|
+
rightPinCount?: number | undefined;
|
|
5208
|
+
topPinCount?: number | undefined;
|
|
5209
|
+
bottomPinCount?: number | undefined;
|
|
5210
|
+
}>>;
|
|
5211
|
+
pinCount: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<2>, zod.ZodLiteral<3>]>>;
|
|
5212
|
+
internallyConnectedPins: zod.ZodOptional<zod.ZodArray<zod.ZodArray<zod.ZodString, "many">, "many">>;
|
|
5213
|
+
} & {
|
|
5214
|
+
bridgedPins: zod.ZodOptional<zod.ZodArray<zod.ZodArray<zod.ZodString, "many">, "many">>;
|
|
5215
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5216
|
+
name: string;
|
|
5217
|
+
pcbX?: number | undefined;
|
|
5218
|
+
pcbY?: number | undefined;
|
|
5219
|
+
pcbRotation?: number | undefined;
|
|
5220
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5221
|
+
schX?: number | undefined;
|
|
5222
|
+
schY?: number | undefined;
|
|
5223
|
+
schRotation?: number | undefined;
|
|
5224
|
+
footprint?: _tscircuit_props.Footprint | undefined;
|
|
5225
|
+
supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
5226
|
+
key?: any;
|
|
5227
|
+
cadModel?: string | {
|
|
5228
|
+
stlUrl: string;
|
|
5229
|
+
rotationOffset?: number | {
|
|
5230
|
+
x: string | number;
|
|
5231
|
+
y: string | number;
|
|
5232
|
+
z: string | number;
|
|
5233
|
+
} | undefined;
|
|
5234
|
+
positionOffset?: {
|
|
5235
|
+
x: number;
|
|
5236
|
+
y: number;
|
|
5237
|
+
z: number;
|
|
5238
|
+
} | undefined;
|
|
5239
|
+
size?: {
|
|
5240
|
+
x: number;
|
|
5241
|
+
y: number;
|
|
5242
|
+
z: number;
|
|
5243
|
+
} | undefined;
|
|
5244
|
+
} | {
|
|
5245
|
+
objUrl: string;
|
|
5246
|
+
rotationOffset?: number | {
|
|
5247
|
+
x: string | number;
|
|
5248
|
+
y: string | number;
|
|
5249
|
+
z: string | number;
|
|
5250
|
+
} | undefined;
|
|
5251
|
+
positionOffset?: {
|
|
5252
|
+
x: number;
|
|
5253
|
+
y: number;
|
|
5254
|
+
z: number;
|
|
5255
|
+
} | undefined;
|
|
5256
|
+
size?: {
|
|
5257
|
+
x: number;
|
|
5258
|
+
y: number;
|
|
5259
|
+
z: number;
|
|
5260
|
+
} | undefined;
|
|
5261
|
+
mtlUrl?: string | undefined;
|
|
5262
|
+
} | {
|
|
5263
|
+
jscad: Record<string, any>;
|
|
5264
|
+
rotationOffset?: number | {
|
|
5265
|
+
x: string | number;
|
|
5266
|
+
y: string | number;
|
|
5267
|
+
z: string | number;
|
|
5268
|
+
} | undefined;
|
|
5269
|
+
positionOffset?: {
|
|
5270
|
+
x: number;
|
|
5271
|
+
y: number;
|
|
5272
|
+
z: number;
|
|
5273
|
+
} | undefined;
|
|
5274
|
+
size?: {
|
|
5275
|
+
x: number;
|
|
5276
|
+
y: number;
|
|
5277
|
+
z: number;
|
|
5278
|
+
} | undefined;
|
|
5279
|
+
} | null | undefined;
|
|
5280
|
+
children?: any;
|
|
5281
|
+
symbolName?: string | undefined;
|
|
5282
|
+
doNotPlace?: boolean | undefined;
|
|
5283
|
+
schWidth?: number | undefined;
|
|
5284
|
+
schHeight?: number | undefined;
|
|
5285
|
+
manufacturerPartNumber?: string | undefined;
|
|
5286
|
+
pinLabels?: Record<string | number, string | string[]> | undefined;
|
|
5287
|
+
internallyConnectedPins?: string[][] | undefined;
|
|
5288
|
+
schPortArrangement?: {
|
|
5289
|
+
leftSize?: number | undefined;
|
|
5290
|
+
topSize?: number | undefined;
|
|
5291
|
+
rightSize?: number | undefined;
|
|
5292
|
+
bottomSize?: number | undefined;
|
|
5293
|
+
leftSide?: {
|
|
5294
|
+
pins: (string | number)[];
|
|
5295
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5296
|
+
} | undefined;
|
|
5297
|
+
topSide?: {
|
|
5298
|
+
pins: (string | number)[];
|
|
5299
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5300
|
+
} | undefined;
|
|
5301
|
+
rightSide?: {
|
|
5302
|
+
pins: (string | number)[];
|
|
5303
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5304
|
+
} | undefined;
|
|
5305
|
+
bottomSide?: {
|
|
5306
|
+
pins: (string | number)[];
|
|
5307
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5308
|
+
} | undefined;
|
|
5309
|
+
leftPinCount?: number | undefined;
|
|
5310
|
+
rightPinCount?: number | undefined;
|
|
5311
|
+
topPinCount?: number | undefined;
|
|
5312
|
+
bottomPinCount?: number | undefined;
|
|
5313
|
+
} | undefined;
|
|
5314
|
+
schPinStyle?: Record<string, {
|
|
5315
|
+
marginLeft?: number | undefined;
|
|
5316
|
+
marginRight?: number | undefined;
|
|
5317
|
+
marginTop?: number | undefined;
|
|
5318
|
+
marginBottom?: number | undefined;
|
|
5319
|
+
leftMargin?: number | undefined;
|
|
5320
|
+
rightMargin?: number | undefined;
|
|
5321
|
+
topMargin?: number | undefined;
|
|
5322
|
+
bottomMargin?: number | undefined;
|
|
5323
|
+
}> | undefined;
|
|
5324
|
+
schPinSpacing?: number | undefined;
|
|
5325
|
+
schDirection?: "left" | "right" | undefined;
|
|
5326
|
+
pinCount?: 2 | 3 | undefined;
|
|
5327
|
+
bridgedPins?: string[][] | undefined;
|
|
5328
|
+
}, {
|
|
5329
|
+
name: string;
|
|
5330
|
+
pcbX?: string | number | undefined;
|
|
5331
|
+
pcbY?: string | number | undefined;
|
|
5332
|
+
pcbRotation?: string | number | undefined;
|
|
5333
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5334
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5335
|
+
} | undefined;
|
|
5336
|
+
schX?: string | number | undefined;
|
|
5337
|
+
schY?: string | number | undefined;
|
|
5338
|
+
schRotation?: string | number | undefined;
|
|
5339
|
+
footprint?: _tscircuit_props.Footprint | undefined;
|
|
5340
|
+
supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
5341
|
+
key?: any;
|
|
5342
|
+
cadModel?: string | {
|
|
5343
|
+
stlUrl: string;
|
|
5344
|
+
rotationOffset?: number | {
|
|
5345
|
+
x: string | number;
|
|
5346
|
+
y: string | number;
|
|
5347
|
+
z: string | number;
|
|
5348
|
+
} | undefined;
|
|
5349
|
+
positionOffset?: {
|
|
5350
|
+
x: string | number;
|
|
5351
|
+
y: string | number;
|
|
5352
|
+
z: string | number;
|
|
5353
|
+
} | undefined;
|
|
5354
|
+
size?: {
|
|
5355
|
+
x: string | number;
|
|
5356
|
+
y: string | number;
|
|
5357
|
+
z: string | number;
|
|
5358
|
+
} | undefined;
|
|
5359
|
+
} | {
|
|
5360
|
+
objUrl: string;
|
|
5361
|
+
rotationOffset?: number | {
|
|
5362
|
+
x: string | number;
|
|
5363
|
+
y: string | number;
|
|
5364
|
+
z: string | number;
|
|
5365
|
+
} | undefined;
|
|
5366
|
+
positionOffset?: {
|
|
5367
|
+
x: string | number;
|
|
5368
|
+
y: string | number;
|
|
5369
|
+
z: string | number;
|
|
5370
|
+
} | undefined;
|
|
5371
|
+
size?: {
|
|
5372
|
+
x: string | number;
|
|
5373
|
+
y: string | number;
|
|
5374
|
+
z: string | number;
|
|
5375
|
+
} | undefined;
|
|
5376
|
+
mtlUrl?: string | undefined;
|
|
5377
|
+
} | {
|
|
5378
|
+
jscad: Record<string, any>;
|
|
5379
|
+
rotationOffset?: number | {
|
|
5380
|
+
x: string | number;
|
|
5381
|
+
y: string | number;
|
|
5382
|
+
z: string | number;
|
|
5383
|
+
} | undefined;
|
|
5384
|
+
positionOffset?: {
|
|
5385
|
+
x: string | number;
|
|
5386
|
+
y: string | number;
|
|
5387
|
+
z: string | number;
|
|
5388
|
+
} | undefined;
|
|
5389
|
+
size?: {
|
|
5390
|
+
x: string | number;
|
|
5391
|
+
y: string | number;
|
|
5392
|
+
z: string | number;
|
|
5393
|
+
} | undefined;
|
|
5394
|
+
} | null | undefined;
|
|
5395
|
+
children?: any;
|
|
5396
|
+
symbolName?: string | undefined;
|
|
5397
|
+
doNotPlace?: boolean | undefined;
|
|
5398
|
+
schWidth?: string | number | undefined;
|
|
5399
|
+
schHeight?: string | number | undefined;
|
|
5400
|
+
manufacturerPartNumber?: string | undefined;
|
|
5401
|
+
pinLabels?: Record<string | number, string | string[]> | undefined;
|
|
5402
|
+
internallyConnectedPins?: string[][] | undefined;
|
|
5403
|
+
schPortArrangement?: {
|
|
5404
|
+
leftSize?: number | undefined;
|
|
5405
|
+
topSize?: number | undefined;
|
|
5406
|
+
rightSize?: number | undefined;
|
|
5407
|
+
bottomSize?: number | undefined;
|
|
5408
|
+
leftSide?: {
|
|
5409
|
+
pins: (string | number)[];
|
|
5410
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5411
|
+
} | undefined;
|
|
5412
|
+
topSide?: {
|
|
5413
|
+
pins: (string | number)[];
|
|
5414
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5415
|
+
} | undefined;
|
|
5416
|
+
rightSide?: {
|
|
5417
|
+
pins: (string | number)[];
|
|
5418
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5419
|
+
} | undefined;
|
|
5420
|
+
bottomSide?: {
|
|
5421
|
+
pins: (string | number)[];
|
|
5422
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
5423
|
+
} | undefined;
|
|
5424
|
+
leftPinCount?: number | undefined;
|
|
5425
|
+
rightPinCount?: number | undefined;
|
|
5426
|
+
topPinCount?: number | undefined;
|
|
5427
|
+
bottomPinCount?: number | undefined;
|
|
5428
|
+
} | undefined;
|
|
5429
|
+
schPinStyle?: Record<string, {
|
|
5430
|
+
marginLeft?: string | number | undefined;
|
|
5431
|
+
marginRight?: string | number | undefined;
|
|
5432
|
+
marginTop?: string | number | undefined;
|
|
5433
|
+
marginBottom?: string | number | undefined;
|
|
5434
|
+
leftMargin?: string | number | undefined;
|
|
5435
|
+
rightMargin?: string | number | undefined;
|
|
5436
|
+
topMargin?: string | number | undefined;
|
|
5437
|
+
bottomMargin?: string | number | undefined;
|
|
5438
|
+
}> | undefined;
|
|
5439
|
+
schPinSpacing?: string | number | undefined;
|
|
5440
|
+
schDirection?: "left" | "right" | undefined;
|
|
5441
|
+
pinCount?: 2 | 3 | undefined;
|
|
5442
|
+
bridgedPins?: string[][] | undefined;
|
|
5443
|
+
}>;
|
|
5444
|
+
shouldRenderAsSchematicBox: boolean;
|
|
5445
|
+
};
|
|
5446
|
+
_getSchematicPortArrangement(): _tscircuit_props.SchematicPortArrangement;
|
|
5447
|
+
doInitialSourceRender(): void;
|
|
5448
|
+
doInitialPcbComponentRender(): void;
|
|
5449
|
+
doInitialPcbTraceRender(): void;
|
|
5450
|
+
}
|
|
5451
|
+
|
|
4813
5452
|
declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts> {
|
|
4814
5453
|
get config(): {
|
|
4815
5454
|
componentName: string;
|
|
@@ -13417,6 +14056,7 @@ interface TscircuitElements {
|
|
|
13417
14056
|
led: _tscircuit_props.LedProps;
|
|
13418
14057
|
board: _tscircuit_props.BoardProps;
|
|
13419
14058
|
jumper: _tscircuit_props.JumperProps;
|
|
14059
|
+
solderjumper: _tscircuit_props.SolderJumperProps;
|
|
13420
14060
|
bug: _tscircuit_props.ChipProps;
|
|
13421
14061
|
potentiometer: _tscircuit_props.PotentiometerProps;
|
|
13422
14062
|
chip: _tscircuit_props.ChipProps;
|
|
@@ -13476,4 +14116,4 @@ declare module "react/jsx-runtime" {
|
|
|
13476
14116
|
}
|
|
13477
14117
|
}
|
|
13478
14118
|
|
|
13479
|
-
export { type AsyncEffect, type AutorouterCompleteEvent, type AutorouterErrorEvent, type AutorouterEvent, type AutorouterProgressEvent, type AutoroutingEndEvent, type AutoroutingErrorEvent, type AutoroutingProgressEvent, type AutoroutingStartEvent, Battery, Board, Breakout, BreakoutPoint, Capacitor, Chip, Circuit, type ComponentWithPins, Constraint, Crystal, Cutout, Diode, FabricationNotePath, FabricationNoteText, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, Net, NetAlias, NormalComponent, type Obstacle, PcbTrace, PinHeader, type PinLabelSpec, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, SchematicBox, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, Subcircuit, Switch, Trace, TraceHint, Transistor, Via, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
|
|
14119
|
+
export { type AsyncEffect, type AutorouterCompleteEvent, type AutorouterErrorEvent, type AutorouterEvent, type AutorouterProgressEvent, type AutoroutingEndEvent, type AutoroutingErrorEvent, type AutoroutingProgressEvent, type AutoroutingStartEvent, Battery, Board, Breakout, BreakoutPoint, Capacitor, Chip, Circuit, type ComponentWithPins, Constraint, Crystal, Cutout, Diode, FabricationNotePath, FabricationNoteText, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, Net, NetAlias, NormalComponent, type Obstacle, PcbTrace, PinHeader, type PinLabelSpec, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, SchematicBox, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, SolderJumper, Subcircuit, Switch, Trace, TraceHint, Transistor, Via, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
|
package/dist/index.js
CHANGED
|
@@ -50,6 +50,7 @@ __export(components_exports, {
|
|
|
50
50
|
SilkscreenRect: () => SilkscreenRect,
|
|
51
51
|
SilkscreenText: () => SilkscreenText,
|
|
52
52
|
SmtPad: () => SmtPad,
|
|
53
|
+
SolderJumper: () => SolderJumper,
|
|
53
54
|
Subcircuit: () => Subcircuit,
|
|
54
55
|
Switch: () => Switch,
|
|
55
56
|
Trace: () => Trace2,
|
|
@@ -8066,20 +8067,122 @@ var Fuse = class extends NormalComponent {
|
|
|
8066
8067
|
import { jumperProps } from "@tscircuit/props";
|
|
8067
8068
|
var Jumper = class extends NormalComponent {
|
|
8068
8069
|
schematicDimensions = null;
|
|
8070
|
+
get config() {
|
|
8071
|
+
let symbolName = "";
|
|
8072
|
+
if (this.props.pinCount) symbolName += `pinrow${this.props.pinCount || 2}`;
|
|
8073
|
+
return {
|
|
8074
|
+
schematicSymbolName: symbolName,
|
|
8075
|
+
componentName: "Jumper",
|
|
8076
|
+
zodProps: jumperProps,
|
|
8077
|
+
shouldRenderAsSchematicBox: true
|
|
8078
|
+
};
|
|
8079
|
+
}
|
|
8080
|
+
_getSchematicPortArrangement() {
|
|
8081
|
+
const arrangement = super._getSchematicPortArrangement();
|
|
8082
|
+
if (arrangement) return arrangement;
|
|
8083
|
+
const pinCount = this._parsedProps.pinCount ?? (Array.isArray(this._parsedProps.pinLabels) ? this._parsedProps.pinLabels.length : this._parsedProps.pinLabels ? Object.keys(this._parsedProps.pinLabels).length : this.getPortsFromFootprint().length);
|
|
8084
|
+
const direction = this._parsedProps.schDirection ?? "right";
|
|
8085
|
+
return {
|
|
8086
|
+
leftSize: direction === "left" ? pinCount : 0,
|
|
8087
|
+
rightSize: direction === "right" ? pinCount : 0
|
|
8088
|
+
};
|
|
8089
|
+
}
|
|
8090
|
+
doInitialSourceRender() {
|
|
8091
|
+
const { db } = this.root;
|
|
8092
|
+
const { _parsedProps: props } = this;
|
|
8093
|
+
const source_component = db.source_component.insert({
|
|
8094
|
+
ftype: "simple_chip",
|
|
8095
|
+
// TODO unknown or jumper
|
|
8096
|
+
name: props.name,
|
|
8097
|
+
manufacturer_part_number: props.manufacturerPartNumber,
|
|
8098
|
+
supplier_part_numbers: props.supplierPartNumbers,
|
|
8099
|
+
are_pins_interchangeable: true
|
|
8100
|
+
});
|
|
8101
|
+
this.source_component_id = source_component.source_component_id;
|
|
8102
|
+
}
|
|
8103
|
+
doInitialPcbComponentRender() {
|
|
8104
|
+
if (this.root?.pcbDisabled) return;
|
|
8105
|
+
const { db } = this.root;
|
|
8106
|
+
const { _parsedProps: props } = this;
|
|
8107
|
+
const pcb_component = db.pcb_component.insert({
|
|
8108
|
+
center: { x: props.pcbX ?? 0, y: props.pcbY ?? 0 },
|
|
8109
|
+
width: 2,
|
|
8110
|
+
// Default width, adjust as needed
|
|
8111
|
+
height: 3,
|
|
8112
|
+
// Default height, adjust as needed
|
|
8113
|
+
layer: props.layer ?? "top",
|
|
8114
|
+
rotation: props.pcbRotation ?? 0,
|
|
8115
|
+
source_component_id: this.source_component_id,
|
|
8116
|
+
subcircuit_id: this.getSubcircuit().subcircuit_id ?? void 0
|
|
8117
|
+
});
|
|
8118
|
+
this.pcb_component_id = pcb_component.pcb_component_id;
|
|
8119
|
+
}
|
|
8120
|
+
doInitialPcbTraceRender() {
|
|
8121
|
+
const { db } = this.root;
|
|
8122
|
+
const pcb_ports = db.pcb_port.list({
|
|
8123
|
+
pcb_component_id: this.pcb_component_id
|
|
8124
|
+
});
|
|
8125
|
+
const pinLabelToPortId = {};
|
|
8126
|
+
for (let i = 0; i < pcb_ports.length; i++) {
|
|
8127
|
+
const port = pcb_ports[i];
|
|
8128
|
+
const sourcePort = db.source_port.get(port.source_port_id);
|
|
8129
|
+
let pinLabel = "";
|
|
8130
|
+
if (typeof sourcePort?.pin_number === "number") {
|
|
8131
|
+
pinLabel = sourcePort.pin_number.toString();
|
|
8132
|
+
} else if (Array.isArray(sourcePort?.port_hints)) {
|
|
8133
|
+
let matchedHint = sourcePort.port_hints.find(
|
|
8134
|
+
(h) => /^(pin)?\d+$/.test(h)
|
|
8135
|
+
);
|
|
8136
|
+
if (matchedHint) {
|
|
8137
|
+
if (/^pin\d+$/.test(matchedHint)) {
|
|
8138
|
+
pinLabel = matchedHint.replace(/^pin/, "");
|
|
8139
|
+
} else {
|
|
8140
|
+
pinLabel = matchedHint;
|
|
8141
|
+
}
|
|
8142
|
+
}
|
|
8143
|
+
}
|
|
8144
|
+
pinLabelToPortId[pinLabel] = port.pcb_port_id;
|
|
8145
|
+
}
|
|
8146
|
+
const traces = db.pcb_trace.list({
|
|
8147
|
+
pcb_component_id: this.pcb_component_id
|
|
8148
|
+
});
|
|
8149
|
+
const updatePortId = (portId) => {
|
|
8150
|
+
if (portId && typeof portId === "string" && portId.startsWith("{PIN")) {
|
|
8151
|
+
const pin = portId.replace("{PIN", "").replace("}", "");
|
|
8152
|
+
return pinLabelToPortId[pin] || portId;
|
|
8153
|
+
}
|
|
8154
|
+
return portId;
|
|
8155
|
+
};
|
|
8156
|
+
for (const trace of traces) {
|
|
8157
|
+
if (!trace.route) continue;
|
|
8158
|
+
for (const segment of trace.route) {
|
|
8159
|
+
if (segment.route_type !== "wire") continue;
|
|
8160
|
+
segment.start_pcb_port_id = updatePortId(segment.start_pcb_port_id);
|
|
8161
|
+
segment.end_pcb_port_id = updatePortId(segment.end_pcb_port_id);
|
|
8162
|
+
}
|
|
8163
|
+
}
|
|
8164
|
+
}
|
|
8165
|
+
};
|
|
8166
|
+
|
|
8167
|
+
// lib/components/normal-components/SolderJumper.ts
|
|
8168
|
+
import { solderjumperProps } from "@tscircuit/props";
|
|
8169
|
+
var SolderJumper = class extends NormalComponent {
|
|
8170
|
+
schematicDimensions = null;
|
|
8171
|
+
get defaultInternallyConnectedPinNames() {
|
|
8172
|
+
return this._parsedProps.bridgedPins ?? [];
|
|
8173
|
+
}
|
|
8069
8174
|
get config() {
|
|
8070
8175
|
let symbolName = "";
|
|
8071
8176
|
if (this.props.pinCount)
|
|
8072
8177
|
symbolName += `solderjumper${this.props.pinCount || 2}`;
|
|
8073
|
-
if (Array.isArray(this.props.
|
|
8074
|
-
const pins = Array.from(
|
|
8075
|
-
new Set(this.props.internallyConnectedPins.flat())
|
|
8076
|
-
).sort().join("");
|
|
8178
|
+
if (Array.isArray(this.props.bridgedPins) && this.props.bridgedPins.length > 0) {
|
|
8179
|
+
const pins = Array.from(new Set(this.props.bridgedPins.flat())).sort().join("");
|
|
8077
8180
|
symbolName += `_bridged${pins}`;
|
|
8078
8181
|
}
|
|
8079
8182
|
return {
|
|
8080
8183
|
schematicSymbolName: symbolName,
|
|
8081
|
-
componentName: "
|
|
8082
|
-
zodProps:
|
|
8184
|
+
componentName: "SolderJumper",
|
|
8185
|
+
zodProps: solderjumperProps,
|
|
8083
8186
|
shouldRenderAsSchematicBox: true
|
|
8084
8187
|
};
|
|
8085
8188
|
}
|
|
@@ -9510,7 +9613,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
9510
9613
|
var package_default = {
|
|
9511
9614
|
name: "@tscircuit/core",
|
|
9512
9615
|
type: "module",
|
|
9513
|
-
version: "0.0.
|
|
9616
|
+
version: "0.0.459",
|
|
9514
9617
|
types: "dist/index.d.ts",
|
|
9515
9618
|
main: "dist/index.js",
|
|
9516
9619
|
module: "dist/index.js",
|
|
@@ -10022,6 +10125,7 @@ export {
|
|
|
10022
10125
|
SilkscreenRect,
|
|
10023
10126
|
SilkscreenText,
|
|
10024
10127
|
SmtPad,
|
|
10128
|
+
SolderJumper,
|
|
10025
10129
|
Subcircuit,
|
|
10026
10130
|
Switch,
|
|
10027
10131
|
Trace2 as Trace,
|