aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-07-25 15:00:19 -0400
committerbob <bcz@cs.brown.edu>2019-07-25 15:00:19 -0400
commit5506a14f2e0ad2581e123320b620d84a1afc4e20 (patch)
treee058bd11f714416199a24132e44684afa3925628 /src/client/views/collections/collectionFreeForm
parenteceff76609deaa3e7a60c686b62cb4fd15e9699b (diff)
parentaedebcc5e45f1d015eb4d1a1ba48683648e3630d (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index d39d6f255..15734ce0d 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -32,7 +32,11 @@ 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";
+import { faTable } from "@fortawesome/free-solid-svg-icons";
+library.add(faEye, faTable);
export const panZoomSchema = createSchema({
panX: "number",
@@ -489,6 +493,7 @@ export class CollectionFreeFormView extends CollectionSubView(PanZoomDocument) {
onContextMenu = () => {
ContextMenu.Instance.addItem({
description: "Arrange contents in grid",
+ icon: "table",
event: async () => {
const docs = await DocListCastAsync(this.Document[this.props.fieldKey]);
UndoManager.RunInBatch(() => {
@@ -522,7 +527,7 @@ export class CollectionFreeFormView extends CollectionSubView(PanZoomDocument) {
let target = Doc.GetProto(this.props.Document);
let relevantKeys = ["inkAnalysis", "handwriting"];
CognitiveServices.Inking.Manager.analyzer(target, relevantKeys, data.inkData);
- }
+ }, icon: "eye"
});
}