@tscircuit/core 0.0.923 → 0.0.925
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.js +10 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1281,9 +1281,6 @@ var PrimitiveComponent2 = class extends Renderable {
|
|
|
1281
1281
|
if (Object.keys(component).length === 0) {
|
|
1282
1282
|
return;
|
|
1283
1283
|
}
|
|
1284
|
-
if (this.lowercaseComponentName === "board" && component.lowercaseComponentName === "board") {
|
|
1285
|
-
throw new Error("Nested boards are not supported");
|
|
1286
|
-
}
|
|
1287
1284
|
if (component.lowercaseComponentName === "panel") {
|
|
1288
1285
|
throw new Error("<panel> must be a root-level element");
|
|
1289
1286
|
}
|
|
@@ -15710,6 +15707,14 @@ var Board = class extends Group6 {
|
|
|
15710
15707
|
});
|
|
15711
15708
|
}
|
|
15712
15709
|
doInitialSourceRender() {
|
|
15710
|
+
const nestedBoard = this.getDescendants().find(
|
|
15711
|
+
(d) => d.lowercaseComponentName === "board"
|
|
15712
|
+
);
|
|
15713
|
+
if (nestedBoard) {
|
|
15714
|
+
throw new Error(
|
|
15715
|
+
`Nested boards are not supported: found board "${nestedBoard.name}" inside board "${this.name}"`
|
|
15716
|
+
);
|
|
15717
|
+
}
|
|
15713
15718
|
super.doInitialSourceRender();
|
|
15714
15719
|
const { db } = this.root;
|
|
15715
15720
|
const source_board = db.source_board.insert({
|
|
@@ -19460,7 +19465,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
19460
19465
|
var package_default = {
|
|
19461
19466
|
name: "@tscircuit/core",
|
|
19462
19467
|
type: "module",
|
|
19463
|
-
version: "0.0.
|
|
19468
|
+
version: "0.0.924",
|
|
19464
19469
|
types: "dist/index.d.ts",
|
|
19465
19470
|
main: "dist/index.js",
|
|
19466
19471
|
module: "dist/index.js",
|
|
@@ -19524,7 +19529,7 @@ var package_default = {
|
|
|
19524
19529
|
"circuit-json-to-gltf": "^0.0.31",
|
|
19525
19530
|
"circuit-json-to-simple-3d": "^0.0.9",
|
|
19526
19531
|
"circuit-json-to-spice": "^0.0.30",
|
|
19527
|
-
"circuit-to-svg": "^0.0.
|
|
19532
|
+
"circuit-to-svg": "^0.0.294",
|
|
19528
19533
|
concurrently: "^9.1.2",
|
|
19529
19534
|
"connectivity-map": "^1.0.0",
|
|
19530
19535
|
debug: "^4.3.6",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.925",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"circuit-json-to-gltf": "^0.0.31",
|
|
66
66
|
"circuit-json-to-simple-3d": "^0.0.9",
|
|
67
67
|
"circuit-json-to-spice": "^0.0.30",
|
|
68
|
-
"circuit-to-svg": "^0.0.
|
|
68
|
+
"circuit-to-svg": "^0.0.294",
|
|
69
69
|
"concurrently": "^9.1.2",
|
|
70
70
|
"connectivity-map": "^1.0.0",
|
|
71
71
|
"debug": "^4.3.6",
|