1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.artworkSizeToValue = artworkSizeToValue;
|
7 |
|
8 | var _constants = require("./constants.js");
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | function 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 |