Skip to content

Commit

Permalink
Move Rect to util/ (#8121)
Browse files Browse the repository at this point in the history
`rect.ts` is not a store, and hence does not belong in `stores/`

# Important Notes
None
  • Loading branch information
somebody1234 authored Oct 20, 2023
1 parent 8172896 commit 8fc720a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/gui2/src/components/GraphEdge.vue
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion app/gui2/src/components/GraphEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion app/gui2/src/components/GraphNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion app/gui2/src/components/NodeSpan.vue
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion app/gui2/src/util/navigator.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
File renamed without changes.

0 comments on commit 8fc720a

Please sign in to comment.