feat: add meatureText api
parent
187c9c6633
commit
e713117b92
|
@ -1,5 +1,10 @@
|
|||
const example = {}
|
||||
|
||||
example.measureText = function (context) {
|
||||
const data = context.measureText('123')
|
||||
console.log(data)
|
||||
}
|
||||
|
||||
example.rotate = function (context) {
|
||||
context.beginPath()
|
||||
context.rotate(10 * Math.PI / 180)
|
||||
|
|
Loading…
Reference in New Issue