mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-03 16:37:48 +00:00
23 lines
474 B
Ruby
23 lines
474 B
Ruby
# 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
|