# CanvasContext.lineTo(number x, number and)

with Promise style call: Not supported

Mini Program plugin: Support

Adds a new point, and then creates a line from the last specified point to the target point. use stroke Method to draw lines

# parameter

# number x

Target position x coordinate

# number and

Target position and coordinate

# sample code

const ctx = wx.createCanvasContext('myCanvas')
ctx.moveTo(10, 10)
ctx.rect(10, 10, 100, 50)
ctx.lineTo(110, 60)