File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ This release notably changes to using N-API. 🎉
40
40
* Fix issue related to improper parsing of leading and trailing whitespaces in CSS color. (#2301 )
41
41
* RGB functions should support real numbers now instead of just integers. (#2339 )
42
42
* Allow alternate or properly escaped quotes * within* font-family names
43
+ * Fix TextMetrics type to include alphabeticBaseline, emHeightAscent, and emHeightDescent properties
43
44
44
45
2.11.2
45
46
==================
Original file line number Diff line number Diff line change @@ -128,10 +128,13 @@ export class Canvas {
128
128
}
129
129
130
130
export interface TextMetrics {
131
+ readonly alphabeticBaseline : number ;
131
132
readonly actualBoundingBoxAscent : number ;
132
133
readonly actualBoundingBoxDescent : number ;
133
134
readonly actualBoundingBoxLeft : number ;
134
135
readonly actualBoundingBoxRight : number ;
136
+ readonly emHeightAscent : number ;
137
+ readonly emHeightDescent : number ;
135
138
readonly fontBoundingBoxAscent : number ;
136
139
readonly fontBoundingBoxDescent : number ;
137
140
readonly width : number ;
You can’t perform that action at this time.
0 commit comments