clapper / src /services /editors /script-editor /getDefaultScriptEditorState.ts
jbilcke-hf's picture
jbilcke-hf HF staff
add linter and prettifier
c1f12bf
raw
history blame
No virus
525 Bytes
import { ScriptEditorState, EditorView } from '@aitube/clapper-services'
export function getDefaultScriptEditorState(): ScriptEditorState {
const state: ScriptEditorState = {
monaco: undefined,
textModel: undefined,
standaloneCodeEditor: undefined,
mouseIsInside: false,
draft: '',
lineNumberToMentionedSegments: {},
scrollHeight: 0,
scrollLeft: 0,
scrollTop: 0,
scrollWidth: 0,
scrollTopInMs: 0,
current: undefined,
version: 0,
history: [],
}
return state
}