Inspired by Smore's ClippyJS
Modern Clippy is a reimplementation of Clippy using Web Components
Try it out now. API is below. Open the developer console and watch Clippy move!
mute
if sound is mutedbundle
loads a json art bundledialog
describes the placement of the speech bubble for clippy:left
,right
,top
,bottom
current
READONLY string: the current animationactions
READONLY string[]: a list of available actions
loaded
- emitted when a bundle has loaded
actionStart
- identifies when a frame starts
frame
- provides frame information
- useful for coordinating dialogs
actionEnd
- identifies when a frame ends
- load(config: AgentConfiguration | string);
- loads an AgentConfiguration
- play(name: string)
- play a specific action
- playIdle()
- play a random idle animation
- stop()
- exit gracefully from the current animation
- stopImmediately()
- exit immediately from the current animation and return to idle
default
slots into the speech bubble- The dialog slot overrides any current speech being shown
- npm run build