aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;