Skip to content

Commit 702bed0

Browse files
committed
refactor(masonry): [tower] refactor tree into tower and workspace manager
Signed-off-by: karan-palan <[email protected]>
1 parent 9321df1 commit 702bed0

File tree

6 files changed

+23
-1410
lines changed

6 files changed

+23
-1410
lines changed

modules/masonry/src/@types/tower.d.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/** A simple Cartesian point */
2+
export type TPoint = { x: number; y: number };
3+
4+
/** All supported physical notch pairings */
5+
export type TNotchType = 'top-bottom' | 'right-left' | 'left-right' | 'nested';
6+
7+
/** A single connection‑point centroid */
8+
export type TConnectionPoint = { x: number; y: number };
9+
10+
/** One logical connection between two bricks */
11+
export type TBrickConnection = {
12+
from: string; // uuid of source brick
13+
to: string; // uuid of destination brick
14+
fromNotchId: string; // e.g. "right_0"
15+
toNotchId: string; // e.g. "left"
16+
type: TNotchType;
17+
};
18+
19+
/** Validation result for attempted connections */
20+
export type TConnectionValidation = {
21+
isValid: boolean;
22+
reason?: string;
23+
};

0 commit comments

Comments
 (0)