chore: measureText width

master
XuPeng 2021-07-29 09:44:56 +08:00
parent 8e0033ef17
commit 9b9487c84c
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ const example = {}
example.measureText = function (context) {
const data = context.measureText('123')
console.log(data)
console.log(`width: ${data.width}`)
}
example.rotate = function (context) {