From 64d955c464b5ce15e5df348ed0027ea444384f55 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Tue, 29 Jun 2021 17:16:03 +0200 Subject: [PATCH] Chore: Refactor --- .../panels/SequenceEditorPanel/FrameStampPositionProvider.tsx | 2 +- .../src/panels/SequenceEditorPanel/RightOverlay/FrameStamp.tsx | 2 +- theatre/studio/src/uiComponents/ShowMousePosition.tsx | 2 +- theatre/{shared => studio}/src/utils/copyToClipboard.ts | 0 theatre/{shared => studio}/src/utils/isMac.ts | 0 theatre/{shared => studio}/src/utils/keyboardUtils.ts | 0 theatre/{shared => studio}/src/utils/mousePositionD.ts | 0 7 files changed, 3 insertions(+), 3 deletions(-) rename theatre/{shared => studio}/src/utils/copyToClipboard.ts (100%) rename theatre/{shared => studio}/src/utils/isMac.ts (100%) rename theatre/{shared => studio}/src/utils/keyboardUtils.ts (100%) rename theatre/{shared => studio}/src/utils/mousePositionD.ts (100%) diff --git a/theatre/studio/src/panels/SequenceEditorPanel/FrameStampPositionProvider.tsx b/theatre/studio/src/panels/SequenceEditorPanel/FrameStampPositionProvider.tsx index 7b2560e..ed36164 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/FrameStampPositionProvider.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/FrameStampPositionProvider.tsx @@ -1,6 +1,6 @@ import type {IDerivation, Pointer} from '@theatre/dataverse' import {Atom, prism, val} from '@theatre/dataverse' -import mousePositionD from '@theatre/shared/utils/mousePositionD' +import mousePositionD from '@theatre/studio/utils/mousePositionD' import type {$IntentionalAny} from '@theatre/shared/utils/types' import {inRange, last} from 'lodash-es' import React, {createContext, useCallback, useContext, useMemo} from 'react' diff --git a/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/FrameStamp.tsx b/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/FrameStamp.tsx index 1988330..11f9c1e 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/FrameStamp.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/FrameStamp.tsx @@ -1,5 +1,5 @@ import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout' -import mousePositionD from '@theatre/shared/utils/mousePositionD' +import mousePositionD from '@theatre/studio/utils/mousePositionD' import {usePrism, useVal} from '@theatre/dataverse-react' import type {Pointer} from '@theatre/dataverse' import {val} from '@theatre/dataverse' diff --git a/theatre/studio/src/uiComponents/ShowMousePosition.tsx b/theatre/studio/src/uiComponents/ShowMousePosition.tsx index 04a8bf5..c498e24 100644 --- a/theatre/studio/src/uiComponents/ShowMousePosition.tsx +++ b/theatre/studio/src/uiComponents/ShowMousePosition.tsx @@ -1,4 +1,4 @@ -import mousePositionD from '@theatre/shared/utils/mousePositionD' +import mousePositionD from '@theatre/studio/utils/mousePositionD' import {usePrism} from '@theatre/dataverse-react' import {val} from '@theatre/dataverse' import React from 'react' diff --git a/theatre/shared/src/utils/copyToClipboard.ts b/theatre/studio/src/utils/copyToClipboard.ts similarity index 100% rename from theatre/shared/src/utils/copyToClipboard.ts rename to theatre/studio/src/utils/copyToClipboard.ts diff --git a/theatre/shared/src/utils/isMac.ts b/theatre/studio/src/utils/isMac.ts similarity index 100% rename from theatre/shared/src/utils/isMac.ts rename to theatre/studio/src/utils/isMac.ts diff --git a/theatre/shared/src/utils/keyboardUtils.ts b/theatre/studio/src/utils/keyboardUtils.ts similarity index 100% rename from theatre/shared/src/utils/keyboardUtils.ts rename to theatre/studio/src/utils/keyboardUtils.ts diff --git a/theatre/shared/src/utils/mousePositionD.ts b/theatre/studio/src/utils/mousePositionD.ts similarity index 100% rename from theatre/shared/src/utils/mousePositionD.ts rename to theatre/studio/src/utils/mousePositionD.ts