Skip to content

Commit

Permalink
- making scale factor variable
Browse files Browse the repository at this point in the history
- making canvas id variable
  • Loading branch information
Drag0ndust committed Mar 24, 2014
1 parent e48bea3 commit 88fc28f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/angular-pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
var url = scope.pdfUrl,
pdfDoc = null,
pageNum = 1,
scale = 1,
canvas = document.getElementById('pdf-canvas'),
scale = (attrs.scale ? attrs.scale : 1),
canvas = (attrs.canvasid ? document.getElementById(attrs.canvasid) : document.getElementById('pdf-canvas')),
ctx = canvas.getContext('2d'),
windowEl = angular.element($window);

Expand Down

0 comments on commit 88fc28f

Please sign in to comment.