aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-31 14:36:46 -0400
committerbobzel <zzzman@gmail.com>2020-08-31 14:36:46 -0400
commit28b904a0a1d8a5d90f128b4487aba047b69bfd70 (patch)
tree1f81d2d05d6691e1beec35d3e12a4cbe8d7dd665 /src/client/views/DocumentDecorations.tsx
parentb0bbd000f608170ae791689b41053d62bf9163d1 (diff)
moved the non-rendering contents of FormatShapePane into InkStrokeProperties.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index de87b8aa5..6951cb592 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -20,11 +20,11 @@ import { undoBatch, UndoManager } from "../util/UndoManager";
import { CollectionDockingView } from './collections/CollectionDockingView';
import { DocumentButtonBar } from './DocumentButtonBar';
import './DocumentDecorations.scss';
-import { FormatShapePane } from './FormatShapePane';
import { DocumentView } from "./nodes/DocumentView";
import React = require("react");
import e = require('express');
import { CurrentUserUtils } from '../util/CurrentUserUtils';
+import { InkStrokeProperties } from './InkStrokeProperties';
@observer
export class DocumentDecorations extends React.Component<{}, { value: string }> {
@@ -332,7 +332,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
const doc = Document(element.rootDoc);
if (doc.type === DocumentType.INK && doc.x && doc.y && doc._width && doc._height) {
this._inkDocs.push({ x: doc.x, y: doc.y, width: doc._width, height: doc._height });
- if (FormatShapePane.Instance._lock) {
+ if (InkStrokeProperties.Instance?._lock) {
doc._nativeHeight = doc._height;
doc._nativeWidth = doc._width;
}
@@ -365,7 +365,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
var fixedAspect = first.layoutDoc._nativeWidth ? NumCast(first.layoutDoc._nativeWidth) / NumCast(first.layoutDoc._nativeHeight) : 0;
SelectionManager.SelectedDocuments().forEach(action((element: DocumentView) => {
const doc = Document(element.rootDoc);
- if (doc.type === DocumentType.INK && doc._width && doc._height && FormatShapePane.Instance._lock) {
+ if (doc.type === DocumentType.INK && doc._width && doc._height && InkStrokeProperties.Instance?._lock) {
fixedAspect = NumCast(doc._nativeWidth) / NumCast(doc._nativeHeight);
}
}));