a tool for shared writing and social publishing

make sure canvas integers are integers and add description to rotation

+12 -6
+4 -4
actions/publishToPublication.ts
··· 484 484 let canvasBlockRecord: PubLeafletPagesCanvas.Block = { 485 485 $type: "pub.leaflet.pages.canvas#block", 486 486 block: content, 487 - x: position.x, 488 - y: position.y, 489 - width, 490 - ...(rotation !== undefined && { rotation }), 487 + x: Math.floor(position.x), 488 + y: Math.floor(position.y), 489 + width: Math.floor(width), 490 + ...(rotation !== undefined && { rotation: Math.floor(rotation) }), 491 491 }; 492 492 493 493 return canvasBlockRecord;
+1
lexicons/api/lexicons.ts
··· 1508 1508 }, 1509 1509 rotation: { 1510 1510 type: 'integer', 1511 + description: 'The rotation of the block in degrees', 1511 1512 }, 1512 1513 }, 1513 1514 },
+1
lexicons/api/types/pub/leaflet/pages/canvas.ts
··· 62 62 y: number 63 63 width: number 64 64 height?: number 65 + /** The rotation of the block in degrees */ 65 66 rotation?: number 66 67 } 67 68
+2 -1
lexicons/pub/leaflet/pages/canvas.json
··· 59 59 "type": "integer" 60 60 }, 61 61 "rotation": { 62 - "type": "integer" 62 + "type": "integer", 63 + "description": "The rotation of the block in degrees" 63 64 } 64 65 } 65 66 },
+4 -1
lexicons/src/pages/Canvas.ts
··· 22 22 y: { type: "integer" }, 23 23 width: { type: "integer" }, 24 24 height: { type: "integer" }, 25 - rotation: { type: "integer" }, 25 + rotation: { 26 + type: "integer", 27 + description: "The rotation of the block in degrees", 28 + }, 26 29 }, 27 30 }, 28 31 textAlignLeft: { type: "token" },