Skip to content

Commit

Permalink
Merge pull request #206 from wangxingzhen/master
Browse files Browse the repository at this point in the history
stickers add position with rotation
  • Loading branch information
Step7750 authored Feb 20, 2024
2 parents 5072e03 + d7b4428 commit df920ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,15 @@ class Postgres {
if (s.wear) {
res.w = s.wear;
}
if (s.rotation) {
res.r = s.rotation;
}
if (s.offset_x) {
res.x = s.offset_x;
}
if (s.offset_y) {
res.y = s.offset_y;
}
return res;
}) : null;

Expand Down Expand Up @@ -344,6 +353,9 @@ class Postgres {
stickerId: s.i,
slot: s.s,
wear: s.w,
rotation: s.r,
offset_x: s.x,
offset_y: s.y,
}
});

Expand Down

0 comments on commit df920ab

Please sign in to comment.