/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/scene/text-html/BatchableHTMLText.ts
23 строки
830 B
Zyie
feat: update text GPU lifecycle and resolution updates (#11781)
08 дек 2025, 16:30
Не верифицирован
08 дек 2025, 16:30
3a071ad
Код
Авторство
О чём код?
import { type Texture } from '../../rendering/renderers/shared/texture/Texture'; import { BatchableSprite } from '../sprite/BatchableSprite'; /** * The BatchableHTMLText class extends the BatchableSprite class and is used to handle HTML text rendering. * It includes a promise for the texture as generating the HTML texture takes some time. * @internal */ export class BatchableHTMLText extends BatchableSprite { public texturePromise: Promise<Texture>; public generatingTexture = false; public currentKey: string = '--'; /** Destroys the BatchableHTMLText instance. Returns the texture promise to the renderer and cleans up references. */ public destroy() { this.texturePromise = null; this.generatingTexture = false; this.currentKey = '--'; super.destroy(); } }