Add type to controls and change colour types
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Vector2 from "../helpers/Vector2";
|
||||
import { Color } from "../helpers/colors";
|
||||
|
||||
export type DrawingToolType =
|
||||
| "brush"
|
||||
@@ -11,7 +12,7 @@ export type DrawingToolType =
|
||||
|
||||
export type DrawingToolSettings = {
|
||||
type: DrawingToolType;
|
||||
color: string;
|
||||
color: Color;
|
||||
useBlending: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import Vector2 from "../helpers/Vector2";
|
||||
import { Color } from "../helpers/colors";
|
||||
|
||||
export type FogToolType =
|
||||
| "polygon"
|
||||
@@ -20,7 +21,7 @@ export type FogData = {
|
||||
};
|
||||
|
||||
export type Fog = {
|
||||
color: string;
|
||||
color: Color;
|
||||
data: FogData;
|
||||
id: string;
|
||||
strokeWidth: number;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { Color } from "../helpers/colors";
|
||||
|
||||
export type Note = {
|
||||
id: string;
|
||||
color: string;
|
||||
color: Color;
|
||||
lastModified: number;
|
||||
lastModifiedBy: string;
|
||||
locked: boolean;
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import Vector2 from "../helpers/Vector2";
|
||||
import { Color } from "../helpers/colors";
|
||||
|
||||
export type PointerToolSettings = {
|
||||
color: string;
|
||||
color: Color;
|
||||
};
|
||||
|
||||
export type PointerState = {
|
||||
position: Vector2;
|
||||
visible: boolean;
|
||||
id: string;
|
||||
color: string;
|
||||
color: Color;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user