diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-14 22:17:54 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-14 22:17:54 -0400 |
| commit | 6c03a4ad74ca93311139e8fecda8a4793c103488 (patch) | |
| tree | 6baa66f82e72e757ffd6d053ec847243ccb663da /src/client/views/PreviewCursor.tsx | |
| parent | 1af6500a4b87fa25506a9b51d8fa7dbc0d68878b (diff) | |
updated header text view. fixed dragging tree view items to unregister listeners. fixed contextMenu icon selection to ignore dashFieldViews. fixed selectOnLoadChar to not apply when a childlayoutstring is specified. fixed dropping text box on item view to only use json parseable text.
Diffstat (limited to 'src/client/views/PreviewCursor.tsx')
| -rw-r--r-- | src/client/views/PreviewCursor.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/PreviewCursor.tsx b/src/client/views/PreviewCursor.tsx index 7575aa430..ee5a390a7 100644 --- a/src/client/views/PreviewCursor.tsx +++ b/src/client/views/PreviewCursor.tsx @@ -22,7 +22,7 @@ export class PreviewCursor extends React.Component<{}> { static _getTransform: () => Transform; static _addDocument: (doc: Doc | Doc[]) => void; static _addLiveTextDoc: (doc: Doc) => void; - static _nudge?: (x: number, y: number) => boolean; + static _nudge?: undefined | ((x: number, y: number) => boolean); @observable static _clickPoint = [0, 0]; @observable public static Visible = false; constructor(props: any) { @@ -158,7 +158,7 @@ export class PreviewCursor extends React.Component<{}> { addLiveText: (doc: Doc) => void, getTransform: () => Transform, addDocument: (doc: Doc | Doc[]) => boolean, - nudge: (nudgeX: number, nudgeY: number) => boolean) { + nudge: undefined | ((nudgeX: number, nudgeY: number) => boolean)) { this._clickPoint = [x, y]; this._onKeyPress = onKeyPress; this._addLiveTextDoc = addLiveText; |
