Files
nothoughts/node_modules/pixi.js/lib/scene/text/utils/ensureTextStyle.mjs
2025-08-04 18:57:35 +02:00

14 lines
424 B
JavaScript

import { HTMLTextStyle } from '../../text-html/HtmlTextStyle.mjs';
import { TextStyle } from '../TextStyle.mjs';
"use strict";
function ensureTextStyle(renderMode, style) {
if (style instanceof TextStyle || style instanceof HTMLTextStyle) {
return style;
}
return renderMode === "html" ? new HTMLTextStyle(style) : new TextStyle(style);
}
export { ensureTextStyle };
//# sourceMappingURL=ensureTextStyle.mjs.map