sdfsdfs
This commit is contained in:
13
node_modules/pixi.js/lib/scene/text/utils/ensureTextStyle.mjs
generated
vendored
Normal file
13
node_modules/pixi.js/lib/scene/text/utils/ensureTextStyle.mjs
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
Reference in New Issue
Block a user