Move Rect to util/ (#8121)

`rect.ts` is not a store, and hence does not belong in `stores/`

# Important Notes
None
This commit is contained in:
somebody1234 2023-10-21 01:20:09 +10:00 committed by GitHub
parent 8172896065
commit 8fc720a1a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import type { Edge } from '@/stores/graph'
import type { Rect } from '@/stores/rect'
import type { Rect } from '@/util/rect'
import { clamp } from '@vueuse/core'
import type { ExprId } from 'shared/yjsModel'
import { computed } from 'vue'

View File

@ -8,11 +8,11 @@ import SelectionBrush from '@/components/SelectionBrush.vue'
import TopBar from '@/components/TopBar.vue'
import { useGraphStore } from '@/stores/graph'
import { useProjectStore } from '@/stores/project'
import type { Rect } from '@/stores/rect'
import { useSuggestionDbStore } from '@/stores/suggestionDatabase'
import { colorFromString } from '@/util/colors'
import { keyboardBusy, keyboardBusyExceptIn, useEvent, usePointer } from '@/util/events'
import { useNavigator } from '@/util/navigator'
import type { Rect } from '@/util/rect'
import { Vec2 } from '@/util/vec2'
import * as set from 'lib0/set'
import type { ContentRange, ExprId } from 'shared/yjsModel'

View File

@ -10,7 +10,6 @@ import {
} from '@/providers/visualizationConfig'
import type { Node } from '@/stores/graph'
import { useProjectStore } from '@/stores/project'
import { Rect } from '@/stores/rect'
import { useSuggestionDbStore } from '@/stores/suggestionDatabase'
import {
DEFAULT_VISUALIZATION_CONFIGURATION,
@ -24,6 +23,7 @@ import { methodNameToIcon, typeNameToIcon } from '@/util/getIconName'
import type { UnsafeMutable } from '@/util/mutable'
import type { Opt } from '@/util/opt'
import { qnJoin, tryQualifiedName } from '@/util/qualifiedName'
import { Rect } from '@/util/rect'
import { unwrap } from '@/util/result'
import type { Vec2 } from '@/util/vec2'
import type { ContentRange, ExprId, VisualizationIdentifier } from 'shared/yjsModel'

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import { spanKindName, type Span } from '@/stores/graph'
import { Rect } from '@/stores/rect'
import { useResizeObserver } from '@/util/events'
import { Rect } from '@/util/rect'
import { Vec2 } from '@/util/vec2'
import type { ExprId } from 'shared/yjsModel'
import { computed, onUpdated, ref, shallowRef, watch } from 'vue'

View File

@ -1,5 +1,5 @@
import { Rect } from '@/stores/rect'
import { PointerButtonMask, useEvent, usePointer, useResizeObserver } from '@/util/events'
import { Rect } from '@/util/rect'
import { Vec2 } from '@/util/vec2'
import { computed, proxyRefs, ref, type Ref } from 'vue'