Skip to content

Commit

Permalink
feat(context-menu): add electron context menu (#790)
Browse files Browse the repository at this point in the history
* feat(context-menu): add electron context menu

removes old context menu plugin and adds context menu with a few examples, including module
duplication

re #789

* fix(duplicate): clone inputlinks on module duplication

* feat: add value reset for module controls

* feat: add context menu item to reset module props to default

* remove module

* fix: stop propagation to prevent context menu

* fix: duplicate expressions and fix duplication position

* fix: fix after merge

* fix: prevent drag on anything other than left mouse button

* fix: remove left margin on module ghost

* fix: prevent user-drag

* fix: prevent grab state change on anything other than left mouse button
  • Loading branch information
2xAA authored Jun 21, 2023
1 parent 00cd620 commit 09c28fd
Show file tree
Hide file tree
Showing 25 changed files with 380 additions and 740 deletions.
4 changes: 3 additions & 1 deletion src/application/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { GROUP_ENABLED } from "./constants";
let imageBitmap;
const imageBitmapQueue = [];

export default class ModV {
class ModV {
_mediaStream;
_imageCapture;
setupMedia = setupMedia;
Expand Down Expand Up @@ -329,3 +329,5 @@ export default class ModV {
this.store.commit("fonts/SET_LOCAL_FONTS", fonts);
}
}

export default new ModV();
323 changes: 0 additions & 323 deletions src/application/plugins/context-menu/Menu.vue

This file was deleted.

30 changes: 0 additions & 30 deletions src/application/plugins/context-menu/MenuHandler.vue

This file was deleted.

Loading

0 comments on commit 09c28fd

Please sign in to comment.