This sample demonstrates the FreehandDrawingTool. It is defined in its own file, as FreehandDrawingTool.js.

Press and drag to draw a line.

Click the "Select Mode" button to switch back to the normal selection behavior, so that you can select, resize, and rotate the shapes.