Skip to content

Instantly share code, notes, and snippets.

@glebsexy
Last active July 27, 2019 03:16
Show Gist options
  • Save glebsexy/4bd72479a5cd5620a89ef7e7dcccab9c to your computer and use it in GitHub Desktop.
Save glebsexy/4bd72479a5cd5620a89ef7e7dcccab9c to your computer and use it in GitHub Desktop.
Plugin Opened
Plugin Opened
2 objects selected -> Blend Created
1 object selected -> Select Objects
0 or many objects selected -> Select Objects
Select Objects
Blend Created&
Blend Plugin
Plugin Window Focused
close plugin -> Plugin Closed
input data -> Draw Blend?
window blur -> Canvas Focused
# Watching canvas changes
Displaying Error
close plugin -> Plugin Closed
canvas changed -> Draw Blend?
Canvas Focused
window focus -> Plugin Window Focused
Watching Canvas Changes*
path changed -> Draw Blend?
blend removed -> Fix Blend?
Figma Canvas
Waiting
Draw Blend?
created preview -> Waiting
created final -> Plugin Closed
Fix Blend?
fixed blend? -> Draw Blend?
not fixed blend? -> Displaying Error
Plugin Closed
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment