This sample demonstrates the FreehandDrawingTool. It is defined in its own file, as FreehandDrawingTool.js. It also demonstrates the GeometryReshapingTool, another custom tool, defined in GeometryReshapingTool.js.

Press and drag to draw a line.

Click the "Select" button to switch back to the normal selection behavior, so that you can select, resize, and rotate the shapes. The checkboxes control whether you can resize, reshape, and/or rotate selected shapes.