Skip to content

Commit 93e86a4

Browse files
fix imports
1 parent 1c9808e commit 93e86a4

File tree

7 files changed

+13
-17
lines changed

7 files changed

+13
-17
lines changed

frontend/javascripts/viewer/api/api_latest.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,7 @@ import {
101101
} from "viewer/model/actions/annotation_actions";
102102
import { setLayerTransformsAction } from "viewer/model/actions/dataset_actions";
103103
import { setPositionAction, setRotationAction } from "viewer/model/actions/flycam_actions";
104-
import {
105-
disableSavingAction,
106-
discardSaveQueueAction,
107-
snapshotMappingDataForNextRebaseAction,
108-
} from "viewer/model/actions/save_actions";
104+
import { disableSavingAction, discardSaveQueueAction } from "viewer/model/actions/save_actions";
109105
import {
110106
loadAdHocMeshAction,
111107
loadPrecomputedMeshAction,

frontend/javascripts/viewer/model/reducers/annotation_reducer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import type { MeshInformation, UserBoundingBox, WebknossosState } from "viewer/s
1111
import { getDatasetBoundingBox } from "../accessors/dataset_accessor";
1212
import { getAdditionalCoordinatesAsString } from "../accessors/flycam_accessor";
1313
import { getMeshesForAdditionalCoordinates } from "../accessors/volumetracing_accessor";
14-
import BoundingBox from "../bucket_data_handling/bounding_box";
1514
import type { ChangeUserBoundingBoxAction } from "../actions/annotation_actions";
15+
import BoundingBox from "../bucket_data_handling/bounding_box";
1616

1717
const updateAnnotation = (
1818
state: WebknossosState,

frontend/javascripts/viewer/model/reducers/reducer_helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type {
99
VolumeUserState,
1010
} from "types/api_types";
1111
import type { BoundingBoxMinMaxType } from "types/bounding_box";
12+
import { WkDevFlags } from "viewer/api/wk_dev";
1213
import type { Vector3 } from "viewer/constants";
1314
import type { AnnotationTool, AnnotationToolId } from "viewer/model/accessors/tool_accessor";
1415
import { Toolkits } from "viewer/model/accessors/tool_accessor";
@@ -25,7 +26,6 @@ import type {
2526
import { type DisabledInfo, getDisabledInfoForTools } from "../accessors/disabled_tool_accessor";
2627
import type { UpdateUserBoundingBoxInSkeletonTracingAction } from "../sagas/volume/update_actions";
2728
import type { Tree, TreeGroup } from "../types/tree_types";
28-
import { WkDevFlags } from "viewer/api/wk_dev";
2929

3030
function convertServerBoundingBoxToBoundingBoxMinMaxType(
3131
boundingBox: BoundingBoxProto,

frontend/javascripts/viewer/model/reducers/update_action_application/skeleton.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
getTree,
66
getTreeGroupsMap,
77
} from "viewer/model/accessors/skeletontracing_accessor";
8+
import { changeUserBoundingBoxAction } from "viewer/model/actions/annotation_actions";
89
import {
910
setActiveNodeAction,
1011
setTreeEdgeVisibilityAction,
@@ -15,6 +16,7 @@ import EdgeCollection from "viewer/model/edge_collection";
1516
import type { ApplicableSkeletonServerUpdateAction } from "viewer/model/sagas/volume/update_actions";
1617
import type { Tree, TreeGroup } from "viewer/model/types/tree_types";
1718
import type { Reducer, WebknossosState } from "viewer/store";
19+
import { updateUserBoundingBox } from "../annotation_reducer";
1820
import {
1921
getMaximumNodeId,
2022
setExpandedTreeGroups,
@@ -25,8 +27,6 @@ import {
2527
applyDeleteUserBoundingBox,
2628
applyUpdateUserBoundingBox,
2729
} from "./bounding_box";
28-
import { updateUserBoundingBox } from "../annotation_reducer";
29-
import { changeUserBoundingBoxAction } from "viewer/model/actions/annotation_actions";
3030
import { withoutActionTimestamp, withoutServerSpecificFields } from "./shared_update_helper";
3131

3232
export function applySkeletonUpdateActionsFromServer(

frontend/javascripts/viewer/model/reducers/update_action_application/volume.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import { mapGroups } from "viewer/model/accessors/skeletontracing_accessor";
12
import { getVolumeTracingById } from "viewer/model/accessors/volumetracing_accessor";
3+
import { changeUserBoundingBoxAction } from "viewer/model/actions/annotation_actions";
24
import {
35
removeSegmentAction,
46
setActiveCellAction,
@@ -7,20 +9,18 @@ import {
79
} from "viewer/model/actions/volumetracing_actions";
810
import type { ApplicableVolumeUpdateAction } from "viewer/model/sagas/volume/update_actions";
911
import type { Segment, WebknossosState } from "viewer/store";
12+
import { updateUserBoundingBox } from "../annotation_reducer";
1013
import {
14+
type VolumeTracingReducerAction,
1115
setSegmentGroups,
1216
toggleSegmentGroupReducer,
13-
type VolumeTracingReducerAction,
1417
} from "../volumetracing_reducer";
1518
import { setLargestSegmentIdReducer } from "../volumetracing_reducer_helpers";
1619
import {
1720
applyAddUserBoundingBox,
1821
applyDeleteUserBoundingBox,
1922
applyUpdateUserBoundingBox,
2023
} from "./bounding_box";
21-
import { mapGroups } from "viewer/model/accessors/skeletontracing_accessor";
22-
import { updateUserBoundingBox } from "../annotation_reducer";
23-
import { changeUserBoundingBoxAction } from "viewer/model/actions/annotation_actions";
2424

2525
export function applyVolumeUpdateActionsFromServer(
2626
actions: ApplicableVolumeUpdateAction[],

frontend/javascripts/viewer/model/sagas/saving/save_queue_draining.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { WkDevFlags } from "viewer/api/wk_dev";
1515
import { ControlModeEnum } from "viewer/constants";
1616
import { getMagInfo } from "viewer/model/accessors/dataset_accessor";
1717
import {
18-
dispatchEnsureHasNewestVersionAsync,
1918
dispatchEnsureHasAnnotationMutexAsync,
19+
dispatchEnsureHasNewestVersionAsync,
2020
doneSavingAction,
2121
setLastSaveTimestampAction,
2222
setSaveBusyAction,

frontend/javascripts/viewer/model/sagas/saving/save_saga.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ import ErrorHandling from "libs/error_handling";
33
import Toast from "libs/toast";
44
import { getAdaptToTypeFunction, sleep } from "libs/utils";
55
import _ from "lodash";
6-
import { buffers, type Channel } from "redux-saga";
6+
import { type Channel, buffers } from "redux-saga";
77
import { actionChannel, call, delay, flush, fork, put, race, takeEvery } from "typed-redux-saga";
88
import type { APIUpdateActionBatch } from "types/api_types";
99
import { WkDevFlags } from "viewer/api/wk_dev";
10+
import type { Action } from "viewer/model/actions/actions";
1011
import {
11-
dispatchEnsureTracingsWereDiffedToSaveQueueAction,
1212
type EnsureHasNewestVersionAction,
13+
dispatchEnsureTracingsWereDiffedToSaveQueueAction,
1314
finishedApplyingMissingUpdatesAction,
1415
finishedRebaseAction,
1516
prepareRebaseAction,
@@ -45,7 +46,6 @@ import type {
4546
} from "../volume/update_actions";
4647
import { pushSaveQueueAsync } from "./save_queue_draining";
4748
import { setupSavingForAnnotation, setupSavingForTracingType } from "./save_queue_filling";
48-
import type { Action } from "viewer/model/actions/actions";
4949

5050
export function* setupSavingToServer(): Saga<void> {
5151
// This saga continuously drains the save queue by sending its content to the server.

0 commit comments

Comments
 (0)