@pixi/react
Version:
Write PixiJS applications using React declarative style.
1 lines • 602 B
Source Map (JSON)
{"version":3,"file":"useExtend.mjs","sources":["../../src/hooks/useExtend.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { extend } from '../helpers/extend';\n\n/** Expose Pixi.js components for use in JSX. */\nexport function useExtend(\n /** @description The Pixi.js components to be exposed. */\n objects: Parameters<typeof extend>[0],\n)\n{\n useMemo(() =>\n {\n extend(objects);\n }, [objects]);\n}\n"],"names":[],"mappings":";;;;AAIO,SAAS,UAEZ,OAEJ,EAAA;AACI,EAAA,OAAA,CAAQ,MACR;AACI,IAAA,MAAA,CAAO,OAAO,CAAA;AAAA,GAClB,EAAG,CAAC,OAAO,CAAC,CAAA;AAChB;;;;"}