clay accepts any size canvas now

This commit is contained in:
2025-11-06 18:23:39 -06:00
parent 60d2d3b8d6
commit 0082eab729

View File

@@ -60,9 +60,8 @@ var focused_textbox = null
clay.behave = layout.behave; clay.behave = layout.behave;
clay.contain = layout.contain; clay.contain = layout.contain;
clay.draw = function draw(fn) clay.draw = function draw(fn, size = [prosperon.camera.width, prosperon.camera.height])
{ {
var size = [prosperon.camera.width, prosperon.camera.height]
lay_ctx.reset(); lay_ctx.reset();
var root = lay_ctx.item(); var root = lay_ctx.item();
// Accept both array and object formats // Accept both array and object formats