Skip to content

Commit 953110c

Browse files
committed
Added IPosition type
1 parent db6f0c3 commit 953110c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/components/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import "../styles.css";
2+
23
export * from "./Anchored";
34
export * from "./Centered";
45
export * from "./CenteredVertically";
@@ -9,4 +10,4 @@ export * from "./Layer";
910
export * from "./Positioned";
1011
export * from "./SpaceInfo";
1112
export * from "./ViewPort";
12-
export { AnchorType, CenterType } from "../core-types";
13+
export { AnchorType, CenterType, IPosition } from "../core-types";

src/core-types.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,22 @@ export interface ISpaceStore {
8585
startTouchResize: (resizeType: ResizeType, space: ISpaceDefinition, size: ISize, event: React.TouchEvent<HTMLElement>) => void;
8686
}
8787

88-
export interface IPositionalProps {
88+
export interface IPosition {
8989
left?: SizeUnit | undefined;
90-
leftResizable?: boolean;
9190
top?: SizeUnit | undefined;
92-
topResizable?: boolean;
9391
right?: SizeUnit | undefined;
94-
rightResizable?: boolean;
9592
bottom?: SizeUnit | undefined;
96-
bottomResizable?: boolean;
9793
width?: SizeUnit | undefined;
9894
height?: SizeUnit | undefined;
9995
}
10096

97+
export interface IPositionalProps extends IPosition {
98+
leftResizable?: boolean;
99+
topResizable?: boolean;
100+
rightResizable?: boolean;
101+
bottomResizable?: boolean;
102+
}
103+
101104
export interface ISize {
102105
size: SizeUnit;
103106
adjusted: SizeUnit[];

0 commit comments

Comments
 (0)