aboutsummaryrefslogtreecommitdiff
path: root/src/client/northstar/core/brusher
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-03 12:42:32 -0400
committerbob <bcz@cs.brown.edu>2019-04-03 12:42:32 -0400
commit5fbee077873c3dd0a9b5939babbaa1fd4dfe1393 (patch)
tree1418a22161e88c734f51c4e1a117c3957a14115d /src/client/northstar/core/brusher
parentd9076d48a17a4ec2a5b4f4dbd82160bd10f1af22 (diff)
parentc406c8d123ce0aa9d63fb8a4dd90adfe83d2889d (diff)
merged with master
Diffstat (limited to 'src/client/northstar/core/brusher')
-rw-r--r--src/client/northstar/core/brusher/IBaseBrushable.ts13
-rw-r--r--src/client/northstar/core/brusher/IBaseBrusher.ts11
2 files changed, 24 insertions, 0 deletions
diff --git a/src/client/northstar/core/brusher/IBaseBrushable.ts b/src/client/northstar/core/brusher/IBaseBrushable.ts
new file mode 100644
index 000000000..99a36636f
--- /dev/null
+++ b/src/client/northstar/core/brusher/IBaseBrushable.ts
@@ -0,0 +1,13 @@
+import { PIXIPoint } from '../../utils/MathUtil'
+import { IEquatable } from '../../utils/IEquatable';
+import { Document } from '../../../../fields/Document'
+
+export interface IBaseBrushable<T> extends IEquatable {
+ BrusherModels: Array<Document>;
+ BrushColors: Array<number>;
+ Position: PIXIPoint;
+ Size: PIXIPoint;
+}
+export function instanceOfIBaseBrushable<T>(object: any): object is IBaseBrushable<T> {
+ return 'BrusherModels' in object;
+} \ No newline at end of file
diff --git a/src/client/northstar/core/brusher/IBaseBrusher.ts b/src/client/northstar/core/brusher/IBaseBrusher.ts
new file mode 100644
index 000000000..d7ae65464
--- /dev/null
+++ b/src/client/northstar/core/brusher/IBaseBrusher.ts
@@ -0,0 +1,11 @@
+import { PIXIPoint } from '../../utils/MathUtil'
+import { IEquatable } from '../../utils/IEquatable';
+
+
+export interface IBaseBrusher<T> extends IEquatable {
+ Position: PIXIPoint;
+ Size: PIXIPoint;
+}
+export function instanceOfIBaseBrusher<T>(object: any): object is IBaseBrusher<T> {
+ return 'BrushableModels' in object;
+} \ No newline at end of file