react
@fungi.computer/sprite / react
Type Aliases
Section titled “Type Aliases”SpriteProps
Section titled “SpriteProps”SpriteProps =
AvatarPresentation&Omit<HTMLAttributes<HTMLDivElement>>,"children"> > &object
Avatar presentation plus ordinary attributes for the DOM host.
Type Declaration
Section titled “Type Declaration”service?
Section titled “service?”
readonlyoptionalservice?:SpriteService
Optional for standalone use; a shell normally supplies SpriteProvider.
paused?
Section titled “paused?”
readonlyoptionalpaused?:boolean
onState?
Section titled “onState?”
readonlyoptionalonState?: (state) =>void
Observe loading, ready, error, and disposal changes.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Variables
Section titled “Variables”Sprite
Section titled “Sprite”
constSprite:ForwardRefExoticComponent<AvatarPresentation&Omit<HTMLAttributes<HTMLDivElement>>,"children"> > &object&RefAttributes<HTMLDivElement>>>>
Own one player; source and appearance changes do not remount its React host.
Functions
Section titled “Functions”SpriteProvider()
Section titled “SpriteProvider()”SpriteProvider(
__namedParameters):Element
Shell-owned renderer and asset configuration; no selected identity lives here.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”service
Section titled “service”children
Section titled “children”ReactNode
Returns
Section titled “Returns”Element