From bf7d8fdaec78763a44c5078dc25796c7942c6a43 Mon Sep 17 00:00:00 2001 From: Rishabh Gupta <38923768+imrishabh18@users.noreply.github.com> Date: Thu, 17 Oct 2024 02:10:13 +0530 Subject: [PATCH 1/3] Add width and height for components --- lib/common/layout.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/common/layout.ts b/lib/common/layout.ts index c59c441..e9befc4 100644 --- a/lib/common/layout.ts +++ b/lib/common/layout.ts @@ -88,6 +88,8 @@ export interface CommonComponentProps extends CommonLayoutProps { cadModel?: CadModelProp children?: any symbolName?: string + width?: string | number + height?: string | number } export const commonComponentProps = commonLayoutProps From 3c9fc35ca7f41b16e7c95fbed2fac56cc9f9a77c Mon Sep 17 00:00:00 2001 From: tscircuitbot Date: Wed, 16 Oct 2024 20:40:52 +0000 Subject: [PATCH 2/3] formatbot: Automatically format code --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ea3162..ca3ec65 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "author": "", "license": "ISC", "devDependencies": { - "@biomejs/biome": "^1.9.2", + "@biomejs/biome": "^1.9.3", "@tscircuit/layout": "^0.0.11", "@tscircuit/soup": "^0.0.69", "@types/bun": "^1.1.8", From dd855ff2cbe78dc5a266f6946a81bf87fab01b94 Mon Sep 17 00:00:00 2001 From: Rishabh Gupta Date: Thu, 17 Oct 2024 02:14:24 +0530 Subject: [PATCH 3/3] type fix --- lib/common/layout.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/common/layout.ts b/lib/common/layout.ts index e9befc4..36bbefc 100644 --- a/lib/common/layout.ts +++ b/lib/common/layout.ts @@ -100,6 +100,8 @@ export const commonComponentProps = commonLayoutProps cadModel: cadModelProp.optional(), children: z.any().optional(), symbolName: z.string().optional(), + width: distance.optional(), + height: distance.optional(), }) type InferredCommonComponentProps = z.input