aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-07-25 12:29:35 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-07-25 12:29:35 -0400
commitce71ea9b87427e41c65012c297aab9afc712b4ba (patch)
tree52f7b7f46be3422a6fcae0b44c2703a6d05fa4e0 /src/client/views/collections/collectionFreeForm
parent7a236b1dbd609827828010f52df8eed6e54b6cd5 (diff)
parentb4888c53bcc4eb9a37ed4b3dac740bfffc64d3c5 (diff)
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index bd5c6f84b..701574cfc 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -32,7 +32,10 @@ import { OverlayView, OverlayElementOptions } from "../../OverlayView";
import { ScriptBox } from "../../ScriptBox";
import { CompileScript } from "../../../util/Scripting";
import { CognitiveServices } from "../../../cognitive_services/CognitiveServices";
+import { library } from "@fortawesome/fontawesome-svg-core";
+import { faEye } from "@fortawesome/free-regular-svg-icons";
+library.add(faEye);
export const panZoomSchema = createSchema({
panX: "number",
@@ -519,8 +522,10 @@ export class CollectionFreeFormView extends CollectionSubView(PanZoomDocument) {
if (!data) {
return;
}
- CognitiveServices.Inking.analyze(data.inkData, Doc.GetProto(this.props.Document));
- }
+ let target = Doc.GetProto(this.props.Document);
+ let relevantKeys = ["inkAnalysis", "handwriting"];
+ CognitiveServices.Inking.Manager.analyzer(target, relevantKeys, data.inkData);
+ }, icon: "eye"
});
}