Skip to content

Commit df920ab

Browse files
authored
Merge pull request #206 from wangxingzhen/master
stickers add position with rotation
2 parents 5072e03 + d7b4428 commit df920ab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/postgres.js

+12
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,15 @@ class Postgres {
226226
if (s.wear) {
227227
res.w = s.wear;
228228
}
229+
if (s.rotation) {
230+
res.r = s.rotation;
231+
}
232+
if (s.offset_x) {
233+
res.x = s.offset_x;
234+
}
235+
if (s.offset_y) {
236+
res.y = s.offset_y;
237+
}
229238
return res;
230239
}) : null;
231240

@@ -344,6 +353,9 @@ class Postgres {
344353
stickerId: s.i,
345354
slot: s.s,
346355
wear: s.w,
356+
rotation: s.r,
357+
offset_x: s.x,
358+
offset_y: s.y,
347359
}
348360
});
349361

0 commit comments

Comments
 (0)