@tscircuit/core 0.0.506 → 0.0.508

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 +11 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3256,20 +3256,20 @@ var getAllDimensionsForSchematicBox = (params) => {
3256
3256
  truePinIndex++;
3257
3257
  }
3258
3258
  let schWidth = params.schWidth;
3259
- if (!schWidth) {
3259
+ if (schWidth === void 0) {
3260
3260
  schWidth = Math.max(
3261
3261
  sideLengths.top + params.schPinSpacing * 2,
3262
3262
  sideLengths.bottom + params.schPinSpacing * 2
3263
3263
  );
3264
+ const labelWidth = params.pinLabels ? Math.max(
3265
+ ...Object.values(params.pinLabels).map(
3266
+ (label) => label.length * 0.1
3267
+ // Estimated text width
3268
+ )
3269
+ ) : 0;
3270
+ const LABEL_PADDING = labelWidth > 0 ? 1.1 : 0;
3271
+ schWidth = Math.max(schWidth, labelWidth + LABEL_PADDING);
3264
3272
  }
3265
- const labelWidth = params.pinLabels ? Math.max(
3266
- ...Object.values(params.pinLabels).map(
3267
- (label) => label.length * 0.1
3268
- // Estimated text width
3269
- )
3270
- ) : 0;
3271
- const LABEL_PADDING = labelWidth > 0 ? 1.1 : 0;
3272
- schWidth = Math.max(schWidth, labelWidth + LABEL_PADDING);
3273
3273
  let schHeight = params.schHeight;
3274
3274
  if (!schHeight) {
3275
3275
  schHeight = Math.max(
@@ -10423,7 +10423,7 @@ import { identity as identity4 } from "transformation-matrix";
10423
10423
  var package_default = {
10424
10424
  name: "@tscircuit/core",
10425
10425
  type: "module",
10426
- version: "0.0.505",
10426
+ version: "0.0.507",
10427
10427
  types: "dist/index.d.ts",
10428
10428
  main: "dist/index.js",
10429
10429
  module: "dist/index.js",
@@ -10544,6 +10544,7 @@ var RootCircuit = class {
10544
10544
  this.root = this;
10545
10545
  this.platform = platform;
10546
10546
  this.projectUrl = projectUrl;
10547
+ this.pcbDisabled = platform?.pcbDisabled ?? false;
10547
10548
  }
10548
10549
  add(componentOrElm) {
10549
10550
  let component;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.506",
4
+ "version": "0.0.508",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",