Module: Limber::TagLayoutTemplate::InColumns
- Defined in:
- app/models/limber/tag_layout_template/in_columns.rb
Overview
rubocop:todo Style/Documentation
Instance Method Summary collapse
-
#primary_index(row, column, scale, height, _width) ⇒ Integer
Returns the tag index for the primary (i7) tag That is the one laid out in columns with four copies of each i5 follows the same pattern, but isn’t actually shown in limber.
Instance Method Details
#primary_index(row, column, scale, height, _width) ⇒ Integer
Returns the tag index for the primary (i7) tag That is the one laid out in columns with four copies of each i5 follows the same pattern, but isn’t actually shown in limber
23 24 25 26 27 |
# File 'app/models/limber/tag_layout_template/in_columns.rb', line 23 def primary_index(row, column, scale, height, _width) tag_col = (column / scale) tag_row = (row / scale) tag_row + (height / scale * tag_col) end |