1***@qq.com
1***@qq.com
  • 发布:2023-11-15 11:40
  • 更新:2023-11-15 20:14
  • 阅读:155

nvue页面使用gcanvas在ios上setStrokeStyle设置为黑色stroke后不显示,在安卓正常显示为黑色

分类:nvue

在线等大佬求助!!
this.ctx.setStrokeStyle('#000')
this.ctx.beginPath();
this.ctx.setLineCap('round')
this.ctx.setLineWidth(1)
this.ctx.moveTo(point[point.length - 2][0], point[point.length - 2][1])
this.ctx.lineTo(point[point.length - 1][0], point[point.length - 1][1])
this.ctx.stroke()
this.ctx.draw(true)

在安卓上划线颜色为黑色(正常预期)

在ios上划线无颜色也无报错
在线等大佬求助!!

2023-11-15 11:40 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

gcanvas在ios设置描边颜色就无效吗

陌上华年

陌上华年

放弃吧,nvue都不维护了。

  • 1***@qq.com (作者)

    那还有什么办法可以实现画布类似的功能吗

    2023-11-15 13:31

DCloud_heavensoft

DCloud_heavensoft

nvue还是套web-view组件,用webview的canvas吧。

要回复问题请先登录注册