OLD | NEW |
1 /* | 1 /* |
2 * Constants used by our imagediff-viewing Javascript code. | 2 * Constants used by our imagediff-viewing Javascript code. |
3 */ | 3 */ |
4 var module = angular.module( | 4 var module = angular.module( |
5 'ConstantsModule', | 5 'ConstantsModule', |
6 [] | 6 [] |
7 ); | 7 ); |
8 | 8 |
9 module.constant('constants', (function() { | 9 module.constant('constants', (function() { |
10 return { | 10 return { |
11 // NOTE: Keep these in sync with ../column.py | 11 // NOTE: Keep these in sync with ../column.py |
12 KEY__EXTRACOLUMNHEADERS__HEADER_TEXT: 'headerText', | 12 KEY__EXTRACOLUMNHEADERS__HEADER_TEXT: 'headerText', |
13 KEY__EXTRACOLUMNHEADERS__HEADER_URL: 'headerUrl', | 13 KEY__EXTRACOLUMNHEADERS__HEADER_URL: 'headerUrl', |
14 KEY__EXTRACOLUMNHEADERS__IS_FILTERABLE: 'isFilterable', | 14 KEY__EXTRACOLUMNHEADERS__IS_FILTERABLE: 'isFilterable', |
15 KEY__EXTRACOLUMNHEADERS__IS_SORTABLE: 'isSortable', | 15 KEY__EXTRACOLUMNHEADERS__IS_SORTABLE: 'isSortable', |
16 KEY__EXTRACOLUMNHEADERS__USE_FREEFORM_FILTER: 'useFreeformFilter', | 16 KEY__EXTRACOLUMNHEADERS__USE_FREEFORM_FILTER: 'useFreeformFilter', |
17 KEY__EXTRACOLUMNHEADERS__VALUES_AND_COUNTS: 'valuesAndCounts', | 17 KEY__EXTRACOLUMNHEADERS__VALUES_AND_COUNTS: 'valuesAndCounts', |
18 | 18 |
19 // NOTE: Keep these in sync with ../imagediffdb.py | 19 // NOTE: Keep these in sync with ../imagediffdb.py |
20 KEY__DIFFERENCES__MAX_DIFF_PER_CHANNEL: 'maxDiffPerChannel', | 20 KEY__DIFFERENCES__MAX_DIFF_PER_CHANNEL: 'maxDiffPerChannel', |
21 KEY__DIFFERENCES__NUM_DIFF_PIXELS: 'numDifferingPixels', | 21 KEY__DIFFERENCES__NUM_DIFF_PIXELS: 'numDifferingPixels', |
22 KEY__DIFFERENCES__PERCENT_DIFF_PIXELS: 'percentDifferingPixels', | 22 KEY__DIFFERENCES__PERCENT_DIFF_PIXELS: 'percentDifferingPixels', |
23 KEY__DIFFERENCES__PERCEPTUAL_DIFF: 'perceptualDifference', | 23 KEY__DIFFERENCES__PERCEPTUAL_DIFF: 'perceptualDifference', |
| 24 KEY__DIFFERENCES__DIFF_URL: 'diffUrl', |
| 25 KEY__DIFFERENCES__WHITE_DIFF_URL: 'whiteDiffUrl', |
24 | 26 |
25 // NOTE: Keep these in sync with ../imagepair.py | 27 // NOTE: Keep these in sync with ../imagepair.py |
26 KEY__IMAGEPAIRS__DIFFERENCES: 'differenceData', | 28 KEY__IMAGEPAIRS__DIFFERENCES: 'differenceData', |
27 KEY__IMAGEPAIRS__EXPECTATIONS: 'expectations', | 29 KEY__IMAGEPAIRS__EXPECTATIONS: 'expectations', |
28 KEY__IMAGEPAIRS__EXTRACOLUMNS: 'extraColumns', | 30 KEY__IMAGEPAIRS__EXTRACOLUMNS: 'extraColumns', |
29 KEY__IMAGEPAIRS__IMAGE_A_URL: 'imageAUrl', | 31 KEY__IMAGEPAIRS__IMAGE_A_URL: 'imageAUrl', |
30 KEY__IMAGEPAIRS__IMAGE_B_URL: 'imageBUrl', | 32 KEY__IMAGEPAIRS__IMAGE_B_URL: 'imageBUrl', |
31 KEY__IMAGEPAIRS__IS_DIFFERENT: 'isDifferent', | 33 KEY__IMAGEPAIRS__IS_DIFFERENT: 'isDifferent', |
32 | 34 |
33 // NOTE: Keep these in sync with ../imagepairset.py | 35 // NOTE: Keep these in sync with ../imagepairset.py |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // These are just used on the client side, no need to sync with server code. | 87 // These are just used on the client side, no need to sync with server code. |
86 KEY__IMAGEPAIRS__ROWSPAN: 'rowspan', | 88 KEY__IMAGEPAIRS__ROWSPAN: 'rowspan', |
87 URL_KEY__SCHEMA_VERSION: 'urlSchemaVersion', | 89 URL_KEY__SCHEMA_VERSION: 'urlSchemaVersion', |
88 URL_VALUE__SCHEMA_VERSION__CURRENT: 1, | 90 URL_VALUE__SCHEMA_VERSION__CURRENT: 1, |
89 | 91 |
90 // Utility constants only used on the client side. | 92 // Utility constants only used on the client side. |
91 ASC: 'asc', | 93 ASC: 'asc', |
92 DESC: 'desc', | 94 DESC: 'desc', |
93 } | 95 } |
94 })()) | 96 })()) |
OLD | NEW |