UNPKG

@pixi/react

Version:

Write PixiJS applications using React declarative style.

1 lines 862 B
{"version":3,"file":"createTextInstance.mjs","sources":["../../src/helpers/createTextInstance.ts"],"sourcesContent":["import { type PixiReactNode } from 'typedefs/PixiReactNode';\nimport { type HostConfig } from '../typedefs/HostConfig';\nimport { log } from './log';\n\n/** Always throws, because we don't support this (yet). */\nexport function createTextInstance(\n _text: string,\n _rootContainer: HostConfig['containerInstance'],\n _hostContext: HostConfig['hostContext'],\n _internalHandle: any,\n): PixiReactNode\n{\n log('info', 'lifecycle::createTextInstance');\n throw new Error('Text instances are not yet supported. Please use a `<text>` component.');\n}\n"],"names":[],"mappings":";;;AAKO,SAAS,kBACZ,CAAA,KAAA,EACA,cACA,EAAA,YAAA,EACA,eAEJ,EAAA;AACI,EAAA,GAAA,CAAI,QAAQ,+BAA+B,CAAA;AAC3C,EAAM,MAAA,IAAI,MAAM,wEAAwE,CAAA;AAC5F;;;;"}