in src/util/styleCompat.ts [213:249]
function convertToEC4RichItem(out: Dictionary<unknown>, richItem: TextStylePropsPart) {
if (!richItem) {
return;
}
hasOwn(richItem, 'fill') && (out.textFill = richItem.fill);
hasOwn(richItem, 'stroke') && (out.textStroke = richItem.fill);
hasOwn(richItem, 'lineWidth') && (out.textStrokeWidth = richItem.lineWidth);
hasOwn(richItem, 'font') && (out.font = richItem.font);
hasOwn(richItem, 'fontStyle') && (out.fontStyle = richItem.fontStyle);
hasOwn(richItem, 'fontWeight') && (out.fontWeight = richItem.fontWeight);
hasOwn(richItem, 'fontSize') && (out.fontSize = richItem.fontSize);
hasOwn(richItem, 'fontFamily') && (out.fontFamily = richItem.fontFamily);
hasOwn(richItem, 'align') && (out.textAlign = richItem.align);
hasOwn(richItem, 'verticalAlign') && (out.textVerticalAlign = richItem.verticalAlign);
hasOwn(richItem, 'lineHeight') && (out.textLineHeight = richItem.lineHeight);
hasOwn(richItem, 'width') && (out.textWidth = richItem.width);
hasOwn(richItem, 'height') && (out.textHeight = richItem.height);
hasOwn(richItem, 'backgroundColor') && (out.textBackgroundColor = richItem.backgroundColor);
hasOwn(richItem, 'padding') && (out.textPadding = richItem.padding);
hasOwn(richItem, 'borderColor') && (out.textBorderColor = richItem.borderColor);
hasOwn(richItem, 'borderWidth') && (out.textBorderWidth = richItem.borderWidth);
hasOwn(richItem, 'borderRadius') && (out.textBorderRadius = richItem.borderRadius);
hasOwn(richItem, 'shadowColor') && (out.textBoxShadowColor = richItem.shadowColor);
hasOwn(richItem, 'shadowBlur') && (out.textBoxShadowBlur = richItem.shadowBlur);
hasOwn(richItem, 'shadowOffsetX') && (out.textBoxShadowOffsetX = richItem.shadowOffsetX);
hasOwn(richItem, 'shadowOffsetY') && (out.textBoxShadowOffsetY = richItem.shadowOffsetY);
hasOwn(richItem, 'textShadowColor') && (out.textShadowColor = richItem.textShadowColor);
hasOwn(richItem, 'textShadowBlur') && (out.textShadowBlur = richItem.textShadowBlur);
hasOwn(richItem, 'textShadowOffsetX') && (out.textShadowOffsetX = richItem.textShadowOffsetX);
hasOwn(richItem, 'textShadowOffsetY') && (out.textShadowOffsetY = richItem.textShadowOffsetY);
}