UNPKG

@pixi/react

Version:

Write PixiJS applications using React declarative style.

1 lines 794 B
{"version":3,"file":"parseComponentType.mjs","sources":["../../src/helpers/parseComponentType.ts"],"sourcesContent":["function lowercaseFirstCharacter(_fullMatch: string, firstCharacter: string)\n{\n return firstCharacter.toLowerCase();\n}\n\nexport function parseComponentType(type: string)\n{\n let parsedType = type;\n\n if (type.startsWith('pixi'))\n {\n parsedType = type.replace(/^pixi([A-Z])/, lowercaseFirstCharacter);\n }\n\n return parsedType;\n}\n"],"names":[],"mappings":";AAAA,SAAS,uBAAA,CAAwB,YAAoB,cACrD,EAAA;AACI,EAAA,OAAO,eAAe,WAAY,EAAA;AACtC;AAEO,SAAS,mBAAmB,IACnC,EAAA;AACI,EAAA,IAAI,UAAa,GAAA,IAAA;AAEjB,EAAI,IAAA,IAAA,CAAK,UAAW,CAAA,MAAM,CAC1B,EAAA;AACI,IAAa,UAAA,GAAA,IAAA,CAAK,OAAQ,CAAA,cAAA,EAAgB,uBAAuB,CAAA;AAAA;AAGrE,EAAO,OAAA,UAAA;AACX;;;;"}