node-horseman
Advanced tools
Comparing version 1.5.1 to 1.5.2
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
##1.5.2 - 2015-03-04 | ||
### Fixed | ||
- Fix #30 - crop() now chainable. Thanks @jackstrain. | ||
##1.5.1 - 2015-03-04 | ||
@@ -5,0 +9,0 @@ ### Fixed |
@@ -267,13 +267,13 @@ var fs = require("fs"); | ||
var self = this; | ||
this.page.set('clipRect', rect, function(){ | ||
self.pause.unpause('clipRect'); | ||
self.screenshot( path ); | ||
self.page.set("viewportSize",{ | ||
width: 1200, | ||
height: 800 | ||
this.page.get('clipRect', function(err, prevClipRect){ | ||
self.page.set('clipRect', rect, function(){ | ||
self.screenshot(path); | ||
self.page.set('clipRect', prevClipRect, function(){ | ||
self.pause.unpause('clipRect'); | ||
}); | ||
}); | ||
return this; | ||
}); | ||
this.pause.pause('clipRect'); | ||
} | ||
return this; | ||
}; | ||
@@ -280,0 +280,0 @@ exports.screenshot = function( path ){ |
{ | ||
"name": "node-horseman", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Run PhantomJS from Node", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
156335