mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
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.
This commit is contained in:
@ -269,3 +269,12 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
html2canvas(document.body).then(function(canvas) {
|
||||||
|
var img = canvas.toDataURL("image/png");
|
||||||
|
console.log(img);
|
||||||
|
});
|
||||||
|
|
||||||
|
*/
|
||||||
|
Reference in New Issue
Block a user