@tscircuit/core 0.0.2122 → 0.0.2124

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 +9 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -18839,9 +18839,15 @@ var NormalComponent = class extends PrimitiveComponent2 {
18839
18839
  const pinCount = this._getPrimaryPinCount();
18840
18840
  const pinSpacing = 0.2;
18841
18841
  const pinLabelsFromPorts = this._getPinLabelsFromPorts();
18842
+ const pinLabelsFromProps = Array.isArray(props.pinLabels) ? Object.fromEntries(
18843
+ props.pinLabels.map((label, pinIndex) => [
18844
+ `pin${pinIndex + 1}`,
18845
+ label
18846
+ ])
18847
+ ) : props.pinLabels;
18842
18848
  const allPinLabels = {
18843
18849
  ...pinLabelsFromPorts,
18844
- ...props.pinLabels
18850
+ ...pinLabelsFromProps
18845
18851
  };
18846
18852
  const schPortArrangement = this._getSchematicPortArrangement() ?? this._getImplicitSparseSchematicPortArrangement(pinCount);
18847
18853
  return getAllDimensionsForSchematicBox({
@@ -118353,7 +118359,7 @@ function Group_getRoutingPhasePlans(group) {
118353
118359
  var package_default = {
118354
118360
  name: "@tscircuit/core",
118355
118361
  type: "module",
118356
- version: "0.0.2121",
118362
+ version: "0.0.2123",
118357
118363
  types: "dist/index.d.ts",
118358
118364
  main: "dist/index.js",
118359
118365
  module: "dist/index.js",
@@ -118391,7 +118397,7 @@ var package_default = {
118391
118397
  "@tscircuit/bus-lanes-solver": "https://jscdn.tscircuit.com/@tscircuit/bus-lanes-solver/0.0.21.tgz",
118392
118398
  "@tscircuit/cableprinter": "^0.0.6",
118393
118399
  "@tscircuit/capacity-autorouter": "^0.0.965",
118394
- "@tscircuit/checks": "^0.0.243",
118400
+ "@tscircuit/checks": "^0.0.244",
118395
118401
  "@tscircuit/circuit-json-util": "^0.0.119",
118396
118402
  "@tscircuit/common": "^0.0.20",
118397
118403
  "@tscircuit/copper-pour-solver": "^0.0.67",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.2122",
4
+ "version": "0.0.2124",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "@tscircuit/bus-lanes-solver": "https://jscdn.tscircuit.com/@tscircuit/bus-lanes-solver/0.0.21.tgz",
40
40
  "@tscircuit/cableprinter": "^0.0.6",
41
41
  "@tscircuit/capacity-autorouter": "^0.0.965",
42
- "@tscircuit/checks": "^0.0.243",
42
+ "@tscircuit/checks": "^0.0.244",
43
43
  "@tscircuit/circuit-json-util": "^0.0.119",
44
44
  "@tscircuit/common": "^0.0.20",
45
45
  "@tscircuit/copper-pour-solver": "^0.0.67",