ng2-pdf-viewer
Advanced tools
Comparing version 5.3.2 to 5.3.3
@@ -59,5 +59,5 @@ (function (global, factory) { | ||
}); | ||
eventBus.on('pagechange', function (evt) { | ||
eventBus.on('pagechanging', function (evt) { | ||
var event = document.createEvent('UIEvents'); | ||
event.initUIEvent('pagechange', true, true, window, 0); | ||
event.initUIEvent('pagechanging', true, true, window, 0); | ||
event['pageNumber'] = evt.pageNumber; | ||
@@ -476,2 +476,7 @@ evt.source.container.dispatchEvent(event); | ||
var eventBus = createEventBus(PDFJSViewer); | ||
eventBus.on('pagechanging', function (e) { | ||
if (e.pageNumber != _this._page) { | ||
_this.page = e.pageNumber; | ||
} | ||
}); | ||
eventBus.on('pagerendered', function (e) { | ||
@@ -478,0 +483,0 @@ _this.pageRendered.emit(e); |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("ng2-pdf-viewer",["exports","@angular/core"],t):t((e=e||self)["ng2-pdf-viewer"]={},e.ng.core)}(this,function(e,t){"use strict";function n(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function o(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var i,r,a,s=function(e){var t,n=new e.EventBus(!0);return(t=n).on("documentload",function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),t.on("pagerendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagerendered",!0,!0,{pageNumber:e.pageNumber,cssTransform:e.cssTransform}),e.source.div.dispatchEvent(t)}),t.on("textlayerrendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e.pageNumber}),e.source.textLayerDiv.dispatchEvent(t)}),t.on("pagechange",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("pagechange",!0,!0,window,0),t.pageNumber=e.pageNumber,e.source.container.dispatchEvent(t)}),t.on("pagesinit",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesinit",!0,!0,null),e.source.container.dispatchEvent(t)}),t.on("pagesloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e.pagesCount}),e.source.container.dispatchEvent(t)}),t.on("scalechange",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("scalechange",!0,!0,window,0),t.scale=e.scale,t.presetValue=e.presetValue,e.source.container.dispatchEvent(t)}),t.on("updateviewarea",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("updateviewarea",!0,!0,window,0),t.location=e.location,e.source.container.dispatchEvent(t)}),t.on("find",function(e){if(e.source!==window){var t=document.createEvent("CustomEvent");t.initCustomEvent("find"+e.type,!0,!0,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious}),window.dispatchEvent(t)}}),t.on("attachmentsloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e.attachmentsCount}),e.source.container.dispatchEvent(t)}),t.on("sidebarviewchanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("sidebarviewchanged",!0,!0,{view:e.view}),e.source.outerContainer.dispatchEvent(t)}),t.on("pagemode",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagemode",!0,!0,{mode:e.mode}),e.source.pdfViewer.container.dispatchEvent(t)}),t.on("namedaction",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e.action}),e.source.pdfViewer.container.dispatchEvent(t)}),t.on("presentationmodechanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("presentationmodechanged",!0,!0,{active:e.active,switchInProgress:e.switchInProgress}),window.dispatchEvent(t)}),t.on("outlineloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e.outlineCount}),e.source.container.dispatchEvent(t)}),n};function p(){return"undefined"==typeof window}p()||(i=require("pdfjs-dist/build/pdf"),r=require("pdfjs-dist/web/pdf_viewer"),i.verbosity=i.VerbosityLevel.ERRORS),(a=e.RenderTextMode||(e.RenderTextMode={}))[a.DISABLED=0]="DISABLED",a[a.ENABLED=1]="ENABLED",a[a.ENHANCED=2]="ENHANCED";var d=function(){function a(n){var o;(this.element=n,this.isVisible=!1,this._cMapsUrl=void 0!==i?"https://unpkg.com/pdfjs-dist@"+i.version+"/cmaps/":null,this._renderText=!0,this._renderTextMode=e.RenderTextMode.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this.isInitialized=!1,this.afterLoadComplete=new t.EventEmitter,this.pageRendered=new t.EventEmitter,this.textLayerRendered=new t.EventEmitter,this.onError=new t.EventEmitter,this.onProgress=new t.EventEmitter,this.pageChange=new t.EventEmitter(!0),p())||(o=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/"+i.version+"/pdf.worker.min.js",i.GlobalWorkerOptions.workerSrc=o)}var d;return d=a,Object.defineProperty(a.prototype,"cMapsUrl",{set:function(e){this._cMapsUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"page",{set:function(e){e=parseInt(e,10)||1,this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,this.pageChange.emit(e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderText",{set:function(e){this._renderText=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderTextMode",{set:function(e){this._renderTextMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"originalSize",{set:function(e){this._originalSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showAll",{set:function(e){this._showAll=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"stickToPage",{set:function(e){this._stickToPage=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"zoom",{get:function(){return this._zoom},set:function(e){e<=0||(this._zoom=e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rotation",{set:function(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"externalLinkTarget",{set:function(e){this._externalLinkTarget=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"autoresize",{set:function(e){this._canAutoResize=Boolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"fitToPage",{set:function(e){this._fitToPage=Boolean(e)},enumerable:!0,configurable:!0}),a.getLinkTarget=function(e){switch(e){case"blank":return i.LinkTarget.BLANK;case"none":return i.LinkTarget.NONE;case"self":return i.LinkTarget.SELF;case"parent":return i.LinkTarget.PARENT;case"top":return i.LinkTarget.TOP}return null},a.setExternalLinkTarget=function(e){var t=d.getLinkTarget(e);null!==t&&(i.externalLinkTarget=t)},a.prototype.ngAfterViewChecked=function(){var e=this;if(!this.isInitialized){var t=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=t?!1===this.isVisible&&null!=t&&(this.isVisible=!0,setTimeout(function(){e.ngOnInit(),e.ngOnChanges({src:e.src})})):this.isVisible=!1}},a.prototype.ngOnInit=function(){!p()&&this.isVisible&&(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())},a.prototype.ngOnDestroy=function(){this._pdf&&this._pdf.destroy()},a.prototype.onPageResize=function(){var e=this;this._canAutoResize&&this._pdf&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){e.updateSize()},100))},Object.defineProperty(a.prototype,"pdfLinkService",{get:function(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pdfViewer",{get:function(){return this.getCurrentViewer()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pdfFindController",{get:function(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(t){!p()&&this.isVisible&&("src"in t?this.loadPDF():this._pdf&&("renderText"in t?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,this.resetPdfDocument()):"showAll"in t&&this.resetPdfDocument(),"page"in t&&this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page}),this.update()))},a.prototype.updateSize=function(){var e=this,t=this.getCurrentViewer();this._pdf.getPage(t.currentPageNumber).then(function(n){var o=n.getViewport({scale:e._zoom,rotation:e._rotation}),i=e._zoom,r=!0;(!e._originalSize||e._fitToPage&&o.width>e.element.nativeElement.offsetWidth)&&(i=e.getScale(n.getViewport({scale:1}).width),r=!e._stickToPage),t._setScale(i,r)})},a.prototype.setupMultiPageViewer=function(){var t=this;i.disableTextLayer=!this._renderText,d.setExternalLinkTarget(this._externalLinkTarget);var n=s(r);n.on("pagerendered",function(e){t.pageRendered.emit(e)}),n.on("textlayerrendered",function(e){t.textLayerRendered.emit(e)}),this.pdfMultiPageLinkService=new r.PDFLinkService({eventBus:n}),this.pdfMultiPageFindController=new r.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:n});var o={eventBus:n,container:this.element.nativeElement.querySelector("div"),removePageBorders:!0,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfMultiPageFindController};this.pdfMultiPageViewer=new r.PDFViewer(o),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)},a.prototype.setupSinglePageViewer=function(){var t=this;i.disableTextLayer=!this._renderText,d.setExternalLinkTarget(this._externalLinkTarget);var n=s(r);n.on("pagerendered",function(e){t.pageRendered.emit(e)}),n.on("textlayerrendered",function(e){t.textLayerRendered.emit(e)}),this.pdfSinglePageLinkService=new r.PDFLinkService({eventBus:n}),this.pdfSinglePageFindController=new r.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:n});var o={eventBus:n,container:this.element.nativeElement.querySelector("div"),removePageBorders:!0,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfSinglePageFindController};this.pdfSinglePageViewer=new r.PDFSinglePageViewer(o),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page},a.prototype.getValidPageNumber=function(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e},a.prototype.getDocumentParams=function(){var e=typeof this.src;if(!this._cMapsUrl)return this.src;var t={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===e?t.url=this.src:"object"===e&&(this.src.byteLength!==undefined?t.data=this.src:Object.assign(t,this.src)),t},a.prototype.loadPDF=function(){var e=this;if(this.src)if(this.lastLoaded!==this.src){var t=i.getDocument(this.getDocumentParams());t.onProgress=function(t){e.onProgress.emit(t)};var n=this.src;t.promise.then(function(t){e._pdf&&e._pdf.destroy(),e._pdf=t,e.lastLoaded=n,e.afterLoadComplete.emit(t),e.pdfMultiPageViewer||(e.setupMultiPageViewer(),e.setupSinglePageViewer()),e.resetPdfDocument(),e.update()},function(t){e.onError.emit(t)})}else this.update()},a.prototype.update=function(){this.page=this._page,this.render()},a.prototype.render=function(){var e=this;this._page=this.getValidPageNumber(this._page);var t=this.getCurrentViewer();0===this._rotation&&t.pagesRotation===this._rotation||setTimeout(function(){t.pagesRotation=e._rotation}),this._stickToPage&&setTimeout(function(){t.currentPageNumber=e._page}),this.updateSize()},a.prototype.getScale=function(e){var t=this.element.nativeElement.offsetWidth;return 0===t?1:this._zoom*(t/e)/d.CSS_UNITS},a.prototype.getCurrentViewer=function(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer},a.prototype.resetPdfDocument=function(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))},a.CSS_UNITS=96/72,n([t.ViewChild("pdfViewerContainer",{"static":!1}),o("design:type",Object)],a.prototype,"pdfViewerContainer",void 0),n([t.Output("after-load-complete"),o("design:type",Object)],a.prototype,"afterLoadComplete",void 0),n([t.Output("page-rendered"),o("design:type",Object)],a.prototype,"pageRendered",void 0),n([t.Output("text-layer-rendered"),o("design:type",Object)],a.prototype,"textLayerRendered",void 0),n([t.Output("error"),o("design:type",Object)],a.prototype,"onError",void 0),n([t.Output("on-progress"),o("design:type",Object)],a.prototype,"onProgress",void 0),n([t.Output(),o("design:type",t.EventEmitter)],a.prototype,"pageChange",void 0),n([t.Input(),o("design:type",Object)],a.prototype,"src",void 0),n([t.Input("c-maps-url"),o("design:type",String),o("design:paramtypes",[String])],a.prototype,"cMapsUrl",null),n([t.Input("page"),o("design:type",Object),o("design:paramtypes",[Object])],a.prototype,"page",null),n([t.Input("render-text"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"renderText",null),n([t.Input("render-text-mode"),o("design:type",Number),o("design:paramtypes",[Number])],a.prototype,"renderTextMode",null),n([t.Input("original-size"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"originalSize",null),n([t.Input("show-all"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"showAll",null),n([t.Input("stick-to-page"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"stickToPage",null),n([t.Input("zoom"),o("design:type",Number),o("design:paramtypes",[Number])],a.prototype,"zoom",null),n([t.Input("rotation"),o("design:type",Number),o("design:paramtypes",[Number])],a.prototype,"rotation",null),n([t.Input("external-link-target"),o("design:type",String),o("design:paramtypes",[String])],a.prototype,"externalLinkTarget",null),n([t.Input("autoresize"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"autoresize",null),n([t.Input("fit-to-page"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"fitToPage",null),n([t.HostListener("window:resize",[]),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],a.prototype,"onPageResize",null),a=d=n([t.Component({selector:"pdf-viewer",template:'\n <div #pdfViewerContainer class="ng2-pdf-viewer-container">\n <div class="pdfViewer"></div>\n </div>\n ',styles:['.ng2-pdf-viewer-container{overflow-x:auto}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::-moz-selection,:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{background-color:#000;content:"";display:block;position:absolute;height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute;border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #333;border-radius:2px;padding:.6em;margin-left:5px;cursor:pointer;font:message-box;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup h1{font-size:1em;border-bottom:1px solid #000;margin:0;padding-bottom:.2em}:host ::ng-deep .annotationLayer .popup p{margin:0;padding-top:.2em}:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle;margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhB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LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}:host ::ng-deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}']}),o("design:paramtypes",[t.ElementRef])],a)}(),g=function(){function e(){}return e=n([t.NgModule({declarations:[d],exports:[d]})],e)}();e.PdfViewerComponent=d,e.PdfViewerModule=g,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("ng2-pdf-viewer",["exports","@angular/core"],t):t((e=e||self)["ng2-pdf-viewer"]={},e.ng.core)}(this,function(e,t){"use strict";function n(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function o(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var i,r,a,s=function(e){var t,n=new e.EventBus(!0);return(t=n).on("documentload",function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),t.on("pagerendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagerendered",!0,!0,{pageNumber:e.pageNumber,cssTransform:e.cssTransform}),e.source.div.dispatchEvent(t)}),t.on("textlayerrendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e.pageNumber}),e.source.textLayerDiv.dispatchEvent(t)}),t.on("pagechanging",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("pagechanging",!0,!0,window,0),t.pageNumber=e.pageNumber,e.source.container.dispatchEvent(t)}),t.on("pagesinit",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesinit",!0,!0,null),e.source.container.dispatchEvent(t)}),t.on("pagesloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e.pagesCount}),e.source.container.dispatchEvent(t)}),t.on("scalechange",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("scalechange",!0,!0,window,0),t.scale=e.scale,t.presetValue=e.presetValue,e.source.container.dispatchEvent(t)}),t.on("updateviewarea",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("updateviewarea",!0,!0,window,0),t.location=e.location,e.source.container.dispatchEvent(t)}),t.on("find",function(e){if(e.source!==window){var t=document.createEvent("CustomEvent");t.initCustomEvent("find"+e.type,!0,!0,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious}),window.dispatchEvent(t)}}),t.on("attachmentsloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e.attachmentsCount}),e.source.container.dispatchEvent(t)}),t.on("sidebarviewchanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("sidebarviewchanged",!0,!0,{view:e.view}),e.source.outerContainer.dispatchEvent(t)}),t.on("pagemode",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagemode",!0,!0,{mode:e.mode}),e.source.pdfViewer.container.dispatchEvent(t)}),t.on("namedaction",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e.action}),e.source.pdfViewer.container.dispatchEvent(t)}),t.on("presentationmodechanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("presentationmodechanged",!0,!0,{active:e.active,switchInProgress:e.switchInProgress}),window.dispatchEvent(t)}),t.on("outlineloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e.outlineCount}),e.source.container.dispatchEvent(t)}),n};function p(){return"undefined"==typeof window}p()||(i=require("pdfjs-dist/build/pdf"),r=require("pdfjs-dist/web/pdf_viewer"),i.verbosity=i.VerbosityLevel.ERRORS),(a=e.RenderTextMode||(e.RenderTextMode={}))[a.DISABLED=0]="DISABLED",a[a.ENABLED=1]="ENABLED",a[a.ENHANCED=2]="ENHANCED";var d=function(){function a(n){var o;(this.element=n,this.isVisible=!1,this._cMapsUrl=void 0!==i?"https://unpkg.com/pdfjs-dist@"+i.version+"/cmaps/":null,this._renderText=!0,this._renderTextMode=e.RenderTextMode.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this.isInitialized=!1,this.afterLoadComplete=new t.EventEmitter,this.pageRendered=new t.EventEmitter,this.textLayerRendered=new t.EventEmitter,this.onError=new t.EventEmitter,this.onProgress=new t.EventEmitter,this.pageChange=new t.EventEmitter(!0),p())||(o=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/"+i.version+"/pdf.worker.min.js",i.GlobalWorkerOptions.workerSrc=o)}var d;return d=a,Object.defineProperty(a.prototype,"cMapsUrl",{set:function(e){this._cMapsUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"page",{set:function(e){e=parseInt(e,10)||1,this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,this.pageChange.emit(e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderText",{set:function(e){this._renderText=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderTextMode",{set:function(e){this._renderTextMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"originalSize",{set:function(e){this._originalSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showAll",{set:function(e){this._showAll=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"stickToPage",{set:function(e){this._stickToPage=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"zoom",{get:function(){return this._zoom},set:function(e){e<=0||(this._zoom=e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rotation",{set:function(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"externalLinkTarget",{set:function(e){this._externalLinkTarget=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"autoresize",{set:function(e){this._canAutoResize=Boolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"fitToPage",{set:function(e){this._fitToPage=Boolean(e)},enumerable:!0,configurable:!0}),a.getLinkTarget=function(e){switch(e){case"blank":return i.LinkTarget.BLANK;case"none":return i.LinkTarget.NONE;case"self":return i.LinkTarget.SELF;case"parent":return i.LinkTarget.PARENT;case"top":return i.LinkTarget.TOP}return null},a.setExternalLinkTarget=function(e){var t=d.getLinkTarget(e);null!==t&&(i.externalLinkTarget=t)},a.prototype.ngAfterViewChecked=function(){var e=this;if(!this.isInitialized){var t=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=t?!1===this.isVisible&&null!=t&&(this.isVisible=!0,setTimeout(function(){e.ngOnInit(),e.ngOnChanges({src:e.src})})):this.isVisible=!1}},a.prototype.ngOnInit=function(){!p()&&this.isVisible&&(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())},a.prototype.ngOnDestroy=function(){this._pdf&&this._pdf.destroy()},a.prototype.onPageResize=function(){var e=this;this._canAutoResize&&this._pdf&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){e.updateSize()},100))},Object.defineProperty(a.prototype,"pdfLinkService",{get:function(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pdfViewer",{get:function(){return this.getCurrentViewer()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pdfFindController",{get:function(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(t){!p()&&this.isVisible&&("src"in t?this.loadPDF():this._pdf&&("renderText"in t?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,this.resetPdfDocument()):"showAll"in t&&this.resetPdfDocument(),"page"in t&&this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page}),this.update()))},a.prototype.updateSize=function(){var e=this,t=this.getCurrentViewer();this._pdf.getPage(t.currentPageNumber).then(function(n){var o=n.getViewport({scale:e._zoom,rotation:e._rotation}),i=e._zoom,r=!0;(!e._originalSize||e._fitToPage&&o.width>e.element.nativeElement.offsetWidth)&&(i=e.getScale(n.getViewport({scale:1}).width),r=!e._stickToPage),t._setScale(i,r)})},a.prototype.setupMultiPageViewer=function(){var t=this;i.disableTextLayer=!this._renderText,d.setExternalLinkTarget(this._externalLinkTarget);var n=s(r);n.on("pagerendered",function(e){t.pageRendered.emit(e)}),n.on("textlayerrendered",function(e){t.textLayerRendered.emit(e)}),this.pdfMultiPageLinkService=new r.PDFLinkService({eventBus:n}),this.pdfMultiPageFindController=new r.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:n});var o={eventBus:n,container:this.element.nativeElement.querySelector("div"),removePageBorders:!0,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfMultiPageFindController};this.pdfMultiPageViewer=new r.PDFViewer(o),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)},a.prototype.setupSinglePageViewer=function(){var t=this;i.disableTextLayer=!this._renderText,d.setExternalLinkTarget(this._externalLinkTarget);var n=s(r);n.on("pagechanging",function(e){e.pageNumber!=t._page&&(t.page=e.pageNumber)}),n.on("pagerendered",function(e){t.pageRendered.emit(e)}),n.on("textlayerrendered",function(e){t.textLayerRendered.emit(e)}),this.pdfSinglePageLinkService=new r.PDFLinkService({eventBus:n}),this.pdfSinglePageFindController=new r.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:n});var o={eventBus:n,container:this.element.nativeElement.querySelector("div"),removePageBorders:!0,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfSinglePageFindController};this.pdfSinglePageViewer=new r.PDFSinglePageViewer(o),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page},a.prototype.getValidPageNumber=function(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e},a.prototype.getDocumentParams=function(){var e=typeof this.src;if(!this._cMapsUrl)return this.src;var t={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===e?t.url=this.src:"object"===e&&(this.src.byteLength!==undefined?t.data=this.src:Object.assign(t,this.src)),t},a.prototype.loadPDF=function(){var e=this;if(this.src)if(this.lastLoaded!==this.src){var t=i.getDocument(this.getDocumentParams());t.onProgress=function(t){e.onProgress.emit(t)};var n=this.src;t.promise.then(function(t){e._pdf&&e._pdf.destroy(),e._pdf=t,e.lastLoaded=n,e.afterLoadComplete.emit(t),e.pdfMultiPageViewer||(e.setupMultiPageViewer(),e.setupSinglePageViewer()),e.resetPdfDocument(),e.update()},function(t){e.onError.emit(t)})}else this.update()},a.prototype.update=function(){this.page=this._page,this.render()},a.prototype.render=function(){var e=this;this._page=this.getValidPageNumber(this._page);var t=this.getCurrentViewer();0===this._rotation&&t.pagesRotation===this._rotation||setTimeout(function(){t.pagesRotation=e._rotation}),this._stickToPage&&setTimeout(function(){t.currentPageNumber=e._page}),this.updateSize()},a.prototype.getScale=function(e){var t=this.element.nativeElement.offsetWidth;return 0===t?1:this._zoom*(t/e)/d.CSS_UNITS},a.prototype.getCurrentViewer=function(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer},a.prototype.resetPdfDocument=function(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))},a.CSS_UNITS=96/72,n([t.ViewChild("pdfViewerContainer",{"static":!1}),o("design:type",Object)],a.prototype,"pdfViewerContainer",void 0),n([t.Output("after-load-complete"),o("design:type",Object)],a.prototype,"afterLoadComplete",void 0),n([t.Output("page-rendered"),o("design:type",Object)],a.prototype,"pageRendered",void 0),n([t.Output("text-layer-rendered"),o("design:type",Object)],a.prototype,"textLayerRendered",void 0),n([t.Output("error"),o("design:type",Object)],a.prototype,"onError",void 0),n([t.Output("on-progress"),o("design:type",Object)],a.prototype,"onProgress",void 0),n([t.Output(),o("design:type",t.EventEmitter)],a.prototype,"pageChange",void 0),n([t.Input(),o("design:type",Object)],a.prototype,"src",void 0),n([t.Input("c-maps-url"),o("design:type",String),o("design:paramtypes",[String])],a.prototype,"cMapsUrl",null),n([t.Input("page"),o("design:type",Object),o("design:paramtypes",[Object])],a.prototype,"page",null),n([t.Input("render-text"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"renderText",null),n([t.Input("render-text-mode"),o("design:type",Number),o("design:paramtypes",[Number])],a.prototype,"renderTextMode",null),n([t.Input("original-size"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"originalSize",null),n([t.Input("show-all"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"showAll",null),n([t.Input("stick-to-page"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"stickToPage",null),n([t.Input("zoom"),o("design:type",Number),o("design:paramtypes",[Number])],a.prototype,"zoom",null),n([t.Input("rotation"),o("design:type",Number),o("design:paramtypes",[Number])],a.prototype,"rotation",null),n([t.Input("external-link-target"),o("design:type",String),o("design:paramtypes",[String])],a.prototype,"externalLinkTarget",null),n([t.Input("autoresize"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"autoresize",null),n([t.Input("fit-to-page"),o("design:type",Boolean),o("design:paramtypes",[Boolean])],a.prototype,"fitToPage",null),n([t.HostListener("window:resize",[]),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],a.prototype,"onPageResize",null),a=d=n([t.Component({selector:"pdf-viewer",template:'\n <div #pdfViewerContainer class="ng2-pdf-viewer-container">\n <div class="pdfViewer"></div>\n </div>\n ',styles:['.ng2-pdf-viewer-container{overflow-x:auto}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::-moz-selection,:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{background-color:#000;content:"";display:block;position:absolute;height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute;border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #333;border-radius:2px;padding:.6em;margin-left:5px;cursor:pointer;font:message-box;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup h1{font-size:1em;border-bottom:1px solid #000;margin:0;padding-bottom:.2em}:host ::ng-deep .annotationLayer .popup p{margin:0;padding-top:.2em}:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle;margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/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.pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}']}),o("design:paramtypes",[t.ElementRef])],a)}(),g=function(){function e(){}return e=n([t.NgModule({declarations:[d],exports:[d]})],e)}();e.PdfViewerComponent=d,e.PdfViewerModule=g,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ng2-pdf-viewer.umd.min.js.map |
@@ -27,5 +27,5 @@ export function _createEventBus(pdfJsViewer) { | ||
}); | ||
eventBus.on('pagechange', function (evt) { | ||
eventBus.on('pagechanging', function (evt) { | ||
const event = document.createEvent('UIEvents'); | ||
event.initUIEvent('pagechange', true, true, window, 0); | ||
event.initUIEvent('pagechanging', true, true, window, 0); | ||
event['pageNumber'] = evt.pageNumber; | ||
@@ -118,2 +118,2 @@ evt.source.container.dispatchEvent(event); | ||
export const createEventBus = _createEventBus; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQtYnVzLXV0aWxzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmcyLXBkZi12aWV3ZXIvIiwic291cmNlcyI6WyJzcmMvYXBwL3V0aWxzL2V2ZW50LWJ1cy11dGlscy50cyJd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KGV2ZW50KTtcbiAgfSk7XG4gIGV2ZW50QnVzLm9uKCdwcmVzZW50YXRpb25tb2RlY2hhbmdlZCcsIGZ1bmN0aW9uKGV2dCkge1xuICAgIGNvbnN0IGV2ZW50ID0gZG9jdW1lbnQuY3JlYXRlRXZlbnQoJ0N1c3RvbUV2ZW50Jyk7XG4gICAgZXZlbnQuaW5pdEN1c3RvbUV2ZW50KCdwcmVzZW50YXRpb25tb2RlY2hhbmdlZCcsIHRydWUsIHRydWUsIHtcbiAgICAgIGFjdGl2ZTogZXZ0LmFjdGl2ZSxcbiAgICAgIHN3aXRjaEluUHJvZ3Jlc3M6IGV2dC5zd2l0Y2hJblByb2dyZXNzXG4gICAgfSk7XG4gICAgd2luZG93LmRpc3BhdGNoRXZlbnQoZXZlbnQpO1xuICB9KTtcbiAgZXZlbnRCdXMub24oJ291dGxpbmVsb2FkZWQnLCBmdW5jdGlvbihldnQpIHtcbiAgICBjb25zdCBldmVudCA9IGRvY3VtZW50LmNyZWF0ZUV2ZW50KCdDdXN0b21FdmVudCcpO1xuICAgIGV2ZW50LmluaXRDdXN0b21FdmVudCgnb3V0bGluZWxvYWRlZCcsIHRydWUsIHRydWUsIHtcbiAgICAgIG91dGxpbmVDb3VudDogZXZ0Lm91dGxpbmVDb3VudFxuICAgIH0pO1xuICAgIGV2dC5zb3VyY2UuY29udGFpbmVyLmRpc3BhdGNoRXZlbnQoZXZlbnQpO1xuICB9KTtcbn1cblxuZXhwb3J0IGNvbnN0IGNyZWF0ZUV2ZW50QnVzID0gX2NyZWF0ZUV2ZW50QnVzO1xuIl19 |
@@ -27,5 +27,5 @@ export function _createEventBus(pdfJsViewer) { | ||
}); | ||
eventBus.on('pagechange', function (evt) { | ||
eventBus.on('pagechanging', function (evt) { | ||
var event = document.createEvent('UIEvents'); | ||
event.initUIEvent('pagechange', true, true, window, 0); | ||
event.initUIEvent('pagechanging', true, true, window, 0); | ||
event['pageNumber'] = evt.pageNumber; | ||
@@ -118,2 +118,2 @@ evt.source.container.dispatchEvent(event); | ||
export var createEventBus = _createEventBus; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQtYnVzLXV0aWxzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmcyLXBkZi12aWV3ZXIvIiwic291cmNlcyI6WyJzcmMvYXBwL3V0aWxzL2V2ZW50LWJ1cy11dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsZUFBZSxDQUFDLFdBQWdCO0lBQzlDLElBQU0sY0FBYyxHQUFHLElBQUksV0FBVyxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUN0RCx5QkFBeUIsQ0FBQyxjQUFjLENBQUMsQ0FBQztJQUUxQyxPQUFPLGNBQWMsQ0FBQztBQUN4QixDQUFDO0FBRUQsU0FBUyx5QkFBeUIsQ0FBQyxRQUFhO0lBQzlDLFFBQVEsQ0FBQyxFQUFFLENBQUMsY0FBYyxFQUFFO1FBQzFCLElBQU0sS0FBSyxHQUFHLFFBQVEsQ0FBQyxXQUFXLENBQUMsYUFBYSxDQUFDLENBQUM7UUFDbEQsS0FBSyxDQUFDLGVBQWUsQ0FBQyxjQUFjLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxFQUFFLENBQUMsQ0FBQztRQUN0RCxNQUFNLENBQUMsYUFBYSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzlCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsUUFBUSxDQUFDLEVBQUUsQ0FBQyxjQUFjLEVBQUUsVUFBUyxHQUFHO1FBQ3RDLElBQU0sS0FBSyxHQUFHLFFBQVEsQ0FBQyxXQUFXLENBQUMsYUFBYSxDQUFDLENBQUM7UUFDbEQsS0FBSyxDQUFDLGVBQWUsQ0FBQyxjQUFjLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRTtZQUNoRCxVQUFVLEVBQUUsR0FBRyx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19 |
@@ -30,5 +30,5 @@ import { __decorate, __metadata } from 'tslib'; | ||
}); | ||
eventBus.on('pagechange', function (evt) { | ||
eventBus.on('pagechanging', function (evt) { | ||
const event = document.createEvent('UIEvents'); | ||
event.initUIEvent('pagechange', true, true, window, 0); | ||
event.initUIEvent('pagechanging', true, true, window, 0); | ||
event['pageNumber'] = evt.pageNumber; | ||
@@ -382,2 +382,7 @@ evt.source.container.dispatchEvent(event); | ||
const eventBus = createEventBus(PDFJSViewer); | ||
eventBus.on('pagechanging', e => { | ||
if (e.pageNumber != this._page) { | ||
this.page = e.pageNumber; | ||
} | ||
}); | ||
eventBus.on('pagerendered', e => { | ||
@@ -384,0 +389,0 @@ this.pageRendered.emit(e); |
@@ -30,5 +30,5 @@ import { __decorate, __metadata } from 'tslib'; | ||
}); | ||
eventBus.on('pagechange', function (evt) { | ||
eventBus.on('pagechanging', function (evt) { | ||
var event = document.createEvent('UIEvents'); | ||
event.initUIEvent('pagechange', true, true, window, 0); | ||
event.initUIEvent('pagechanging', true, true, window, 0); | ||
event['pageNumber'] = evt.pageNumber; | ||
@@ -447,2 +447,7 @@ evt.source.container.dispatchEvent(event); | ||
var eventBus = createEventBus(PDFJSViewer); | ||
eventBus.on('pagechanging', function (e) { | ||
if (e.pageNumber != _this._page) { | ||
_this.page = e.pageNumber; | ||
} | ||
}); | ||
eventBus.on('pagerendered', function (e) { | ||
@@ -449,0 +454,0 @@ _this.pageRendered.emit(e); |
{ | ||
"name": "ng2-pdf-viewer", | ||
"version": "5.3.2", | ||
"version": "5.3.3", | ||
"description": "Angular 5+ component for rendering PDF", | ||
@@ -28,8 +28,8 @@ "license": "MIT", | ||
"@angular/core": ">=5.0.0", | ||
"pdfjs-dist": "^2.1.266", | ||
"@types/pdfjs-dist": "^2.0.0" | ||
"pdfjs-dist": "^2.2.228", | ||
"@types/pdfjs-dist": "^2.0.1" | ||
}, | ||
"dependencies": { | ||
"@types/pdfjs-dist": "^2.0.0", | ||
"pdfjs-dist": "^2.1.266", | ||
"@types/pdfjs-dist": "^2.0.1", | ||
"pdfjs-dist": "^2.2.228", | ||
"tslib": "^1.9.0" | ||
@@ -36,0 +36,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
536708
3928
Updated@types/pdfjs-dist@^2.0.1
Updatedpdfjs-dist@^2.2.228