UNPKG

821 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.artworkSizeToValue = artworkSizeToValue;
7
8var _constants = require("./constants.js");
9
10/*
11Copyright (c) 2018-2020 Uber Technologies, Inc.
12
13This source code is licensed under the MIT license found in the
14LICENSE file in the root directory of this source tree.
15*/
16function artworkSizeToValue(artworkSize, isSublist) {
17 if (isSublist) {
18 switch (artworkSize) {
19 case _constants.ARTWORK_SIZES.LARGE:
20 return 24;
21
22 case _constants.ARTWORK_SIZES.SMALL:
23 default:
24 return 16;
25 }
26 }
27
28 switch (artworkSize) {
29 case _constants.ARTWORK_SIZES.SMALL:
30 return 16;
31
32 case _constants.ARTWORK_SIZES.LARGE:
33 return 36;
34
35 case _constants.ARTWORK_SIZES.MEDIUM:
36 default:
37 return 24;
38 }
39}
\No newline at end of file