Skip to content

Commit ba744d4

Browse files
committed
classes: change area.imageCropParams parameters to be numbers
1 parent 6e08611 commit ba744d4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/classes/project-data.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,7 @@ class ProjectData {
277277
area.webpPath = webpPath
278278
area.fileType = fileType
279279
area.thumbnailPath = thumbnailPath
280-
area.imageCropParams = {
281-
transform: `rotate(${transform}deg)`,
282-
top: `${top}px`,
283-
left: `${left}px`,
284-
width,
285-
height
286-
}
280+
area.imageCropParams = { transform, top, left, width, height }
287281
}
288282

289283
/**

0 commit comments

Comments
 (0)