@pixi/react
Version:
Write PixiJS applications using React declarative style.
17 lines (14 loc) • 423 B
JavaScript
;
;
function lowercaseFirstCharacter(_fullMatch, firstCharacter) {
return firstCharacter.toLowerCase();
}
function parseComponentType(type) {
let parsedType = type;
if (type.startsWith("pixi")) {
parsedType = type.replace(/^pixi([A-Z])/, lowercaseFirstCharacter);
}
return parsedType;
}
exports.parseComponentType = parseComponentType;
//# sourceMappingURL=parseComponentType.js.map