Class: Arrolio::Flowables::FootnoteMarkerFlowable
- Inherits:
-
Arrolio::Flowable
- Object
- Arrolio::Flowable
- Arrolio::Flowables::FootnoteMarkerFlowable
- Defined in:
- lib/arrolio/flowables/footnote_marker_flowable.rb
Overview
Zero-height placeholder that signals "the footnote with this id appears on the current page". The engine detects these during layout and records the footnote on the current Output::Page so the renderer can draw it at the bottom of the page.
Carries a reference to the full Content::Footnote (marker + body). The marker is also rendered inline (as a superscript indicator) by the flow builder when it constructs the run sequence; this flowable's sole job is to anchor the footnote to a page.
Instance Attribute Summary collapse
-
#footnote ⇒ Object
readonly
Returns the value of attribute footnote.
Attributes inherited from Arrolio::Flowable
Instance Method Summary collapse
- #emit(_x, _y, _width, _context = nil) ⇒ Object
- #height(_width, _context = nil) ⇒ Object
-
#initialize(footnote) ⇒ FootnoteMarkerFlowable
constructor
A new instance of FootnoteMarkerFlowable.
Methods inherited from Arrolio::Flowable
#do_split, #keep_together?, #keep_with_next?, #page_break_after?, #page_break_before?, #space_after, #space_before, #split, #splittable?
Constructor Details
#initialize(footnote) ⇒ FootnoteMarkerFlowable
Returns a new instance of FootnoteMarkerFlowable.
18 19 20 21 |
# File 'lib/arrolio/flowables/footnote_marker_flowable.rb', line 18 def initialize(footnote) super(style: Style::Definition.new) @footnote = footnote end |
Instance Attribute Details
#footnote ⇒ Object (readonly)
Returns the value of attribute footnote.
16 17 18 |
# File 'lib/arrolio/flowables/footnote_marker_flowable.rb', line 16 def footnote @footnote end |
Instance Method Details
#emit(_x, _y, _width, _context = nil) ⇒ Object
25 |
# File 'lib/arrolio/flowables/footnote_marker_flowable.rb', line 25 def emit(_x, _y, _width, _context = nil) = [[], 0.0] |
#height(_width, _context = nil) ⇒ Object
23 |
# File 'lib/arrolio/flowables/footnote_marker_flowable.rb', line 23 def height(_width, _context = nil) = 0.0 |