Mameblock.js Development Guide ================================= Mameblock.js is a Javascript Library of the Web front end for development a visual programming editor. This document explain the internal structure for development of Web apps using Mameblock.js. Description ------------ Mameblock.js has just only 100 lines of Javascript code and some OSS libraries. Block of drag-and-drop, are using jquery-sortable. jquery-sortable is jquery plug-in, can drag and drop the nested elements. It is use HTML Kickstarter for Web page and UI. You can use your favorite CSS framework. Files ------------ This section explain about files of mameblock.js. * File structure This is file structure of mameblock.js. MameBlock | +---docs : Documents | +---css | | | +--- mameblock.min.css | +--- mameblock.src.css | | | +---fonts | +---img | +---src | \---js : JavaScript files | +--- jquery-1.11.2.min.js +--- mameblock.min.js +--- mameblock.src.js | +---src There are most important files of mameblock.js. \css\srcフォルダのcssファイルと、\js\srcフォルダのJavascriptファイルは、 gulpfile.js transrate from \css\src folder's css files and \js\src folder's Javascript files to mameblock.*.css and mameblock.*.js. Functions ------------ This section explain about functions and code of mameblock.js. ### Page Design - mameblock has 3 areas - tool palette, block editing area and trash-can. - Click expression in Block, Express line editor will pop up. ### Tool Pallet area Blocks for assembling the code is in the tool palette. Code group fold each block of the tool palette. Block can drag-and-drop from the tool palette to the main editing area. ### Blocks Block is composed of