diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-23 22:07:13 -0400 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-23 22:07:13 -0400 |
| commit | cb95d4b43238538f59babcaa0b0d9dabb9b393b7 (patch) | |
| tree | 4e4128919d0a839bedb9e81dc6a74245ed6e183d /src/new_fields/InkField.ts | |
| parent | d880e4b2fcb4e7bab3ee25d63209b173efcf37c0 (diff) | |
Ink recognition and presentation view toggle
Diffstat (limited to 'src/new_fields/InkField.ts')
| -rw-r--r-- | src/new_fields/InkField.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/new_fields/InkField.ts b/src/new_fields/InkField.ts index 39c6c8ce3..8f64c1c2e 100644 --- a/src/new_fields/InkField.ts +++ b/src/new_fields/InkField.ts @@ -19,6 +19,8 @@ export interface StrokeData { page: number; } +export type InkData = Map<string, StrokeData>; + const pointSchema = createSimpleSchema({ x: true, y: true }); @@ -31,9 +33,9 @@ const strokeDataSchema = createSimpleSchema({ @Deserializable("ink") export class InkField extends ObjectField { @serializable(map(object(strokeDataSchema))) - readonly inkData: Map<string, StrokeData>; + readonly inkData: InkData; - constructor(data?: Map<string, StrokeData>) { + constructor(data?: InkData) { super(); this.inkData = data || new Map; } |
