@tscircuit/core 0.0.1353 → 0.0.1354

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -10
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -24214,7 +24214,7 @@ import { identity as identity5 } from "transformation-matrix";
24214
24214
  var package_default = {
24215
24215
  name: "@tscircuit/core",
24216
24216
  type: "module",
24217
- version: "0.0.1352",
24217
+ version: "0.0.1353",
24218
24218
  types: "dist/index.d.ts",
24219
24219
  main: "dist/index.js",
24220
24220
  module: "dist/index.js",
@@ -24251,7 +24251,7 @@ var package_default = {
24251
24251
  "@tscircuit/checks": "0.0.138",
24252
24252
  "@tscircuit/circuit-json-util": "^0.0.96",
24253
24253
  "@tscircuit/common": "^0.0.20",
24254
- "@tscircuit/copper-pour-solver": "^0.0.29",
24254
+ "@tscircuit/copper-pour-solver": "^0.0.34",
24255
24255
  "@tscircuit/footprinter": "^0.0.357",
24256
24256
  "@tscircuit/image-utils": "^0.0.8",
24257
24257
  "@tscircuit/infer-cable-insertion-point": "^0.0.2",
@@ -28965,7 +28965,6 @@ import {
28965
28965
  convertCircuitJsonToInputProblem,
28966
28966
  initializeManifoldGeometry
28967
28967
  } from "@tscircuit/copper-pour-solver";
28968
- import { getFullConnectivityMapFromCircuitJson as getFullConnectivityMapFromCircuitJson4 } from "circuit-json-to-connectivity-map";
28969
28968
 
28970
28969
  // lib/components/primitive-components/CopperPour/utils/mark-trace-segments-inside-copper-pour.ts
28971
28970
  var EPSILON = 1e-9;
@@ -29118,16 +29117,10 @@ var CopperPour = class extends PrimitiveComponent2 {
29118
29117
  }
29119
29118
  const subcircuit = this.getSubcircuit();
29120
29119
  const circuitJson = db.toArray();
29121
- const sourceNet = circuitJson.find(
29122
- (elm) => elm.type === "source_net" && elm.name === net.name
29123
- );
29124
- const connectivityMap = getFullConnectivityMapFromCircuitJson4(circuitJson);
29125
- const connectedNetId = sourceNet?.source_net_id ?? net.source_net_id;
29126
- const pourConnectivityKey = (connectedNetId ? connectivityMap.getNetConnectedToId(connectedNetId) : void 0) || sourceNet?.subcircuit_connectivity_map_key || "";
29127
29120
  const clearance = props.clearance ?? 0.2;
29128
29121
  const inputProblem = convertCircuitJsonToInputProblem(circuitJson, {
29129
29122
  layer: props.layer,
29130
- pour_connectivity_key: pourConnectivityKey,
29123
+ source_net_id: net.source_net_id,
29131
29124
  pad_margin: props.padMargin ?? clearance,
29132
29125
  trace_margin: props.traceMargin ?? clearance,
29133
29126
  board_edge_margin: props.boardEdgeMargin ?? clearance,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1353",
4
+ "version": "0.0.1354",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "@tscircuit/checks": "0.0.138",
39
39
  "@tscircuit/circuit-json-util": "^0.0.96",
40
40
  "@tscircuit/common": "^0.0.20",
41
- "@tscircuit/copper-pour-solver": "^0.0.29",
41
+ "@tscircuit/copper-pour-solver": "^0.0.34",
42
42
  "@tscircuit/footprinter": "^0.0.357",
43
43
  "@tscircuit/image-utils": "^0.0.8",
44
44
  "@tscircuit/infer-cable-insertion-point": "^0.0.2",