circuit-to-svg 0.0.214 → 0.0.216
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +240 -159
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,6 +102,7 @@ const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson, {
|
|
|
102
102
|
`"#000"`.
|
|
103
103
|
- `drawPaddingOutsideBoard` – if `false`, omit the board outline and extra
|
|
104
104
|
padding around it. Defaults to `true`.
|
|
105
|
+
- `shouldDrawErrors` – if `true`, display visual error indicators (red diamonds with text) for any `pcb_trace_error` elements in the circuit JSON. Defaults to `false`.
|
|
105
106
|
- `includeVersion` – if `true`, add a `data-circuit-to-svg-version` attribute to
|
|
106
107
|
the root `<svg>`.
|
|
107
108
|
|
package/dist/index.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ interface PinoutSvgContext {
|
|
|
101
101
|
maxX: number;
|
|
102
102
|
maxY: number;
|
|
103
103
|
};
|
|
104
|
+
styleScale: number;
|
|
104
105
|
label_positions: Map<string, LabelPosition>;
|
|
105
106
|
}
|
|
106
107
|
declare function convertCircuitJsonToPinoutSvg(soup: AnyCircuitElement[], options?: Options$2): string;
|