Welcome to mirror list, hosted at ThFree Co, Russian Federation.

image_strategy.rb « position_tracer « diff « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 172eba4acd3085cfa2cefce650dbc94992d67c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module Gitlab
  module Diff
    class PositionTracer
      class ImageStrategy < FileStrategy
        private

        def new_position(position, diff_file)
          Position.new(
            diff_file: diff_file,
            x: position.x,
            y: position.y,
            width: position.width,
            height: position.height,
            position_type: position.position_type
          )
        end
      end
    end
  end
end