fix issue with text component and adjust layer selections some more
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user