Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 117x 117x 117x | import { DateTime } from 'luxon';
import { Plugin } from '../../model/plugin';
import { Mod } from '../../model/tag';
export const fullscreenPlugin: Plugin = {
tag: 'plugin/fullscreen',
name: $localize`⛶ Fullscreen`,
config: {
version: 1,
type: 'plugin',
default: true,
generated: $localize`Generated by jasper-ui ${DateTime.now().toISO()}`,
description: $localize`Fullscreen the viewer when shown. If optional is set the viewer
may be shown if fullscreen is not available or the user has cancelled fullscreen.`,
icons: [{ thumbnail: $localize`⛶`, order: -1 }],
advancedForm: [{
key: 'optional',
type: 'boolean',
props: {
label: $localize`Optional: `,
},
}, {
key: 'onload',
type: 'boolean',
props: {
label: $localize`On Load: `,
},
}],
},
schema: {
optionalProperties: {
optional: { type: 'boolean' },
onload: { type: 'boolean' },
},
},
};
export const fullscreenMod: Mod = {
plugin: [
fullscreenPlugin,
]
};
|