aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GestureOverlay.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/GestureOverlay.tsx')
-rw-r--r--src/client/views/GestureOverlay.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client/views/GestureOverlay.tsx b/src/client/views/GestureOverlay.tsx
index b04769c1e..141e99c66 100644
--- a/src/client/views/GestureOverlay.tsx
+++ b/src/client/views/GestureOverlay.tsx
@@ -102,7 +102,7 @@ export class GestureOverlay extends Touchable<GestureOverlayProps> {
icon: 'clipboard',
pointerUp: 'GestureOverlay.Instance.closeFloatingDoc()',
pointerDown: 'GestureOverlay.Instance.openFloatingDoc(this.clipboard)',
- clipboard: Docs.Create.FreeformDocument([], { _width: 300, _height: 300, system: true }),
+ clipboard: Docs.Create.FreeformDocument([], { _width: 300, _height: 300, isSystem: true }),
backgroundColor: 'orange',
},
{ title: 'interpret text', icon: 'font', toolType: 'inktotext', pointerUp: "setToolglass('none')", pointerDown: 'setToolglass(self.toolType)', backgroundColor: 'orange' },
@@ -125,7 +125,7 @@ export class GestureOverlay extends Touchable<GestureOverlayProps> {
onPointerDown: data.pointerDown ? ScriptField.MakeScript(data.pointerDown) : undefined,
backgroundColor: data.backgroundColor,
dragFactory: data.dragFactory,
- system: true,
+ isSystem: true,
})
);
}
@@ -138,19 +138,19 @@ export class GestureOverlay extends Touchable<GestureOverlayProps> {
ignoreClick: true,
_lockedPosition: true,
title: 'buttons',
- _autoHeight: true,
+ _layout_autoHeight: true,
_yMargin: 5,
linearViewIsExpanded: true,
backgroundColor: 'white',
- system: true,
+ isSystem: true,
});
thumbDoc.inkToTextDoc = Docs.Create.LinearDocument([], {
_width: 300,
_height: 25,
- _autoHeight: true,
+ _layout_autoHeight: true,
linearViewIsExpanded: true,
flexDirection: 'column',
- system: true,
+ isSystem: true,
});
userDoc.thumbDoc = thumbDoc;
}
@@ -916,7 +916,7 @@ export class GestureOverlay extends Touchable<GestureOverlayProps> {
@computed get elements() {
const selView = GestureOverlay.DownDocView;
- const width = Number(ActiveInkWidth()) * NumCast(selView?.rootDoc._viewScale, 1); // * (selView?.props.ScreenToLocalTransform().Scale || 1);
+ const width = Number(ActiveInkWidth()) * NumCast(selView?.rootDoc._freeform_scale, 1); // * (selView?.props.ScreenToLocalTransform().Scale || 1);
const rect = this._overlayRef.current?.getBoundingClientRect();
const B = { left: -20000, right: 20000, top: -20000, bottom: 20000, width: 40000, height: 40000 }; //this.getBounds(this._points, true);
B.left = B.left - width / 2;