Skip to content

Commit

Permalink
GH-1377: Extract move and zoom features from accessibility to own module
Browse files Browse the repository at this point in the history
  • Loading branch information
haydar-metin committed Nov 19, 2024
1 parent f6d49f9 commit 0c9ace0
Show file tree
Hide file tree
Showing 28 changed files with 1,071 additions and 545 deletions.
6 changes: 5 additions & 1 deletion packages/client/src/default-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import { hoverModule } from './features/hover/hover-module';
import { labelEditUiModule } from './features/label-edit-ui/label-edit-ui-module';
import { labelEditModule } from './features/label-edit/label-edit-module';
import { layoutModule } from './features/layout/layout-module';
import { keyboardMoveModule } from './features/move/move-module';
import { navigationModule } from './features/navigation/navigation-module';
import { routingModule } from './features/routing/routing-module';
import { selectModule } from './features/select/select-module';
Expand All @@ -61,6 +62,7 @@ import { nodeCreationToolModule } from './features/tools/node-creation/node-crea
import { toolFocusLossModule } from './features/tools/tool-focus-loss-module';
import { markerNavigatorModule, validationModule } from './features/validation/validation-modules';
import { viewportModule } from './features/viewport/viewport-modules';
import { keyboardZoomModule } from './features/zoom/zoom-module';

export const DEFAULT_MODULES = [
defaultModule,
Expand Down Expand Up @@ -99,7 +101,9 @@ export const DEFAULT_MODULES = [
validationModule,
zorderModule,
svgMetadataModule,
statusModule
statusModule,
keyboardMoveModule,
keyboardZoomModule
] as const;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { configureFocusTrackerTool } from './focus-tracker/focus-tracker-module'
import { configureShortcutHelpTool } from './key-shortcut/shortcut-help-module';
import { configureKeyboardControlTools } from './keyboard-pointer/keyboard-pointer-module';
import { configureKeyboardToolPaletteTool } from './keyboard-tool-palette/keyboard-tool-palette-module';
import { configureMoveZoom } from './move-zoom/move-zoom-module';
import { configureResizeTools } from './resize-key-tool/resize-key-module';
import { configureSearchPaletteModule } from './search/search-palette-module';
import { configureToastTool } from './toast/toast-module';
Expand All @@ -34,7 +33,6 @@ export const accessibilityModule = new FeatureModule(
const context = { bind, unbind, isBound, rebind };
configureResizeTools(context);
configureViewKeyTools(context);
configureMoveZoom(context);
configureSearchPaletteModule(context);
configureShortcutHelpTool(context);
configureKeyboardToolPaletteTool(context);
Expand Down

This file was deleted.

182 changes: 0 additions & 182 deletions packages/client/src/features/accessibility/move-zoom/zoom-handler.ts

This file was deleted.

Loading

0 comments on commit 0c9ace0

Please sign in to comment.