diff options
| author | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-08-08 18:03:31 -0700 | 
|---|---|---|
| committer | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-08-08 18:03:31 -0700 | 
| commit | 09a7f3711ccc0089b20c1bf9b58679e18b600081 (patch) | |
| tree | d8c16d95c2ec94c0f8eae24a9869361f8cf9eebb /src/fields/InkField.ts | |
| parent | 1032f8b421402371be4e4d62171bc837fdcb4368 (diff) | |
| parent | 301b10ba693dc76ebcd42d3fa4020410f2092bee (diff) | |
Merge branch 'new_audio' of https://github.com/browngraphicslab/Dash-Web into new_audio
Diffstat (limited to 'src/fields/InkField.ts')
| -rw-r--r-- | src/fields/InkField.ts | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/fields/InkField.ts b/src/fields/InkField.ts index 7cfd74cc4..dbe51b24a 100644 --- a/src/fields/InkField.ts +++ b/src/fields/InkField.ts @@ -2,6 +2,7 @@ import { Deserializable } from "../client/util/SerializationHelper";  import { serializable, custom, createSimpleSchema, list, object, map } from "serializr";  import { ObjectField } from "./ObjectField";  import { Copy, ToScriptString, ToString, Update } from "./FieldSymbols"; +import { Scripting } from "../client/util/Scripting";  export enum InkTool {      None = "none", @@ -44,9 +45,11 @@ export class InkField extends ObjectField {      }      [ToScriptString]() { -        return "invalid"; +        return "new InkField([" + this.inkData.map(i => `{X: ${i.X}, Y: ${i.Y}} `) + "])";      }      [ToString]() {          return "InkField";      }  } + +Scripting.addGlobal("InkField", InkField);
\ No newline at end of file | 
