Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bigmeow/minapp-slider-left
/ functions
Functions
61 in github.com/bigmeow/minapp-slider-left
⨍
Functions
61
◇
Types & classes
9
Method
addColorStop
* 创建一个颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染。需要使用 addColorStop() 来指定渐变点,至少要两个。
typings/wx.d.ts:150
Method
arc
* 添加一个弧形路径到当前路径,顺时针绘制。
typings/wx.d.ts:210
Method
backgroundColor
* 颜色值
typings/wx.d.ts:19
Method
beginPath
* 开始一个路径
typings/wx.d.ts:194
Method
bezierCurveTo
* 创建三次方贝塞尔曲线
typings/wx.d.ts:218
Method
bottom
* 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
typings/wx.d.ts:39
Method
clearRect
* 在给定的矩形区域内,清除画布上的像素
typings/wx.d.ts:182
Method
closePath
* 关闭一个路径
typings/wx.d.ts:198
Method
createCircularGradient
* 创建一个圆形的渐变颜色。 起点在圆心,终点在圆环。 需要使用 addColorStop() 来指定渐变点,至少要两个。
typings/wx.d.ts:146
Method
createLinearGradient
* 创建一个线性的渐变颜色。需要使用 addColorStop() 来指定渐变点,至少要两个。
typings/wx.d.ts:142
Method
draw
* 进行绘图
typings/wx.d.ts:258
Method
drawImage
* 在画布上绘制图像
typings/wx.d.ts:242
Method
fill
* 对当前路径进行填充
typings/wx.d.ts:186
Method
fillRect
* 填充一个矩形。用 setFillStyle() 设置矩形的填充色,如果没设置默认是黑色。
typings/wx.d.ts:174
Method
fillText
* 在画布上绘制被填充的文本
typings/wx.d.ts:234
Method
height
* 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
typings/wx.d.ts:27
Method
left
* 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
typings/wx.d.ts:35
Method
lineTo
* 添加一个新点,然后在画布中创建从该点到最后指定点的线条。
typings/wx.d.ts:206
Method
matrix
* 同transform-function matrix
typings/wx.d.ts:119
Method
matrix3d
* 同transform-function matrix3d
typings/wx.d.ts:123
Method
moveTo
* 把路径移动到画布中的指定点,但不创建线条。
typings/wx.d.ts:202
Method
opacity
* 透明度,参数范围 0~1
typings/wx.d.ts:15
Method
quadraticCurveTo
* 创建二次方贝塞尔曲线
typings/wx.d.ts:214
Method
rect
* 添加一个矩形路径到当前路径。
typings/wx.d.ts:170
Method
restore
* 恢复之前保存过的坐标轴的缩放、旋转、平移信息
typings/wx.d.ts:254
Method
right
* 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
typings/wx.d.ts:43
Method
rotate
* deg的范围-180~180,从原点顺时针旋转一个deg角度
typings/wx.d.ts:47
Method
rotate
* 对坐标轴进行顺时针旋转
typings/wx.d.ts:226
Method
rotate3d
* 同transform-function rotate3d
typings/wx.d.ts:63
Method
rotateX
* deg的范围-180~180,在X轴旋转一个deg角度
typings/wx.d.ts:51
Method
rotateY
* deg的范围-180~180,在Y轴旋转一个deg角度
typings/wx.d.ts:55
Method
rotateZ
* deg的范围-180~180,在Z轴旋转一个deg角度
typings/wx.d.ts:59
Method
save
* 保存当前坐标轴的缩放、旋转、平移信息
typings/wx.d.ts:250
Method
scale
* 一个参数时,表示在X轴、Y轴同时缩放sx倍数;两个参数时表示在X轴缩放sx倍数,在Y轴缩放sy倍数
typings/wx.d.ts:67
Method
scale
* 对横纵坐标进行缩放
typings/wx.d.ts:222
Method
scale3d
* 在X轴缩放sx倍数,在Y轴缩放sy倍数,在Z轴缩放sz倍数
typings/wx.d.ts:83
Method
scaleX
* 在X轴缩放sx倍数
typings/wx.d.ts:71
Method
scaleY
* 在Y轴缩放sy倍数
typings/wx.d.ts:75
Method
scaleZ
* 在Z轴缩放sy倍数
typings/wx.d.ts:79
Method
setFillStyle
* 设置填充色, 如果没有设置 fillStyle,默认颜色为 black。
typings/wx.d.ts:130
Method
setFontSize
* 设置字体大小
typings/wx.d.ts:238
Method
setGlobalAlpha
* 设置全局画笔透明度。
typings/wx.d.ts:246
Method
setLineCap
* 设置线条端点的样式
typings/wx.d.ts:154
Method
setLineJoin
* 设置两线相交处的样式
typings/wx.d.ts:158
Method
setLineWidth
* 设置线条宽度
typings/wx.d.ts:162
Method
setMiterLimit
* 设置最大倾斜
typings/wx.d.ts:166
Method
setShadow
* 设置阴影
typings/wx.d.ts:138
Method
setStrokeStyle
* 设置边框颜色, 如果没有设置 fillStyle,默认颜色为 black。
typings/wx.d.ts:134
Method
skew
* 参数范围-180~180;一个参数时,Y轴坐标不变,X轴坐标延顺时针倾斜ax度;两个参数时,分别在X轴倾斜ax度,在Y轴倾斜ay度
typings/wx.d.ts:107
Method
skewX
* 参数范围-180~180;Y轴坐标不变,X轴坐标延顺时针倾斜ax度
typings/wx.d.ts:111
Method
skewY
* 参数范围-180~180;X轴坐标不变,Y轴坐标延顺时针倾斜ay度
typings/wx.d.ts:115
Method
stroke
* 对当前路径进行描边
typings/wx.d.ts:190
Method
strokeRect
* 一个矩形(非填充)。用 setFillStroke() 设置矩形线条的颜色,如果没设置默认是黑色。
typings/wx.d.ts:178
Method
top
* 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
typings/wx.d.ts:31
Method
translate
* 一个参数时,表示在X轴偏移tx,单位px;两个参数时,表示在X轴偏移tx,在Y轴偏移ty,单位px。
typings/wx.d.ts:87
Method
translate
* 对坐标原点进行缩放
typings/wx.d.ts:230
Method
translate3d
* 在X轴偏移tx,在Y轴偏移ty,在Z轴偏移tz,单位px
typings/wx.d.ts:103
Method
translateX
* 在X轴偏移tx,单位px
typings/wx.d.ts:91
Method
translateY
* 在Y轴偏移tx,单位px
typings/wx.d.ts:95
Method
translateZ
* 在Z轴偏移tx,单位px
typings/wx.d.ts:99
Method
width
* 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
typings/wx.d.ts:23