@tscircuit/core 0.0.454 → 0.0.455

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 +10 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -6578,6 +6578,7 @@ import {
6578
6578
  convertCircuitJsonToInputNetlist,
6579
6579
  getRefKey as getRefKey2
6580
6580
  } from "@tscircuit/schematic-match-adapt";
6581
+ import { circuitBuilderFromLayoutJson } from "@tscircuit/schematic-match-adapt";
6581
6582
 
6582
6583
  // lib/utils/schematic/deriveSourceTraceIdFromMatchAdaptPath.ts
6583
6584
  import {
@@ -6657,8 +6658,14 @@ function Group_doInitialSchematicLayoutMatchAdapt(group) {
6657
6658
  let subtreeCircuitJson = structuredClone(db.toArray());
6658
6659
  subtreeCircuitJson = reorderChipPinsToCcw(subtreeCircuitJson);
6659
6660
  const inputNetlist = convertCircuitJsonToInputNetlist(subtreeCircuitJson);
6661
+ const templateFns = group._parsedProps.matchAdaptTemplate ? [
6662
+ () => circuitBuilderFromLayoutJson(
6663
+ group._parsedProps.matchAdaptTemplate
6664
+ )
6665
+ ] : void 0;
6660
6666
  const solver = new SchematicLayoutPipelineSolver({
6661
- inputNetlist
6667
+ inputNetlist,
6668
+ templateFns
6662
6669
  });
6663
6670
  let solvedLayout = null;
6664
6671
  try {
@@ -9500,7 +9507,7 @@ import { identity as identity4 } from "transformation-matrix";
9500
9507
  var package_default = {
9501
9508
  name: "@tscircuit/core",
9502
9509
  type: "module",
9503
- version: "0.0.453",
9510
+ version: "0.0.454",
9504
9511
  types: "dist/index.d.ts",
9505
9512
  main: "dist/index.js",
9506
9513
  module: "dist/index.js",
@@ -9534,7 +9541,7 @@ var package_default = {
9534
9541
  "@tscircuit/math-utils": "^0.0.18",
9535
9542
  "@tscircuit/props": "^0.0.211",
9536
9543
  "@tscircuit/schematic-autolayout": "^0.0.6",
9537
- "@tscircuit/schematic-match-adapt": "^0.0.9",
9544
+ "@tscircuit/schematic-match-adapt": "^0.0.16",
9538
9545
  "@tscircuit/simple-3d-svg": "^0.0.6",
9539
9546
  "@types/bun": "latest",
9540
9547
  "@types/debug": "^4.1.12",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.454",
4
+ "version": "0.0.455",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "@tscircuit/math-utils": "^0.0.18",
36
36
  "@tscircuit/props": "^0.0.211",
37
37
  "@tscircuit/schematic-autolayout": "^0.0.6",
38
- "@tscircuit/schematic-match-adapt": "^0.0.9",
38
+ "@tscircuit/schematic-match-adapt": "^0.0.16",
39
39
  "@tscircuit/simple-3d-svg": "^0.0.6",
40
40
  "@types/bun": "latest",
41
41
  "@types/debug": "^4.1.12",