Skip to content

Commit

Permalink
Reformat some things.
Browse files Browse the repository at this point in the history
  • Loading branch information
grantjbutler committed Feb 10, 2022
1 parent 14ee26d commit 025e46b
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 30 deletions.
6 changes: 3 additions & 3 deletions packages/renderer/src/layout/Component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { v4 as uuidv4 } from 'uuid';
import Size from './Size'
import LayoutNode from './LayoutNode'
import ContainerComponent from './ContainerComponent'
import type Size from './Size';
import type LayoutNode from './LayoutNode';
import type ContainerComponent from './ContainerComponent';

export default class Component {
id: string = uuidv4();
Expand Down
4 changes: 2 additions & 2 deletions packages/renderer/src/layout/ContainerLayoutNode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Frame from './Frame'
import LayoutNode from './LayoutNode'
import type Frame from './Frame';
import LayoutNode from './LayoutNode';

export default class ContainerLayoutNode extends LayoutNode {
children: LayoutNode[];
Expand Down
10 changes: 5 additions & 5 deletions packages/renderer/src/layout/FlexComponent.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ContainerLayoutNode from './ContainerLayoutNode'
import ContainerComponent from './ContainerComponent'
import Frame from './Frame'
import Size from './Size'
import LayoutNode from './LayoutNode';
import ContainerLayoutNode from './ContainerLayoutNode';
import ContainerComponent from './ContainerComponent';
import Frame from './Frame';
import Size from './Size';
import type LayoutNode from './LayoutNode';

export default class FlexComponent extends ContainerComponent {
direction: 'horizontal' | 'vertical' = 'horizontal';
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/layout/Frame.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Insets from './Insets'
import type Insets from './Insets';

interface FrameStyleObject {
top: string
Expand Down
14 changes: 7 additions & 7 deletions packages/renderer/src/layout/InsetComponent.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Component from './Component'
import LayoutNode from './LayoutNode'
import Size from './Size'
import ContainerLayoutNode from './ContainerLayoutNode'
import Frame from './Frame'
import ContainerComponent from './ContainerComponent'
import Insets from './Insets'
import type Component from './Component';
import type LayoutNode from './LayoutNode';
import type Size from './Size';
import ContainerLayoutNode from './ContainerLayoutNode';
import Frame from './Frame';
import ContainerComponent from './ContainerComponent';
import Insets from './Insets';

export default class InsetComponent extends ContainerComponent {
insets = new Insets(0, 0, 0, 0);
Expand Down
6 changes: 3 additions & 3 deletions packages/renderer/src/layout/LayoutExerciser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from './Component'
import LayoutNode from './LayoutNode'
import Size from './Size'
import type Component from './Component';
import type LayoutNode from './LayoutNode';
import type Size from './Size';

export default class LayoutExerciser {
execute(component: Component, size: Size): LayoutNode {
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/layout/LayoutNode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Frame from './Frame'
import type Frame from './Frame';

export default class LayoutNode {
id: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/layout/Size.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Insets from './Insets'
import type Insets from './Insets';

export default class Size {
width: number;
Expand Down
12 changes: 6 additions & 6 deletions packages/renderer/src/layout/SourceComponent.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Component from './Component'
import Size from './Size'
import LayoutNode from './LayoutNode'
import Frame from './Frame'
import Insets from './Insets'
import SourceLayoutNode from './SourceLayoutNode'
import Component from './Component';
import Size from './Size';
import LayoutNode from './LayoutNode';
import Frame from './Frame';
import Insets from './Insets';
import SourceLayoutNode from './SourceLayoutNode';
import type { Source } from '../../../shared/src/obs';

export default class SourceComponent extends Component {
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/layout/SourceLayoutNode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Source } from '../../../shared/src/obs';
import Frame from './Frame'
import type Frame from './Frame';
import LayoutNode from './LayoutNode';

export default class SourceLayoutNode extends LayoutNode {
Expand Down
1 change: 1 addition & 0 deletions packages/renderer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"skipLibCheck": true,
"strict": true,
"isolatedModules": true,
"allowSyntheticDefaultImports": true,

"types" : ["node"],

Expand Down

0 comments on commit 025e46b

Please sign in to comment.