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