Class: Idml::Elements::TextFrame

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/idml/elements/text_frame.rb

Overview

<TextFrame> — a text container. Carries ParentStory (the Self ID of the Story part that holds the text flow) and geometry. Text flows across linked frames via PreviousTextFrame/NextTextFrame.

Instance Method Summary collapse

Instance Method Details

#geometric_boundsObject



51
52
53
# File 'lib/idml/elements/text_frame.rb', line 51

def geometric_bounds
  @geometric_bounds ||= properties.first&.first_geometry&.bounding_box
end

#text?Boolean

Returns:



47
48
49
# File 'lib/idml/elements/text_frame.rb', line 47

def text?
  content_type == "TextType" || !parent_story.nil?
end