circuit-to-svg 0.0.210 → 0.0.212
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/README.md +7 -7
- package/dist/index.d.ts +7 -2
- package/dist/index.js +385 -227
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ const schematicSvg = convertCircuitJsonToSchematicSvg(circuitJson, {
|
|
|
65
65
|
})
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+

|
|
69
69
|
|
|
70
70
|
#### Options
|
|
71
71
|
|
|
@@ -91,7 +91,7 @@ const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson, {
|
|
|
91
91
|
})
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+

|
|
95
95
|
|
|
96
96
|
#### Options
|
|
97
97
|
|
|
@@ -119,7 +119,7 @@ const assemblySvg = convertCircuitJsonToAssemblySvg(circuitJson, {
|
|
|
119
119
|
})
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+

|
|
123
123
|
|
|
124
124
|
#### Options
|
|
125
125
|
|
|
@@ -139,7 +139,7 @@ import { convertCircuitJsonToPinoutSvg } from 'circuit-to-svg'
|
|
|
139
139
|
const pinoutSvg = convertCircuitJsonToPinoutSvg(circuitJson)
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+

|
|
143
143
|
|
|
144
144
|
#### Options
|
|
145
145
|
|
|
@@ -173,7 +173,7 @@ const schematicSimulationSvg = convertCircuitJsonToSchematicSimulationSvg({
|
|
|
173
173
|
})
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+

|
|
177
177
|
|
|
178
178
|
#### Options
|
|
179
179
|
|
|
@@ -206,7 +206,7 @@ const simulationGraphSvg = convertCircuitJsonToSimulationGraphSvg({
|
|
|
206
206
|
})
|
|
207
207
|
```
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+

|
|
210
210
|
|
|
211
211
|
#### Options
|
|
212
212
|
|
|
@@ -228,7 +228,7 @@ const solderPasteMaskSvg = convertCircuitJsonToSolderPasteMask(circuitJson, {
|
|
|
228
228
|
})
|
|
229
229
|
```
|
|
230
230
|
|
|
231
|
-
|
|
231
|
+

|
|
232
232
|
|
|
233
233
|
#### Options
|
|
234
234
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyCircuitElement, SchematicComponent } from 'circuit-json';
|
|
1
|
+
import { AnyCircuitElement, PcbPort, SchematicComponent } from 'circuit-json';
|
|
2
2
|
import { Matrix } from 'transformation-matrix';
|
|
3
3
|
import { INode } from 'svgson';
|
|
4
4
|
|
|
@@ -87,6 +87,11 @@ interface Options$2 {
|
|
|
87
87
|
height?: number;
|
|
88
88
|
includeVersion?: boolean;
|
|
89
89
|
}
|
|
90
|
+
interface PinoutLabel {
|
|
91
|
+
pcb_port: PcbPort;
|
|
92
|
+
aliases: string[];
|
|
93
|
+
edge: "left" | "right" | "top" | "bottom";
|
|
94
|
+
}
|
|
90
95
|
interface PinoutSvgContext {
|
|
91
96
|
transform: Matrix;
|
|
92
97
|
soup: AnyCircuitElement[];
|
|
@@ -347,4 +352,4 @@ declare const createSvgObjectsForSchComponentPortHovers: ({ component, transform
|
|
|
347
352
|
circuitJson: AnyCircuitElement[];
|
|
348
353
|
}) => INode[];
|
|
349
354
|
|
|
350
|
-
export { type AssemblySvgContext, CIRCUIT_TO_SVG_VERSION, type ColorMap, type ColorOverrides, type PcbColorMap, type PcbColorOverrides, type PcbContext, type PinoutSvgContext, circuitJsonToPcbSvg, circuitJsonToSchematicSvg, convertCircuitJsonToAssemblySvg, convertCircuitJsonToPcbSvg, convertCircuitJsonToPinoutSvg, convertCircuitJsonToSchematicSimulationSvg, convertCircuitJsonToSchematicSvg, convertCircuitJsonToSimulationGraphSvg, convertCircuitJsonToSolderPasteMask, createSvgObjectsForSchComponentPortHovers, getSoftwareUsedString };
|
|
355
|
+
export { type AssemblySvgContext, CIRCUIT_TO_SVG_VERSION, type ColorMap, type ColorOverrides, type PcbColorMap, type PcbColorOverrides, type PcbContext, type PinoutLabel, type PinoutSvgContext, circuitJsonToPcbSvg, circuitJsonToSchematicSvg, convertCircuitJsonToAssemblySvg, convertCircuitJsonToPcbSvg, convertCircuitJsonToPinoutSvg, convertCircuitJsonToSchematicSimulationSvg, convertCircuitJsonToSchematicSvg, convertCircuitJsonToSimulationGraphSvg, convertCircuitJsonToSolderPasteMask, createSvgObjectsForSchComponentPortHovers, getSoftwareUsedString };
|