circuit-to-svg 0.0.123 → 0.0.124
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.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1046,7 +1046,7 @@ import "svgson";
|
|
|
1046
1046
|
import { applyToPoint as applyToPoint15 } from "transformation-matrix";
|
|
1047
1047
|
|
|
1048
1048
|
// lib/pcb/create-svg-objects-from-pcb-rats-nest/get-element-position.ts
|
|
1049
|
-
import { su } from "@tscircuit/
|
|
1049
|
+
import { su } from "@tscircuit/circuit-json-util";
|
|
1050
1050
|
var getElementPosition = (id, circuitJson) => {
|
|
1051
1051
|
const pcbSmtpad = su(circuitJson).pcb_smtpad.get(id);
|
|
1052
1052
|
if (pcbSmtpad && "x" in pcbSmtpad && "y" in pcbSmtpad) {
|
|
@@ -1081,7 +1081,7 @@ var findNearestPointInNet = (sourcePoint, netId, connectivity, circuitJson) => {
|
|
|
1081
1081
|
};
|
|
1082
1082
|
|
|
1083
1083
|
// lib/pcb/svg-object-fns/create-svg-objects-from-pcb-rats-nests.ts
|
|
1084
|
-
import { su as su2 } from "@tscircuit/
|
|
1084
|
+
import { su as su2 } from "@tscircuit/circuit-json-util";
|
|
1085
1085
|
function createSvgObjectsForRatsNest(circuitJson, transform) {
|
|
1086
1086
|
const connectivity = getFullConnectivityMapFromCircuitJson(circuitJson);
|
|
1087
1087
|
const pcbPorts = circuitJson.filter((elm) => elm.type === "pcb_port");
|
|
@@ -1409,7 +1409,7 @@ var circuitJsonToPcbSvg = convertCircuitJsonToPcbSvg;
|
|
|
1409
1409
|
|
|
1410
1410
|
// lib/assembly/convert-circuit-json-to-assembly-svg.ts
|
|
1411
1411
|
import { stringify as stringify2 } from "svgson";
|
|
1412
|
-
import { su as su3 } from "@tscircuit/
|
|
1412
|
+
import { su as su3 } from "@tscircuit/circuit-json-util";
|
|
1413
1413
|
import {
|
|
1414
1414
|
applyToPoint as applyToPoint20,
|
|
1415
1415
|
compose as compose4,
|
|
@@ -2263,7 +2263,7 @@ function getSchematicBoundsFromCircuitJson(soup, padding = 0.5) {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
|
|
2265
2265
|
// lib/sch/svg-object-fns/create-svg-objects-from-sch-component-with-symbol.ts
|
|
2266
|
-
import { su as su4 } from "@tscircuit/
|
|
2266
|
+
import { su as su4 } from "@tscircuit/circuit-json-util";
|
|
2267
2267
|
import { symbols } from "schematic-symbols";
|
|
2268
2268
|
import "svgson";
|
|
2269
2269
|
import {
|
|
@@ -2588,18 +2588,18 @@ var createSvgObjectsFromSchematicComponentWithSymbol = ({
|
|
|
2588
2588
|
};
|
|
2589
2589
|
|
|
2590
2590
|
// lib/sch/svg-object-fns/create-svg-objects-from-sch-component-with-box.ts
|
|
2591
|
-
import { su as su7 } from "@tscircuit/
|
|
2591
|
+
import { su as su7 } from "@tscircuit/circuit-json-util";
|
|
2592
2592
|
import "schematic-symbols";
|
|
2593
2593
|
import "svgson";
|
|
2594
2594
|
import { applyToPoint as applyToPoint30 } from "transformation-matrix";
|
|
2595
2595
|
|
|
2596
2596
|
// lib/sch/svg-object-fns/create-svg-objects-from-sch-port-on-box.ts
|
|
2597
2597
|
import "transformation-matrix";
|
|
2598
|
-
import "@tscircuit/
|
|
2598
|
+
import "@tscircuit/circuit-json-util";
|
|
2599
2599
|
|
|
2600
2600
|
// lib/sch/svg-object-fns/create-svg-objects-for-sch-port-box-line.ts
|
|
2601
2601
|
import { applyToPoint as applyToPoint25 } from "transformation-matrix";
|
|
2602
|
-
import { su as su5 } from "@tscircuit/
|
|
2602
|
+
import { su as su5 } from "@tscircuit/circuit-json-util";
|
|
2603
2603
|
var PIN_CIRCLE_RADIUS_MM = 0.02;
|
|
2604
2604
|
var createSvgObjectsForSchPortBoxLine = ({
|
|
2605
2605
|
schPort,
|