Skip to content

Instantly share code, notes, and snippets.

@audionerd
Created October 1, 2018 21:02
Show Gist options
  • Save audionerd/e0cdb579704c5ed752317e600e945f41 to your computer and use it in GitHub Desktop.
Save audionerd/e0cdb579704c5ed752317e600e945f41 to your computer and use it in GitHub Desktop.
Workspace
Workspace
text focus -> Text Entry Mode
toolbar marquee tool -> Marquee Selection Mode
Drawing Mode
pointerdown -> Drawing
pointerup -> Drawing Idle
option key & pointerdown -> Erasing
Drawing Idle*
Drawing
Erasing
Text Entry Mode
text blur -> Drawing Mode
text commit -> Drawing Mode
Moving Mode
Scaling Mode
Marquee Selection Mode
pointer down -> Marquee Freeform
option key & pointer down -> Marquee Lines
pointer up -> Marquee Idle
enter key -> Marquee Operation Mode
pointer outside -> Marquee Operation Mode
Marquee Idle
Marquee Freeform
Marquee Lines
Marquee Add
Marquee Subtract
Marquee Operation Mode
Move Artwork
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