diff options
author | bobzel <zzzman@gmail.com> | 2024-05-16 11:28:10 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-05-16 11:28:10 -0400 |
commit | 41e47a7b7789e8c192fb31188cf549178ec71a22 (patch) | |
tree | c94ee8ab0e952d633f21483ec8e450a471d2c925 /src/client/views/nodes/DocumentView.tsx | |
parent | fdd0e62c148fde01c82504700a83fcc56463a68d (diff) |
moved isHovering to DocumentView as instance variable instead from FormattedText as a Document field. cleaned up cluster style provider. fixed freeformView to not trigger as many updates when a doc is dropped, and fixed layoutEngines to not return a background or color unless actually set by the engine.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index f56c8288e..66540678d 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -1383,6 +1383,7 @@ export class DocumentView extends DocComponent<DocumentViewProps>() { PanelHeight = () => this.panelHeight; NativeDimScaling = () => this.nativeScaling; hideLinkCount = () => !!this.hideLinkButton; + isHovering = () => this._isHovering; selfView = () => this; /** * @returns Transform to the document view (in the coordinate system of whatever contains the DocumentView) @@ -1449,6 +1450,7 @@ export class DocumentView extends DocComponent<DocumentViewProps>() { <DocumentViewInternal {...this._props} parent={undefined} + isHovering={this.isHovering} fieldKey={this.LayoutFieldKey} DataTransition={this.DataTransition} DocumentView={this.selfView} |