@tscircuit/core 0.0.578 → 0.0.579
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 +13 -13
- package/dist/index.js +6 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1150,7 +1150,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1150
1150
|
flex: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodString]>>;
|
|
1151
1151
|
flexDirection: zod.ZodOptional<zod.ZodEnum<["row", "column"]>>;
|
|
1152
1152
|
alignItems: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
1153
|
-
justifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
1153
|
+
justifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch", "space-between", "space-around", "space-evenly"]>>;
|
|
1154
1154
|
flexRow: zod.ZodOptional<zod.ZodBoolean>;
|
|
1155
1155
|
flexColumn: zod.ZodOptional<zod.ZodBoolean>;
|
|
1156
1156
|
gap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
@@ -1181,7 +1181,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1181
1181
|
gridGap?: string | number | undefined;
|
|
1182
1182
|
flexDirection?: "row" | "column" | undefined;
|
|
1183
1183
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1184
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1184
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1185
1185
|
flexRow?: boolean | undefined;
|
|
1186
1186
|
flexColumn?: boolean | undefined;
|
|
1187
1187
|
gap?: string | number | undefined;
|
|
@@ -1212,7 +1212,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1212
1212
|
gridGap?: string | number | undefined;
|
|
1213
1213
|
flexDirection?: "row" | "column" | undefined;
|
|
1214
1214
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1215
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1215
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1216
1216
|
flexRow?: boolean | undefined;
|
|
1217
1217
|
flexColumn?: boolean | undefined;
|
|
1218
1218
|
gap?: string | number | undefined;
|
|
@@ -1244,7 +1244,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1244
1244
|
flex: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodString]>>;
|
|
1245
1245
|
flexDirection: zod.ZodOptional<zod.ZodEnum<["row", "column"]>>;
|
|
1246
1246
|
alignItems: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
1247
|
-
justifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
1247
|
+
justifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch", "space-between", "space-around", "space-evenly"]>>;
|
|
1248
1248
|
flexRow: zod.ZodOptional<zod.ZodBoolean>;
|
|
1249
1249
|
flexColumn: zod.ZodOptional<zod.ZodBoolean>;
|
|
1250
1250
|
gap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
@@ -1275,7 +1275,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1275
1275
|
gridGap?: string | number | undefined;
|
|
1276
1276
|
flexDirection?: "row" | "column" | undefined;
|
|
1277
1277
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1278
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1278
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1279
1279
|
flexRow?: boolean | undefined;
|
|
1280
1280
|
flexColumn?: boolean | undefined;
|
|
1281
1281
|
gap?: string | number | undefined;
|
|
@@ -1306,7 +1306,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1306
1306
|
gridGap?: string | number | undefined;
|
|
1307
1307
|
flexDirection?: "row" | "column" | undefined;
|
|
1308
1308
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1309
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1309
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1310
1310
|
flexRow?: boolean | undefined;
|
|
1311
1311
|
flexColumn?: boolean | undefined;
|
|
1312
1312
|
gap?: string | number | undefined;
|
|
@@ -1368,7 +1368,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1368
1368
|
flex: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodString]>>;
|
|
1369
1369
|
flexDirection: zod.ZodOptional<zod.ZodEnum<["row", "column"]>>;
|
|
1370
1370
|
alignItems: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
1371
|
-
justifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
1371
|
+
justifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch", "space-between", "space-around", "space-evenly"]>>;
|
|
1372
1372
|
flexRow: zod.ZodOptional<zod.ZodBoolean>;
|
|
1373
1373
|
flexColumn: zod.ZodOptional<zod.ZodBoolean>;
|
|
1374
1374
|
gap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
@@ -1640,7 +1640,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1640
1640
|
gridGap?: string | number | undefined;
|
|
1641
1641
|
flexDirection?: "row" | "column" | undefined;
|
|
1642
1642
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1643
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1643
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1644
1644
|
flexRow?: boolean | undefined;
|
|
1645
1645
|
flexColumn?: boolean | undefined;
|
|
1646
1646
|
gap?: string | number | undefined;
|
|
@@ -1676,7 +1676,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1676
1676
|
gridGap?: string | number | undefined;
|
|
1677
1677
|
flexDirection?: "row" | "column" | undefined;
|
|
1678
1678
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1679
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1679
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1680
1680
|
flexRow?: boolean | undefined;
|
|
1681
1681
|
flexColumn?: boolean | undefined;
|
|
1682
1682
|
gap?: string | number | undefined;
|
|
@@ -1708,7 +1708,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1708
1708
|
gridGap?: string | number | undefined;
|
|
1709
1709
|
flexDirection?: "row" | "column" | undefined;
|
|
1710
1710
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1711
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1711
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1712
1712
|
flexRow?: boolean | undefined;
|
|
1713
1713
|
flexColumn?: boolean | undefined;
|
|
1714
1714
|
gap?: string | number | undefined;
|
|
@@ -1824,7 +1824,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1824
1824
|
gridGap?: string | number | undefined;
|
|
1825
1825
|
flexDirection?: "row" | "column" | undefined;
|
|
1826
1826
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1827
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1827
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1828
1828
|
flexRow?: boolean | undefined;
|
|
1829
1829
|
flexColumn?: boolean | undefined;
|
|
1830
1830
|
gap?: string | number | undefined;
|
|
@@ -1860,7 +1860,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1860
1860
|
gridGap?: string | number | undefined;
|
|
1861
1861
|
flexDirection?: "row" | "column" | undefined;
|
|
1862
1862
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1863
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1863
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1864
1864
|
flexRow?: boolean | undefined;
|
|
1865
1865
|
flexColumn?: boolean | undefined;
|
|
1866
1866
|
gap?: string | number | undefined;
|
|
@@ -1892,7 +1892,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1892
1892
|
gridGap?: string | number | undefined;
|
|
1893
1893
|
flexDirection?: "row" | "column" | undefined;
|
|
1894
1894
|
alignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1895
|
-
justifyContent?: "center" | "start" | "end" | "stretch" | undefined;
|
|
1895
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
1896
1896
|
flexRow?: boolean | undefined;
|
|
1897
1897
|
flexColumn?: boolean | undefined;
|
|
1898
1898
|
gap?: string | number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -8090,11 +8090,12 @@ import { buildSubtree as buildSubtree3 } from "@tscircuit/circuit-json-util";
|
|
|
8090
8090
|
import { layoutCircuitJsonWithFlex } from "@tscircuit/circuit-json-flex";
|
|
8091
8091
|
var Group_doInitialPcbLayoutFlex = (group) => {
|
|
8092
8092
|
const { db } = group.root;
|
|
8093
|
-
const
|
|
8093
|
+
const { _parsedProps: props } = group;
|
|
8094
|
+
const circuitJson = group.lowercaseComponentName === "board" ? db.toArray() : buildSubtree3(db.toArray(), {
|
|
8094
8095
|
source_group_id: group.source_group_id
|
|
8095
8096
|
});
|
|
8096
|
-
const modifiedCircuitJson = layoutCircuitJsonWithFlex(
|
|
8097
|
-
justifyContent: "space-between"
|
|
8097
|
+
const modifiedCircuitJson = layoutCircuitJsonWithFlex(circuitJson, {
|
|
8098
|
+
justifyContent: props.justifyContent === "start" ? "flex-start" : props.justifyContent === "end" ? "flex-end" : props.justifyContent === "stretch" ? "space-between" : props.justifyContent
|
|
8098
8099
|
});
|
|
8099
8100
|
const pcbSmtPads = db.pcb_smtpad.list();
|
|
8100
8101
|
for (const smtpad of pcbSmtPads) {
|
|
@@ -11102,7 +11103,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
11102
11103
|
var package_default = {
|
|
11103
11104
|
name: "@tscircuit/core",
|
|
11104
11105
|
type: "module",
|
|
11105
|
-
version: "0.0.
|
|
11106
|
+
version: "0.0.578",
|
|
11106
11107
|
types: "dist/index.d.ts",
|
|
11107
11108
|
main: "dist/index.js",
|
|
11108
11109
|
module: "dist/index.js",
|
|
@@ -11134,7 +11135,7 @@ var package_default = {
|
|
|
11134
11135
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
11135
11136
|
"@tscircuit/log-soup": "^1.0.2",
|
|
11136
11137
|
"@tscircuit/math-utils": "^0.0.18",
|
|
11137
|
-
"@tscircuit/props": "^0.0.
|
|
11138
|
+
"@tscircuit/props": "^0.0.265",
|
|
11138
11139
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
11139
11140
|
"@tscircuit/schematic-corpus": "^0.0.52",
|
|
11140
11141
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
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.579",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
34
34
|
"@tscircuit/log-soup": "^1.0.2",
|
|
35
35
|
"@tscircuit/math-utils": "^0.0.18",
|
|
36
|
-
"@tscircuit/props": "^0.0.
|
|
36
|
+
"@tscircuit/props": "^0.0.265",
|
|
37
37
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
38
38
|
"@tscircuit/schematic-corpus": "^0.0.52",
|
|
39
39
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|