Set the viewer instance (called from init.ts) Private, do not use directly.
The mounted Viewer Vue component instance
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsOptionaloptions: boolean | AddEventListenerOptionsClose the viewer.
Show file compared with base, an older version of it: what changed
from base to file. Side by side, base is on the left. Resolves with
the session of this opening.
Optionaloptions: CompareOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The element that shows a file, to render it outside the viewer, as the preview of a file link in a chat or a document does.
Resolves with the tag name of the custom element of the handler the
viewer would open the file with, once that element is defined (see
IHandler.onInit), or with nothing when no handler takes the file. The
element takes the props every handler does (ViewerProps), and says it
has loaded or failed with the same events. Loads nothing of the viewer
itself.
The file to show
Show an already-opened file by its id, without an update:file event.
Used to sync the viewer to browser history (back/forward).
The id of the file to show
Show files. Resolves with the session of this opening, which tells of
the file shown, editing and the viewer closing (see ViewerEventMap).
Optionalfile: IFileOptionaloptions: ViewerOptionsOptionalhandlerId: stringOptionalfile: IFileOptionaloptions: ViewerOptionsOptionalhandlerId: stringThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsOptionaloptions: boolean | EventListenerOptionsSet the editing state (used to sync with the editing URL param).
Whether the viewer should be in editing mode
The viewer of the page. Tells any page of the file shown, editing and the viewer closing, whoever opened it (see
ViewerEventMap).