creator.lottiefiles.com
Create high quality, lightweight, powerful and interactive animations with Lottie Creator. Bring motion to your designs quickly and easily.
First seen 2026-09-14 · Last seen 2026-09-14 · Source: webmcp.com
Answer 13 · Act 3 · Transact 0 · Score: Not yet scored
Tool inspector
measure_text_units
Return per-line, per-word, and per-character bounds for an existing text layer. Uses the same canvas.measureText pipeline that powers `read_scene`'s `measured_bounds`, but exposes the cumulative pen position per glyph so per-character recipes can place each new layer at the source's exact kerning — no `bounds.width / char_count` approximation. When to call (REQUIRED before splitting): - Any per-character recipe (typewriter, per-character-rise, bottom-up-letters, top-down-letters, kinetic-center-build, short-slide-*). - Any per-word recipe where each word needs its own layer (per-word-crossfade, spring-scale-in) so the rebuilt phrase reads as one centered unit. - Layout-aware effects that need exact word widths (short-slide-down, short-slide-right, kinetic-center-build). When NOT to call: - Whole-layer recipes (micro-scale-fade, fade-through, scale-down-fade, mask-reveal-up) — those animate one layer; `read_scene`'s `visual_bounds` is enough. - Layers that aren't text — call returns an error. Returns (positions match `read_scene`'s coordinate system): - `local_bounds` / `world_bounds` for the whole layer (matches `text_style.measured_bounds` and `layout.visual_bounds` from `read_scene`). - `font`: `{ name, size, tracking, line_height, alignment }` — pass these to `create_text` per character/word/line to preserve the source typeface. - `lines[]`: one entry per `\n`-separated line. Each line carries `text`, `local_bounds`, `world_bounds`, and optionally `words[]` / `characters[]` depending on `granularity`. - `characters[i].local_bounds.x + width/2` is the visual CENTER of glyph i; use that as the `position.x` for the per-character layer. - `characters[i].advance_x_local` is the pen position AFTER glyph i (left edge of glyph i+1 with tracking applied). Sum across glyphs and you reproduce the line width. Granularity: - `line` — only line bounds. Cheapest. Use for per-line recipes. - `word` — adds word bounds inside each line. Use for per-word recipes. - `character` — a…
Input schema
| Property | Type | Required | Description |
|---|---|---|---|
layer_id |
string | yes | Text layer id from `read_scene`. Pass the source phrase's layer id before splitting it. |
granularity |
string | no | Which units to return. Default 'all' (words + characters per line). Use 'character' for per-character recipes, 'word' for per-word, 'line' for per-line. |
Raw JSON schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer_id": {
"description": "Text layer id from `read_scene`. Pass the source phrase's layer id before splitting it.",
"type": "string"
},
"granularity": {
"description": "Which units to return. Default 'all' (words + characters per line). Use 'character' for per-character recipes, 'word' for per-word, 'line' for per-line.",
"type": "string",
"enum": [
"line",
"word",
"character",
"all"
]
}
},
"required": [
"layer_id"
],
"additionalProperties": false
}
Similar websites
neohack.dev
An inviting pixel-art doorway into NetHack. Explore at your own pace, one thoughtful turn at a time.
persona-chat.dev
Persona is an open-source, themeable AI chat widget you can add to any website in minutes. SSE streaming, agent loops, tool use, and style isolation: zero frame…
demos.telerik.com
Explore and test a wide range of Telerik UI for Blazor examples, demos, and sample applications.
bandarra.me
WebMCP-enabled text editor with imperative tools for document I/O, workspace CRUD, on-device translation, and sub-agent (planner / researcher / writer / reviewe…