@tscircuit/core 0.0.247 → 0.0.248
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6000,7 +6000,7 @@ var RootCircuit = class {
|
|
|
6000
6000
|
}
|
|
6001
6001
|
if (this.children.length === 0) {
|
|
6002
6002
|
throw new Error(
|
|
6003
|
-
"Not able to guess root component:
|
|
6003
|
+
"Not able to guess root component: RootCircuit has no children (use circuit.add(...))"
|
|
6004
6004
|
);
|
|
6005
6005
|
}
|
|
6006
6006
|
if (this.children.length > 0) {
|
|
@@ -6011,7 +6011,7 @@ var RootCircuit = class {
|
|
|
6011
6011
|
}
|
|
6012
6012
|
}
|
|
6013
6013
|
throw new Error(
|
|
6014
|
-
"Not able to guess root component:
|
|
6014
|
+
"Not able to guess root component: RootCircuit has multiple children and no board"
|
|
6015
6015
|
);
|
|
6016
6016
|
}
|
|
6017
6017
|
render() {
|
|
@@ -6019,7 +6019,7 @@ var RootCircuit = class {
|
|
|
6019
6019
|
this._guessRootComponent();
|
|
6020
6020
|
}
|
|
6021
6021
|
const { firstChild, db } = this;
|
|
6022
|
-
if (!firstChild) throw new Error("
|
|
6022
|
+
if (!firstChild) throw new Error("RootCircuit has no root component");
|
|
6023
6023
|
firstChild.parent = this;
|
|
6024
6024
|
firstChild.runRenderCycle();
|
|
6025
6025
|
this._hasRenderedAtleastOnce = true;
|