OptionalcomparisonHow the viewer compares files, or nothing when it is not comparing.
Side by side, each of the two elements shows its own file; in
differences, the only element shows what changed from the first file of
files, the older one, to its file (see IHandler.canShowDifferences).
Whether the viewer is in editing mode
OptionalembeddedWhether the file is shown inline, outside the viewer, by a
<nc-viewer-file> as the preview of a link to it. Start read-only and
do not take over the page: no autoplay, no focus taken. A handler may
offer its own way to switch to editing inline, as Text does; the full
viewer, editing included, is one click away from the element's menu.
The file to be displayed
The list of files currently opened in the viewer. When comparing, the
two files compared, the older one first (see comparison)
Whether the sidebar is shown
OptionallocalOptional client-side source to display instead of fetching from the server
(e.g. an object URL for a freshly edited image not yet reflected in the
server preview). Handlers that support it should prefer this over file.
The max height of the viewer container
The max width of the viewer container
OptionalshownWhether the file has loaded and is on screen, so it can take the keyboard: a handler that wants its own content focused, an editor's text say, focuses it then. Before, the element is still hidden. When comparing, only the newer file's is.
OptionalturnsQuarter turns anticlockwise the viewer is showing on top of the file's own orientation, while a rotation is being written. Handlers that can turn their content should honour it; the rest may ignore it.
List of props provided to your custom component. Use it like this: