gitlab-org--gitlab-foss/spec/frontend/image_diff/mock_data.js

28 lines
552 B
JavaScript

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,
};