aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaafiyan Ahmed <naafiyan@gmail.com>2022-04-07 17:21:51 -0400
committerNaafiyan Ahmed <naafiyan@gmail.com>2022-04-07 17:21:51 -0400
commit40d746706d4ac3d5c3302d1fe66e6ce1685251f1 (patch)
tree2d91c81cc4a4958d4ea6d3e28d0a0f49e6b51a38 /src
parentef63a072a586f51e8fa51b4684987491287540b2 (diff)
removed redundant commit
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/button/FontIconBox.tsx15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx
index 7f3a667a9..4b7540e1d 100644
--- a/src/client/views/nodes/button/FontIconBox.tsx
+++ b/src/client/views/nodes/button/FontIconBox.tsx
@@ -704,20 +704,6 @@ ScriptingGlobals.add(function toggleItalic(checkResult?: boolean) {
**/
ScriptingGlobals.add(function setActiveInkTool(tool: string, checkResult?: boolean) {
- // if the global collection has documents
- // const unallocInk: Doc[] = DocListCast(Doc.UserDoc().unallocatedInkDocs)
- // if (unallocInk.length) {
- // get collection freeform view from the ink documents
- // with that, we can call gesture overlay getCollection on the view
- // use getDocumentView
- // You would want to call: DocumentManager.Instance.getDocumentView
- // const docView = DocumentManager.Instance.getDocumentView(unallocInk[0])
- // if (docView) {
- // docView.props.ContainingCollectionView
- // }
-
- // easy way without backing up to the server
- //
if (CurrentUserUtils.SelectedTool === InkTool.Write) {
CollectionFreeFormView.collectionsWithUnprocessedInk.forEach(ffView => {
const selected = ffView.unprocessedDocs;
@@ -751,7 +737,6 @@ ScriptingGlobals.add(function setActiveInkTool(tool: string, checkResult?: boole
delete d.activeFrame;
delete d._timecodeToShow; // bcz: this should be automatic somehow.. along with any other properties that were logically associated with the original collection
delete d._timecodeToHide; // bcz: this should be automatic somehow.. along with any other properties that were logically associated with the original collection
- // TODO: nda - actually calc the bounds
// calculate pos based on bounds
if (marqViewRef?.Bounds) {
d.x = dx - marqViewRef.Bounds.left - marqViewRef.Bounds.width / 2;