-
-
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
22b4947
commit f5eece6
Showing
68 changed files
with
1,008 additions
and
58 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
19 changes: 19 additions & 0 deletions
19
projects/f-flow/src/domain/emit-transform-changes/emit-transform-changes.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { EmitTransformChangesRequest } from './emit-transform-changes.request'; | ||
import { Injectable } from '@angular/core'; | ||
import { FExecutionRegister, IExecution } from '../../infrastructure'; | ||
import { FTransformStore } from '../../f-storage'; | ||
|
||
@Injectable() | ||
@FExecutionRegister(EmitTransformChangesRequest) | ||
export class EmitTransformChangesExecution | ||
implements IExecution<EmitTransformChangesRequest, void> { | ||
|
||
constructor( | ||
private fTransformStore: FTransformStore, | ||
) { | ||
} | ||
|
||
public handle(request: EmitTransformChangesRequest): void { | ||
this.fTransformStore.changes.next(); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
projects/f-flow/src/domain/emit-transform-changes/emit-transform-changes.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export class EmitTransformChangesRequest { | ||
|
||
} |
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,3 @@ | ||
export * from './emit-transform-changes.execution'; | ||
|
||
export * from './emit-transform-changes.request'; |
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
3 changes: 3 additions & 0 deletions
3
projects/f-flow/src/domain/subscribe-on-transform-changes/index.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,3 @@ | ||
export * from './subscribe-on-transform-changes.execution'; | ||
|
||
export * from './subscribe-on-transform-changes.request'; |
20 changes: 20 additions & 0 deletions
20
...low/src/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { SubscribeOnTransformChangesRequest } from './subscribe-on-transform-changes.request'; | ||
import { Injectable } from '@angular/core'; | ||
import { Observable } from 'rxjs'; | ||
import { FTransformStore } from '../../f-storage'; | ||
import { FExecutionRegister, IExecution } from '../../infrastructure'; | ||
|
||
@Injectable() | ||
@FExecutionRegister(SubscribeOnTransformChangesRequest) | ||
export class SubscribeOnTransformChangesExecution | ||
implements IExecution<SubscribeOnTransformChangesRequest, Observable<void>> { | ||
|
||
constructor( | ||
private fTransformStore: FTransformStore, | ||
) { | ||
} | ||
|
||
public handle(request: SubscribeOnTransformChangesRequest): Observable<void> { | ||
return this.fTransformStore.changes; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...-flow/src/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export class SubscribeOnTransformChangesRequest { | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
import { FCanvasComponent } from './f-canvas.component'; | ||
import { FZoomDirective } from './f-zoom'; | ||
|
||
export const F_CANVAS_PROVIDERS = [ | ||
|
||
FCanvasComponent, | ||
|
||
FZoomDirective | ||
]; |
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
15 changes: 15 additions & 0 deletions
15
projects/f-flow/src/f-draggable/i-f-drag-and-drop-plugin.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,15 @@ | ||
import { IPointerEvent } from '@foblex/core'; | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const F_DRAG_AND_DROP_PLUGIN: InjectionToken<IFDragAndDropPlugin> = new InjectionToken<IFDragAndDropPlugin>('F_DRAG_AND_DROP_PLUGIN'); | ||
|
||
export interface IFDragAndDropPlugin { | ||
|
||
onSelect?(event: Event): void; | ||
|
||
onPointerDown?(event: IPointerEvent): void; | ||
|
||
prepareDragSequence?(event: IPointerEvent): void; | ||
|
||
onPointerUp?(event: IPointerEvent): void; | ||
} |
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
Oops, something went wrong.