Move singleton object into JSONNode
This commit is contained in:
parent
b99d4b4d5d
commit
c441663528
|
@ -11,7 +11,6 @@
|
|||
STATE_SEARCH_VALUE,
|
||||
INDENTATION_WIDTH
|
||||
} from '../constants.js'
|
||||
import { singleton } from '../singleton.js'
|
||||
import {
|
||||
getPlainText,
|
||||
isAppendNodeSelector,
|
||||
|
@ -40,6 +39,12 @@
|
|||
export let onSelect
|
||||
export let selection
|
||||
|
||||
const singleton = {
|
||||
mousedown: false,
|
||||
selectionAnchor: null, // Path
|
||||
selectionFocus: null // Path
|
||||
}
|
||||
|
||||
$: expanded = state && state[STATE_EXPANDED]
|
||||
$: limit = state && state[STATE_LIMIT]
|
||||
$: props = state && state[STATE_PROPS]
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
export const singleton = {
|
||||
mousedown: false,
|
||||
selectionAnchor: null, // Path
|
||||
selectionFocus: null // Path
|
||||
}
|
Loading…
Reference in New Issue