mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
+1
-1
@@ -213,7 +213,7 @@ module.exports = class CanvasUtil {
|
||||
return ctx;
|
||||
}
|
||||
|
||||
measureTextHeightWithBreaks(ctx, text) {
|
||||
static measureTextHeightWithBreaks(ctx, text) {
|
||||
const lines = text.split('\n');
|
||||
let result = 0;
|
||||
for (const line of lines) {
|
||||
|
||||
Reference in New Issue
Block a user