@tscircuit/core 0.0.561 → 0.0.562

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 +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3045,7 +3045,8 @@ var Port = class extends PrimitiveComponent2 {
3045
3045
  side_of_component: localPortInfo?.side,
3046
3046
  pin_number: props.pinNumber,
3047
3047
  true_ccw_index: localPortInfo?.trueIndex,
3048
- display_pin_label: bestDisplayPinLabel
3048
+ display_pin_label: bestDisplayPinLabel,
3049
+ is_connected: false
3049
3050
  });
3050
3051
  this.schematic_port_id = schematic_port.schematic_port_id;
3051
3052
  }
@@ -5055,6 +5056,11 @@ var Trace_doInitialSchematicTraceRender = (trace) => {
5055
5056
  junctions
5056
5057
  });
5057
5058
  trace.schematic_trace_id = dbTrace.schematic_trace_id;
5059
+ for (const { port } of connectedPorts) {
5060
+ if (port.schematic_port_id) {
5061
+ db.schematic_port.update(port.schematic_port_id, { is_connected: true });
5062
+ }
5063
+ }
5058
5064
  if (board?._connectedSchematicPortPairs)
5059
5065
  board._connectedSchematicPortPairs.add(portPairKey);
5060
5066
  };
@@ -10955,7 +10961,7 @@ import { identity as identity5 } from "transformation-matrix";
10955
10961
  var package_default = {
10956
10962
  name: "@tscircuit/core",
10957
10963
  type: "module",
10958
- version: "0.0.560",
10964
+ version: "0.0.561",
10959
10965
  types: "dist/index.d.ts",
10960
10966
  main: "dist/index.js",
10961
10967
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.561",
4
+ "version": "0.0.562",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",