Skip to content

Commit

Permalink
Support "zoom", #22
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimDez committed Oct 15, 2016
1 parent 5d5d00e commit 741ea54
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 7 deletions.
20 changes: 20 additions & 0 deletions build/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,25 @@
</label>
</div>

<div mdl>
<button (click)="incrementZoom(-0.1)" class="mdl-button mdl-js-button">
-
</button>
<div class="page-number mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input [(ngModel)]="zoom"
[value]="zoom"
class="mdl-textfield__input"
type="number"
pattern="-?[0-9]*(\.[0-9]+)?"
id="pdf-zoom"
>
<label class="mdl-textfield__label" for="pdf-zoom">Zoom</label>
<span class="mdl-textfield__error">Input is not a number!</span>
</div>
<button (click)="incrementZoom(0.1)" class="mdl-button mdl-js-button">
+
</button>
</div>

<div mdl *ngIf="!showAll">
<button (click)="incrementPage(-1)" class="mdl-button mdl-js-button">
Expand All @@ -57,6 +76,7 @@
[original-size]="originalSize"
[show-all]="showAll"
[on-load-complete]="onLoadComplete"
[zoom]="zoom"
></pdf-viewer>

</div>
Expand Down
4 changes: 4 additions & 0 deletions build/app/app.component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/app/app.component.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 23 additions & 2 deletions build/pdf-viewer/pdf-viewer.component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 741ea54

Please sign in to comment.