@tscircuit/core 0.0.1018 → 0.0.1020

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.d.ts CHANGED
@@ -65249,6 +65249,10 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
65249
65249
  }>]>;
65250
65250
  };
65251
65251
  doInitialPcbPrimitiveRender(): void;
65252
+ getPcbSize(): {
65253
+ width: number;
65254
+ height: number;
65255
+ };
65252
65256
  }
65253
65257
 
65254
65258
  declare class NetLabel extends PrimitiveComponent<typeof netLabelProps> {
package/dist/index.js CHANGED
@@ -3216,6 +3216,16 @@ var Keepout = class extends PrimitiveComponent2 {
3216
3216
  this.pcb_keepout_id = pcb_keepout.pcb_keepout_id;
3217
3217
  }
3218
3218
  }
3219
+ getPcbSize() {
3220
+ const { _parsedProps: props } = this;
3221
+ if (props.shape === "circle") {
3222
+ return { width: props.radius * 2, height: props.radius * 2 };
3223
+ }
3224
+ if (props.shape === "rect") {
3225
+ return { width: props.width, height: props.height };
3226
+ }
3227
+ return { width: 0, height: 0 };
3228
+ }
3219
3229
  };
3220
3230
 
3221
3231
  // lib/components/primitive-components/Hole.ts
@@ -22239,7 +22249,7 @@ import { identity as identity5 } from "transformation-matrix";
22239
22249
  var package_default = {
22240
22250
  name: "@tscircuit/core",
22241
22251
  type: "module",
22242
- version: "0.0.1017",
22252
+ version: "0.0.1019",
22243
22253
  types: "dist/index.d.ts",
22244
22254
  main: "dist/index.js",
22245
22255
  module: "dist/index.js",
@@ -22272,7 +22282,7 @@ var package_default = {
22272
22282
  "@resvg/resvg-js": "^2.6.2",
22273
22283
  "@tscircuit/alphabet": "0.0.18",
22274
22284
  "@tscircuit/capacity-autorouter": "^0.0.264",
22275
- "@tscircuit/checks": "^0.0.87",
22285
+ "@tscircuit/checks": "^0.0.88",
22276
22286
  "@tscircuit/circuit-json-util": "^0.0.77",
22277
22287
  "@tscircuit/common": "^0.0.20",
22278
22288
  "@tscircuit/copper-pour-solver": "^0.0.20",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1018",
4
+ "version": "0.0.1020",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "@resvg/resvg-js": "^2.6.2",
35
35
  "@tscircuit/alphabet": "0.0.18",
36
36
  "@tscircuit/capacity-autorouter": "^0.0.264",
37
- "@tscircuit/checks": "^0.0.87",
37
+ "@tscircuit/checks": "^0.0.88",
38
38
  "@tscircuit/circuit-json-util": "^0.0.77",
39
39
  "@tscircuit/common": "^0.0.20",
40
40
  "@tscircuit/copper-pour-solver": "^0.0.20",