options#
Interfaces#
Status#
Defined in: editor/src/options.ts:31
What the open workspace’s file is, reported after every change and every load.
Properties#
dirty#
readonlydirty:boolean
Defined in: editor/src/options.ts:35
Whether the workspace holds changes its file does not.
fileName#
readonlyfileName:string
Defined in: editor/src/options.ts:33
The file the workspace was opened from or last saved to; untitled.tle.json for a new one.
StorageOptions#
Defined in: editor/src/options.ts:10
The names under which an editor keeps the viewer’s state in the browser.
Properties#
inspectorKey#
readonlyinspectorKey:string
Defined in: editor/src/options.ts:14
The localStorage key remembering whether the inspector drawer is open.
profilesKey?#
readonlyoptionalprofilesKey?:string
Defined in: editor/src/options.ts:27
The localStorage key keeping the viewer’s type profiles and lookup
services (the File menu’s “Type profiles…”), as their YAML file;
without it they hold until the editor goes.
slot#
readonlyslot:string
Defined in: editor/src/options.ts:12
The autosave slot (in IndexedDB); its Web Lock is tilie-autosave/<slot>.
userKey?#
readonlyoptionaluserKey?:string
Defined in: editor/src/options.ts:21
The localStorage key remembering the user: the name the journal
records as each change’s author and the ORCID iD that states what they
state in the Metadata tab; without it the user holds until the editor
goes.
TimeLineEditor#
Defined in: editor/src/options.ts:65
The handle a host holds on an editor it mounted.
Methods#
destroy()#
destroy():
Promise<void>
Defined in: editor/src/options.ts:77
Write the pending autosave, then remove the editor from its element.
Returns#
Promise<void>
focus()#
focus():
void
Defined in: editor/src/options.ts:75
Move the focus to the canvas.
Returns#
void
load()#
load(
text,name?):LoadError|null
Defined in: editor/src/options.ts:69
Open the workspace file text without asking; the reader’s refusal, or null when it opened.
Parameters#
text#
string
name?#
string
Returns#
LoadError | null
select()#
select(
addresses):void
Defined in: editor/src/options.ts:73
Select addresses.
Parameters#
addresses#
readonly Address[]
Returns#
void
selection()#
selection():
Address[]
Defined in: editor/src/options.ts:71
The selected addresses.
Returns#
Address[]
text()#
text():
string
Defined in: editor/src/options.ts:67
The open workspace as Save writes it.
Returns#
string
TimeLineEditorOptions#
Defined in: editor/src/options.ts:39
Options for one editor instance; every one may be left out.
Properties#
autofocus?#
readonlyoptionalautofocus?:boolean
Defined in: editor/src/options.ts:55
Whether the canvas takes the focus at mount; false by default.
lookup?#
readonlyoptionallookup?:boolean
Defined in: editor/src/options.ts:51
Whether the Metadata tab looks values up in Wikidata, the GND, YouTube
and, through the server, MusicBrainz; true by default. With false
typed text never leaves the browser.
noticesUrl?#
readonlyoptionalnoticesUrl?:string
Defined in: editor/src/options.ts:57
The URL of the licence texts the About pane links to.
onchange?#
readonlyoptionalonchange?: (status) =>void
Defined in: editor/src/options.ts:59
Called with the file status after every change of the workspace and every load; the text is text().
Parameters#
status#
Returns#
void
onselect?#
readonlyoptionalonselect?: (selection) =>void
Defined in: editor/src/options.ts:61
Called with the selected addresses whenever the selection changes.
Parameters#
selection#
readonly Address[]
Returns#
void
server?#
readonlyoptionalserver?:ServerOptions|null
Defined in: editor/src/options.ts:43
The server to ask; by default none: no request is made and About says “no server”.
shortcuts?#
readonlyoptionalshortcuts?:"editor"|"window"
Defined in: editor/src/options.ts:53
Where the file and undo shortcuts are taken: inside the editor (the default) or anywhere in the window.
storage?#
readonlyoptionalstorage?:StorageOptions|null
Defined in: editor/src/options.ts:45
Where the autosave and the drawer’s state are kept; by default nowhere: no autosave.
workspace?#
readonlyoptionalworkspace?:string
Defined in: editor/src/options.ts:41
The workspace file text to open; the empty workspace by default.
References#
ServerOptions#
Re-exports ServerOptions