ascii-ui
Version:
Graphic terminal emulator for HTML canvas elements
21 lines • 524 B
JavaScript
export function assignCharStyle(target, source) {
if (source) {
if (source.font) {
target.font = source.font;
}
if (source.offsetX) {
target.offsetX = source.offsetX;
}
if (source.offsetY) {
target.offsetY = source.offsetY;
}
if (source.fg) {
target.fg = source.fg;
}
if (source.bg) {
target.bg = source.bg;
}
}
return target;
}
//# sourceMappingURL=assignCharStyle.js.map