Skip to main content

Loading Card API Reference

kittl.design.loadingCard — create and manage loading card placeholders.

Scope: design:state:write

createLoadingCard(params)

Creates a loading card placeholder on the canvas.

PropertyTypeRequiredDescription
positionAbsolutePosition | RelativePositionYesPlacement on canvas
size{ width, height, applyViewportScale? }NoPlaceholder dimensions
imageGenerationIdstringNoID to track the associated generation
startedAtnumberNoTimestamp when the operation started
generatingModelKeystringNoIdentifier of the AI model being used
generationAverageSpeednumberNoAverage speed metric for progress estimation
namestringNoDisplay name for organization/debugging

updateLoadingCard(params)

Updates an existing loading card.

PropertyTypeRequiredDescription
idstringYesID of the loading card to update
positionAbsolutePosition | RelativePositionNoNew position
size{ width, height, applyViewportScale? }NoNew dimensions
imageGenerationIdstringNoUpdated generation ID
startedAtnumberNoUpdated start timestamp
generatingModelKeystringNoUpdated model key
generationAverageSpeednumberNoUpdated speed metric
namestringNoUpdated display name