aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/button/FontIconBox.tsx
diff options
context:
space:
mode:
authorNaafiyan Ahmed <naafiyan@gmail.com>2022-04-28 17:05:21 -0400
committerNaafiyan Ahmed <naafiyan@gmail.com>2022-04-28 17:05:21 -0400
commit89025516860555976e6cd95180ce6a584542fede (patch)
tree35c4eaf15145e8859a9107877d31de8924337fe1 /src/client/views/nodes/button/FontIconBox.tsx
parent4f6b6306803437851959e9ad214fd61a14207a20 (diff)
parent73d52c3c1a0b06e0180999cb876feb6025df31b2 (diff)
merged and getting started on mapping algo
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
-rw-r--r--src/client/views/nodes/button/FontIconBox.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx
index 85130e69e..1c2a22226 100644
--- a/src/client/views/nodes/button/FontIconBox.tsx
+++ b/src/client/views/nodes/button/FontIconBox.tsx
@@ -262,7 +262,7 @@ export class FontIconBox extends DocComponent<ButtonProps>() {
"Comic Sans MS", "Tahoma", "Impact", "Crimson Text"];
}
} catch (e) {
- console.log(e);
+ // console.log(e);
}
// Get items to place into the list
@@ -699,13 +699,13 @@ ScriptingGlobals.add(function toggleItalic(checkResult?: boolean) {
export function checkInksToGroup() {
- console.log("getting here to inks group");
+ // console.log("getting here to inks group");
if (CurrentUserUtils.SelectedTool === InkTool.Write) {
CollectionFreeFormView.collectionsWithUnprocessedInk.forEach(ffView => {
// TODO: nda - will probably want to go through ffView unprocessed docs and then see if any of the inksToGroup docs are in it and only use those
// find all inkDocs in ffView.unprocessedDocs that are within 200 pixels of each other
const inksToGroup = ffView.unprocessedDocs.filter(inkDoc => {
- console.log(inkDoc.x, inkDoc.y);
+ // console.log(inkDoc.x, inkDoc.y);
});
});
}
@@ -767,7 +767,7 @@ export function createInkGroup(inksToGroup?: Doc[]) {
// TODO: nda - will probably need to go through and only remove the unprocessed selected docs
ffView.unprocessedDocs = [];
- InkTranscription.Instance.transcribeInk(newCollection, selected, false, ffView);
+ InkTranscription.Instance.transcribeInk(newCollection, ffView.layoutDoc, selected, false);
});
}
CollectionFreeFormView.collectionsWithUnprocessedInk.clear();
@@ -799,7 +799,7 @@ ScriptingGlobals.add(function setActiveInkTool(tool: string, checkResult?: boole
if (Doc.UserDoc().activeInkTool === tool && !GestureOverlay.Instance.InkShape) {
Doc.UserDoc().activeInkTool = InkTool.None;
} else if (tool == "write") {
- console.log("write mode selected - create groupDoc here!", tool)
+ // console.log("write mode selected - create groupDoc here!", tool)
Doc.UserDoc().activeInkTool = tool;
GestureOverlay.Instance.InkShape = "";
} else {