# CanvasContext.strokeRect(number x, number and number width, number height)
with Promise style call: Not supported
Mini Program plugin: Support
Draw a rectangle(Unfilled)。 use setStrokeStyle
Sets the color of the rectangular line. If not set, the default is black.
# parameter
# number x
The upper-left abscissa of a rectangular path
# number and
The ordinate of the upper-left corner of a rectangular path
# number width
Width of Rectangular Path
# number height
Height of rectangular path
# sample code
const ctx = wx.createCanvasContext('myCanvas')
ctx.setStrokeStyle('red')
ctx.strokeRect(10, 10, 150, 75)
ctx.draw()