@tscircuit/core 0.0.417 → 0.0.419

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
@@ -1010,6 +1010,7 @@ declare class NormalComponent<ZodProps extends ZodType = any, PortNames extends
1010
1010
 
1011
1011
  declare class Group<Props extends z.ZodType<any, any, any> = typeof groupProps> extends NormalComponent<Props> implements ISubcircuit {
1012
1012
  pcb_group_id: string | null;
1013
+ schematic_group_id: string | null;
1013
1014
  subcircuit_id: string | null;
1014
1015
  _hasStartedAsyncAutorouting: boolean;
1015
1016
  _asyncAutoroutingResult: {
@@ -1038,6 +1039,7 @@ declare class Group<Props extends z.ZodType<any, any, any> = typeof groupProps>
1038
1039
  updatePcbTraceRender(): void;
1039
1040
  _updatePcbTraceRenderFromSimpleRouteJson(): void;
1040
1041
  _updatePcbTraceRenderFromPcbTraces(): void;
1042
+ doInitialSchematicComponentRender(): void;
1041
1043
  doInitialSchematicLayout(): void;
1042
1044
  _getAutorouterConfig(): AutorouterConfig;
1043
1045
  /**
@@ -12264,7 +12266,7 @@ type PolarizedSel = Record<`C${Nums40}` | `L${Nums40}` | `LED${Nums40}` | `D${Nu
12264
12266
  pos: string;
12265
12267
  neg: string;
12266
12268
  }>;
12267
- type CommonNetNames = "VCC" | "GND" | "VDD" | "PWR" | "V5" | "V3_3";
12269
+ type CommonNetNames = "VCC" | "GND" | "VDD" | "PWR" | "V5" | "V3_3" | "VIN" | "EN";
12268
12270
  type TransistorSel = Record<`Q${Nums40}`, Record<TransistorPinNames, string>>;
12269
12271
  type JumperSel = Record<`J${Nums40}` | `CN${Nums40}`, Record<PinNumbers100 | CommonPinNames, string>>;
12270
12272
  type ChipSel = Record<`U${Nums40}`, Record<CommonPinNames, string> & ChipFnSel>;
package/dist/index.js CHANGED
@@ -6370,6 +6370,7 @@ var getPhaseTimingsFromRenderEvents = (renderEvents) => {
6370
6370
  import "@tscircuit/checks";
6371
6371
  var Group = class extends NormalComponent {
6372
6372
  pcb_group_id = null;
6373
+ schematic_group_id = null;
6373
6374
  subcircuit_id = null;
6374
6375
  _hasStartedAsyncAutorouting = false;
6375
6376
  _asyncAutoroutingResult = null;
@@ -6390,6 +6391,11 @@ var Group = class extends NormalComponent {
6390
6391
  db.source_group.update(source_group.source_group_id, {
6391
6392
  subcircuit_id: this.subcircuit_id
6392
6393
  });
6394
+ for (const child of this.children) {
6395
+ db.source_component.update(child.source_component_id, {
6396
+ source_group_id: this.source_group_id
6397
+ });
6398
+ }
6393
6399
  }
6394
6400
  doInitialSourceParentAttachment() {
6395
6401
  const { db } = this.root;
@@ -6415,6 +6421,11 @@ var Group = class extends NormalComponent {
6415
6421
  source_group_id: this.source_group_id
6416
6422
  });
6417
6423
  this.pcb_group_id = pcb_group.pcb_group_id;
6424
+ for (const child of this.children) {
6425
+ db.pcb_component.update(child.pcb_component_id, {
6426
+ pcb_group_id: pcb_group.pcb_group_id
6427
+ });
6428
+ }
6418
6429
  }
6419
6430
  doInitialCreateTraceHintsFromProps() {
6420
6431
  const { _parsedProps: props } = this;
@@ -6789,6 +6800,27 @@ var Group = class extends NormalComponent {
6789
6800
  }
6790
6801
  }
6791
6802
  }
6803
+ doInitialSchematicComponentRender() {
6804
+ if (this.root?.schematicDisabled) return;
6805
+ const { db } = this.root;
6806
+ const { _parsedProps: props } = this;
6807
+ const schematic_group = db.schematic_group.insert({
6808
+ is_subcircuit: this.isSubcircuit,
6809
+ subcircuit_id: this.subcircuit_id,
6810
+ name: this._parsedProps.name,
6811
+ center: this._getGlobalSchematicPositionBeforeLayout(),
6812
+ width: 0,
6813
+ height: 0,
6814
+ schematic_component_ids: [],
6815
+ source_group_id: this.source_group_id
6816
+ });
6817
+ this.schematic_group_id = schematic_group.schematic_group_id;
6818
+ for (const child of this.children) {
6819
+ db.schematic_component.update(child.schematic_component_id, {
6820
+ schematic_group_id: schematic_group.schematic_group_id
6821
+ });
6822
+ }
6823
+ }
6792
6824
  doInitialSchematicLayout() {
6793
6825
  if (!this.isSubcircuit) return;
6794
6826
  const props = this._parsedProps;
@@ -8409,7 +8441,7 @@ import { identity as identity4 } from "transformation-matrix";
8409
8441
  var package_default = {
8410
8442
  name: "@tscircuit/core",
8411
8443
  type: "module",
8412
- version: "0.0.416",
8444
+ version: "0.0.418",
8413
8445
  types: "dist/index.d.ts",
8414
8446
  main: "dist/index.js",
8415
8447
  module: "dist/index.js",
@@ -8432,7 +8464,7 @@ var package_default = {
8432
8464
  },
8433
8465
  devDependencies: {
8434
8466
  "@biomejs/biome": "^1.8.3",
8435
- "@tscircuit/capacity-autorouter": "^0.0.66",
8467
+ "@tscircuit/capacity-autorouter": "^0.0.67",
8436
8468
  "@tscircuit/checks": "^0.0.46",
8437
8469
  "@tscircuit/circuit-json-util": "^0.0.47",
8438
8470
  "@tscircuit/footprinter": "^0.0.159",
@@ -8450,7 +8482,7 @@ var package_default = {
8450
8482
  "@types/react-reconciler": "^0.28.9",
8451
8483
  "bun-match-svg": "0.0.8",
8452
8484
  "chokidar-cli": "^3.0.0",
8453
- "circuit-json": "^0.0.180",
8485
+ "circuit-json": "^0.0.186",
8454
8486
  "circuit-json-to-connectivity-map": "^0.0.22",
8455
8487
  "circuit-json-to-simple-3d": "^0.0.2",
8456
8488
  "circuit-to-svg": "^0.0.127",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.417",
4
+ "version": "0.0.419",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@biomejs/biome": "^1.8.3",
27
- "@tscircuit/capacity-autorouter": "^0.0.66",
27
+ "@tscircuit/capacity-autorouter": "^0.0.67",
28
28
  "@tscircuit/checks": "^0.0.46",
29
29
  "@tscircuit/circuit-json-util": "^0.0.47",
30
30
  "@tscircuit/footprinter": "^0.0.159",
@@ -42,7 +42,7 @@
42
42
  "@types/react-reconciler": "^0.28.9",
43
43
  "bun-match-svg": "0.0.8",
44
44
  "chokidar-cli": "^3.0.0",
45
- "circuit-json": "^0.0.180",
45
+ "circuit-json": "^0.0.186",
46
46
  "circuit-json-to-connectivity-map": "^0.0.22",
47
47
  "circuit-json-to-simple-3d": "^0.0.2",
48
48
  "circuit-to-svg": "^0.0.127",