Skip to content

Commit

Permalink
update to flow v12.6
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheihuzarevich committed Sep 13, 2024
1 parent 2fec550 commit acd3819
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 15 deletions.
36 changes: 27 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"@angular/platform-browser": "^17.2.0",
"@angular/platform-browser-dynamic": "^17.2.0",
"@angular/router": "^17.2.0",
"@foblex/core": "^1.1.0",
"@foblex/flow": "^12.2.3",
"@foblex/flow": "^12.6.2",
"@foblex/flow-animator": "^16.0.5",
"@foblex/ng-clarc": "^1.0.3",
"@foblex/platform": "^1.0.2",
"@ngxs/store": "^3.8.2",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { Store } from '@ngxs/store';
import { ChangeNodePositionAction, CreateNodeAction, INodeValueModel } from '@domain';
import { EFlowActionPanelEvent } from './action-panel/e-flow-action-panel-event';
import { A, BACKSPACE, DASH, DELETE, NUMPAD_MINUS, NUMPAD_PLUS } from '@angular/cdk/keycodes';
import { BrowserService, EOperationSystem, PlatformService } from '@foblex/platform';

@Component({
selector: 'workflow-editor',
Expand Down Expand Up @@ -101,7 +102,8 @@ export class WorkflowEditorComponent implements OnInit, AfterViewInit, OnDestroy
private router: Router,
private injector: Injector,
private activatedRoute: ActivatedRoute,
private changeDetectorRef: ChangeDetectorRef
private changeDetectorRef: ChangeDetectorRef,
private fPlatform: PlatformService
) {
}

Expand Down Expand Up @@ -233,18 +235,18 @@ export class WorkflowEditorComponent implements OnInit, AfterViewInit, OnDestroy
this.onRemoveItems();
break;
case NUMPAD_PLUS:
if (MouseEventExtensions.isCommandButton(event)) {
if (MouseEventExtensions.isCommandButton(this.fPlatform.getOS() as EOperationSystem, event)) {
this.fZoomDirective.zoomIn();
}
break;
case NUMPAD_MINUS:
case DASH:
if (MouseEventExtensions.isCommandButton(event)) {
if (MouseEventExtensions.isCommandButton(this.fPlatform.getOS() as EOperationSystem, event)) {
this.fZoomDirective.zoomOut();
}
break;
case A:
if (MouseEventExtensions.isCommandButton(event)) {
if (MouseEventExtensions.isCommandButton(this.fPlatform.getOS() as EOperationSystem, event)) {
this.fFlowComponent.selectAll();
}
break;
Expand Down

0 comments on commit acd3819

Please sign in to comment.