You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ctx.font=`${computedStyles.fontWeight}${computedStyles.fontSize}${computedStyles.fontFamily}`;// build string instead of using `computedStyles.font` to fix/workaround `tabular-nums` returning `null`
102
+
ctx.font=`${resolvedStyles.fontWeight}${resolvedStyles.fontSize}${resolvedStyles.fontFamily}`;// build string instead of using `computedStyles.font` to fix/workaround `tabular-nums` returning `null`
94
103
95
104
// TODO: Hack to handle `textAnchor` with canvas. Try to find a better approach
96
-
if(computedStyles.textAnchor==='middle'){
105
+
if(resolvedStyles.textAnchor==='middle'){
97
106
ctx.textAlign='center';
98
-
}elseif(computedStyles.textAnchor==='end'){
107
+
}elseif(resolvedStyles.textAnchor==='end'){
99
108
ctx.textAlign='right';
100
109
}else{
101
-
ctx.textAlign=computedStyles.textAlignasCanvasTextAlign;// TODO: Handle/map `justify` and `match-parent`?
110
+
ctx.textAlign=resolvedStyles.textAlignasCanvasTextAlign;// TODO: Handle/map `justify` and `match-parent`?
0 commit comments