vnode2canvas icon indicating copy to clipboard operation
vnode2canvas copied to clipboard

Canvas发展了这么多年了,为什么始终不见有canvas的前端页面框架呢?

Open Congritulation opened this issue 5 years ago • 2 comments

我留意这各方向已经很久了,但是这么多年了,一直没有发现有人做出一个可以大体替代html标签和css的canvas前端框架,我也不知道为啥。

Congritulation avatar Aug 17 '20 09:08 Congritulation

最近正好在学习这方面材料,有一篇文章提到: 主要是canvas只是一个位图,本身没有语义,如果要在它上面实现UI,等于HTML语言已有的东西都要再发明一遍,比如如何实现超链接、如何实现CSS效果等等。一些最简单的东西都变得很麻烦,因为canvas不是自适应的(responsive),文字在哪里断行,都要自己计算,而且用户也无法选中文本。另外,怎么让搜索引擎检索网页,解决起来也不是很容易。 原文出处:https://www.ruanyifeng.com/blog/2015/02/future-of-dom.html

lujq avatar Dec 16 '20 06:12 lujq

那不就变成flutter这种自绘ui框架了吗?出了像素抑制性和可移植性外都是缺点

lin-calvin avatar Dec 30 '23 05:12 lin-calvin