{"id":"frontend.yui--yuiPersistentCanvasExecutionV1","name":"yuiPersistentCanvasExecutionV1","owner":"yeho","package":"frontend.yui","kind":"thing","signature":"external thing yuiPersistentCanvasExecutionV1","description":"A yui persistent canvas execution v1 record carrying rendered, presented, damageCount, replayedCommandCount, redrawBefore, and related state.","context":"Turn YUI models into a working frontend and its rendering/input adapters.","parameters":[],"returns":"void","members":[{"name":"rendered","kind":"field","type":"bool","description":"Stores rendered as bool.","signature":"bool rendered","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"presented","kind":"field","type":"bool","description":"Stores presented as bool.","signature":"bool presented","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"damageCount","kind":"field","type":"int","description":"Stores damage count as int.","signature":"int damageCount","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"replayedCommandCount","kind":"field","type":"int","description":"Stores replayed command count as int.","signature":"int replayedCommandCount","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"redrawBefore","kind":"field","type":"int","description":"Stores redraw before as int.","signature":"int redrawBefore","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"redrawAfter","kind":"field","type":"int","description":"Stores redraw after as int.","signature":"int redrawAfter","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"presentBefore","kind":"field","type":"int","description":"Stores present before as int.","signature":"int presentBefore","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"presentAfter","kind":"field","type":"int","description":"Stores present after as int.","signature":"int presentAfter","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"diagnostic","kind":"field","type":"text","description":"Stores diagnostic as text.","signature":"text diagnostic","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"yuiPersistentCanvasExecutionV1","kind":"constructor","parameters":[{"name":"diagnostic","type":"text","description":"Diagnostic."}],"returns":"void","signature":"yuiPersistentCanvasExecutionV1(text diagnostic)","description":"Yui persistent canvas execution v1.","tags":["thing","constructor","frontend.yui"],"updated":"2026-09-09"},{"name":"RedrawDelta","kind":"method","parameters":[],"returns":"int","signature":"RedrawDelta() returns int","description":"Redraw delta.","tags":["thing","method","frontend.yui"],"exampleId":"method-RedrawDelta-10","updated":"2026-09-09"},{"name":"PresentDelta","kind":"method","parameters":[],"returns":"int","signature":"PresentDelta() returns int","description":"Present delta.","tags":["thing","method","frontend.yui"],"exampleId":"method-PresentDelta-11","updated":"2026-09-09"}],"tags":["cpu","frontend","frontend.yui","method","source-example","thing","yeho","yui"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/frontend/yui/render-persistent_canvas.yh","line":56,"sha256":"48720d049f91a22c3c1fa07040750e6ba8b45c47c77e91274bedd57ef6b73eb3"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use yuiPersistentCanvasExecutionV1","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using frontend.yui\n\n// Turn YUI models into a working frontend and its rendering/input adapters.\nyuiPersistentCanvasExecutionV1 sample = yuiPersistentCanvasExecutionV1(\"diagnostic\")\nConsole.Log(Text.From(sample.rendered))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.frontend_yui__yuipersistentcanvasexecutionv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"frontend.yui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/frontend/yui\"\n\n[[dependencies]]\npackage = \"graphics.canvas\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/canvas\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.image.processing\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image/processing\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"input.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/input/text\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"c9b5febc5b0b098f1ad825b0b19142b9dbf101269452a3fcf481e463b67040c9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-RedrawDelta-10","title":"yuiPersistentCanvasExecutionV1.RedrawDelta","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using frontend.yui\n\n// Redraw delta.\nyuiPersistentCanvasExecutionV1 instance = yuiPersistentCanvasExecutionV1(\"diagnostic\")\nint result = instance.RedrawDelta()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.frontend_yui__yuipersistentcanvasexecutionv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"frontend.yui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/frontend/yui\"\n\n[[dependencies]]\npackage = \"graphics.canvas\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/canvas\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.image.processing\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image/processing\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"input.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/input/text\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"34768fbe63cad27493171b1d529a7b14faac62afd1af510fd0a9511d74976198","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-PresentDelta-11","title":"yuiPersistentCanvasExecutionV1.PresentDelta","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using frontend.yui\n\n// Present delta.\nyuiPersistentCanvasExecutionV1 instance = yuiPersistentCanvasExecutionV1(\"diagnostic\")\nint result = instance.PresentDelta()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.frontend_yui__yuipersistentcanvasexecutionv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"frontend.yui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/frontend/yui\"\n\n[[dependencies]]\npackage = \"graphics.canvas\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/canvas\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.image.processing\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image/processing\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"input.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/input/text\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"689aab509c2993c16ef3bfdcd0c141f829a885efaadc0852fd9227e69ed5ef4b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["rendered","presented","damageCount","replayedCommandCount","redrawBefore","redrawAfter","presentBefore","presentAfter","diagnostic","yuiPersistentCanvasExecutionV1","RedrawDelta","PresentDelta"],"url":"https://demonhunterlabs.com/academy/api?item=frontend.yui--yuiPersistentCanvasExecutionV1","json":"https://demonhunterlabs.com/reference/items/frontend.yui--yuiPersistentCanvasExecutionV1.json","markdown":"https://demonhunterlabs.com/reference/text/frontend.yui--yuiPersistentCanvasExecutionV1.md"}
