Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

添加合并操作函数,文字绘制优化 #9

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

pb-cheung
Copy link

@pb-cheung pb-cheung commented May 31, 2020

  1. 大多数项目诉求是直接获取图片,修改了下封装添加了wxmlToCanvasToImg函数
  2. type=2d的canvas获取context为异步过程,添加获取上下文成功回调
    3. 文字宽度并没有真正动态布局,在canvas中重新计算文字宽度修改xom中的宽度,绘制时候判断不超出父元素允许换行(暂不添加)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant