diff --git a/src/Components/ContainerProperties/ContainerForm.tsx b/src/Components/ContainerProperties/ContainerForm.tsx index 5620c99..487b302 100644 --- a/src/Components/ContainerProperties/ContainerForm.tsx +++ b/src/Components/ContainerProperties/ContainerForm.tsx @@ -11,7 +11,7 @@ import { TextInputGroup } from '../InputGroup/TextInputGroup'; import { RadioGroupButtons } from '../RadioGroupButtons/RadioGroupButtons'; import { Select } from '../Select/Select'; import { ToggleButton, ToggleType } from '../ToggleButton/ToggleButton'; -import { Orientation } from '../../Interfaces/Orientation'; +import { Orientation } from '../../Enums/Orientation'; interface IContainerFormProps { properties: IContainerProperties diff --git a/src/Components/ContainerProperties/ContainerProperties.test.tsx b/src/Components/ContainerProperties/ContainerProperties.test.tsx index 18b56c2..dce3b8a 100644 --- a/src/Components/ContainerProperties/ContainerProperties.test.tsx +++ b/src/Components/ContainerProperties/ContainerProperties.test.tsx @@ -3,7 +3,7 @@ import * as React from 'react'; import { expect, describe, it, vi } from 'vitest'; import { PositionReference } from '../../Enums/PositionReference'; import { IContainerProperties } from '../../Interfaces/IContainerProperties'; -import { Orientation } from '../../Interfaces/Orientation'; +import { Orientation } from '../../Enums/Orientation'; import { Properties } from './ContainerProperties'; describe.concurrent('Properties', () => { diff --git a/src/Components/Editor/Actions/AddContainer.ts b/src/Components/Editor/Actions/AddContainer.ts index 7fdafce..f0c82c2 100644 --- a/src/Components/Editor/Actions/AddContainer.ts +++ b/src/Components/Editor/Actions/AddContainer.ts @@ -9,7 +9,7 @@ import { IContainerModel, ContainerModel } from '../../../Interfaces/IContainerM import { IHistoryState } from '../../../Interfaces/IHistoryState'; import { IPattern, GetPattern, ContainerOrPattern } from '../../../Interfaces/IPattern'; import { ISymbolModel } from '../../../Interfaces/ISymbolModel'; -import { Orientation } from '../../../Interfaces/Orientation'; +import { Orientation } from '../../../Enums/Orientation'; import { GetDefaultContainerProps, DEFAULTCHILDTYPE_MAX_DEPTH, DEFAULTCHILDTYPE_ALLOW_CYCLIC } from '../../../utils/default'; import { FindContainerById } from '../../../utils/itertools'; import { ApplyMargin } from '../../../utils/svg'; diff --git a/src/Components/Editor/Actions/ContainerOperations.ts b/src/Components/Editor/Actions/ContainerOperations.ts index ea8a138..ac97f02 100644 --- a/src/Components/Editor/Actions/ContainerOperations.ts +++ b/src/Components/Editor/Actions/ContainerOperations.ts @@ -7,7 +7,7 @@ import { ISymbolModel } from '../../../Interfaces/ISymbolModel'; import Swal from 'sweetalert2'; import { PropertyType } from '../../../Enums/PropertyType'; import { TransformX, TransformY } from '../../../utils/svg'; -import { Orientation } from '../../../Interfaces/Orientation'; +import { Orientation } from '../../../Enums/Orientation'; /** * Select a container diff --git a/src/Components/Editor/Behaviors/AnchorBehaviors.ts b/src/Components/Editor/Behaviors/AnchorBehaviors.ts index 7c50370..8cd2b88 100644 --- a/src/Components/Editor/Behaviors/AnchorBehaviors.ts +++ b/src/Components/Editor/Behaviors/AnchorBehaviors.ts @@ -14,7 +14,7 @@ */ import { IContainerModel } from '../../../Interfaces/IContainerModel'; -import { Orientation } from '../../../Interfaces/Orientation'; +import { Orientation } from '../../../Enums/Orientation'; import { ConstraintBodyInsideUnallocatedWidth } from './RigidBodyBehaviors'; /** diff --git a/src/Components/Editor/Behaviors/FlexBehaviors.ts b/src/Components/Editor/Behaviors/FlexBehaviors.ts index e42ebd2..ade6248 100644 --- a/src/Components/Editor/Behaviors/FlexBehaviors.ts +++ b/src/Components/Editor/Behaviors/FlexBehaviors.ts @@ -1,5 +1,5 @@ import { IContainerModel } from '../../../Interfaces/IContainerModel'; -import { Orientation } from '../../../Interfaces/Orientation'; +import { Orientation } from '../../../Enums/Orientation'; import { Simplex } from '../../../utils/simplex'; import { ApplyWidthMargin, ApplyXMargin } from '../../../utils/svg'; diff --git a/src/Components/Editor/Behaviors/PushBehaviors.ts b/src/Components/Editor/Behaviors/PushBehaviors.ts index 9789a07..499a01a 100644 --- a/src/Components/Editor/Behaviors/PushBehaviors.ts +++ b/src/Components/Editor/Behaviors/PushBehaviors.ts @@ -1,5 +1,5 @@ import { IContainerModel } from '../../../Interfaces/IContainerModel'; -import { Orientation } from '../../../Interfaces/Orientation'; +import { Orientation } from '../../../Enums/Orientation'; import { ReversePairwise } from '../../../utils/itertools'; import { Flex } from './FlexBehaviors'; diff --git a/src/Components/Editor/Behaviors/RigidBodyBehaviors.ts b/src/Components/Editor/Behaviors/RigidBodyBehaviors.ts index a4ef047..743c469 100644 --- a/src/Components/Editor/Behaviors/RigidBodyBehaviors.ts +++ b/src/Components/Editor/Behaviors/RigidBodyBehaviors.ts @@ -8,7 +8,7 @@ import { IContainerModel } from '../../../Interfaces/IContainerModel'; import { ISizePointer } from '../../../Interfaces/ISizePointer'; -import { Orientation } from '../../../Interfaces/Orientation'; +import { Orientation } from '../../../Enums/Orientation'; import { ENABLE_HARD_RIGID } from '../../../utils/default'; /** diff --git a/src/Components/Editor/Behaviors/SwapBehaviors.ts b/src/Components/Editor/Behaviors/SwapBehaviors.ts index 21c4b11..2a81f56 100644 --- a/src/Components/Editor/Behaviors/SwapBehaviors.ts +++ b/src/Components/Editor/Behaviors/SwapBehaviors.ts @@ -3,7 +3,7 @@ */ import { IContainerModel } from '../../../Interfaces/IContainerModel'; -import { Orientation } from '../../../Interfaces/Orientation'; +import { Orientation } from '../../../Enums/Orientation'; import { GetHorizontallyOverlappingContainers, GetVerticallyOverlappingContainers } from './AnchorBehaviors'; export function ApplySwap(container: IContainerModel, parent: IContainerModel): void { diff --git a/src/Components/ElementsSidebar/ElementsSidebar.test.tsx b/src/Components/ElementsSidebar/ElementsSidebar.test.tsx index 45ff2b8..3b63551 100644 --- a/src/Components/ElementsSidebar/ElementsSidebar.test.tsx +++ b/src/Components/ElementsSidebar/ElementsSidebar.test.tsx @@ -6,7 +6,7 @@ import { IContainerModel } from '../../Interfaces/IContainerModel'; import { PositionReference } from '../../Enums/PositionReference'; import { FindContainerById } from '../../utils/itertools'; import { DEFAULT_MAINCONTAINER_PROPS } from '../../utils/default'; -import { Orientation } from '../../Interfaces/Orientation'; +import { Orientation } from '../../Enums/Orientation'; describe.concurrent('Elements sidebar', () => { it('With a MainContainer', () => { diff --git a/src/Interfaces/Orientation.ts b/src/Enums/Orientation.ts similarity index 100% rename from src/Interfaces/Orientation.ts rename to src/Enums/Orientation.ts diff --git a/src/Interfaces/IAvailableContainer.ts b/src/Interfaces/IAvailableContainer.ts index d1702c4..543c4df 100644 --- a/src/Interfaces/IAvailableContainer.ts +++ b/src/Interfaces/IAvailableContainer.ts @@ -4,7 +4,7 @@ import { AddMethod } from '../Enums/AddMethod'; import { PositionReference } from '../Enums/PositionReference'; import { IAction } from './IAction'; import { IMargin } from './IMargin'; -import { Orientation } from './Orientation'; +import { Orientation } from '../Enums/Orientation'; /** Model of available container used in application configuration */ export interface IAvailableContainer { diff --git a/src/Interfaces/IContainerProperties.ts b/src/Interfaces/IContainerProperties.ts index 109b5e3..d394282 100644 --- a/src/Interfaces/IContainerProperties.ts +++ b/src/Interfaces/IContainerProperties.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { PositionReference } from '../Enums/PositionReference'; import { IMargin } from './IMargin'; -import { Orientation } from './Orientation'; +import { Orientation } from '../Enums/Orientation'; /** * Properties of a container diff --git a/src/utils/default.ts b/src/utils/default.ts index 78f6b55..f798371 100644 --- a/src/utils/default.ts +++ b/src/utils/default.ts @@ -6,7 +6,7 @@ import { ContainerModel, IContainerModel } from '../Interfaces/IContainerModel'; import { IContainerProperties } from '../Interfaces/IContainerProperties'; import { IEditorState } from '../Interfaces/IEditorState'; import { ISymbolModel } from '../Interfaces/ISymbolModel'; -import { Orientation } from '../Interfaces/Orientation'; +import { Orientation } from '../Enums/Orientation'; /// EDITOR DEFAULTS ///