From ac024c51909e13a611e69ab38aa3f8bd45cca301 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 3 May 2020 18:23:14 +0200 Subject: [PATCH] KaTex PoC: Add snippet of html2canvas With this, maybe we don't even need to have a screenshot ability, and can just pass the image encoded as a message. --- lib/main_webview.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/main_webview.dart b/lib/main_webview.dart index 6784ad8b..90522731 100644 --- a/lib/main_webview.dart +++ b/lib/main_webview.dart @@ -269,3 +269,12 @@ class _MyHomePageState extends State { ); } } + +/* + +html2canvas(document.body).then(function(canvas) { + var img = canvas.toDataURL("image/png"); + console.log(img); +}); + +*/