{% extends 'base.html' %} {% load i18n staticfiles %} {% comment %} Todo: * reset polygon? * bind/unbind line to region * validation & errors * integration callbacks * reset & viewport change * (tablet test) {% endcomment %} {% block body %}
Drop a picture or click on the dashed rectangle to initialise the baseline editor.
Left click on the image to create new line, Right click to add points and Left click to finish it.
You can keep the mouse button pressed for free drawing.
Hitting escape while drawing a line cancels it. It also clears the selection.
Left click on a line to select it, then you can drag it's closest control point.
If you click exactly on a control point, a yellow trash button appears allowing to delete it.
Double click on the line will create a new control point at the mouse location.
You can go through your changes history back and forth with Ctrl+Z(undo) and Ctrl+Y(redo) or by using the corresponding buttons.
Shift+click allows to add or remove a line from the selection, shift and dragging creates a lasso selection tool.
Ctrl+drag allows to move the entire selection at once.
You can zoom with the mouse wheel or the device equivalent. Then pan the image with Right click dragging.
By switching to region mode, you can create and edit regions like you would with lines.
The 'Show line masks' button allows the editing of line masks, each control point in the baselines have a lower and upper point in the control mask. You can use this to your advantage to fit the mask to the image very precisely. The line mask is used to compute the line height.
The Cut tool allows you to divide lines or delete a portion of them, select it in the toolbar and start cutting with Left click.
If you have more than one line selected, a button appears in the context menu to merge them, this will probably only work if the lines share the same direction.
Reload the editor (f5) if you want to try a new image.