Skip to content

Commit

Permalink
Fix for resolve args
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyjb committed Jul 26, 2018
1 parent bd3d72f commit 09d5497
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion module/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export class FileField {
const {transforms} = imageEditor
const {previewDataURI} = imageEditor

previewDataURI.then((dataURI) => {
previewDataURI.then(([dataURI, sizeInfo]) => {

// Set the preview image
this._viewer.imageURL = dataURI
Expand Down
4 changes: 2 additions & 2 deletions module/ui/crop-tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ export class CropTool {
point[1],
maxRect[1][1] - point[1]
)
maxRect[0][1] = (point[1] - distanceToEdge)
maxRect[1][1] = (point[1] + distanceToEdge)
maxRect[0][1] = point[1] - distanceToEdge
maxRect[1][1] = point[1] + distanceToEdge
}

// @@ Why does vert work but not horz
Expand Down
2 changes: 1 addition & 1 deletion module/ui/gallery-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class GalleryItem {
const {transforms} = imageEditor
const {previewDataURI} = imageEditor

previewDataURI.then((dataURI) => {
previewDataURI.then(([dataURI, sizeInfo]) => {

// Set the preview image
this._viewer.imageURL = dataURI
Expand Down
4 changes: 2 additions & 2 deletions module/ui/image-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,14 @@ export class ImageEditor extends Overlay {
resizeCanvas.height
)

resolve(
resolve([
resizeCanvas.toDataURL(),
{
'width': resizeCanvas.width,
'height': resizeCanvas.height,
'maxWidth': cropCanvas.width
}
)
])
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "manhattan-assets",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "File and image uploads for forms.",
"engines": {
"node": ">=8.9.4"
Expand Down

0 comments on commit 09d5497

Please sign in to comment.