Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix: admin paint tool shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkloock committed Dec 7, 2024
1 parent 7b2300f commit c66d5be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/views/admin/AdminPaintBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ const addShadow = () => {
const prev = data.shadows[data.shadows.length - 1];
data.shadows.push({
color: prev?.color ?? 255,
radius: prev?.radius ?? "1",
x_offset: prev?.x_offset ?? "0",
y_offset: prev?.y_offset ?? "0",
radius: prev?.radius.toString() ?? "1",
x_offset: prev?.x_offset.toString() ?? "0",
y_offset: prev?.y_offset.toString() ?? "0",
});
};
const editShadow = (ind: number, color: string) => {
Expand Down Expand Up @@ -349,9 +349,9 @@ const doUpdate = () => {
stops: toRaw(data.stops).map((s) => ({ at: s.at, color: s.color })),
shadows: toRaw(data.shadows).map((s) => ({
color: s.color,
radius: s.radius,
x_offset: s.x_offset,
y_offset: s.y_offset,
radius: s.radius.toString(),
x_offset: s.x_offset.toString(),
y_offset: s.y_offset.toString(),
})),
};
Expand Down

0 comments on commit c66d5be

Please sign in to comment.