Fix pixelPositionForScreenPosition

This commit is contained in:
Nathan Sobo
2015-12-16 17:28:06 -07:00
parent 924d880fa8
commit b5f9ed2b0e
3 changed files with 41 additions and 49 deletions

View File

@@ -104,3 +104,15 @@ class LinesComponent extends TiledComponent
textNodesForLineIdAndScreenRow: (lineId, screenRow) ->
tile = @presenter.tileForRow(screenRow)
@getComponentForTile(tile)?.textNodesForLineId(lineId)
lineIdForScreenRow: (screenRow) ->
tile = @presenter.tileForRow(screenRow)
@getComponentForTile(tile)?.lineIdForScreenRow(screenRow)
lineNodeForScreenRow: (screenRow) ->
tile = @presenter.tileForRow(screenRow)
@getComponentForTile(tile)?.lineNodeForScreenRow(screenRow)
textNodesForScreenRow: (screenRow) ->
tile = @presenter.tileForRow(screenRow)
@getComponentForTile(tile)?.textNodesForScreenRow(screenRow)