circuit-to-svg 0.0.196 → 0.0.198
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 +35 -5
- package/dist/index.js +1156 -145
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface PcbColorOverrides {
|
|
|
31
31
|
debugComponent?: Partial<PcbColorMap["debugComponent"]>;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
interface Options$
|
|
34
|
+
interface Options$4 {
|
|
35
35
|
colorOverrides?: PcbColorOverrides;
|
|
36
36
|
width?: number;
|
|
37
37
|
height?: number;
|
|
@@ -50,13 +50,13 @@ interface PcbContext {
|
|
|
50
50
|
drawPaddingOutsideBoard?: boolean;
|
|
51
51
|
colorMap: PcbColorMap;
|
|
52
52
|
}
|
|
53
|
-
declare function convertCircuitJsonToPcbSvg(circuitJson: AnyCircuitElement[], options?: Options$
|
|
53
|
+
declare function convertCircuitJsonToPcbSvg(circuitJson: AnyCircuitElement[], options?: Options$4): string;
|
|
54
54
|
/**
|
|
55
55
|
* @deprecated use `convertCircuitJsonToPcbSvg` instead
|
|
56
56
|
*/
|
|
57
57
|
declare const circuitJsonToPcbSvg: typeof convertCircuitJsonToPcbSvg;
|
|
58
58
|
|
|
59
|
-
interface Options$
|
|
59
|
+
interface Options$3 {
|
|
60
60
|
width?: number;
|
|
61
61
|
height?: number;
|
|
62
62
|
includeVersion?: boolean;
|
|
@@ -64,7 +64,37 @@ interface Options$2 {
|
|
|
64
64
|
interface AssemblySvgContext {
|
|
65
65
|
transform: Matrix;
|
|
66
66
|
}
|
|
67
|
-
declare function convertCircuitJsonToAssemblySvg(soup: AnyCircuitElement[], options?: Options$
|
|
67
|
+
declare function convertCircuitJsonToAssemblySvg(soup: AnyCircuitElement[], options?: Options$3): string;
|
|
68
|
+
|
|
69
|
+
interface Options$2 {
|
|
70
|
+
width?: number;
|
|
71
|
+
height?: number;
|
|
72
|
+
includeVersion?: boolean;
|
|
73
|
+
}
|
|
74
|
+
interface PinoutSvgContext {
|
|
75
|
+
transform: Matrix;
|
|
76
|
+
soup: AnyCircuitElement[];
|
|
77
|
+
board_bounds: {
|
|
78
|
+
minX: number;
|
|
79
|
+
minY: number;
|
|
80
|
+
maxX: number;
|
|
81
|
+
maxY: number;
|
|
82
|
+
};
|
|
83
|
+
label_positions: Map<string, {
|
|
84
|
+
text: string;
|
|
85
|
+
aliases: string[];
|
|
86
|
+
elbow_end: {
|
|
87
|
+
x: number;
|
|
88
|
+
y: number;
|
|
89
|
+
};
|
|
90
|
+
label_pos: {
|
|
91
|
+
x: number;
|
|
92
|
+
y: number;
|
|
93
|
+
};
|
|
94
|
+
edge: "left" | "right" | "top" | "bottom";
|
|
95
|
+
}>;
|
|
96
|
+
}
|
|
97
|
+
declare function convertCircuitJsonToPinoutSvg(soup: AnyCircuitElement[], options?: Options$2): string;
|
|
68
98
|
|
|
69
99
|
declare const colorMap: {
|
|
70
100
|
"3d_viewer": {
|
|
@@ -269,4 +299,4 @@ declare const createSvgObjectsForSchComponentPortHovers: ({ component, transform
|
|
|
269
299
|
circuitJson: AnyCircuitElement[];
|
|
270
300
|
}) => INode[];
|
|
271
301
|
|
|
272
|
-
export { type AssemblySvgContext, CIRCUIT_TO_SVG_VERSION, type ColorMap, type ColorOverrides, type PcbColorMap, type PcbColorOverrides, type PcbContext, circuitJsonToPcbSvg, circuitJsonToSchematicSvg, convertCircuitJsonToAssemblySvg, convertCircuitJsonToPcbSvg, convertCircuitJsonToSchematicSvg, convertCircuitJsonToSolderPasteMask, createSvgObjectsForSchComponentPortHovers, getSoftwareUsedString };
|
|
302
|
+
export { type AssemblySvgContext, CIRCUIT_TO_SVG_VERSION, type ColorMap, type ColorOverrides, type PcbColorMap, type PcbColorOverrides, type PcbContext, type PinoutSvgContext, circuitJsonToPcbSvg, circuitJsonToSchematicSvg, convertCircuitJsonToAssemblySvg, convertCircuitJsonToPcbSvg, convertCircuitJsonToPinoutSvg, convertCircuitJsonToSchematicSvg, convertCircuitJsonToSolderPasteMask, createSvgObjectsForSchComponentPortHovers, getSoftwareUsedString };
|