From b03be7d0cb63c36c74f3f4ee7524459846e0b9ea Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 30 Sep 2020 18:24:01 -0400 Subject: fixed performance issue with links --- src/client/views/animationtimeline/Timeline.tsx | 1 - src/client/views/nodes/DocumentView.tsx | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/client/views') diff --git a/src/client/views/animationtimeline/Timeline.tsx b/src/client/views/animationtimeline/Timeline.tsx index e0935285f..093310755 100644 --- a/src/client/views/animationtimeline/Timeline.tsx +++ b/src/client/views/animationtimeline/Timeline.tsx @@ -484,7 +484,6 @@ export class Timeline extends React.Component { render() { setTimeout(() => this.changeLengths(), 0); - trace(); // change visible and total width return (
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index ba762d01a..921b7fdd7 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -987,9 +987,9 @@ export class DocumentView extends DocComponent(Docu anchorPanelWidth = () => this.props.PanelWidth() || 1; anchorPanelHeight = () => this.props.PanelHeight() || 1; - @computed.struct get directLinks() { return LinkManager.Instance.getAllDirectLinks(this.rootDoc); } - @computed.struct get allLinks() { return DocListCast(this.Document.links); } - @computed.struct get allAnchors() { + @computed get directLinks() { TraceMobx(); return LinkManager.Instance.getAllDirectLinks(this.rootDoc); } + @computed get allLinks() { TraceMobx(); return DocListCast(this.Document.links); } + @computed get allAnchors() { TraceMobx(); if (this.props.LayoutTemplateString?.includes("LinkAnchorBox")) return null; if ((this.props.treeViewDoc && this.props.LayoutTemplateString) || // render nothing for: tree view anchor dots -- cgit v1.2.3-70-g09d2