diff options
| author | vkalev <vjk1883@gmail.com> | 2021-09-03 13:18:46 -0400 |
|---|---|---|
| committer | vkalev <vjk1883@gmail.com> | 2021-09-03 13:18:46 -0400 |
| commit | 15bc374105eb7c55493d9ca6c2b12f9bf22735c9 (patch) | |
| tree | f08ffe9ef4f7155f026e0a5362033990ff8b13f7 /src/client/views/DocumentDecorations.tsx | |
| parent | 8ab10535c0fa07247f88902089ffc23f56a22d7d (diff) | |
adding ComponentDecorations
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 3ffbb2904..2348c897b 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -457,24 +457,6 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number, P bounds.b = Math.max(bounds.y, Math.max(topBounds, Math.min(window.innerHeight, bounds.b + this._resizeBorderWidth / 2 + this._linkBoxHeight) - this._resizeBorderWidth / 2 - this._linkBoxHeight)); const useRotation = seldoc.rootDoc.type === DocumentType.INK; - const screenData = seldoc.ComponentView?.screenStrokeData?.(); - let selectedLine = (null); - if (screenData) { - const inkDoc = seldoc.props.Document; - const overlayWidth = 10; - selectedLine = <div className="documentDecorations-inkstroke" style={{ - width: (bounds.r - bounds.x) + "px", - height: (bounds.b - bounds.y) + "px", - left: bounds.x, - top: bounds.y, - }} > - {InteractionUtils.CreatePolyline(screenData.screenPts, screenData.screenLeft, screenData.screenTop, Colors.MEDIUM_BLUE, overlayWidth, overlayWidth, - StrCast(inkDoc.strokeBezier), StrCast(inkDoc.fillColor, "none"), - StrCast(inkDoc.strokeStartMarker), StrCast(inkDoc.strokeEndMarker), - StrCast(inkDoc.strokeDash), 1, 1, "", "none", 1.0, false)} - - </div> - } return (<div className="documentDecorations" style={{ background: CurrentUserUtils.ActiveDashboard?.darkScheme ? "dimgray" : "" }} > <div className="documentDecorations-background" style={{ @@ -516,7 +498,6 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number, P </> } </div > - {selectedLine} {seldoc?.Document.type === DocumentType.FONTICON ? (null) : <div className="link-button-container" key="links" style={{ left: bounds.x - this._resizeBorderWidth / 2 + 10, top: bounds.b + this._resizeBorderWidth / 2 }}> <DocumentButtonBar views={SelectionManager.Views} /> </div>} |
