0
我似乎无法将文本呈现给OffscreenCanvas(在Chrome 61.0.3中)。该方法是否丢失或有什么我需要做的,以实现这个工作?fillText在OffscreenCanvas上不可用?
const oOffscreenCanvas = new OffscreenCanvas(480,480);
const oOffscreenContext = oOffscreenCanvas.getContext('2d');
oOffscreenContext.fillStyle = 'red';
oOffscreenContext.fillRect(0, 0, 64, 64);
oOffscreenContext.fillStyle = 'white';
oOffscreenContext.fillText('help', 32, 32);
....生产....
Uncaught TypeError: oOffscreenContext.fillText is not a function
使用控制台来查看的时间2D上下文对象'console.log(oOffscreenContext).'在我的Chrome上(当前beta 6/10/2017(au date)))以下内容在文本方面缺失。 'ctx.font','ctx.fillText','ctx.strokeText','ctx.measureText','ctx.textAlign','ctx.textBaseline'如果他们永远被支持,我不能说。 – Blindman67