mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
improve(plugin): add editting cursor api & types
This commit is contained in:
@@ -234,8 +234,8 @@ export class LSPluginUser extends EventEmitter<LSPluginUserEvents> implements IL
|
||||
this.caller.call('main-ui:style', style)
|
||||
}
|
||||
|
||||
hideMainUI (): void {
|
||||
const payload = { key: KEY_MAIN_UI, visible: false }
|
||||
hideMainUI (opts?: { restoreEditingCursor: boolean }): void {
|
||||
const payload = { key: KEY_MAIN_UI, visible: false, cursor: opts?.restoreEditingCursor }
|
||||
this.caller.call('main-ui:visible', payload)
|
||||
this.emit('ui:visible:changed', payload)
|
||||
this._ui.set(payload.key, payload)
|
||||
|
||||
Reference in New Issue
Block a user