diff options
author | Zachary Zhang <zacharyzhang7@gmail.com> | 2024-07-26 13:48:10 -0400 |
---|---|---|
committer | Zachary Zhang <zacharyzhang7@gmail.com> | 2024-07-26 13:48:10 -0400 |
commit | 6d381342973bf60a1f67d6558e2dc088b77ecb2f (patch) | |
tree | d42071888f08927263dcf4c97763260d9d2c70cc | |
parent | b8d9c7ad67191316b764cf18eb2fc666592fb6b3 (diff) |
got child docs in gesture overlay
-rw-r--r-- | src/client/views/GestureOverlay.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/views/GestureOverlay.tsx b/src/client/views/GestureOverlay.tsx index dd80418c8..c2fe60e21 100644 --- a/src/client/views/GestureOverlay.tsx +++ b/src/client/views/GestureOverlay.tsx @@ -31,6 +31,7 @@ import { Transform } from '../util/Transform'; import './GestureOverlay.scss'; import { ObservableReactComponent } from './ObservableReactComponent'; import { ActiveFillColor, DocumentView } from './nodes/DocumentView'; +import { CollectionFreeFormView } from './collections/collectionFreeForm'; export enum ToolglassTools { InkToText = 'inktotext', @@ -131,8 +132,15 @@ export class GestureOverlay extends ObservableReactComponent<React.PropsWithChil // SetActiveArrowEnd('none'); } } + isScribble() { + const ffView = DocumentView.allViews().find(view => view.ComponentView instanceof CollectionFreeFormView); + if ((ffView?.ComponentView as CollectionFreeFormView).childDocs) { + console.log((ffView?.ComponentView as CollectionFreeFormView).childDocs.length); + } + } @action onPointerUp = () => { + this.isScribble(); console.log('pointer up'); DocumentView.DownDocView = undefined; if (this._points.length > 1) { |