@tscircuit/core 0.0.823 → 0.0.825
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 +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9702,6 +9702,9 @@ function convertTreeToInputProblem(tree, db, group) {
|
|
|
9702
9702
|
if (component?._parsedProps?.schFacingDirection) {
|
|
9703
9703
|
availableRotations = [0];
|
|
9704
9704
|
}
|
|
9705
|
+
if (component?.componentName === "Chip") {
|
|
9706
|
+
availableRotations = [0];
|
|
9707
|
+
}
|
|
9705
9708
|
const marginLeft = component?._parsedProps?.schMarginLeft ?? component?._parsedProps?.schMarginX ?? 0;
|
|
9706
9709
|
const marginRight = component?._parsedProps?.schMarginRight ?? component?._parsedProps?.schMarginX ?? 0;
|
|
9707
9710
|
let marginTop = component?._parsedProps?.schMarginTop ?? component?._parsedProps?.schMarginY ?? 0;
|
|
@@ -10854,7 +10857,8 @@ function getPresetAutoroutingConfig(autorouterConfig) {
|
|
|
10854
10857
|
}
|
|
10855
10858
|
const preset = typeof autorouterConfig === "object" ? autorouterConfig.preset : autorouterConfig;
|
|
10856
10859
|
const providedConfig = typeof autorouterConfig === "object" ? autorouterConfig : {};
|
|
10857
|
-
|
|
10860
|
+
const normalizedPreset = typeof preset === "string" ? preset.replace(/_/g, "-") : preset;
|
|
10861
|
+
switch (normalizedPreset) {
|
|
10858
10862
|
case "auto-local":
|
|
10859
10863
|
return {
|
|
10860
10864
|
local: true,
|
|
@@ -17285,7 +17289,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
17285
17289
|
var package_default = {
|
|
17286
17290
|
name: "@tscircuit/core",
|
|
17287
17291
|
type: "module",
|
|
17288
|
-
version: "0.0.
|
|
17292
|
+
version: "0.0.824",
|
|
17289
17293
|
types: "dist/index.d.ts",
|
|
17290
17294
|
main: "dist/index.js",
|
|
17291
17295
|
module: "dist/index.js",
|