-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f77a40a
commit da48fbc
Showing
121 changed files
with
1,253 additions
and
1,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ | |
@include flow-common.node; | ||
} | ||
|
||
.toolbar { | ||
@include flow-common.toolbar; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ll-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.request.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { FNodeOutletDirective, FNodeOutputDirective } from '../../../f-connectors'; | ||
import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors'; | ||
|
||
export class GetAllCanBeConnectedInputsAndRectsRequest { | ||
|
||
constructor( | ||
public fOutput: FNodeOutputDirective | FNodeOutletDirective, | ||
public fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase, | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export type FEventTrigger = (event: TriggerEvent) => boolean; | ||
|
||
export type TriggerEvent = MouseEvent | TouchEvent | WheelEvent; | ||
|
||
export function isValidEventTrigger(event: TriggerEvent, fTrigger: FEventTrigger): boolean { | ||
return fTrigger(event); | ||
} | ||
|
||
export function defaultEventTrigger(event: TriggerEvent): boolean { | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 5 additions & 8 deletions
13
projects/f-flow/src/domain/f-selection/clear-selection/clear-selection.execution.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
import { ClearSelectionRequest } from './clear-selection.request'; | ||
import { Injectable } from '@angular/core'; | ||
import { inject, Injectable } from '@angular/core'; | ||
import { FExecutionRegister, IExecution } from '@foblex/mediator'; | ||
import { FDraggableDataContext } from '../../../f-draggable'; | ||
|
||
@Injectable() | ||
@FExecutionRegister(ClearSelectionRequest) | ||
export class ClearSelectionExecution implements IExecution<ClearSelectionRequest, void> { | ||
|
||
constructor( | ||
private fDraggableDataContext: FDraggableDataContext, | ||
) { | ||
} | ||
private _fDraggableDataContext = inject(FDraggableDataContext); | ||
|
||
public handle(request: ClearSelectionRequest): void { | ||
this.fDraggableDataContext.selectedItems.forEach((x) => x.deselect()); | ||
this.fDraggableDataContext.selectedItems = []; | ||
this.fDraggableDataContext.isSelectedChanged = true; | ||
this._fDraggableDataContext.selectedItems.forEach((x) => x.unmarkAsSelected()); | ||
this._fDraggableDataContext.selectedItems = []; | ||
this._fDraggableDataContext.isSelectedChanged = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...ow/src/domain/f-selection/get-can-be-selected-items/i-can-be-selected-element-and-rect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { IRect } from '@foblex/2d'; | ||
import { ISelectable } from '../../../mixins'; | ||
|
||
export interface ICanBeSelectedElementAndRect { | ||
|
||
element: ISelectable; | ||
|
||
fRect: IRect; | ||
} |
9 changes: 0 additions & 9 deletions
9
projects/f-flow/src/domain/f-selection/get-can-be-selected-items/i-can-be-selected.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.