# @embedpdf/viewer-chrome — ./chrome DEFAULT_LAYOUT [VariableDeclaration]: DEFAULT_LAYOUT: LayoutData ={ bars:{ main:{ place: 'top', start: [{ id: 'document', items: ['menu:document'], importance: 5} , { id: 'view', items: [{ command: 'panel:thumbnails', importance: 5} , 'menu:view'], importance: 3, } , { id: 'zoom', items: [{ custom: 'zoom', command: 'menu:zoom', variants: ['inline', 'button']} ], importance: 3, } , { id: 'tools', items: ['tool:pan', 'tool:pointer'], importance: 2} , ], center: [{ id: 'modes', items: [], shed: true, collapse: 'select', importance: 4, titleKey: 'commands.mode.group', } , ], end: [{ id: 'panels', items: ['panel:search', 'panel:comments'], importance: 5, } , ], } , annotate:{ place:{ with: 'main'} , mode: 'annotate', titleKey: 'commands.mode.annotate', center: [{ id: 'comment', items: ['tool:note', 'tool:link'], importance: 4} , { id: 'markup', items: ['tool:highlight', 'tool:strikeout', 'tool:underline', 'tool:squiggly'], importance: 4, } , { id: 'draw', items: ['tool:ink', 'tool:ink-highlight'], importance: 3} , { id: 'text', items: ['tool:free-text', 'tool:insert-text', 'tool:replace-text', 'tool:callout'], importance: 2, } , style, history, ], } , shapes:{ place:{ with: 'main'} , mode: 'shapes', titleKey: 'commands.mode.shapes', center: [{ id: 'shapes', items: ['tool:square', 'tool:circle', 'tool:line', 'tool:arrow'], importance: 4, } , { id: 'polygons', items: ['tool:polygon', 'tool:polyline'], importance: 2} , style, history, ], } , insert:{ place:{ with: 'main'} , mode: 'insert', titleKey: 'commands.mode.insert', center: [{ id: 'stamps', items: [ 'tool:stamp', { custom: 'quick-stamps', command: 'tool:stamp', importance: 3} , 'tool:attachment', 'tool:signature', 'tool:image', ], importance: 4, } , style, history, ], } , form:{ place:{ with: 'main'} , mode: 'form', titleKey: 'commands.mode.form', center: [{ id: 'design', items: ['form:design'], importance: 5} , { id: 'fields', items: ['tool:text-field', 'tool:checkbox', 'tool:radio'], importance: 4} , { id: 'choices', items: ['tool:combo-box', 'tool:list-box'], importance: 2} , { id: 'buttons', items: ['tool:button'], importance: 2} , { id: 'signatures', items: ['tool:signature-field'], importance: 2} , style, history, ], } , redact:{ place:{ with: 'main'} , mode: 'redact', titleKey: 'commands.mode.redact', center: [{ id: 'redact', items: ['tool:redact', 'panel:redaction'], importance: 4} , style, history, ], } , measure:{ place:{ with: 'main'} , mode: 'measure', titleKey: 'commands.mode.measure', center: [{ id: 'measure', items: ['tool:distance', 'tool:perimeter', 'tool:area', 'measurement:calibrate'], importance: 5, } , { id: 'scale', items: [{ custom: 'measurement-scale', command: 'panel:measurement', variants: ['inline']} , ], importance: 4, } , style, ], } , pager:{ place:{ float: 'bottom'} , center: [{ id: 'pages', items: ['page:previous', { custom: 'page-number'} , 'page:next'], importance: 5, } , ], } , selection:{ place:{ at: 'selection'} , center: [{ id: 'selection', items: [ 'selection:copy', 'selection:highlight', 'selection:underline', 'selection:strikeout', ], importance: 4, } , ], } , snapshot:{ place:{ at: 'snapshot'} , center: [{ id: 'snapshot', items: ['snapshot:copy', 'snapshot:save'], importance: 4} ], } , annotation:{ place:{ at: 'annotation'} , center: [{ id: 'actions', items: [ 'annotation:comment', 'annotation:style', 'annotation:stamp-from-selection', 'annotation:link', 'annotation:goto-link', 'annotation:save-file', 'annotation:remove-link', 'annotation:duplicate', 'annotation:rotate-clockwise', 'annotation:group', 'annotation:ungroup', ], importance: 4, } , { id: 'danger', items: ['annotation:apply-redaction', 'annotation:delete'], importance: 5} , ], } , thumbnails:{ place:{ panel: 'thumbnails'} , start: [{ id: 'edit', items: [ 'page:insert-blank', 'page:rotate-counterclockwise', 'page:rotate-clockwise', 'page:delete', ], importance: 4, } , { id: 'more', items: ['page:insert-file', 'page:duplicate', 'page:extract'], importance: 1, } , ], end: [history], } , outline:{ place:{ panel: 'outline'} , start: [{ id: 'filter', items: [{ custom: 'outline-filter', variants: ['wide', 'narrow']} ], } , ], end: [{ id: 'items', items: ['outline:add', 'outline:expand-all', 'outline:collapse-all']} ], } , attachments:{ place:{ panel: 'attachments'} , start: [{ id: 'count', items: [{ custom: 'attachments-count'} ], dependent: true} ], end: [{ id: 'files', items: ['attachment:add']} ], } , } , menus:{ document: [ ['document:open', 'document:download', 'document:print', 'tool:snapshot'], ['view:fullscreen'], ], view: [{ titleKey: 'commands.spread.group', items: ['view:single-page', 'view:two-pages', 'view:cover-page'], } , { titleKey: 'commands.scroll.group', items: ['view:scroll-vertical', 'view:scroll-horizontal', 'view:scroll-paged'], } , { titleKey: 'commands.rotate.group', items: ['view:rotate-clockwise', 'view:rotate-counterclockwise'], } , ['view:fullscreen'], ], zoom: [{ titleKey: 'commands.zoom.level', items: ['zoom:50', 'zoom:100', 'zoom:150', 'zoom:200', 'zoom:400'], } , ['zoom:in', 'zoom:out', 'tool:zoom'], ['zoom:fit-page', 'zoom:fit-width', 'zoom:automatic'], ], 'outline-item': [ ['outline:add', 'outline:add-child'], ['outline:rename', 'outline:set-destination', 'outline:properties'], ['outline:delete'], ], 'attachment-item': [['attachment:save', 'attachment:go-to'], ['attachment:delete']], 'comment-item': [{ titleKey: 'comments.status', items: [ 'comment:status-accepted', 'comment:status-rejected', 'comment:status-cancelled', 'comment:status-completed', 'comment:status-none', ], } , ['comment:delete-thread'], ], page: [ ['page:rotate-clockwise', 'page:rotate-counterclockwise'], ['page:insert-blank', 'page:insert-file', 'page:duplicate'], ['page:extract'], ['page:delete'], ], } , panels:{ thumbnails:{ side: 'start'} , outline:{ side: 'start'} , attachments:{ side: 'start'} , search:{ side: 'end'} , comments:{ side: 'end'} , style:{ side: 'end'} , stamps:{ side: 'end'} , signatures:{ side: 'end'} , redaction:{ side: 'end'} , measurement:{ side: 'end'} , 'form-design':{ side: 'end'} , } , } defaultLayout [VariableDeclaration]: defaultLayout = createLayout(DEFAULT_LAYOUT)