chanind / hanzi-writer-miniprogram

Wechat Miniprogram plugin for Hanzi Writer (微信小程序组件)
https://chanind.github.io/hanzi-writer
MIT License
85 stars 25 forks source link

Unable to display strokes (version 2.9.0 suport a new Cnavas 2D API) #32

Open xiaolive-me opened 3 years ago

xiaolive-me commented 3 years ago

Hi: Older version of CreateCanvasContext, the interface is outdated. (refer to RenderTarget.js constructor)

    If the Canvas Type is set to 2D, the official recommended way to get the context object is 
    const Query = wx.createSelectorQuery().
    query.select('#myCanvas')
passion2win commented 3 years ago

Hi: Older version of CreateCanvasContext, the interface is outdated. (refer to RenderTarget.js constructor)

    If the Canvas Type is set to 2D, the official recommended way to get the context object is 
    const Query = wx.createSelectorQuery().
    query.select('#myCanvas')

I contacted the author yesterday for the same problem, but he thought that it was ok in master. How to fix it? Thank you!

chanind commented 3 years ago

Could you submit a PR to the repo with the fixed version?