Skip to content

Instantly share code, notes, and snippets.

@ShMcK
Last active June 27, 2018 17:26
Show Gist options
  • Save ShMcK/d6de987961e8178a8815fefcfa39c3ff to your computer and use it in GitHub Desktop.
Save ShMcK/d6de987961e8178a8815fefcfa39c3ff to your computer and use it in GitHub Desktop.
None*
None*
BLOCK_SELECT -> BlockEditing
TOOL_DRAW_BLOCK -> BlockDrawing
TOOL_UPLOAD_SHAPES -> UploadingShapes
TOOL_RESOURCE_VIEW -> ResourceView
BlockDrawing
BLOCK_SHAPE_COMPLETE -> BlockEditing
CANCEL_DRAWING -> None
BlockEditing
BLOCK_SHAPE_SAVE -> BlockForm
BLOCK_DELETE -> BlockDelete
BLOCK_EDIT_CANCEL -> None
BlockForm
BLOCK_FORM_SAVE -> None
BLOCK_FORM_CANCEL -> BlockEditing
BlockDelete
CONFIRM_DELETE -> None
CANCEL_DELETE -> BlockEditing
UploadingShapes
SHAPES_LOAD -> LoadingShapes
LoadingShapes
SHAPE_SELECT -> ShapeEditing
ShapeEditing
CONVERT_TO_BLOCK -> BlockEditing
ResourceView
SHAPE_SELECT -> ShapeEditing
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