circuit-to-svg 0.0.215 → 0.0.217
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 +3 -1
- package/dist/index.js +4 -2
- 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
|
@@ -312,6 +312,8 @@ interface SimulationTransientVoltageGraphElement {
|
|
|
312
312
|
name?: string;
|
|
313
313
|
}
|
|
314
314
|
type CircuitJsonWithSimulation = AnyCircuitElement | SimulationExperimentElement | SimulationTransientVoltageGraphElement;
|
|
315
|
+
declare function isSimulationTransientVoltageGraph(value: CircuitJsonWithSimulation): value is SimulationTransientVoltageGraphElement;
|
|
316
|
+
declare function isSimulationExperiment(value: CircuitJsonWithSimulation): value is SimulationExperimentElement;
|
|
315
317
|
|
|
316
318
|
interface ConvertSchematicSimulationParams {
|
|
317
319
|
circuitJson: CircuitJsonWithSimulation[];
|
|
@@ -353,4 +355,4 @@ declare const createSvgObjectsForSchComponentPortHovers: ({ component, transform
|
|
|
353
355
|
circuitJson: AnyCircuitElement[];
|
|
354
356
|
}) => INode[];
|
|
355
357
|
|
|
356
|
-
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 };
|
|
358
|
+
export { type AssemblySvgContext, CIRCUIT_TO_SVG_VERSION, type CircuitJsonWithSimulation, type ColorMap, type ColorOverrides, type ExperimentType, type PcbColorMap, type PcbColorOverrides, type PcbContext, type PinoutLabel, type PinoutSvgContext, type SimulationExperimentElement, type SimulationTransientVoltageGraphElement, circuitJsonToPcbSvg, circuitJsonToSchematicSvg, convertCircuitJsonToAssemblySvg, convertCircuitJsonToPcbSvg, convertCircuitJsonToPinoutSvg, convertCircuitJsonToSchematicSimulationSvg, convertCircuitJsonToSchematicSvg, convertCircuitJsonToSimulationGraphSvg, convertCircuitJsonToSolderPasteMask, createSvgObjectsForSchComponentPortHovers, getSoftwareUsedString, isSimulationExperiment, isSimulationTransientVoltageGraph };
|
package/dist/index.js
CHANGED
|
@@ -1783,7 +1783,7 @@ function getSoftwareUsedString(circuitJson) {
|
|
|
1783
1783
|
var package_default = {
|
|
1784
1784
|
name: "circuit-to-svg",
|
|
1785
1785
|
type: "module",
|
|
1786
|
-
version: "0.0.
|
|
1786
|
+
version: "0.0.216",
|
|
1787
1787
|
description: "Convert Circuit JSON to SVG",
|
|
1788
1788
|
main: "dist/index.js",
|
|
1789
1789
|
files: [
|
|
@@ -9069,6 +9069,8 @@ export {
|
|
|
9069
9069
|
convertCircuitJsonToSimulationGraphSvg,
|
|
9070
9070
|
convertCircuitJsonToSolderPasteMask,
|
|
9071
9071
|
createSvgObjectsForSchComponentPortHovers,
|
|
9072
|
-
getSoftwareUsedString
|
|
9072
|
+
getSoftwareUsedString,
|
|
9073
|
+
isSimulationExperiment,
|
|
9074
|
+
isSimulationTransientVoltageGraph
|
|
9073
9075
|
};
|
|
9074
9076
|
//# sourceMappingURL=index.js.map
|