@tscircuit/core 0.0.856 → 0.0.857

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
@@ -216,7 +216,9 @@ declare class RootCircuit {
216
216
  db: CircuitJsonUtilObjects;
217
217
  root: RootCircuit | null;
218
218
  isRoot: boolean;
219
- schematicDisabled: boolean;
219
+ private _schematicDisabledOverride;
220
+ get schematicDisabled(): boolean;
221
+ set schematicDisabled(value: boolean);
220
222
  pcbDisabled: boolean;
221
223
  pcbRoutingDisabled: boolean;
222
224
  _featureMspSchematicTraceRouting: boolean;
@@ -2075,6 +2077,7 @@ declare class Board extends Group<typeof boardProps> {
2075
2077
  topSilkscreenColor: zod.ZodOptional<zod.ZodType<_tscircuit_props.BoardColor, zod.ZodTypeDef, _tscircuit_props.BoardColor>>;
2076
2078
  bottomSilkscreenColor: zod.ZodOptional<zod.ZodType<_tscircuit_props.BoardColor, zod.ZodTypeDef, _tscircuit_props.BoardColor>>;
2077
2079
  doubleSidedAssembly: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
2080
+ schematicDisabled: zod.ZodOptional<zod.ZodBoolean>;
2078
2081
  }, "strip", zod.ZodTypeAny, {
2079
2082
  material: "fr4" | "fr1";
2080
2083
  layers: 2 | 4;
@@ -2380,6 +2383,7 @@ declare class Board extends Group<typeof boardProps> {
2380
2383
  silkscreenColor?: _tscircuit_props.BoardColor | undefined;
2381
2384
  topSilkscreenColor?: _tscircuit_props.BoardColor | undefined;
2382
2385
  bottomSilkscreenColor?: _tscircuit_props.BoardColor | undefined;
2386
+ schematicDisabled?: boolean | undefined;
2383
2387
  }, {
2384
2388
  symbol?: _tscircuit_props.SymbolProp | undefined;
2385
2389
  key?: any;
@@ -2689,6 +2693,7 @@ declare class Board extends Group<typeof boardProps> {
2689
2693
  topSilkscreenColor?: _tscircuit_props.BoardColor | undefined;
2690
2694
  bottomSilkscreenColor?: _tscircuit_props.BoardColor | undefined;
2691
2695
  doubleSidedAssembly?: boolean | undefined;
2696
+ schematicDisabled?: boolean | undefined;
2692
2697
  }>;
2693
2698
  };
2694
2699
  get boardThickness(): number;
package/dist/index.js CHANGED
@@ -17715,7 +17715,7 @@ import { identity as identity6 } from "transformation-matrix";
17715
17715
  var package_default = {
17716
17716
  name: "@tscircuit/core",
17717
17717
  type: "module",
17718
- version: "0.0.855",
17718
+ version: "0.0.856",
17719
17719
  types: "dist/index.d.ts",
17720
17720
  main: "dist/index.js",
17721
17721
  module: "dist/index.js",
@@ -17759,7 +17759,7 @@ var package_default = {
17759
17759
  "@tscircuit/math-utils": "^0.0.29",
17760
17760
  "@tscircuit/miniflex": "^0.0.4",
17761
17761
  "@tscircuit/ngspice-spice-engine": "^0.0.2",
17762
- "@tscircuit/props": "^0.0.397",
17762
+ "@tscircuit/props": "^0.0.398",
17763
17763
  "@tscircuit/schematic-autolayout": "^0.0.6",
17764
17764
  "@tscircuit/schematic-match-adapt": "^0.0.16",
17765
17765
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
@@ -17839,7 +17839,17 @@ var RootCircuit = class {
17839
17839
  db;
17840
17840
  root = null;
17841
17841
  isRoot = true;
17842
- schematicDisabled = false;
17842
+ _schematicDisabledOverride;
17843
+ get schematicDisabled() {
17844
+ if (this._schematicDisabledOverride !== void 0) {
17845
+ return this._schematicDisabledOverride;
17846
+ }
17847
+ const board = this._getBoard();
17848
+ return board?._parsedProps?.schematicDisabled ?? false;
17849
+ }
17850
+ set schematicDisabled(value) {
17851
+ this._schematicDisabledOverride = value;
17852
+ }
17843
17853
  pcbDisabled = false;
17844
17854
  pcbRoutingDisabled = false;
17845
17855
  _featureMspSchematicTraceRouting = true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.856",
4
+ "version": "0.0.857",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "@tscircuit/math-utils": "^0.0.29",
46
46
  "@tscircuit/miniflex": "^0.0.4",
47
47
  "@tscircuit/ngspice-spice-engine": "^0.0.2",
48
- "@tscircuit/props": "^0.0.397",
48
+ "@tscircuit/props": "^0.0.398",
49
49
  "@tscircuit/schematic-autolayout": "^0.0.6",
50
50
  "@tscircuit/schematic-match-adapt": "^0.0.16",
51
51
  "@tscircuit/schematic-trace-solver": "^v0.0.45",