إنتقل إلى المحتوى الرئيسي

std-text-effects

Level: Atom | Entity: TextContent | Persistence: runtime

3 states, 4 events, 6 transitions

Live Preview

orbital TextContentOrbital {
entity TextContent [runtime] {
id : string
name : string
description : string
status : string
createdAt : string
content : string
highlightType : string
reference : string
}
trait TextContentTextEffects -> TextContent [interaction] {
initial: idle
state idle {
INIT -> idle
(fetch TextContent)
(render-ui main { type: "stack", direction: "vertical", gap: "lg", children: [{ type: "stack", direction: "horizontal", gap: "sm", align: "center", children: [{ type: "icon", name: "type", size: "lg" }, { type: "typography", content: "Text Effects", variant: "h2" }] }, { type: "divider" }, { type: "markdown-content", content: ["object/get", ["array/first", "@entity"], "name"] }, { type: "code-block", code: ["object/get", ["array/first", "@entity"], "reference"], language: "text" }, { type: "typography", variant: "body", content: ["object/get", ["array/first", "@entity"], "name"] }, { type: "stack", direction: "horizontal", gap: "sm", justify: "center", children: [{ type: "button", label: "Animate", event: "ANIMATE", variant: "primary", icon: "play" }, { type: "button", label: "Highlight", event: "HIGHLIGHT", variant: "secondary", icon: "highlighter" }] }] })
ANIMATE -> animating
(render-ui main { type: "stack", direction: "vertical", gap: "lg", children: [{ type: "stack", direction: "horizontal", gap: "sm", align: "center", children: [{ type: "icon", name: "type", size: "lg" }, { type: "typography", content: "Text Effects", variant: "h2" }] }, { type: "divider" }, { type: "typewriter-text", text: ["object/get", ["array/first", "@entity"], "name"], speed: 50, cursor: true }, { type: "law-reference-tooltip", reference: ["object/get", ["array/first", "@entity"], "reference"], children: [{ type: "typography", variant: "caption", color: "muted", content: "Hover for reference details" }] }, { type: "button", label: "Highlight", event: "HIGHLIGHT", variant: "secondary", icon: "highlighter" }] })
HIGHLIGHT -> highlighted
(render-ui main { type: "stack", direction: "vertical", gap: "lg", children: [{ type: "stack", direction: "horizontal", gap: "sm", align: "center", children: [{ type: "icon", name: "type", size: "lg" }, { type: "typography", content: "Text Effects", variant: "h2" }] }, { type: "divider" }, { type: "text-highlight", text: ["object/get", ["array/first", "@entity"], "name"], highlightColor: "yellow", pattern: "important" }, { type: "law-reference-tooltip", reference: ["object/get", ["array/first", "@entity"], "reference"], children: [{ type: "typography", variant: "body", content: ["object/get", ["array/first", "@entity"], "name"] }] }, { type: "button", label: "Reset", event: "RESET", variant: "ghost", icon: "rotate-ccw" }] })
}
state animating {
HIGHLIGHT -> highlighted
(render-ui main { type: "stack", direction: "vertical", gap: "lg", children: [{ type: "stack", direction: "horizontal", gap: "sm", align: "center", children: [{ type: "icon", name: "type", size: "lg" }, { type: "typography", content: "Text Effects", variant: "h2" }] }, { type: "divider" }, { type: "text-highlight", text: ["object/get", ["array/first", "@entity"], "name"], highlightColor: "yellow", pattern: "important" }, { type: "law-reference-tooltip", reference: ["object/get", ["array/first", "@entity"], "reference"], children: [{ type: "typography", variant: "body", content: ["object/get", ["array/first", "@entity"], "name"] }] }, { type: "button", label: "Reset", event: "RESET", variant: "ghost", icon: "rotate-ccw" }] })
RESET -> idle
(render-ui main { type: "stack", direction: "vertical", gap: "lg", children: [{ type: "stack", direction: "horizontal", gap: "sm", align: "center", children: [{ type: "icon", name: "type", size: "lg" }, { type: "typography", content: "Text Effects", variant: "h2" }] }, { type: "divider" }, { type: "markdown-content", content: ["object/get", ["array/first", "@entity"], "name"] }, { type: "code-block", code: ["object/get", ["array/first", "@entity"], "reference"], language: "text" }, { type: "typography", variant: "body", content: ["object/get", ["array/first", "@entity"], "name"] }, { type: "stack", direction: "horizontal", gap: "sm", justify: "center", children: [{ type: "button", label: "Animate", event: "ANIMATE", variant: "primary", icon: "play" }, { type: "button", label: "Highlight", event: "HIGHLIGHT", variant: "secondary", icon: "highlighter" }] }] })
}
state highlighted {
RESET -> idle
(render-ui main { type: "stack", direction: "vertical", gap: "lg", children: [{ type: "stack", direction: "horizontal", gap: "sm", align: "center", children: [{ type: "icon", name: "type", size: "lg" }, { type: "typography", content: "Text Effects", variant: "h2" }] }, { type: "divider" }, { type: "markdown-content", content: ["object/get", ["array/first", "@entity"], "name"] }, { type: "code-block", code: ["object/get", ["array/first", "@entity"], "reference"], language: "text" }, { type: "typography", variant: "body", content: ["object/get", ["array/first", "@entity"], "name"] }, { type: "stack", direction: "horizontal", gap: "sm", justify: "center", children: [{ type: "button", label: "Animate", event: "ANIMATE", variant: "primary", icon: "play" }, { type: "button", label: "Highlight", event: "HIGHLIGHT", variant: "secondary", icon: "highlighter" }] }] })
}
}
page "/textcontents/text-effects" -> TextContentTextEffects
}
Loading preview...

Orbital Visualization

Loading visualization...

Entity Fields

FieldTypeDefault
idstring-
namestring-
descriptionstring-
statusstring"active"
createdAtstring-
contentstring""
highlightTypestring"none"
referencestring""

States

StateType
idleInitial
animating-
highlighted-

Events

EventPayload
INIT-
ANIMATE-
HIGHLIGHT-
RESET-

Transitions

FromEventToEffects
idleINITidle2 effects
idleANIMATEanimating1 effect
animatingHIGHLIGHThighlighted1 effect
highlightedRESETidle1 effect
animatingRESETidle1 effect
idleHIGHLIGHThighlighted1 effect