-
-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from SkalskiP/develop
1.2.0-alpha relese merge
- Loading branch information
Showing
78 changed files
with
2,035 additions
and
528 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: node_js | ||
node_js: | ||
- "stable" | ||
cache: | ||
directories: | ||
- node_modules | ||
script: | ||
- npm test | ||
- npm run test:coverage | ||
- npm run build |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,4 @@ | ||
export enum AcceptedFileType { | ||
IMAGE = 'image/jpeg, image/png', | ||
TEXT = 'text/plain' | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export enum Context { | ||
EDITOR = "EDITOR", | ||
LEFT_NAVBAR = "LEFT_NAVBAR", | ||
RIGHT_NAVBAR = "RIGHT_NAVBAR", | ||
POPUP = "POPUP", | ||
DROPDOWN = "DROPDOWN" | ||
} |
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,6 +1,8 @@ | ||
export enum CustomCursorStyle { | ||
DEFAULT = "DEFAULT", | ||
MOVE = "MOVE", | ||
TRANSFORM = "TRANSFORM", | ||
HOVER = "HOVER" | ||
RESIZE = "RESIZE", | ||
ADD = "ADD", | ||
CANCEL = "CANCEL", | ||
CLOSE = "CLOSE" | ||
} |
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 @@ | ||
import {IPoint} from "../interfaces/IPoint"; | ||
import {IRect} from "../interfaces/IRect"; | ||
import {ISize} from "../interfaces/ISize"; | ||
|
||
export interface EditorData { | ||
mousePositionOnCanvas: IPoint, | ||
canvasSize: ISize, | ||
activeImageScale: number, | ||
activeImageRectOnCanvas: IRect, | ||
event?: Event | ||
} |
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,7 @@ | ||
export enum EventType { | ||
MOUSE_UP = "mouseup", | ||
MOUSE_DOWN = "mousedown", | ||
MOUSE_MOVE = "mousemove", | ||
KEY_DOWN = "keydown", | ||
KEY_UP = "keyup" | ||
} |
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,4 @@ | ||
export type HotKeyAction = { | ||
keyCombo: string[]; | ||
action: (event: KeyboardEvent) => any; | ||
} |
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 {IExportFormat} from "../interfaces/IExportFormat"; | ||
import {ExportFormatType} from "./ExportFormatType"; | ||
|
||
export const PolygonExportFormatData: IExportFormat[] = [ | ||
{ | ||
type: ExportFormatType.VGG_JSON, | ||
label: "Single file in VGG JSON format." | ||
} | ||
]; |
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,33 @@ | ||
export interface VGGShape {} | ||
|
||
export interface VGGRect extends VGGShape { | ||
name: string, | ||
x: number, | ||
y: number, | ||
width: number, | ||
height: number | ||
} | ||
|
||
export interface VGGPolygon extends VGGShape { | ||
name: string, | ||
all_points_x: number[], | ||
all_points_y: number[] | ||
} | ||
|
||
export interface VGGRegion { | ||
shape_attributes: VGGShape, | ||
region_attributes: { [key:string]:string; } | ||
} | ||
|
||
export type VGGRegionsData = { [key: string]: VGGRegion; } | ||
|
||
export type VGGFileData = { | ||
fileref: string; | ||
size: number; | ||
filename: string; | ||
base64_img_data: string; | ||
file_attributes: object; | ||
regions: VGGRegionsData; | ||
} | ||
|
||
export type VGGObject = { [key: string]: VGGFileData; } |
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,6 @@ | ||
import {IPoint} from "./IPoint"; | ||
|
||
export interface ILine { | ||
start: IPoint, | ||
end: IPoint | ||
} |
Oops, something went wrong.