Skip to content

Visualize Your Ideas With Code

refactor: rename layout

aarthificialf0429c5ad949
diff --git a/src/components/Layout.ts b/src/components/LinearLayout.ts
similarity index 96%
rename from src/components/Layout.ts
rename to src/components/LinearLayout.ts
index 57f1e3fe..c8fe23ab 100644
--- a/src/components/Layout.ts
+++ b/src/components/LinearLayout.ts
@@ -12,7 +12,7 @@ export interface LayoutConfig extends LayoutGroupConfig {
direction?: Center;
}
-export class Layout extends LayoutGroup {
+export class LinearLayout extends LayoutGroup {
public direction: GetSet<Center, this>;
private contentSize: Size;
@@ -83,10 +83,10 @@ export class Layout extends LayoutGroup {
}
Factory.addGetterSetter(
- Layout,
+ LinearLayout,
'direction',
Center.Vertical,
undefined,
// @ts-ignore
- Layout.prototype.recalculate,
+ LinearLayout.prototype.recalculate,
);
diff --git a/src/components/index.ts b/src/components/index.ts
index 5b10a3be..e88d3262 100644
--- a/src/components/index.ts
+++ b/src/components/index.ts
@@ -1,7 +1,7 @@
export * from './Arrow';
export * from './Connection';
export * from './Debug';
-export * from './Layout';
+export * from './LinearLayout';
export * from './Sprite';
export * from './Surface';
export * from './ThreeView';
\ No newline at end of file