diff options
Diffstat (limited to 'src/client/views/nodes/trails/PresElementBox.tsx')
| -rw-r--r-- | src/client/views/nodes/trails/PresElementBox.tsx | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/client/views/nodes/trails/PresElementBox.tsx b/src/client/views/nodes/trails/PresElementBox.tsx index 6725307db..99fc61cde 100644 --- a/src/client/views/nodes/trails/PresElementBox.tsx +++ b/src/client/views/nodes/trails/PresElementBox.tsx @@ -43,12 +43,6 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() { @computed get presBox() { return Cast(this.lookupField("presBox"), Doc, null); } @computed get targetDoc() { return Cast(this.rootDoc.presentationTargetDoc, Doc, null) || this.rootDoc; } - - @observable isShowingVideo = false; - @action setIsShowingVideo(shown: boolean) { - this.isShowingVideo = shown - } - componentDidMount() { this.layoutDoc.hideLinkButton = true; this._heightDisposer = reaction(() => [this.rootDoc.presExpandInlineButton, this.collapsedHeight], @@ -57,6 +51,11 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() { componentWillUnmount() { this._heightDisposer?.(); } + + @action + presExpandDocumentClick = () => { + this.rootDoc.presExpandInlineButton = !this.rootDoc.presExpandInlineButton; + } /** * Returns a local transformed coordinate array for given coordinates. @@ -82,7 +81,6 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() { Document={this.targetDoc} DataDoc={this.targetDoc[DataSym] !== this.targetDoc && this.targetDoc[DataSym]} styleProvider={this.styleProvider} - layerProvider={this.props.layerProvider} docViewPath={returnEmptyDoclist} rootSelected={returnTrue} addDocument={returnFalse} @@ -287,7 +285,6 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() { @undoBatch @action hideRecording = () => { - console.log("hide recording") DocListCast((Doc.UserDoc().myOverlayDocs as Doc).data).forEach((doc) => { if (doc.slides === this.rootDoc) { Doc.RemoveDocFromList((Doc.UserDoc().myOverlayDocs as Doc), undefined, doc); @@ -306,8 +303,6 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() { }) if (activeItem.recording) { // if we already have an existing recording - console.log(activeItem.recording) - console.log(Cast(activeItem.recording, Doc, null)) Doc.AddDocToList((Doc.UserDoc().myOverlayDocs as Doc), undefined, Cast(activeItem.recording, Doc, null)); } @@ -325,13 +320,9 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() { if (activeItem.recording) { // if we already have an existing recording - console.log("recording exists") - console.log(activeItem.recording) - console.log(Cast(activeItem.recording, Doc, null)) Doc.AddDocToList((Doc.UserDoc().myOverlayDocs as Doc), undefined, Cast(activeItem.recording, Doc, null)); } else { - console.log("creating new recording") // if we dont have any recording const recording = Docs.Create.WebCamDocument("", { _width: 400, _height: 200, title: "recording", cloneFieldFilter: new List<string>(["system"]) }); @@ -343,7 +334,6 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() { const pt = this.props.ScreenToLocalTransform().inverse().transformPoint(0, 0); recording.x = pt[0]; recording.y = pt[1]; - console.log(pt) Doc.AddDocToList((Doc.UserDoc().myOverlayDocs as Doc), undefined, recording); } } |
