Overview of Blockly sample demos
mainThe examples/ directory contains various self-contained projects demonstrating how to include and extend the Blockly library. Key demos include:
- UI & Layout:
fixed-demo(fixed element injection),resizable-demo(resizable element injection),rtl-demo(right-to-left mode), andsingle-direction-scroll-demo(single-direction scrollbars). - Customization:
custom-dialogs-demo(custom browser dialogs),custom-tooltips-demo(custom tooltip renderer),pitch-field-demo(custom block fields), andturtle-field-demo(custom block fields). - Code Execution:
generator-demo(code generation and sandboxed JS execution),interpreter-demo(step-by-step execution), andheadless-demo(Python code generation from JSON without graphics). - Advanced Features:
backpack-demo(shared backpack between instances),mirror-demo(leader-follower instances),blockly-rtc(real-time collaboration), andgraph-demo(instant feedback on block changes). - Toolbox & Constraints:
toolbox-demo(complex category structures) andmax-blocks-demo(limiting total block count).