Skip to content

Instantly share code, notes, and snippets.

@documentcloud
Created December 16, 2009 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save documentcloud/258151 to your computer and use it in GitHub Desktop.
Save documentcloud/258151 to your computer and use it in GitHub Desktop.
redraw : function(stopResetOfPosition){
// console.log('forcing')
this.pages['p0'].draw({ force: true });
this.pages['p1'].draw({ force: true });
this.pages['p2'].draw({ force: true });
if(this.application.state != 'InitialLoad' && !stopResetOfPosition){
this.application.helpers.jumpTo(this.application.models.document.currentIndex());
}
},
redrawFromZoom : function(stopResetOfPosition){
this.pages['p0'].draw({ force: true, forceAnnotationRedraw: true });
this.pages['p1'].draw({ force: true, forceAnnotationRedraw: true });
this.pages['p2'].draw({ force: true, forceAnnotationRedraw: true });
if(this.application.state != 'InitialLoad' && !stopResetOfPosition){
this.application.helpers.jumpTo(this.application.models.document.currentIndex());
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment