@tscircuit/internal-dynamic-import 0.0.11 → 0.0.13
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 +23 -12
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -253,8 +253,8 @@ declare const excellon_drill_command_map: {
|
|
|
253
253
|
command_code: z.ZodDefault<z.ZodLiteral<"aper_function_header">>;
|
|
254
254
|
is_plated: z.ZodBoolean;
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
|
-
is_plated: boolean;
|
|
257
256
|
command_code: "aper_function_header";
|
|
257
|
+
is_plated: boolean;
|
|
258
258
|
}, {
|
|
259
259
|
is_plated: boolean;
|
|
260
260
|
command_code?: "aper_function_header" | undefined;
|
|
@@ -385,11 +385,20 @@ type AnyExcellonDrillCommand = z.infer<(typeof excellon_drill_command_map)[keyof
|
|
|
385
385
|
|
|
386
386
|
declare const stringifyExcellonDrill: (commands: Array<AnyExcellonDrillCommand>) => string;
|
|
387
387
|
|
|
388
|
-
|
|
388
|
+
type DrillLayerSpan = {
|
|
389
|
+
from_layer: LayerRef$1;
|
|
390
|
+
to_layer: LayerRef$1;
|
|
391
|
+
};
|
|
392
|
+
declare const convertSoupToExcellonDrillCommands: ({ circuitJson, is_plated, flip_y_axis, layer_span, }: {
|
|
389
393
|
circuitJson: Array<AnyCircuitElement>;
|
|
390
394
|
is_plated: boolean;
|
|
391
395
|
flip_y_axis?: boolean;
|
|
396
|
+
layer_span?: DrillLayerSpan;
|
|
392
397
|
}) => Array<AnyExcellonDrillCommand>;
|
|
398
|
+
declare const convertSoupToExcellonDrillCommandLayers: ({ circuitJson, flip_y_axis, }: {
|
|
399
|
+
circuitJson: Array<AnyCircuitElement>;
|
|
400
|
+
flip_y_axis?: boolean;
|
|
401
|
+
}) => Record<string, Array<AnyExcellonDrillCommand>>;
|
|
393
402
|
|
|
394
403
|
declare class ExcellonDrillBuilder {
|
|
395
404
|
commands: Array<AnyExcellonDrillCommand>;
|
|
@@ -808,7 +817,14 @@ declare class GerberBuilder {
|
|
|
808
817
|
build(): Array<AnyGerberCommand>;
|
|
809
818
|
}
|
|
810
819
|
|
|
820
|
+
declare const stringifyGerberCommandLayers: (commandLayers: Record<string, AnyGerberCommand[]>) => Record<string, string>;
|
|
821
|
+
|
|
822
|
+
declare const stringifyGerberCommand: (command: AnyGerberCommand) => string;
|
|
823
|
+
|
|
824
|
+
declare const stringifyGerberCommands: (commands: AnyGerberCommand[]) => string;
|
|
825
|
+
|
|
811
826
|
type LayerToGerberCommandsMap = {
|
|
827
|
+
[key: string]: AnyGerberCommand[];
|
|
812
828
|
F_Cu: AnyGerberCommand[];
|
|
813
829
|
F_SilkScreen: AnyGerberCommand[];
|
|
814
830
|
F_Mask: AnyGerberCommand[];
|
|
@@ -819,21 +835,16 @@ type LayerToGerberCommandsMap = {
|
|
|
819
835
|
B_Paste: AnyGerberCommand[];
|
|
820
836
|
Edge_Cuts: AnyGerberCommand[];
|
|
821
837
|
};
|
|
822
|
-
type GerberLayerName = keyof LayerToGerberCommandsMap;
|
|
823
|
-
|
|
824
|
-
declare const stringifyGerberCommandLayers: (commandLayers: Record<GerberLayerName, AnyGerberCommand[]>) => Record<GerberLayerName, string>;
|
|
825
|
-
|
|
826
|
-
declare const stringifyGerberCommand: (command: AnyGerberCommand) => string;
|
|
827
|
-
|
|
828
|
-
declare const stringifyGerberCommands: (commands: AnyGerberCommand[]) => string;
|
|
829
838
|
|
|
830
839
|
/**
|
|
831
|
-
* Converts
|
|
840
|
+
* Converts Circuit JSON to arrays of Gerber commands for each layer
|
|
832
841
|
*/
|
|
833
|
-
declare const convertSoupToGerberCommands: (
|
|
842
|
+
declare const convertSoupToGerberCommands: (circuitJson: AnyCircuitElement[], opts?: {
|
|
834
843
|
flip_y_axis?: boolean;
|
|
835
844
|
}) => LayerToGerberCommandsMap;
|
|
836
845
|
|
|
846
|
+
type CircuitJsonToGerberModule_DrillLayerSpan = DrillLayerSpan;
|
|
847
|
+
declare const CircuitJsonToGerberModule_convertSoupToExcellonDrillCommandLayers: typeof convertSoupToExcellonDrillCommandLayers;
|
|
837
848
|
declare const CircuitJsonToGerberModule_convertSoupToExcellonDrillCommands: typeof convertSoupToExcellonDrillCommands;
|
|
838
849
|
declare const CircuitJsonToGerberModule_convertSoupToGerberCommands: typeof convertSoupToGerberCommands;
|
|
839
850
|
declare const CircuitJsonToGerberModule_excellonDrill: typeof excellonDrill;
|
|
@@ -843,7 +854,7 @@ declare const CircuitJsonToGerberModule_stringifyGerberCommand: typeof stringify
|
|
|
843
854
|
declare const CircuitJsonToGerberModule_stringifyGerberCommandLayers: typeof stringifyGerberCommandLayers;
|
|
844
855
|
declare const CircuitJsonToGerberModule_stringifyGerberCommands: typeof stringifyGerberCommands;
|
|
845
856
|
declare namespace CircuitJsonToGerberModule {
|
|
846
|
-
export { CircuitJsonToGerberModule_convertSoupToExcellonDrillCommands as convertSoupToExcellonDrillCommands, CircuitJsonToGerberModule_convertSoupToGerberCommands as convertSoupToGerberCommands, CircuitJsonToGerberModule_excellonDrill as excellonDrill, CircuitJsonToGerberModule_gerberBuilder as gerberBuilder, CircuitJsonToGerberModule_stringifyExcellonDrill as stringifyExcellonDrill, CircuitJsonToGerberModule_stringifyGerberCommand as stringifyGerberCommand, CircuitJsonToGerberModule_stringifyGerberCommandLayers as stringifyGerberCommandLayers, CircuitJsonToGerberModule_stringifyGerberCommands as stringifyGerberCommands };
|
|
857
|
+
export { type CircuitJsonToGerberModule_DrillLayerSpan as DrillLayerSpan, CircuitJsonToGerberModule_convertSoupToExcellonDrillCommandLayers as convertSoupToExcellonDrillCommandLayers, CircuitJsonToGerberModule_convertSoupToExcellonDrillCommands as convertSoupToExcellonDrillCommands, CircuitJsonToGerberModule_convertSoupToGerberCommands as convertSoupToGerberCommands, CircuitJsonToGerberModule_excellonDrill as excellonDrill, CircuitJsonToGerberModule_gerberBuilder as gerberBuilder, CircuitJsonToGerberModule_stringifyExcellonDrill as stringifyExcellonDrill, CircuitJsonToGerberModule_stringifyGerberCommand as stringifyGerberCommand, CircuitJsonToGerberModule_stringifyGerberCommandLayers as stringifyGerberCommandLayers, CircuitJsonToGerberModule_stringifyGerberCommands as stringifyGerberCommands };
|
|
847
858
|
}
|
|
848
859
|
|
|
849
860
|
interface AuthHeaders extends Record<string, string> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/internal-dynamic-import",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Type-safe dynamic imports for selected tscircuit packages via jscdn and fallback to jsDelivr",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"@biomejs/biome": "^2.0.5",
|
|
30
30
|
"@types/bun": "latest",
|
|
31
31
|
"circuit-json-to-3d-png": "0.0.7",
|
|
32
|
-
"circuit-json-to-bom-csv": "0.0.
|
|
32
|
+
"circuit-json-to-bom-csv": "0.0.14",
|
|
33
33
|
"circuit-json-to-bpc": "0.0.13",
|
|
34
34
|
"circuit-json-to-connectivity-map": "0.0.23",
|
|
35
|
-
"circuit-json-to-gerber": "0.0.
|
|
35
|
+
"circuit-json-to-gerber": "0.0.84",
|
|
36
36
|
"circuit-json-to-gltf": "0.0.106",
|
|
37
37
|
"circuit-json-to-kicad": "0.0.137",
|
|
38
38
|
"circuit-json-to-lbrn": "0.0.69",
|
|
39
|
-
"circuit-json-to-pnp-csv": "0.0.
|
|
39
|
+
"circuit-json-to-pnp-csv": "0.0.8",
|
|
40
40
|
"circuit-json-to-readable-netlist": "0.0.15",
|
|
41
41
|
"circuit-json-to-simple-3d": "0.0.9",
|
|
42
42
|
"circuit-json-to-spice": "0.0.34",
|