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.
| Property | Type | Required | Description |
|---|---|---|---|
position | AbsolutePosition | RelativePosition | Yes | Placement on canvas |
size | { width, height, applyViewportScale? } | No | Placeholder dimensions |
imageGenerationId | string | No | ID to track the associated generation |
startedAt | number | No | Timestamp when the operation started |
generatingModelKey | string | No | Identifier of the AI model being used |
generationAverageSpeed | number | No | Average speed metric for progress estimation |
name | string | No | Display name for organization/debugging |
updateLoadingCard(params)
Updates an existing loading card.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Yes | ID of the loading card to update |
position | AbsolutePosition | RelativePosition | No | New position |
size | { width, height, applyViewportScale? } | No | New dimensions |
imageGenerationId | string | No | Updated generation ID |
startedAt | number | No | Updated start timestamp |
generatingModelKey | string | No | Updated model key |
generationAverageSpeed | number | No | Updated speed metric |
name | string | No | Updated display name |