jscad-electronics 0.0.188 → 0.0.190
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/cables.d.ts +4 -0
- package/dist/cables.js +26 -3
- package/dist/cables.js.map +1 -1
- package/dist/index.d.ts +182 -182
- package/dist/index.js +8318 -8030
- package/dist/index.js.map +1 -1
- package/dist/vanilla.d.ts +62 -60
- package/dist/vanilla.js +8285 -7971
- package/dist/vanilla.js.map +1 -1
- package/package.json +19 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { AnyCircuitElement, PcbSmtPad, PcbPlatedHole } from 'circuit-json';
|
|
3
|
-
import { NemaMotorModelPropsInput, HexSocketBoltModelPropsInput, SheetMetalModelPropsInput, SpurGearModelPropsInput, HelicalGearModelPropsInput, WormGearModelPropsInput, HexBoltModelPropsInput } from '@tscircuit/modelprinter';
|
|
4
3
|
import * as _jscad_modeling_src_geometries_types from '@jscad/modeling/src/geometries/types';
|
|
4
|
+
import { SpurGearModelPropsInput, HelicalGearModelPropsInput, HexBoltModelPropsInput, HexSocketBoltModelPropsInput, NemaMotorModelPropsInput, SheetMetalModelPropsInput, WormGearModelPropsInput } from '@tscircuit/modelprinter';
|
|
5
5
|
|
|
6
6
|
declare const A01005: ({ color }: {
|
|
7
7
|
color?: string | undefined;
|
|
@@ -829,128 +829,6 @@ interface ScreenProps {
|
|
|
829
829
|
declare const Screen: ({ width, height, thickness, bezelInset, bezelDepth, screenColor, bezelColor, screenWidth, screenHeight, offset, }: ScreenProps) => react_jsx_runtime.JSX.Element;
|
|
830
830
|
declare const Display: ({ width, height, thickness, bezelInset, bezelDepth, screenColor, bezelColor, screenWidth, screenHeight, offset, }: ScreenProps) => react_jsx_runtime.JSX.Element;
|
|
831
831
|
|
|
832
|
-
type Rotation3 = [number | string, number | string, number | string];
|
|
833
|
-
type FlexScreenOrientation = "sitsFlat" | "sitsFlatBelowBoard" | "foldedToFaceAboveBoard" | "foldedToFaceBelowBoard" | "foldedToRightAngleAboveBoard" | "foldedToRightAngleBelowBoard";
|
|
834
|
-
type FlexScreenAspectRatio = number | `${number}:${number}` | readonly [number, number];
|
|
835
|
-
interface FlexScreenProps {
|
|
836
|
-
/** Explicit screen width. If height is omitted, it is derived from the ratio. */
|
|
837
|
-
width?: number;
|
|
838
|
-
/** Explicit screen height. If width is omitted, it is derived from the ratio. */
|
|
839
|
-
height?: number;
|
|
840
|
-
/** Screen diagonal. Used with the ratio unless one other dimension is supplied. */
|
|
841
|
-
diagonal?: number;
|
|
842
|
-
/** Width-to-height ratio. Accepts 1.777, "16:9", or [16, 9]. */
|
|
843
|
-
aspectRatio?: FlexScreenAspectRatio;
|
|
844
|
-
/** Alias for aspectRatio. aspectRatio takes precedence when both are supplied. */
|
|
845
|
-
ratio?: FlexScreenAspectRatio;
|
|
846
|
-
/** Diagonal used when width, height, and diagonal are all omitted. */
|
|
847
|
-
defaultDiagonal?: number;
|
|
848
|
-
orientation?: FlexScreenOrientation;
|
|
849
|
-
/** Boolean orientation shortcuts for footprint/configuration builders. */
|
|
850
|
-
sitsFlat?: boolean;
|
|
851
|
-
sitsFlatBelowBoard?: boolean;
|
|
852
|
-
foldedToFaceAboveBoard?: boolean;
|
|
853
|
-
foldedToFaceBelowBoard?: boolean;
|
|
854
|
-
/** Concise aliases for the 180-degree face-above/face-below folds. */
|
|
855
|
-
foldsAboveBoard?: boolean;
|
|
856
|
-
foldsBelowBoard?: boolean;
|
|
857
|
-
foldedToRightAngleAboveBoard?: boolean;
|
|
858
|
-
foldedToRightAngleBelowBoard?: boolean;
|
|
859
|
-
screenThickness?: number;
|
|
860
|
-
bezelInset?: number;
|
|
861
|
-
bezelDepth?: number;
|
|
862
|
-
activeAreaWidth?: number;
|
|
863
|
-
activeAreaHeight?: number;
|
|
864
|
-
screenColor?: string;
|
|
865
|
-
bezelColor?: string;
|
|
866
|
-
showScreen?: boolean;
|
|
867
|
-
/** Centerline length of the modeled cable route. */
|
|
868
|
-
flexCableLength?: number;
|
|
869
|
-
/** Cable body width. The connector end widens when its contacts need more room. */
|
|
870
|
-
flexCableWidth?: number;
|
|
871
|
-
flexCableThickness?: number;
|
|
872
|
-
flexCableColor?: string;
|
|
873
|
-
/** Number of connector contacts, matching FPC.pinCount. */
|
|
874
|
-
pinCount?: number;
|
|
875
|
-
/** Center-to-center connector contact spacing, matching FPC.pitch. */
|
|
876
|
-
pitch?: number;
|
|
877
|
-
/** Connector contact width, matching FPC.padWidth (footprinter pw). */
|
|
878
|
-
padWidth?: number;
|
|
879
|
-
/** Exposed contact length, matching FPC.padLength (footprinter pl). */
|
|
880
|
-
padLength?: number;
|
|
881
|
-
/** Straight length of the widened connector end, before the taper. */
|
|
882
|
-
tailLength?: number;
|
|
883
|
-
/** Length of the transition from the widened tail to the cable body. */
|
|
884
|
-
taperLength?: number;
|
|
885
|
-
/** @deprecated Use pinCount. */
|
|
886
|
-
conductorCount?: number;
|
|
887
|
-
/** @deprecated Use pitch. */
|
|
888
|
-
conductorPitch?: number;
|
|
889
|
-
/** @deprecated Use padWidth. */
|
|
890
|
-
conductorWidth?: number;
|
|
891
|
-
conductorThickness?: number;
|
|
892
|
-
conductorColor?: string;
|
|
893
|
-
cableEdgeMargin?: number;
|
|
894
|
-
/** @deprecated Use padLength. */
|
|
895
|
-
exposedContactLength?: number;
|
|
896
|
-
showConductors?: boolean;
|
|
897
|
-
showFlexCable?: boolean;
|
|
898
|
-
showStiffeners?: boolean;
|
|
899
|
-
stiffenerLength?: number;
|
|
900
|
-
stiffenerThickness?: number;
|
|
901
|
-
stiffenerColor?: string;
|
|
902
|
-
/** Radius of the 90-degree cable bend in right-angle presets. */
|
|
903
|
-
bendRadius?: number;
|
|
904
|
-
/** Number of straight segments used to approximate a 90-degree bend. */
|
|
905
|
-
bendSegments?: number;
|
|
906
|
-
/** Straight cable length after the bend before the screen attachment. */
|
|
907
|
-
rightAngleVerticalLead?: number;
|
|
908
|
-
/** Screen backplane distance above the board for a 180-degree upward fold. */
|
|
909
|
-
distanceAboveBoard?: number;
|
|
910
|
-
/** Screen backplane distance below the board for a 180-degree downward fold. */
|
|
911
|
-
distanceBelowBoard?: number;
|
|
912
|
-
/** Straight distance from the connector to the start of a 180-degree fold. */
|
|
913
|
-
foldDistanceFromConnector?: number;
|
|
914
|
-
/** Maximum distance the 180-degree loop extends beyond the fold start. */
|
|
915
|
-
foldOutset?: number;
|
|
916
|
-
/** Number of straight segments used to approximate a 180-degree fold. */
|
|
917
|
-
foldSegments?: number;
|
|
918
|
-
screenGap?: number;
|
|
919
|
-
/** Board reference used to place above/below presets. The board is not rendered. */
|
|
920
|
-
boardTopZ?: number;
|
|
921
|
-
boardThickness?: number;
|
|
922
|
-
boardClearance?: number;
|
|
923
|
-
cableStartX?: number;
|
|
924
|
-
cableStartY?: number;
|
|
925
|
-
/** Overrides the preset-derived cable centerline Z at the connector end. */
|
|
926
|
-
cableStartZ?: number;
|
|
927
|
-
cableLateralOffset?: number;
|
|
928
|
-
/** Added after the orientation preset computes the screen attachment pose. */
|
|
929
|
-
screenOffset?: {
|
|
930
|
-
x?: number;
|
|
931
|
-
y?: number;
|
|
932
|
-
z?: number;
|
|
933
|
-
};
|
|
934
|
-
/** Replaces the orientation preset's screen rotation. */
|
|
935
|
-
screenRotation?: Rotation3;
|
|
936
|
-
/** Rotates the complete assembly around its cable origin. */
|
|
937
|
-
rotation?: Rotation3;
|
|
938
|
-
/** Translates the complete assembly after rotation. */
|
|
939
|
-
offset?: {
|
|
940
|
-
x?: number;
|
|
941
|
-
y?: number;
|
|
942
|
-
z?: number;
|
|
943
|
-
};
|
|
944
|
-
}
|
|
945
|
-
interface ResolvedFlexScreenSize {
|
|
946
|
-
width: number;
|
|
947
|
-
height: number;
|
|
948
|
-
diagonal: number;
|
|
949
|
-
aspectRatio: number;
|
|
950
|
-
}
|
|
951
|
-
declare const resolveFlexScreenSize: ({ width, height, diagonal, aspectRatio, ratio, defaultDiagonal, }: Pick<FlexScreenProps, "width" | "height" | "diagonal" | "aspectRatio" | "ratio" | "defaultDiagonal">) => ResolvedFlexScreenSize;
|
|
952
|
-
declare const FlexScreen: (props: FlexScreenProps) => react_jsx_runtime.JSX.Element;
|
|
953
|
-
|
|
954
832
|
interface JSTZH1_5mmProps {
|
|
955
833
|
numPins?: number;
|
|
956
834
|
showPins?: boolean;
|
|
@@ -1348,20 +1226,173 @@ declare const MelfResistor: ({ size, footprint, }: {
|
|
|
1348
1226
|
footprint?: string;
|
|
1349
1227
|
}) => react_jsx_runtime.JSX.Element;
|
|
1350
1228
|
|
|
1351
|
-
type
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1229
|
+
type Rotation3 = [number | string, number | string, number | string];
|
|
1230
|
+
type FlexScreenOrientation = "sitsFlat" | "sitsFlatBelowBoard" | "foldedToFaceAboveBoard" | "foldedToFaceBelowBoard" | "foldedToRightAngleAboveBoard" | "foldedToRightAngleBelowBoard";
|
|
1231
|
+
type FlexScreenAspectRatio = number | `${number}:${number}` | readonly [number, number];
|
|
1232
|
+
interface FlexScreenProps {
|
|
1233
|
+
/** Explicit screen width. If height is omitted, it is derived from the ratio. */
|
|
1234
|
+
width?: number;
|
|
1235
|
+
/** Explicit screen height. If width is omitted, it is derived from the ratio. */
|
|
1236
|
+
height?: number;
|
|
1237
|
+
/** Screen diagonal. Used with the ratio unless one other dimension is supplied. */
|
|
1238
|
+
diagonal?: number;
|
|
1239
|
+
/** Width-to-height ratio. Accepts 1.777, "16:9", or [16, 9]. */
|
|
1240
|
+
aspectRatio?: FlexScreenAspectRatio;
|
|
1241
|
+
/** Alias for aspectRatio. aspectRatio takes precedence when both are supplied. */
|
|
1242
|
+
ratio?: FlexScreenAspectRatio;
|
|
1243
|
+
/** Diagonal used when width, height, and diagonal are all omitted. */
|
|
1244
|
+
defaultDiagonal?: number;
|
|
1245
|
+
orientation?: FlexScreenOrientation;
|
|
1246
|
+
/** Boolean orientation shortcuts for footprint/configuration builders. */
|
|
1247
|
+
sitsFlat?: boolean;
|
|
1248
|
+
sitsFlatBelowBoard?: boolean;
|
|
1249
|
+
foldedToFaceAboveBoard?: boolean;
|
|
1250
|
+
foldedToFaceBelowBoard?: boolean;
|
|
1251
|
+
/** Concise aliases for the 180-degree face-above/face-below folds. */
|
|
1252
|
+
foldsAboveBoard?: boolean;
|
|
1253
|
+
foldsBelowBoard?: boolean;
|
|
1254
|
+
foldedToRightAngleAboveBoard?: boolean;
|
|
1255
|
+
foldedToRightAngleBelowBoard?: boolean;
|
|
1256
|
+
screenThickness?: number;
|
|
1257
|
+
bezelInset?: number;
|
|
1258
|
+
bezelDepth?: number;
|
|
1259
|
+
activeAreaWidth?: number;
|
|
1260
|
+
activeAreaHeight?: number;
|
|
1261
|
+
screenColor?: string;
|
|
1262
|
+
bezelColor?: string;
|
|
1263
|
+
showScreen?: boolean;
|
|
1264
|
+
/** Centerline length of the modeled cable route. */
|
|
1265
|
+
flexCableLength?: number;
|
|
1266
|
+
/** Cable body width. The connector end widens when its contacts need more room. */
|
|
1267
|
+
flexCableWidth?: number;
|
|
1268
|
+
flexCableThickness?: number;
|
|
1269
|
+
flexCableColor?: string;
|
|
1270
|
+
/** Number of connector contacts, matching FPC.pinCount. */
|
|
1271
|
+
pinCount?: number;
|
|
1272
|
+
/** Center-to-center connector contact spacing, matching FPC.pitch. */
|
|
1273
|
+
pitch?: number;
|
|
1274
|
+
/** Connector contact width, matching FPC.padWidth (footprinter pw). */
|
|
1275
|
+
padWidth?: number;
|
|
1276
|
+
/** Exposed contact length, matching FPC.padLength (footprinter pl). */
|
|
1277
|
+
padLength?: number;
|
|
1278
|
+
/** Straight length of the widened connector end, before the taper. */
|
|
1279
|
+
tailLength?: number;
|
|
1280
|
+
/** Length of the transition from the widened tail to the cable body. */
|
|
1281
|
+
taperLength?: number;
|
|
1282
|
+
/** @deprecated Use pinCount. */
|
|
1283
|
+
conductorCount?: number;
|
|
1284
|
+
/** @deprecated Use pitch. */
|
|
1285
|
+
conductorPitch?: number;
|
|
1286
|
+
/** @deprecated Use padWidth. */
|
|
1287
|
+
conductorWidth?: number;
|
|
1288
|
+
conductorThickness?: number;
|
|
1289
|
+
conductorColor?: string;
|
|
1290
|
+
cableEdgeMargin?: number;
|
|
1291
|
+
/** @deprecated Use padLength. */
|
|
1292
|
+
exposedContactLength?: number;
|
|
1293
|
+
showConductors?: boolean;
|
|
1294
|
+
showFlexCable?: boolean;
|
|
1295
|
+
showStiffeners?: boolean;
|
|
1296
|
+
stiffenerLength?: number;
|
|
1297
|
+
stiffenerThickness?: number;
|
|
1298
|
+
stiffenerColor?: string;
|
|
1299
|
+
/** Radius of the 90-degree cable bend in right-angle presets. */
|
|
1300
|
+
bendRadius?: number;
|
|
1301
|
+
/** Number of straight segments used to approximate a 90-degree bend. */
|
|
1302
|
+
bendSegments?: number;
|
|
1303
|
+
/** Straight cable length after the bend before the screen attachment. */
|
|
1304
|
+
rightAngleVerticalLead?: number;
|
|
1305
|
+
/** Screen backplane distance above the board for a 180-degree upward fold. */
|
|
1306
|
+
distanceAboveBoard?: number;
|
|
1307
|
+
/** Screen backplane distance below the board for a 180-degree downward fold. */
|
|
1308
|
+
distanceBelowBoard?: number;
|
|
1309
|
+
/** Straight distance from the connector to the start of a 180-degree fold. */
|
|
1310
|
+
foldDistanceFromConnector?: number;
|
|
1311
|
+
/** Maximum distance the 180-degree loop extends beyond the fold start. */
|
|
1312
|
+
foldOutset?: number;
|
|
1313
|
+
/** Number of straight segments used to approximate a 180-degree fold. */
|
|
1314
|
+
foldSegments?: number;
|
|
1315
|
+
screenGap?: number;
|
|
1316
|
+
/** Board reference used to place above/below presets. The board is not rendered. */
|
|
1317
|
+
boardTopZ?: number;
|
|
1318
|
+
boardThickness?: number;
|
|
1319
|
+
boardClearance?: number;
|
|
1320
|
+
cableStartX?: number;
|
|
1321
|
+
cableStartY?: number;
|
|
1322
|
+
/** Overrides the preset-derived cable centerline Z at the connector end. */
|
|
1323
|
+
cableStartZ?: number;
|
|
1324
|
+
cableLateralOffset?: number;
|
|
1325
|
+
/** Added after the orientation preset computes the screen attachment pose. */
|
|
1326
|
+
screenOffset?: {
|
|
1327
|
+
x?: number;
|
|
1328
|
+
y?: number;
|
|
1329
|
+
z?: number;
|
|
1330
|
+
};
|
|
1331
|
+
/** Replaces the orientation preset's screen rotation. */
|
|
1332
|
+
screenRotation?: Rotation3;
|
|
1333
|
+
/** Rotates the complete assembly around its cable origin. */
|
|
1334
|
+
rotation?: Rotation3;
|
|
1335
|
+
/** Translates the complete assembly after rotation. */
|
|
1336
|
+
offset?: {
|
|
1337
|
+
x?: number;
|
|
1338
|
+
y?: number;
|
|
1339
|
+
z?: number;
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
interface ResolvedFlexScreenSize {
|
|
1343
|
+
width: number;
|
|
1344
|
+
height: number;
|
|
1345
|
+
diagonal: number;
|
|
1346
|
+
aspectRatio: number;
|
|
1347
|
+
}
|
|
1348
|
+
declare const resolveFlexScreenSize: ({ width, height, diagonal, aspectRatio, ratio, defaultDiagonal, }: Pick<FlexScreenProps, "width" | "height" | "diagonal" | "aspectRatio" | "ratio" | "defaultDiagonal">) => ResolvedFlexScreenSize;
|
|
1349
|
+
declare const FlexScreen: (props: FlexScreenProps) => react_jsx_runtime.JSX.Element;
|
|
1350
|
+
|
|
1351
|
+
/** Indexed triangles, counterclockwise from outside; millimeters, Z up. */
|
|
1352
|
+
interface SpurGearMesh {
|
|
1353
|
+
positions: number[];
|
|
1354
|
+
indices: number[];
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* An external involute spur gear with its lower face at Z=0. Tooth centers
|
|
1358
|
+
* start on +X and rotate counterclockwise with phase. The optional hub extends
|
|
1359
|
+
* above the upper face, and the round bore passes through both gear and hub.
|
|
1360
|
+
* Flanks are sampled involutes; tips and root valleys follow circular arcs.
|
|
1361
|
+
* Below the base circle the flanks extend radially, without a generated
|
|
1362
|
+
* trochoidal root fillet or cutter undercut. No CSG or renderer is required.
|
|
1360
1363
|
*/
|
|
1361
|
-
declare function
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1364
|
+
declare function createSpurGearMesh(input: SpurGearModelPropsInput): SpurGearMesh;
|
|
1365
|
+
|
|
1366
|
+
type HelicalGearMesh = SpurGearMesh;
|
|
1367
|
+
/**
|
|
1368
|
+
* Twisted transverse involute teeth from Z=0 to faceWidth, with a stationary
|
|
1369
|
+
* round bore and optional hub. Zero helix angle reproduces the spur mesh.
|
|
1370
|
+
*/
|
|
1371
|
+
declare function createHelicalGearMesh(input: HelicalGearModelPropsInput): HelicalGearMesh;
|
|
1372
|
+
|
|
1373
|
+
type HelicalGearProps = HelicalGearModelPropsInput & {
|
|
1374
|
+
color?: string;
|
|
1375
|
+
};
|
|
1376
|
+
/** Axis +Z, lower face Z=0; optional hub extends above the gear face. */
|
|
1377
|
+
declare function createHelicalGearGeom(input: HelicalGearModelPropsInput): _jscad_modeling_src_geometries_types.Geom3;
|
|
1378
|
+
declare function HelicalGear({ color, ...props }: HelicalGearProps): react_jsx_runtime.JSX.Element;
|
|
1379
|
+
|
|
1380
|
+
interface HexBoltMeshOptions {
|
|
1381
|
+
radialSegments?: number;
|
|
1382
|
+
threadStepsPerTurn?: number;
|
|
1383
|
+
}
|
|
1384
|
+
/** Outward-oriented, welded indexed surface, in millimeters. */
|
|
1385
|
+
interface HexBoltMesh {
|
|
1386
|
+
positions: number[];
|
|
1387
|
+
indices: number[];
|
|
1388
|
+
}
|
|
1389
|
+
declare function createHexBoltMesh(input: HexBoltModelPropsInput, options?: HexBoltMeshOptions): HexBoltMesh;
|
|
1390
|
+
|
|
1391
|
+
type HexBoltProps = HexBoltModelPropsInput & {
|
|
1392
|
+
color?: string;
|
|
1393
|
+
};
|
|
1394
|
+
declare function createHexBoltGeom(input: HexBoltModelPropsInput, options?: HexBoltMeshOptions): _jscad_modeling_src_geometries_types.Geom3;
|
|
1395
|
+
declare function HexBolt({ color, ...props }: HexBoltProps): react_jsx_runtime.JSX.Element;
|
|
1365
1396
|
|
|
1366
1397
|
/** Indexed triangles, counterclockwise from outside; millimeters, Z up. */
|
|
1367
1398
|
interface HexSocketBoltMesh {
|
|
@@ -1383,6 +1414,21 @@ type HexSocketBoltProps = HexSocketBoltModelPropsInput & {
|
|
|
1383
1414
|
declare function createHexSocketBoltGeom(input: HexSocketBoltModelPropsInput): _jscad_modeling_src_geometries_types.Geom3;
|
|
1384
1415
|
declare function HexSocketBolt({ color, ...props }: HexSocketBoltProps): react_jsx_runtime.JSX.Element;
|
|
1385
1416
|
|
|
1417
|
+
type NemaMotorProps = NemaMotorModelPropsInput & {
|
|
1418
|
+
bodyColor?: string;
|
|
1419
|
+
capColor?: string;
|
|
1420
|
+
shaftColor?: string;
|
|
1421
|
+
screwColor?: string;
|
|
1422
|
+
};
|
|
1423
|
+
type NemaFrameMotorProps = Omit<NemaMotorProps, "nemaSize">;
|
|
1424
|
+
/** Mounting face at Z=0, body along -Z, shaft along +Z; all lengths in mm.
|
|
1425
|
+
* Parameters follow the modelprinter NEMA contract; JSCAD builds all geometry.
|
|
1426
|
+
*/
|
|
1427
|
+
declare function NemaMotor({ bodyColor, capColor, shaftColor, screwColor, ...props }: NemaMotorProps): react_jsx_runtime.JSX.Element;
|
|
1428
|
+
declare const NEMA8: (props: NemaFrameMotorProps) => react_jsx_runtime.JSX.Element;
|
|
1429
|
+
declare const NEMA17: (props: NemaFrameMotorProps) => react_jsx_runtime.JSX.Element;
|
|
1430
|
+
declare const NEMA23: (props: NemaFrameMotorProps) => react_jsx_runtime.JSX.Element;
|
|
1431
|
+
|
|
1386
1432
|
interface SheetMetalMesh {
|
|
1387
1433
|
positions: number[];
|
|
1388
1434
|
indices: number[];
|
|
@@ -1402,35 +1448,6 @@ type SheetMetalProps = SheetMetalModelPropsInput & {
|
|
|
1402
1448
|
declare function createSheetMetalGeom(input: SheetMetalModelPropsInput): _jscad_modeling_src_geometries_types.Geom3;
|
|
1403
1449
|
declare function SheetMetal({ color, ...props }: SheetMetalProps): react_jsx_runtime.JSX.Element;
|
|
1404
1450
|
|
|
1405
|
-
/** Indexed triangles, counterclockwise from outside; millimeters, Z up. */
|
|
1406
|
-
interface SpurGearMesh {
|
|
1407
|
-
positions: number[];
|
|
1408
|
-
indices: number[];
|
|
1409
|
-
}
|
|
1410
|
-
/**
|
|
1411
|
-
* An external involute spur gear with its lower face at Z=0. Tooth centers
|
|
1412
|
-
* start on +X and rotate counterclockwise with phase. The optional hub extends
|
|
1413
|
-
* above the upper face, and the round bore passes through both gear and hub.
|
|
1414
|
-
* Flanks are sampled involutes; tips and root valleys follow circular arcs.
|
|
1415
|
-
* Below the base circle the flanks extend radially, without a generated
|
|
1416
|
-
* trochoidal root fillet or cutter undercut. No CSG or renderer is required.
|
|
1417
|
-
*/
|
|
1418
|
-
declare function createSpurGearMesh(input: SpurGearModelPropsInput): SpurGearMesh;
|
|
1419
|
-
|
|
1420
|
-
type HelicalGearMesh = SpurGearMesh;
|
|
1421
|
-
/**
|
|
1422
|
-
* Twisted transverse involute teeth from Z=0 to faceWidth, with a stationary
|
|
1423
|
-
* round bore and optional hub. Zero helix angle reproduces the spur mesh.
|
|
1424
|
-
*/
|
|
1425
|
-
declare function createHelicalGearMesh(input: HelicalGearModelPropsInput): HelicalGearMesh;
|
|
1426
|
-
|
|
1427
|
-
type HelicalGearProps = HelicalGearModelPropsInput & {
|
|
1428
|
-
color?: string;
|
|
1429
|
-
};
|
|
1430
|
-
/** Axis +Z, lower face Z=0; optional hub extends above the gear face. */
|
|
1431
|
-
declare function createHelicalGearGeom(input: HelicalGearModelPropsInput): _jscad_modeling_src_geometries_types.Geom3;
|
|
1432
|
-
declare function HelicalGear({ color, ...props }: HelicalGearProps): react_jsx_runtime.JSX.Element;
|
|
1433
|
-
|
|
1434
1451
|
type SpurGearProps = SpurGearModelPropsInput & {
|
|
1435
1452
|
color?: string;
|
|
1436
1453
|
};
|
|
@@ -1458,21 +1475,4 @@ type WormGearProps = WormGearModelPropsInput & {
|
|
|
1458
1475
|
declare function createWormGearGeom(input: WormGearModelPropsInput): _jscad_modeling_src_geometries_types.Geom3;
|
|
1459
1476
|
declare function WormGear({ color, ...props }: WormGearProps): react_jsx_runtime.JSX.Element;
|
|
1460
1477
|
|
|
1461
|
-
interface HexBoltMeshOptions {
|
|
1462
|
-
radialSegments?: number;
|
|
1463
|
-
threadStepsPerTurn?: number;
|
|
1464
|
-
}
|
|
1465
|
-
/** Outward-oriented, welded indexed surface, in millimeters. */
|
|
1466
|
-
interface HexBoltMesh {
|
|
1467
|
-
positions: number[];
|
|
1468
|
-
indices: number[];
|
|
1469
|
-
}
|
|
1470
|
-
declare function createHexBoltMesh(input: HexBoltModelPropsInput, options?: HexBoltMeshOptions): HexBoltMesh;
|
|
1471
|
-
|
|
1472
|
-
type HexBoltProps = HexBoltModelPropsInput & {
|
|
1473
|
-
color?: string;
|
|
1474
|
-
};
|
|
1475
|
-
declare function createHexBoltGeom(input: HexBoltModelPropsInput, options?: HexBoltMeshOptions): _jscad_modeling_src_geometries_types.Geom3;
|
|
1476
|
-
declare function HexBolt({ color, ...props }: HexBoltProps): react_jsx_runtime.JSX.Element;
|
|
1477
|
-
|
|
1478
1478
|
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, AxialCapacitor, BGA, CeramicChipAntenna, ChipBody, type ChipBodyProps, Crystal, type CrystalProps, DFN, DO219AD, type DO219ADProps, DPAK, type DPAKProps, Display, ElectrolyticCapacitor, type ElectrolyticCapacitorProps, ExtrudedPads, FPC, type FPCProps, FemaleHeader, FemaleHeaderRow, FlexScreen, type FlexScreenAspectRatio, type FlexScreenOrientation, type FlexScreenProps, FootprintPad, FootprintPlatedHole, Footprinter3d, GullWingBody, type GullWingBodyProps, HC49, type HC49Props, HelicalGear, type HelicalGearMesh, type HelicalGearProps, HexBolt, type HexBoltMesh, type HexBoltMeshOptions, type HexBoltProps, HexSocketBolt, type HexSocketBoltMesh, type HexSocketBoltProps, JSTPH2_0mm, JSTXH2_5mm, type JSTXH2_5mmProps, JSTZH1_5mm, JstSh, LGA, type LGAProps, LQFP, type LQFPProps, Led2835, type Led2835Props, Led5050, type Led5050Props, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MS013, MSOP, type MSOPProps, MelfResistor, type MelfResistorSize, MicroMELF, type MicroMELFProps, MountedPcbModule, NEMA17, NEMA23, NEMA8, type NemaFrameMotorProps, NemaMotor, type NemaMotorProps, PinHeader, PinRow, Potentiometer, type PotentiometerLead, type PotentiometerProps, QFN, type QFNProps, QFP, RJ45, type RJ45Props, type ResolvedFlexScreenSize, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, type SOD123Props, SOD123W, type SOD123WProps, SOD128, SOD323, SOD323F, SOD323FL, SOD323HE, type SOD323HEProps, SOD523, SOD723, SOD882, SOD923, SOIC, type SOICProps, SOT143, SOT223, type SOT223Props, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SOT886, SOT89, type SOT89Props, SOT963, SSOP, type SSOPProps, Screen, type ScreenProps, SheetMetal, type SheetMetalMesh, type SheetMetalProps, SmdChipLead, type SmdChipLeadProps, SmdLED, type SmdLeadPad, type SmdLedSize, SmdPinHeader, type SmdPinHeaderProps, SmdPushButton, type SmdPushButtonProps, SmdSlideSwitch, SpurGear, type SpurGearMesh, type SpurGearProps, StampBoard, TO220, type TO220Lead, type TO220Props, TO277, type TO277Props, TO92, type TO92Lead, type TO92Props, TQFP, TantalumCapacitor, type TantalumCase, Tssop, type TssopProps, TwoPadCrystal, type TwoPadCrystalPackage, UsbCMidmount, VSSOP, WormGear, type WormGearMesh, type WormGearProps, createHelicalGearGeom, createHelicalGearMesh, createHexBoltGeom, createHexBoltMesh, createHexSocketBoltGeom, createHexSocketBoltMesh, createSheetMetalGeom, createSheetMetalMesh, createSpurGearGeom, createSpurGearMesh, createWormGearGeom, createWormGearMesh, isJstShFootprint, melfResistorSizes, resolveFlexScreenSize, smdLedDimensions, tantalumCases, twoPadCrystalPackages };
|