Class: Mathtype5::RecordMatrix
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Mathtype5::RecordMatrix
- Includes:
- Snapshot
- Defined in:
- lib/records5/matrix.rb
Constant Summary collapse
- EXPOSED_IN_SNAPSHOT =
%i(options nudge valign h_just v_just rows cols row_parts col_parts object_list)
Instance Method Summary collapse
Methods included from Snapshot
Instance Method Details
#h_just ⇒ Object
59 60 61 |
# File 'lib/records5/matrix.rb', line 59 def h_just HALIGN[_h_just] end |
#realign(nparts) ⇒ Object
66 67 68 69 |
# File 'lib/records5/matrix.rb', line 66 def realign (nparts) offset = (((nparts + 1) * 2) % 8) return offset == 0 ? 0 : (8 - offset) end |
#v_just ⇒ Object
63 64 65 |
# File 'lib/records5/matrix.rb', line 63 def v_just VALIGN[_v_just] end |
#valign ⇒ Object
55 56 57 |
# File 'lib/records5/matrix.rb', line 55 def valign VALIGN[_valign] end |