aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-30 18:24:01 -0400
committerbobzel <zzzman@gmail.com>2020-09-30 18:24:01 -0400
commitb03be7d0cb63c36c74f3f4ee7524459846e0b9ea (patch)
treea243772be5b4c28365a8104acabc83492a7c6d21 /src/client/views
parentf24477e19320ce5055fa5c5e3dd5007d590397a9 (diff)
fixed performance issue with links
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/animationtimeline/Timeline.tsx1
-rw-r--r--src/client/views/nodes/DocumentView.tsx6
2 files changed, 3 insertions, 4 deletions
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<FieldViewProps> {
render() {
setTimeout(() => this.changeLengths(), 0);
- trace();
// change visible and total width
return (
<div style={{ visibility: "visible" }}>
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<DocumentViewProps, Document>(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