This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
red-hat-patterns.js
58 lines (43 loc) · 14.1 KB
/
red-hat-patterns.js
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
(function (global) {
var __slice = [].slice;
var patterns = {
'app-dev': '<svg class="rh-pattern group-3a app-dev" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d="M 18,50.5 A 7.5,7.5 0 0 1 10.5,58 7.5,7.5 0 0 1 3,50.5 7.5,7.5 0 0 1 10.5,43 7.5,7.5 0 0 1 18,50.5 Z m 20,0 A 7.5,7.5 0 0 1 30.5,58 7.5,7.5 0 0 1 23,50.5 7.5,7.5 0 0 1 30.5,43 7.5,7.5 0 0 1 38,50.5 Z m 20,0 A 7.5,7.5 0 0 1 50.5,58 7.5,7.5 0 0 1 43,50.5 7.5,7.5 0 0 1 50.5,43 7.5,7.5 0 0 1 58,50.5 Z m 0,-40 A 7.5,7.5 0 0 1 50.5,18 7.5,7.5 0 0 1 43,10.5 7.5,7.5 0 0 1 50.5,3 7.5,7.5 0 0 1 58,10.5 Z m -20,0 A 7.5,7.5 0 0 1 30.5,18 7.5,7.5 0 0 1 23,10.5 7.5,7.5 0 0 1 30.5,3 7.5,7.5 0 0 1 38,10.5 Z m -20,0 A 7.5,7.5 0 0 1 10.5,18 7.5,7.5 0 0 1 3,10.5 7.5,7.5 0 0 1 10.5,3 7.5,7.5 0 0 1 18,10.5 Z m 0,20 A 7.5,7.5 0 0 1 10.5,38 7.5,7.5 0 0 1 3,30.5 7.5,7.5 0 0 1 10.5,23 7.5,7.5 0 0 1 18,30.5 Z m 40,0 A 7.5,7.5 0 0 1 50.5,38 7.5,7.5 0 0 1 43,30.5 7.5,7.5 0 0 1 50.5,23 7.5,7.5 0 0 1 58,30.5 Z m -20,0 A 7.5,7.5 0 0 1 30.5,38 7.5,7.5 0 0 1 23,30.5 7.5,7.5 0 0 1 30.5,23 7.5,7.5 0 0 1 38,30.5 Z m 2.5,-30 0,59.5 m -20,-59.5 0,59.5 m -20,-19.5 59.5,0 m -59.5,-20 59.5,0 m 0,-20 -59.5,0 0,59.5" style="fill:none;stroke-linecap:square;stroke-miterlimit:2" /></svg> ',
'business-process': '<svg class="rh-pattern group-3b business-process" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d="m 30.5,53 0,7.5 m 7.5,0 c 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 M 60.5,53 C 56.5,53 53,49.5 53,45.5 53,41.2 56.5,38 60.5,38 m 0,-15 C 56.5,23 53,19.5 53,15.5 53,11.2 56.5,8 60.5,8 m 0,-7.5 -7.5,0 C 53,4.5 49.5,8 45.5,8 41.5,8 38,4.5 38,0.5 l -15,0 C 23,4.5 19.5,8 15.5,8 11.5,8 8,4.5 8,0.5 l -7.5,0 0,7.5 C 4.5,8 8,11 8,15.5 8,19.5 4.5,23 0.5,23 l 0,15 c 4,0 7.5,3 7.5,7.5 0,4 -3.5,7.5 -7.5,7.5 l 0,7.5 m 7.5,0 c 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 m 15,-15 15,0 m -45,0 15,0 m 30,-15 c 0,4 -3.5,7.5 -7.5,7.5 -4,0 -7.5,-3.5 -7.5,-7.5 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 z m -15,-15 c 0,4 -3.5,7.5 -7.5,7.5 -4,0 -7.5,-3.5 -7.5,-7.5 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 z m 0,30 c 0,4 -3.5,7.5 -7.5,7.5 -4,0 -7.5,-3.5 -7.5,-7.5 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 z m 0,-30 15,0 m -45,0 15,0 m 0,15 15,0 m -37.5,0 7.5,0 m 22.5,-7.5 0,15 m 0,-37.5 0,7.5 m 15,30 0,15 m 0,-45 0,15 m -30,15 0,15 m 0,-45 0,15 M 23,30.5 C 23,34.5 19.5,38 15.5,38 11.5,38 8,34.5 8,30.5 8,26.2 11.5,23 15.5,23 c 4,0 7.5,3 7.5,7.5 z m 30,0 7.5,0" style="fill:none;stroke-linecap:square" /></svg> ',
'cloud-dev': '<svg class="rh-pattern group-3c cloud-app-dev cloud-dev cloud-app" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d="M 30.5,0 C 30.5,4.1 27.1,7.5 23,7.5 18.9,7.5 15.5,4.1 15.5,0 m 0,60 c 0,-4.1 3.4,-7.5 7.5,-7.5 4.1,0 7.5,3.4 7.5,7.5 m -15,-50 c 0,4.14 -3.36,7.5 -7.5,7.5 C 3.858,17.5 0.5,14.14 0.5,10 0.5,5.858 3.858,2.5 8,2.5 c 4.14,0 7.5,3.358 7.5,7.5 z m 29.33,0 c 0,4.14 -3.36,7.5 -7.5,7.5 -4.14,0 -7.5,-3.36 -7.5,-7.5 0,-4.142 3.36,-7.5 7.5,-7.5 4.14,0 7.5,3.358 7.5,7.5 z M 30.5,20 c 0,4.14 -3.36,7.5 -7.5,7.5 -4.14,0 -7.5,-3.36 -7.5,-7.5 0,-4.14 3.36,-7.5 7.5,-7.5 4.14,0 7.5,3.36 7.5,7.5 z m 0,20 c 0,4.14 -3.36,7.5 -7.5,7.5 -4.14,0 -7.5,-3.36 -7.5,-7.5 0,-4.14 3.36,-7.5 7.5,-7.5 4.14,0 7.5,3.36 7.5,7.5 z m 14,20 c 0,-4.1 3.4,-7.5 7.5,-7.5 4.1,0 7.5,3.4 7.5,7.5 m 0,-60 C 59.5,4.1 56.1,7.5 52,7.5 47.9,7.5 44.5,4.1 44.5,0 m 15,20.5 c 0,4.14 -3.36,7.5 -7.5,7.5 -4.14,0 -7.5,-3.36 -7.5,-7.5 0,-4.14 3.36,-7.5 7.5,-7.5 4.14,0 7.5,3.36 7.5,7.5 z m 0,20 c 0,4.14 -3.36,7.5 -7.5,7.5 -4.14,0 -7.5,-3.36 -7.5,-7.5 0,-4.14 3.36,-7.5 7.5,-7.5 4.14,0 7.5,3.36 7.5,7.5 z M 15.5,30 c 0,4.14 -3.36,7.5 -7.5,7.5 -4.142,0 -7.5,-3.36 -7.5,-7.5 0,-4.14 3.358,-7.5 7.5,-7.5 4.14,0 7.5,3.36 7.5,7.5 z m 29.33,0 c 0,4.14 -3.36,7.5 -7.5,7.5 -4.14,0 -7.5,-3.36 -7.5,-7.5 0,-4.14 3.36,-7.5 7.5,-7.5 4.14,0 7.5,3.36 7.5,7.5 z m 0,20 c 0,4.14 -3.36,7.5 -7.5,7.5 -4.14,0 -7.5,-3.36 -7.5,-7.5 0,-4.14 3.36,-7.5 7.5,-7.5 4.14,0 7.5,3.36 7.5,7.5 z M 15.5,50 c 0,4.14 -3.36,7.5 -7.5,7.5 -4.142,0 -7.5,-3.36 -7.5,-7.5 0,-4.14 3.358,-7.5 7.5,-7.5 4.14,0 7.5,3.36 7.5,7.5 z M 8,0 8,2.5 m 0,15 0,5 m 0,15 0,5 m 0,15 0,2.5 m 29.33,-60 0,2.5 m 0,15 0,5 m 0,15 0,5 m 0,15 0,2.5 M 23,7.5 l 0,5 m 0,15 0,5 m 0,15 0,5 m 29,-45 0,5.5 m 0,15 0,5 m 0,15 0,4.5" style="fill:none;stroke-linecap:square" /></svg> ',
'cloud-infrastructure': '<svg class="rh-pattern group-2b cloud-infrastructure" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d="M 60,10 A 10,10 0 0 0 50,0 10,10 0 0 0 40,10 10,10 0 0 0 50,20 10,10 0 0 0 60,10 Z M 40,10 A 10,10 0 0 0 30,0 10,10 0 0 0 20,10 10,10 0 0 0 30,20 10,10 0 0 0 40,10 Z M 20,10 A 10,10 0 0 0 10,0 10,10 0 0 0 0,10 10,10 0 0 0 10,20 10,10 0 0 0 20,10 Z M 60,30 A 10,10 0 0 0 50,20 10,10 0 0 0 40,30 10,10 0 0 0 50,40 10,10 0 0 0 60,30 Z M 40,30 A 10,10 0 0 0 30,20 10,10 0 0 0 20,30 10,10 0 0 0 30,40 10,10 0 0 0 40,30 Z M 20,30 A 10,10 0 0 0 10,20 10,10 0 0 0 0,30 10,10 0 0 0 10,40 10,10 0 0 0 20,30 Z M 60,50 A 10,10 0 0 0 50,40 10,10 0 0 0 40,50 10,10 0 0 0 50,60 10,10 0 0 0 60,50 Z M 40,50 A 10,10 0 0 0 30,40 10,10 0 0 0 20,50 10,10 0 0 0 30,60 10,10 0 0 0 40,50 Z M 20,50 A 10,10 0 0 0 10,40 10,10 0 0 0 0,50 10,10 0 0 0 10,60 10,10 0 0 0 20,50 Z M 50,0 c 0,5.52 4.5,10 10,10 M 30,0 c 0,5.52 4.5,10 10,10 5.5,0 10,-4.48 10,-10 M 10,0 c 0,5.52 4.5,10 10,10 5.5,0 10,-4.48 10,-10 m 30,10 c -5.5,0 -10,4.5 -10,10 0,5.5 4.5,10 10,10 M 50,20 A 10,10 0 0 0 40,10 10,10 0 0 0 30,20 10,10 0 0 0 40,30 10,10 0 0 0 50,20 Z M 30,20 A 10,10 0 0 0 20,10 10,10 0 0 0 10,20 10,10 0 0 0 20,30 10,10 0 0 0 30,20 Z m 30,10 c -5.5,0 -10,4.5 -10,10 0,5.5 4.5,10 10,10 M 50,40 A 10,10 0 0 0 40,30 10,10 0 0 0 30,40 10,10 0 0 0 40,50 10,10 0 0 0 50,40 Z M 30,40 A 10,10 0 0 0 20,30 10,10 0 0 0 10,40 10,10 0 0 0 20,50 10,10 0 0 0 30,40 Z M 0,10 C 5.52,10 10,5.52 10,0 M 0,30 C 5.52,30 10,25.5 10,20 10,14.5 5.52,10 0,10 M 0,50 C 5.52,50 10,45.5 10,40 10,34.5 5.52,30 0,30 m 60,20 c -5.5,0 -10,4.5 -10,10 m 0,0 C 50,54.5 45.5,50 40,50 34.5,50 30,54.5 30,60 m 0,0 C 30,54.5 25.5,50 20,50 14.5,50 10,54.5 10,60 m 0,0 C 10,54.5 5.52,50 0,50" style="fill:none;stroke-linecap:square" /></svg> ',
'community': '<svg class="rh-pattern community communities" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d=" m 25.5,27.5 q 0,0 0,0 M 1,57.5 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 2,-5 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5,0 q 0,0 0,0 m -4.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -2,-5 q 0,0 0,0 m 5,0 q 0,0 0,0 m 4.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5,0 q 0,0 0,0 m 4.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 2,-5 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4,0 q 0,0 0,0 m -5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4.5,0 q 0,0 0,0 m -5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -2,-5 q 0,0 0,0 m 5,0 q 0,0 0,0 m 4.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4.5,0 q 0,0 0,0 m 5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m -30,-10 q 0,0 0,0 m 0,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m 2,5 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5,0 q 0,0 0,0 m 4.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 28,5 q 0,0 0,0 m 2,-5 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4.5,0 q 0,0 0,0 m -5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -2,-5 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 2,-5 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -4,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 M 1,17 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 M 57,17 q 0,0 0,0 m -5.5,0 q 0,0 0,0 M 46,17 q 0,0 0,0 m -5,0 q 0,0 0,0 m -7.5,-5 q 0,0 0,0 M 29,12 q 0,0 0,0 m -5.5,0 q 0,0 0,0 M 18,12 q 0,0 0,0 m -4,0 q 0,0 0,0 m -5.5,0 q 0,0 0,0 M 3,12 q 0,0 0,0 M 1,7 q 0,0 0,0 m 5,0 q 0,0 0,0 m 4.5,0 q 0,0 0,0 M 16,7 q 0,0 0,0 m 5,0 q 0,0 0,0 m 4.5,0 q 0,0 0,0 M 31,7 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 15,0 q 0,0 0,0 M 46,7 q 0,0 0,0 m -5,0 q 0,0 0,0 m -2.5,5 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 m 4,0 q 0,0 0,0 m 5.5,0 q 0,0 0,0 M 57,7 q 0,0 0,0 m 2,-5 q 0,0 0,0 m -5,0 q 0,0 0,0 m -4.5,0 q 0,0 0,0 M 44,2 q 0,0 0,0 m -5.5,0 q 0,0 0,0 m -5,0 q 0,0 0,0 M 29,2 q 0,0 0,0 m -5.5,0 q 0,0 0,0 M 18,2 q 0,0 0,0 m -4,0 q 0,0 0,0 M 8.5,2 q 0,0 0,0 M 3,2 q 0,0 0,0" style="fill:none;stroke-linecap:round" /></svg> ',
'corporate': '<svg class="rh-pattern corporate" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d="M 45,0 30,15 15,0 M 60,22.5 52.5,30 60,37.5 M 60,45 45,30 60,15 M 60,7.5 37.5,30 60,52.5 M 45,60 30,45 15,60 M 60,60 0,0 M 22.5,0 30,7.5 37.5,0 M 7.5,0 30,22.5 52.5,0 M 0,15 15,30 0,45 M 22.5,60 30,52.5 37.5,60 M 7.5,60 30,37.5 52.5,60 M 0,37.5 7.5,30 0,22.5 M 0,52.5 22.5,30 0,7.5 M 0,60 60,0" style="fill:none;stroke-linecap:square" /></svg> ',
'infrastructure': '<svg class="rh-pattern group-2a infrastructure" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d="M 37.5,60 30,52.5 22.5,60 M 37.5,0 30,7.5 22.5,0 M 60,37.5 52.5,30 60,22.5 M 60,45 45,60 M 60,15 45,0 M 0,15 15,0 M 0,45 15,60 M 52.5,0 60,7.5 m 0,45 -7.5,7.5 M 7.5,0 0,7.5 m 0,45 7.5,7.5 M 0,37.5 7.5,30 0,22.5 m 30,0 L 22.5,30 30,37.5 37.5,30 Z M 45,37.5 37.5,45 45,52.5 52.5,45 Z M 15,37.5 7.5,45 15,52.5 22.5,45 Z M 45,7.5 37.5,15 45,22.5 52.5,15 Z M 15,7.5 7.5,15 15,22.5 22.5,15 Z M 45,0 0,45 M 60,15 15,60 M 15,0 60,45 M 0,15 45,60" style="fill:none;stroke-linecap:square" /></svg> ',
'partners': '<svg class="rh-pattern partner partners partnership partnerships" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d="M 7.5,60 C 7.5,55.7 4,52.5 0,52.5 m 60,0 c -4,0 -7.5,3 -7.5,7.5 M 7.5,0 C 7.5,4.3 4,7.5 0,7.5 m 60,0 c -4,0 -7.5,-3 -7.5,-7.5 m -25,0 C 27.5,4.3 24,7.5 20,7.5 16,7.5 12.5,4.5 12.5,0 m 35,0 C 47.5,4.3 44,7.5 40,7.5 36,7.5 32.5,4.5 32.5,0 m 0,60 c 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 M 0,32.5 C 4,32.5 7.5,36 7.5,40 7.5,44.3 4,47.5 0,47.5 M 27.5,40 c 0,4 -3.5,7.5 -7.5,7.5 -4,0 -7.5,-3.5 -7.5,-7.5 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 z m 20,0 c 0,4 -3.5,7.5 -7.5,7.5 -4,0 -7.5,-3.5 -7.5,-7.5 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 z M 60,47.5 C 56,47.5 52.5,44 52.5,40 52.5,35.7 56,32.5 60,32.5 M 0,12.5 C 4,12.5 7.5,16 7.5,20 7.5,24.3 4,27.5 0,27.5 M 27.5,20 c 0,4 -3.5,7.5 -7.5,7.5 -4,0 -7.5,-3.5 -7.5,-7.5 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 z m 20,0 c 0,4 -3.5,7.5 -7.5,7.5 -4,0 -7.5,-3.5 -7.5,-7.5 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 z M 60,27.5 C 56,27.5 52.5,24 52.5,20 52.5,15.7 56,12.5 60,12.5 M 12.5,60 c 0,-4.3 3.5,-7.5 7.5,-7.5 4,0 7.5,3 7.5,7.5 M 7.5,47.5 0,40 7.5,32.5 M 12.5,7.48 20,-0.024 27.5,7.5 m 5,45 7.5,7.5 7.5,-7.5 m -20,-5 -15,-15 m -5,-5 L 0,20 7.5,12.5 m 20,40 L 20,60 12.5,52.5 m 20,-5 15,-15 m 5,-5 L 60,20 52.5,12.5 M 7.5,52.5 0,60 m 27.5,-27.5 -15,15 m 35,-35 -15,15 M 60,-0.024 52.5,7.48 m -5,0 L 40,-0.024 32.5,7.5 m 0,5 15,15 m 5,5 7.5,7.5 -7.5,7.5 m -40,-20 15,-15 m -20,15 5,0 0,5 -5,0 z m 20,0 5,0 0,5 -5,0 z m 20,0 5,0 0,5 -5,0 z m 0,-20 5,0 0,5 -5,0 z m -20,0 5,0 0,5 -5,0 z m -20,0 5,0 0,5 -5,0 z m 0,40 5,0 0,5 -5,0 z m 20,0 5,0 0,5 -5,0 z m 20,0 5,0 0,5 -5,0 z m 5,5 7.5,7.5 m -27.5,-27.5 15,15 m -35,-35 15,15 M 0,-0.024 7.5,7.48" style="fill:none;stroke-linecap:square" /></svg> ',
'services': '<svg class="rh-pattern services service" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d="M 0,30 30,0 M 30,60 60,30 M 0,30 30,60 M 30,0 60,30 M 0,60 60,0 M 0,0 60,60 M 37.5,60 30,52.5 22.5,60 M 37.5,0 30,7.5 22.5,0 M 60,37.5 52.5,30 60,22.5 M 60,45 45,60 M 60,15 45,0 M 0,15 15,0 M 0,45 15,60 M 52.5,0 60,7.5 m 0,45 -7.5,7.5 M 7.5,0 0,7.5 m 0,45 7.5,7.5 M 0,37.5 7.5,30 0,22.5 m 30,0 L 22.5,30 30,37.5 37.5,30 Z M 45,37.5 37.5,45 45,52.5 52.5,45 Z M 15,37.5 7.5,45 15,52.5 22.5,45 Z M 45,7.5 37.5,15 45,22.5 52.5,15 Z M 15,7.5 7.5,15 15,22.5 22.5,15 Z M 45,0 0,45 M 60,15 15,60 M 15,0 60,45 M 0,15 45,60" style="fill:none;stroke-linecap:square" /></svg> ',
'storage': '<svg class="rh-pattern storage group-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="60" width="60"> <path d="m 58,60 2,-2 M 18,0 16,2 M 38,0 36,2 M 58,0 56,2 m 4,6 -4,4 m 4,6 -4,4 m 4,16 -4,4 M 6,52 -2,60 M 46,12 36,22 M 6,12 0,18 M 6,32 0,38 M 26,12 16,22 M 26,32 16,42 M 46,32 36,42 m -10,10 -8,8 m 28,-8 -8,8 M 60,48 48,60 M 60,28 28,60 M 56,12 8,60 M 48,0 0,48 m 46,-6 10,0 0,10 -10,0 z m -20,0 10,0 0,10 -10,0 z m -20,0 10,0 0,10 -10,0 z m 40,-20 10,0 0,10 -10,0 z m -20,0 10,0 0,10 -10,0 z M 6,22 16,22 16,32 6,32 Z M 28,0 0,28 M 46,2 56,2 56,12 46,12 Z M 26,2 36,2 36,12 26,12 Z M 6,2 16,2 16,12 6,12 Z M 8,0 0,8" style="fill:none;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:0" /></svg> ',
};
function makeTile (pattern) {
var d = document.createElement('div');
d.classList.add('tile-pattern-tile');
d.style.margin = 0;
d.style.float = 'left';
d.innerHTML = pattern;
d.children[0].style.display = 'block';
return d;
}
function tilePattern (pattern, element) {
var n,
d;
element.classList.add('tile-pattern-container');
element.style.overflow = 'hidden';
d = makeTile(pattern);
element.appendChild(d);
n = (element.offsetWidth * element.offsetHeight) / (d.offsetWidth * d.offsetHeight);
for(var i = 0; i < n; i++) {
d = makeTile(pattern);
element.appendChild(d);
}
}
var fillable = __slice.call(document.querySelectorAll('[data-red-hat-pattern]'));
fillable.forEach(function (elem) {
var pattern = elem.dataset.redHatPattern || 'corporate';
tilePattern(patterns[pattern], elem);
});
global.tilePattern = tilePattern;
})(window);