summaryrefslogtreecommitdiff
path: root/spec/javascripts/image_diff/mock_data.js
blob: a0d1732dd0a00d21f255ed416bb9d26c8a8528c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export const noteId = 'noteId';
export const discussionId = 'discussionId';
export const badgeText = 'badgeText';
export const badgeNumber = 5;

export const coordinate = {
  x: 100,
  y: 100,
};

export const image = {
  width: 100,
  height: 100,
};

export const imageProperties = {
  width: image.width,
  height: image.height,
  naturalWidth: image.width * 2,
  naturalHeight: image.height * 2,
};

export const imageMeta = {
  x: coordinate.x,
  y: coordinate.y,
  width: imageProperties.naturalWidth,
  height: imageProperties.naturalHeight,
};