Skip to content

Commit

Permalink
zoom actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-jg committed Sep 27, 2021
1 parent 6bb39c1 commit 49f84d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ class EditorClass {
{ id: Actions.MOVE_RIGHT_10, shortcuts: ['shift+ArrowRight'], },

{ id: Actions.ZOOM, shortcuts: ['ctrl+wheel'], },
{ id: Actions.ZOOM_IN, shortcuts: ['ctrl+=', 'ctrl++'], },
{ id: Actions.ZOOM_OUT, shortcuts: ['ctrl+-'], },
{ id: Actions.ZOOM_IN, label: 'zoom in', icon: 'fa-plus', shortcuts: ['ctrl+=', 'ctrl++'], },
{ id: Actions.ZOOM_OUT, label: 'zoom out', icon: 'fa-minus', shortcuts: ['ctrl+-'], },
);

return actions;
Expand Down
3 changes: 3 additions & 0 deletions src/editor-view/actions/actions-toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export class ActionsToolbar extends Widget {
this.createButton(actions.getAction(Actions.TOGGLE_GUIDES));
this.createButton(actions.getAction(Actions.TOGGLE_GIZMOS));
this.createSeparator();
this.createButton(actions.getAction(Actions.ZOOM_OUT));
this.createButton(actions.getAction(Actions.ZOOM_IN));
this.createSeparator();
this.createButton(actions.getAction(Actions.PRINT_OBJECT));
this.createSeparator();
this.createButton(actions.getAction(Actions.UNDO));
Expand Down
3 changes: 2 additions & 1 deletion src/editor-view/game-container/game-container.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ComponentTags } from 'component-tags';
import { ActionHandler, Actions } from 'index';
import { ActionHandler } from 'core/action-handler';
import { Actions } from 'core/actions';
import './game-container.scss';

const MIN_WIDTH = 100;
Expand Down

0 comments on commit 49f84d3

Please sign in to comment.