a98e80c4ff
Given that the GV-viewer isn't using most of the UI-related components of the default-viewer, we can avoid including them in the *built* viewer to save space.[1] The least "invasive" way of implementing this, at least that I could come up with, is to leverage import maps with suitable stubs for the GV-viewer. The one slightly annoying thing is that we now have larger import maps across multiple html-files, and you'll need to remember to update all of them when making future changes. --- [1] With this patch, the built `viewer.js` size is 391 kB and `viewer-geckoview.js` is 285 kB.
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
/* Copyright 2023 Mozilla Foundation
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
const AnnotationEditorParams = null;
|
|
const PDFAttachmentViewer = null;
|
|
const PDFCursorTools = null;
|
|
const PDFDocumentProperties = null;
|
|
const PDFFindBar = null;
|
|
const PDFLayerViewer = null;
|
|
const PDFOutlineViewer = null;
|
|
const PDFPresentationMode = null;
|
|
const PDFSidebar = null;
|
|
const PDFSidebarResizer = null;
|
|
const PDFThumbnailViewer = null;
|
|
const SecondaryToolbar = null;
|
|
const Toolbar = null;
|
|
|
|
export {
|
|
AnnotationEditorParams,
|
|
PDFAttachmentViewer,
|
|
PDFCursorTools,
|
|
PDFDocumentProperties,
|
|
PDFFindBar,
|
|
PDFLayerViewer,
|
|
PDFOutlineViewer,
|
|
PDFPresentationMode,
|
|
PDFSidebar,
|
|
PDFSidebarResizer,
|
|
PDFThumbnailViewer,
|
|
SecondaryToolbar,
|
|
Toolbar,
|
|
};
|