func (c *Canvas) drawSelectionRectangle() {
	minX, maxX := sort(c.selection.start.x, c.selection.end.x)
	minY, maxY := sort(c.selection.start.y, c.selection.end.y)
	width := maxX - minX
	height := maxY - minY
	c.ctx.StrokeRect(minX, minY, width, height)
}
// drawSelectionRectangle draws the outline of the selection.
drawSelectionRectangle draws the outline of the selection.
// drawSelectionRectangle draws the outline of the selection .
func (c *Canvas) drawSelectionRectangle() {
	minX, maxX := sort(c.selection.start.x, c.selection.end.x)
	minY, maxY := sort(c.selection.start.y, c.selection.end.y)
	width := maxX - minX
	height := maxY - minY
	c.ctx.StrokeRect(minX, minY, width, height)
}
func ( c * Canvas ) drawSelectionRectangle ( ) { minX , maxX := sort ( c . selection . start . x , c . selection . end . x ) minY , maxY := sort ( c . selection . start . y , c . selection . end . y ) width := maxX - minX height := maxY - minY c . ctx . StrokeRect ( minX , minY , width , height ) }
drawSelectionRectangle draws the outline of the selection.
drawSelectionRectangle draws the outline of the selection .