Skip to content

Commit 46e3e40

Browse files
Merge pull request #106 from renderforest/switch-to-project-data-v4
switch to project data v4
2 parents 3b5880b + ba744d4 commit 46e3e40

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
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
/**

src/lib/resources/project-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ class ProjectData {
4646
}
4747
}
4848

49-
ProjectData.API_PREFIX = '/api/v3'
49+
ProjectData.API_PREFIX = '/api/v4'
5050

5151
module.exports = ProjectData

0 commit comments

Comments
 (0)