Add transformer to note

This commit is contained in:
Mitchell McCaffrey
2021-08-05 16:24:46 +10:00
parent 59d46e1d27
commit d1e62e850a
9 changed files with 170 additions and 135 deletions

View File

@@ -40,6 +40,9 @@ export const NoteSchema: JSONSchemaType<Note> = {
y: {
type: "number",
},
rotation: {
type: "number",
},
},
required: [
"color",
@@ -53,6 +56,7 @@ export const NoteSchema: JSONSchemaType<Note> = {
"visible",
"x",
"y",
"rotation",
],
type: "object",
};