circuit-to-svg 0.0.91 → 0.0.93
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 +9 -3
- package/dist/index.js +635 -289
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { AnyCircuitElement } from 'circuit-json';
|
|
2
2
|
|
|
3
|
-
interface Options$
|
|
3
|
+
interface Options$2 {
|
|
4
4
|
width?: number;
|
|
5
5
|
height?: number;
|
|
6
6
|
shouldDrawErrors?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare function convertCircuitJsonToPcbSvg(soup: AnyCircuitElement[], options?: Options$
|
|
8
|
+
declare function convertCircuitJsonToPcbSvg(soup: AnyCircuitElement[], options?: Options$2): string;
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated use `convertCircuitJsonToPcbSvg` instead
|
|
11
11
|
*/
|
|
12
12
|
declare const circuitJsonToPcbSvg: typeof convertCircuitJsonToPcbSvg;
|
|
13
13
|
|
|
14
|
+
interface Options$1 {
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
}
|
|
18
|
+
declare function convertCircuitJsonToAssemblySvg(soup: AnyCircuitElement[], options?: Options$1): string;
|
|
19
|
+
|
|
14
20
|
interface Options {
|
|
15
21
|
width?: number;
|
|
16
22
|
height?: number;
|
|
@@ -30,4 +36,4 @@ declare function convertCircuitJsonToSchematicSvg(circuitJson: AnyCircuitElement
|
|
|
30
36
|
*/
|
|
31
37
|
declare const circuitJsonToSchematicSvg: typeof convertCircuitJsonToSchematicSvg;
|
|
32
38
|
|
|
33
|
-
export { circuitJsonToPcbSvg, circuitJsonToSchematicSvg, convertCircuitJsonToPcbSvg, convertCircuitJsonToSchematicSvg };
|
|
39
|
+
export { circuitJsonToPcbSvg, circuitJsonToSchematicSvg, convertCircuitJsonToAssemblySvg, convertCircuitJsonToPcbSvg, convertCircuitJsonToSchematicSvg };
|