API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classTextFactory

@codexo/exojs / resources / stable

AssetFactory implementation that loads plain-text files (TXT, CSV, GLSL shaders, HTML fragments, and any other UTF-8 text) and exposes them as JavaScript strings.

1
props
5
methods
0
events
Import
import { TextFactory } from '@codexo/exojs'

AssetFactory implementation that loads plain-text files (TXT, CSV, GLSL shaders, HTML fragments, and any other UTF-8 text) and exposes them as JavaScript strings.

Constructors 1
new(): TextFactory
Methods 5
create(source: string): Promise<string>
createObjectUrl(blob: Blob): string
destroy(): void
process(response: Response): Promise<string>
revokeObjectUrl(objectUrl: string): void
Properties 1
storageName: "text"
Source