Implementation:AI QL Tuui Robot Lottie Animation
| Knowledge Sources | |
|---|---|
| Domains | UI_Asset, Animation |
| Last Updated | 2026-10-24 00:00 GMT |
Overview
Concrete tool for rendering the animated robot shown on the splash and startup UI, provided as a Lottie JSON asset consumed by the vue3-lottie component in the tuui Electron application.
Description
The robot.json file is a Lottie animation asset (v5.7.0, 30fps, 81 frames) containing shape layers and keyframes for a robot animation. It is bundled under src/public/lotties/ so Vite serves it as a static resource and is played back by the <Vue3Lottie> component (registered globally in src/renderer/main.ts) on the splash/welcome screen.
Usage
Reference this file when displaying the robot animation on the splash or welcome screen, or when swapping/updating the splash animation asset. Pass its URL to a <Vue3Lottie> component's animationLink prop.
Code Reference
Source Location
- Repository: tuui
- File: src/public/lotties/robot.json
- Lines: 1-3147
Signature
{
"v": "5.7.0",
"fr": 30,
"ip": 0,
"op": 81,
"w": 400,
"h": 400,
"nm": "robot",
"layers": [ ... ]
}
Import
<!-- Loaded as a static asset URL by Vue3Lottie; no JS import -->
<Vue3Lottie :animation-link="robotLottieUrl" :loop="true" />I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Vue3Lottie component | Vue component | Yes | Renderer component that plays the Lottie JSON |
| animationLink | string (URL) | Yes | URL to the robot.json asset under src/public/lotties/ |
Outputs
| Name | Type | Description |
|---|---|---|
| rendered frames | Canvas/SVG frames | 81-frame robot animation displayed on the splash screen |
Usage Examples
Play the Robot on Splash Screen
<template>
<!-- Vue3Lottie is registered globally in src/renderer/main.ts -->
<Vue3Lottie
:animation-link="robotLottieUrl"
:loop="true"
:auto-play="true"
width="200"
height="200"
/>
</template>
<script setup lang="ts">
// The asset is served from src/public/lotties/robot.json
const robotLottieUrl = '/lotties/robot.json'
</script>