-
Notifications
You must be signed in to change notification settings - Fork 3
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
0d36cc5
commit 8dc3533
Showing
105 changed files
with
8,235 additions
and
381 deletions.
There are no files selected for viewing
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
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,18 @@ | ||
/* latin-ext */ | ||
@font-face { | ||
font-family: 'DM Mono'; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-display: swap; | ||
src: url(./DM-Mono-Latin-Ext.woff2) format('woff2'); | ||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
/* latin */ | ||
@font-face { | ||
font-family: 'DM Mono'; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-display: swap; | ||
src: url(./DM-Mono-Latin.woff2) format('woff2'); | ||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | ||
} |
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
26 changes: 26 additions & 0 deletions
26
...ngs_editor/src/assets/scripts/Application/Commands/MappingFileEditor/MappingFileEditor.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,26 @@ | ||
import { AppCommand } from "../AppCommand"; | ||
import { UndoEditorCommand } from "./UndoEditorCommand"; | ||
import { RedoEditorCommand } from "./RedoEditorCommand"; | ||
import type { MappingFileEditor } from "@/assets/scripts/MappingFileEditor"; | ||
|
||
/** | ||
* Undoes the last editor command. | ||
* @param editor | ||
* The {@link MappingFileEditor}. | ||
* @returns | ||
* A command that represents the action. | ||
*/ | ||
export function undoEditorCommand(editor: MappingFileEditor): AppCommand { | ||
return new UndoEditorCommand(editor); | ||
} | ||
|
||
/** | ||
* Redoes the last undone editor command. | ||
* @param editor | ||
* The {@link MappingFileEditor}. | ||
* @returns | ||
* A command that represents the action. | ||
*/ | ||
export function redoEditorCommand(editor: MappingFileEditor): AppCommand { | ||
return new RedoEditorCommand(editor); | ||
} |
30 changes: 30 additions & 0 deletions
30
...ngs_editor/src/assets/scripts/Application/Commands/MappingFileEditor/RedoEditorCommand.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,30 @@ | ||
import { AppCommand } from "../AppCommand"; | ||
import type { MappingFileEditor } from "@/assets/scripts/MappingFileEditor"; | ||
|
||
export class RedoEditorCommand extends AppCommand { | ||
|
||
/** | ||
* The editor to apply the redo operation to. | ||
*/ | ||
private _editor: MappingFileEditor; | ||
|
||
|
||
/** | ||
* Redoes the last undone editor command. | ||
* @param editor | ||
* The {@link MappingFileEditor}. | ||
*/ | ||
constructor(editor: MappingFileEditor) { | ||
super(); | ||
this._editor = editor; | ||
} | ||
|
||
|
||
/** | ||
* Executes the command. | ||
*/ | ||
public execute(): void { | ||
this._editor.redo(); | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
...ngs_editor/src/assets/scripts/Application/Commands/MappingFileEditor/UndoEditorCommand.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,30 @@ | ||
import { AppCommand } from "../AppCommand"; | ||
import type { MappingFileEditor } from "@/assets/scripts/MappingFileEditor"; | ||
|
||
export class UndoEditorCommand extends AppCommand { | ||
|
||
/** | ||
* The editor to apply the undo operation to. | ||
*/ | ||
private _editor: MappingFileEditor; | ||
|
||
|
||
/** | ||
* Undoes the last editor command. | ||
* @param editor | ||
* The {@link MappingFileEditor}. | ||
*/ | ||
constructor(editor: MappingFileEditor) { | ||
super(); | ||
this._editor = editor; | ||
} | ||
|
||
|
||
/** | ||
* Executes the command. | ||
*/ | ||
public execute(): void { | ||
this._editor.undo(); | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
src/mappings_editor/src/assets/scripts/Application/Commands/MappingFileEditor/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 @@ | ||
export * from "./MappingFileEditor"; |
1 change: 1 addition & 0 deletions
1
src/mappings_editor/src/assets/scripts/Application/Commands/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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export * from "./ApplicationSettings"; | ||
export * from "./FileManagement"; | ||
export * from "./MappingFileEditor"; | ||
export * from "./ViewManagement"; | ||
export * from "./AppCommand"; | ||
export * from "./Command"; |
Oops, something went wrong.