func (c Canvas) selectionTilePositions() []tile.Position {
	if c.draw.tileLength == 0 {
		return nil
	}
	startTS := c.tileSelection(c.selection.start)
	endC := (c.selection.end.x - c.draw.usedMin.x) / c.draw.tileLength
	endR := (c.selection.end.y - c.draw.usedMin.y) / c.draw.tileLength
	switch {
	case startTS == nil:
		c.log.Error("no tile position at start position")
	case int(startTS.x) == endC && int(startTS.y) == endR:
		// NOOP
	case startTS.used:
		return c.selectionUsedTilePositions(*startTS, endC, endR)
	default:
		return c.selectionUnusedTilePositions(*startTS, endC, endR)
	}
	return nil
}
// selectionTilePositions calculates the new positions of the selected tiles.
selectionTilePositions calculates the new positions of the selected tiles.
// selectionTilePositions calculates the new positions of the selected tiles .
func (c Canvas) selectionTilePositions() []tile.Position {
	if c.draw.tileLength == 0 {
		return nil
	}
	startTS := c.tileSelection(c.selection.start)
	endC := (c.selection.end.x - c.draw.usedMin.x) / c.draw.tileLength
	endR := (c.selection.end.y - c.draw.usedMin.y) / c.draw.tileLength
	switch {
	case startTS == nil:
		c.log.Error("no tile position at start position")
	case int(startTS.x) == endC && int(startTS.y) == endR:
	case startTS.used:
		return c.selectionUsedTilePositions(*startTS, endC, endR)
	default:
		return c.selectionUnusedTilePositions(*startTS, endC, endR)
	}
	return nil
}
func ( c Canvas ) selectionTilePositions ( ) [ ] tile . Position { if c . draw . tileLength == 0 { return nil } startTS := c . tileSelection ( c . selection . start ) endC := ( c . selection . end . x - c . draw . usedMin . x ) / c . draw . tileLength endR := ( c . selection . end . y - c . draw . usedMin . y ) / c . draw . tileLength switch { case startTS == nil : c . log . Error ( " " ) case int ( startTS . x ) == endC && int ( startTS . y ) == endR : case startTS . used : return c . selectionUsedTilePositions ( * startTS , endC , endR ) default : return c . selectionUnusedTilePositions ( * startTS , endC , endR ) } return nil }
selectionTilePositions calculates the new positions of the selected tiles.
selectionTilePositions calculates the new positions of the selected tiles .
// NOOP