-
Notifications
You must be signed in to change notification settings - Fork 5
/
global.yaml
34 lines (33 loc) · 1.92 KB
/
global.yaml
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
29
30
31
32
33
34
global:
order_add_9: function () { return (feature.sort_rank * 20 + 9); }
order_add_8: function () { return (feature.sort_rank * 20 + 8); }
order_add_7: function () { return (feature.sort_rank * 20 + 7); }
order_add_6: function () { return (feature.sort_rank * 20 + 6); }
order_add_5: function () { return (feature.sort_rank * 20 + 5); }
order_add_4: function () { return (feature.sort_rank * 20 + 4); }
order_add_3: function () { return (feature.sort_rank * 20 + 3); }
order_add_2: function () { return (feature.sort_rank * 20 + 2); }
order_add_1: function () { return (feature.sort_rank * 20 + 1); }
order-over: function () { return feature.sort_rank * 20 + 1; }
order-top: function () { return feature.sort_rank * 20 + 1; }
order: function () { return (feature.sort_rank * 20); }
order-bottom: function () { return feature.sort_rank * 20 - 1; }
order-under: function () { return feature.sort_rank * 20 - 1; }
order_sub_1: function () { return (feature.sort_rank * 20 - 1); }
order_sub_2: function () { return (feature.sort_rank * 20 - 2); }
order_sub_3: function () { return (feature.sort_rank * 20 - 3); }
order_sub_4: function () { return (feature.sort_rank * 20 - 4); }
order_sub_5: function () { return (feature.sort_rank * 20 - 5); }
order_sub_6: function () { return (feature.sort_rank * 20 - 6); }
order_sub_7: function () { return (feature.sort_rank * 20 - 7); }
order_sub_8: function () { return (feature.sort_rank * 20 - 8); }
order_sub_9: function () { return (feature.sort_rank * 20 - 9); }
pseudoRandomColor: |
function() {
return [
0.7 * (parseInt(feature.id, 16) / 100 % 1), // jshint ignore:line
0.7 * (parseInt(feature.id, 16) / 10000 % 1), // jshint ignore:line
0.7 * (parseInt(feature.id, 16) / 1000000 % 1), // jshint ignore:line
1
];
}