Sha256: e744b17ef4fc9e5f05f3b848ab00b2d596cbf410d40e966a8cd11b4a19989201

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

module Asciidoctor::PDF::FormattedText
  class FragmentPositionRenderer
    attr_reader :top, :right, :bottom, :left

    def render_behind fragment
      @top = fragment.top
      @right = (@left = fragment.left) + fragment.width
      @bottom = fragment.bottom
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.0.rc.2 lib/asciidoctor/pdf/formatted_text/fragment_position_renderer.rb
asciidoctor-pdf-1.5.0.rc.1 lib/asciidoctor/pdf/formatted_text/fragment_position_renderer.rb