From 33cb4ee1c5a6ff07f2c1096d94259c0e2999f1c1 Mon Sep 17 00:00:00 2001 From: Aubrey Li Date: Tue, 15 Mar 2022 18:59:41 -0400 Subject: marquee create slide --- src/client/views/nodes/trails/PresBox.tsx | 49 +++++++++++++++++++------------ 1 file changed, 31 insertions(+), 18 deletions(-) (limited to 'src/client/views/nodes') diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx index 48223a5f0..5a7604ca4 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -94,6 +94,8 @@ export class PresBox extends ViewBoxBaseComponent @observable _expandBoolean: boolean = false; private _disposers: { [name: string]: IReactionDisposer } = {}; + + @observable static startMarquee: boolean = false; // onclick "+ new slide" in presentation mode, set as true, then when marquee selection finish, onPointerUp automatically triggers PinWithView @observable private transitionTools: boolean = false; @observable private newDocumentTools: boolean = false; @observable private progressivizeTools: boolean = false; @@ -2422,6 +2424,11 @@ export class PresBox extends ViewBoxBaseComponent else this.pauseAutoPres(); } + @action + startMarqueeCreateSlide = () => { + PresBox.startMarquee = true; + } + render() { // calling this method for keyEvents this.isPres; @@ -2455,24 +2462,30 @@ export class PresBox extends ViewBoxBaseComponent {this.toolbar} {this.newDocumentToolbarDropdown}
- {mode !== CollectionViewType.Invalid ? - - : (null) - } +
+ {mode !== CollectionViewType.Invalid ? + : (null) + } +
+ + { // if the document type is a presentation, then the collection stacking view has a "+ new slide" button at the bottom of the stack +
+ +
}
; } -- cgit v1.2.3-70-g09d2