fix issue with text component and adjust layer selections some more
This commit is contained in:
parent
b7c439f4c4
commit
2aa2e5af7a
3 changed files with 8 additions and 7 deletions
|
@ -123,7 +123,6 @@ export function text(
|
|||
properties?: TextProperties
|
||||
) {
|
||||
let style = getStyle(layer, styleSetStyleOrProperties, styleOrProperties);
|
||||
let size = fontSizes[properties?.size || "sm"];
|
||||
|
||||
if (typeof styleSetStyleOrProperties === "object") {
|
||||
properties = styleSetStyleOrProperties;
|
||||
|
@ -132,6 +131,8 @@ export function text(
|
|||
properties = styleOrProperties;
|
||||
}
|
||||
|
||||
let size = fontSizes[properties?.size || "sm"];
|
||||
|
||||
return {
|
||||
family: fontFamilies[fontFamily],
|
||||
color: style.foreground,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue