@tscircuit/core 0.0.1937 → 0.0.1939

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
@@ -99217,6 +99217,7 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
99217
99217
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8" | {
99218
99218
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
99219
99219
  }>, "many">>;
99220
+ warningOnly: zod.ZodOptional<zod.ZodBoolean>;
99220
99221
  excludeRefs: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
99221
99222
  }, "strip", zod.ZodTypeAny, {
99222
99223
  shape: "circle";
@@ -99253,6 +99254,7 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
99253
99254
  pcbSx?: _tscircuit_props.PcbSx | undefined;
99254
99255
  pcbRelative?: boolean | undefined;
99255
99256
  relative?: boolean | undefined;
99257
+ warningOnly?: boolean | undefined;
99256
99258
  excludeRefs?: string[] | undefined;
99257
99259
  }, {
99258
99260
  shape: "circle";
@@ -99293,6 +99295,7 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
99293
99295
  pcbSx?: _tscircuit_props.PcbSx | undefined;
99294
99296
  pcbRelative?: boolean | undefined;
99295
99297
  relative?: boolean | undefined;
99298
+ warningOnly?: boolean | undefined;
99296
99299
  excludeRefs?: string[] | undefined;
99297
99300
  }>, zod.ZodObject<{
99298
99301
  pcbX: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
@@ -99372,6 +99375,7 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
99372
99375
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8" | {
99373
99376
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
99374
99377
  }>, "many">>;
99378
+ warningOnly: zod.ZodOptional<zod.ZodBoolean>;
99375
99379
  excludeRefs: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
99376
99380
  }, "strip", zod.ZodTypeAny, {
99377
99381
  shape: "rect";
@@ -99410,6 +99414,7 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
99410
99414
  pcbSx?: _tscircuit_props.PcbSx | undefined;
99411
99415
  pcbRelative?: boolean | undefined;
99412
99416
  relative?: boolean | undefined;
99417
+ warningOnly?: boolean | undefined;
99413
99418
  excludeRefs?: string[] | undefined;
99414
99419
  }, {
99415
99420
  shape: "rect";
@@ -99452,6 +99457,7 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
99452
99457
  pcbSx?: _tscircuit_props.PcbSx | undefined;
99453
99458
  pcbRelative?: boolean | undefined;
99454
99459
  relative?: boolean | undefined;
99460
+ warningOnly?: boolean | undefined;
99455
99461
  excludeRefs?: string[] | undefined;
99456
99462
  }>]>;
99457
99463
  };
package/dist/index.js CHANGED
@@ -3166,6 +3166,7 @@ var getObstaclesFromCircuitJson = (circuitJson, connMap) => {
3166
3166
  }
3167
3167
  }
3168
3168
  } else if (element.type === "pcb_keepout") {
3169
+ if (element.warning_only) continue;
3169
3170
  if (element.shape === "circle") {
3170
3171
  obstacles.push({
3171
3172
  componentId: pcbComponentId,
@@ -8032,7 +8033,8 @@ var underscorifyPortArrangement = (portArrangement) => {
8032
8033
  // lib/utils/createComponentsFromCircuitJson.ts
8033
8034
  import { getUnitVectorFromDirection as getUnitVectorFromDirection2 } from "@tscircuit/math-utils";
8034
8035
  import {
8035
- pcb_via as pcb_via2
8036
+ pcb_via as pcb_via2,
8037
+ layer_ref as layer_ref2
8036
8038
  } from "circuit-json";
8037
8039
 
8038
8040
  // lib/utils/normalizeTextForCircuitJson.ts
@@ -9040,6 +9042,7 @@ var Keepout = class extends PrimitiveComponent2 {
9040
9042
  layers,
9041
9043
  shape: "circle",
9042
9044
  ...pcbKeepoutExclusionProps,
9045
+ ...props.warningOnly !== void 0 ? { warning_only: props.warningOnly } : {},
9043
9046
  // @ts-ignore: no idea why this is triggering
9044
9047
  radius: props.radius,
9045
9048
  center: {
@@ -9054,6 +9057,7 @@ var Keepout = class extends PrimitiveComponent2 {
9054
9057
  layers,
9055
9058
  shape: "rect",
9056
9059
  ...pcbKeepoutExclusionProps,
9060
+ ...props.warningOnly !== void 0 ? { warning_only: props.warningOnly } : {},
9057
9061
  ...isRotated90 ? { width: props.height, height: props.width } : { width: props.width, height: props.height },
9058
9062
  // @ts-ignore: no idea why this is triggering
9059
9063
  center: {
@@ -11946,6 +11950,8 @@ var createComponentsFromCircuitJson = ({
11946
11950
  } else if (elm.type === "pcb_keepout" && elm.shape === "circle") {
11947
11951
  components.push(
11948
11952
  new Keepout({
11953
+ warningOnly: elm.warning_only,
11954
+ layers: elm.layers.map((layer) => layer_ref2.parse(layer)),
11949
11955
  pcbX: elm.center.x,
11950
11956
  pcbY: elm.center.y,
11951
11957
  shape: "circle",
@@ -11955,6 +11961,8 @@ var createComponentsFromCircuitJson = ({
11955
11961
  } else if (elm.type === "pcb_keepout" && elm.shape === "rect") {
11956
11962
  components.push(
11957
11963
  new Keepout({
11964
+ warningOnly: elm.warning_only,
11965
+ layers: elm.layers.map((layer) => layer_ref2.parse(layer)),
11958
11966
  pcbX: elm.center.x,
11959
11967
  pcbY: elm.center.y,
11960
11968
  shape: "rect",
@@ -63400,7 +63408,7 @@ function Group_getRoutingPhasePlans(group) {
63400
63408
  var package_default = {
63401
63409
  name: "@tscircuit/core",
63402
63410
  type: "module",
63403
- version: "0.0.1936",
63411
+ version: "0.0.1938",
63404
63412
  types: "dist/index.d.ts",
63405
63413
  main: "dist/index.js",
63406
63414
  module: "dist/index.js",
@@ -63435,8 +63443,8 @@ var package_default = {
63435
63443
  "@tscircuit/alphabet": "0.0.25",
63436
63444
  "@tscircuit/bga-fanout-solver": "github:tscircuit/bga-fanout-solver#247c835cb8d69b65e53891dcf869731079415b39",
63437
63445
  "@tscircuit/bus-lanes-solver": "github:tscircuit/bus-lanes-solver#0bc8d071241b18a3e7465a878881abe4998f6384",
63438
- "@tscircuit/capacity-autorouter": "^0.0.900",
63439
- "@tscircuit/checks": "^0.0.200",
63446
+ "@tscircuit/capacity-autorouter": "^0.0.913",
63447
+ "@tscircuit/checks": "^0.0.201",
63440
63448
  "@tscircuit/circuit-json-util": "^0.0.114",
63441
63449
  "@tscircuit/common": "^0.0.20",
63442
63450
  "@tscircuit/copper-pour-solver": "^0.0.54",
@@ -63454,7 +63462,7 @@ var package_default = {
63454
63462
  "@tscircuit/math-utils": "^0.0.36",
63455
63463
  "@tscircuit/miniflex": "^0.0.4",
63456
63464
  "@tscircuit/ngspice-spice-engine": "^0.0.20",
63457
- "@tscircuit/props": "^0.0.660",
63465
+ "@tscircuit/props": "^0.0.661",
63458
63466
  "@tscircuit/schematic-match-adapt": "^0.0.18",
63459
63467
  "@tscircuit/schematic-trace-solver": "^0.0.199",
63460
63468
  "@tscircuit/solver-utils": "^0.0.16",
@@ -63470,7 +63478,7 @@ var package_default = {
63470
63478
  "bun-match-svg": "0.0.12",
63471
63479
  "calculate-elbow": "^0.0.12",
63472
63480
  "chokidar-cli": "^3.0.0",
63473
- "circuit-json": "^0.0.493",
63481
+ "circuit-json": "^0.0.494",
63474
63482
  "circuit-json-to-bpc": "^0.0.13",
63475
63483
  "circuit-json-to-connectivity-map": "^0.0.30",
63476
63484
  "circuit-json-to-gltf": "^0.0.128",
@@ -63533,8 +63541,8 @@ var package_default = {
63533
63541
  },
63534
63542
  overrides: {
63535
63543
  "@tscircuit/circuit-json-util": "^0.0.114",
63536
- "@tscircuit/props": "^0.0.660",
63537
- "circuit-json": "^0.0.493"
63544
+ "@tscircuit/props": "^0.0.661",
63545
+ "circuit-json": "^0.0.494"
63538
63546
  }
63539
63547
  };
63540
63548
 
@@ -72440,7 +72448,7 @@ var PcbNoteDimension = class extends PrimitiveComponent2 {
72440
72448
  import { breakoutProps } from "@tscircuit/props";
72441
72449
 
72442
72450
  // lib/components/primitive-components/AutoplacedBreakoutPoint.ts
72443
- import { layer_ref as layer_ref2 } from "circuit-json";
72451
+ import { layer_ref as layer_ref3 } from "circuit-json";
72444
72452
  var AutoplacedBreakoutPoint = class extends BaseBreakoutPoint {
72445
72453
  get config() {
72446
72454
  return {
@@ -72454,7 +72462,7 @@ var AutoplacedBreakoutPoint = class extends BaseBreakoutPoint {
72454
72462
  position
72455
72463
  }) {
72456
72464
  this.matchedSourceTraceId = sourceTraceId;
72457
- this._renderPcbBreakoutPoint({ layer: layer_ref2.parse(layer) });
72465
+ this._renderPcbBreakoutPoint({ layer: layer_ref3.parse(layer) });
72458
72466
  this._setPositionFromLayout(position);
72459
72467
  }
72460
72468
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1937",
4
+ "version": "0.0.1939",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -36,8 +36,8 @@
36
36
  "@tscircuit/alphabet": "0.0.25",
37
37
  "@tscircuit/bga-fanout-solver": "github:tscircuit/bga-fanout-solver#247c835cb8d69b65e53891dcf869731079415b39",
38
38
  "@tscircuit/bus-lanes-solver": "github:tscircuit/bus-lanes-solver#0bc8d071241b18a3e7465a878881abe4998f6384",
39
- "@tscircuit/capacity-autorouter": "^0.0.900",
40
- "@tscircuit/checks": "^0.0.200",
39
+ "@tscircuit/capacity-autorouter": "^0.0.913",
40
+ "@tscircuit/checks": "^0.0.201",
41
41
  "@tscircuit/circuit-json-util": "^0.0.114",
42
42
  "@tscircuit/common": "^0.0.20",
43
43
  "@tscircuit/copper-pour-solver": "^0.0.54",
@@ -55,7 +55,7 @@
55
55
  "@tscircuit/math-utils": "^0.0.36",
56
56
  "@tscircuit/miniflex": "^0.0.4",
57
57
  "@tscircuit/ngspice-spice-engine": "^0.0.20",
58
- "@tscircuit/props": "^0.0.660",
58
+ "@tscircuit/props": "^0.0.661",
59
59
  "@tscircuit/schematic-match-adapt": "^0.0.18",
60
60
  "@tscircuit/schematic-trace-solver": "^0.0.199",
61
61
  "@tscircuit/solver-utils": "^0.0.16",
@@ -71,7 +71,7 @@
71
71
  "bun-match-svg": "0.0.12",
72
72
  "calculate-elbow": "^0.0.12",
73
73
  "chokidar-cli": "^3.0.0",
74
- "circuit-json": "^0.0.493",
74
+ "circuit-json": "^0.0.494",
75
75
  "circuit-json-to-bpc": "^0.0.13",
76
76
  "circuit-json-to-connectivity-map": "^0.0.30",
77
77
  "circuit-json-to-gltf": "^0.0.128",
@@ -134,7 +134,7 @@
134
134
  },
135
135
  "overrides": {
136
136
  "@tscircuit/circuit-json-util": "^0.0.114",
137
- "@tscircuit/props": "^0.0.660",
138
- "circuit-json": "^0.0.493"
137
+ "@tscircuit/props": "^0.0.661",
138
+ "circuit-json": "^0.0.494"
139
139
  }
140
140
  }