Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 <svg xmlns="http://www.w3.org/2000/svg"> | 1 <svg xmlns="http://www.w3.org/2000/svg"> |
2 <view id="default" viewBox="0 0 48 48"/> | 2 <view id="default" viewBox="0 0 48 48"/> |
3 <rect x="22.96" y="16" width="2" height="22" fill="#099DD1"/> | 3 <rect x="22.96" y="16" width="2" height="22" fill="#099DD1"/> |
4 <rect x="29.96" y="16" width="2" height="22" fill="#099DD1"/> | 4 <rect x="29.96" y="16" width="2" height="22" fill="#099DD1"/> |
5 <rect x="15.96" y="16" width="2" height="22" fill="#099DD1"/> | 5 <rect x="15.96" y="16" width="2" height="22" fill="#099DD1"/> |
6 <path d="M44,7H33V5a5,5,0,0,0-5-5H20a5,5,0,0,0-5,5V7H4V9H6.68V39a9,9,0,0,0,9,9 H32.23a9,9,0,0,0,9-9V9H44ZM17,5a3,3,0,0,1,3-3h8a3,3,0,0,1,3,3V7H17ZM39.23,39a7,7 ,0,0,1-7,7H15.68a7,7,0,0,1-7-7V9H39.23Z" fill="#099DD1"/> | 6 <path d="M44,7H33V5a5,5,0,0,0-5-5H20a5,5,0,0,0-5,5V7H4V9H6.68V39a9,9,0,0,0,9,9 H32.23a9,9,0,0,0,9-9V9H44ZM17,5a3,3,0,0,1,3-3h8a3,3,0,0,1,3,3V7H17ZM39.23,39a7,7 ,0,0,1-7,7H15.68a7,7,0,0,1-7-7V9H39.23Z" fill="#099DD1"/> |
7 | 7 |
8 <view id="hover" viewBox="0 48 48 48"/> | 8 <view id="hover" viewBox="0 48 48 48"/> |
Thomas Greiner
2017/11/03 19:04:10
Detail: Let's add a comment above to explain why w
saroyanm
2017/11/03 19:18:17
This approach looks to be more performant, don't y
Thomas Greiner
2017/11/03 19:47:36
If performance is more important than maintainabil
| |
9 <rect x="22.96" y="16" width="2" height="22" transform="translate(0, 48)" fill ="#5CBCE1"/> | 9 <g transform="translate(0, 48)"> |
10 <rect x="29.96" y="16" width="2" height="22" transform="translate(0, 48)" fill ="#5CBCE1"/> | 10 <rect x="22.96" y="16" width="2" height="22" fill="#5CBCE1"/> |
11 <rect x="15.96" y="16" width="2" height="22" transform="translate(0, 48)" fill ="#5CBCE1"/> | 11 <rect x="29.96" y="16" width="2" height="22" fill="#5CBCE1"/> |
12 <path d="M44,7H33V5a5,5,0,0,0-5-5H20a5,5,0,0,0-5,5V7H4V9H6.68V39a9,9,0,0,0,9,9 H32.23a9,9,0,0,0,9-9V9H44ZM17,5a3,3,0,0,1,3-3h8a3,3,0,0,1,3,3V7H17ZM39.23,39a7,7 ,0,0,1-7,7H15.68a7,7,0,0,1-7-7V9H39.23Z" transform="translate(0, 48)" fill="#5CB CE1"/> | 12 <rect x="15.96" y="16" width="2" height="22" fill="#5CBCE1"/> |
Thomas Greiner
2017/11/03 19:04:10
Suggestion: You can avoid duplicating the "transfo
saroyanm
2017/11/03 19:18:16
Interesting approach, will test and update accordi
saroyanm
2017/11/03 19:35:09
Done.
| |
13 <path d="M44,7H33V5a5,5,0,0,0-5-5H20a5,5,0,0,0-5,5V7H4V9H6.68V39a9,9,0,0,0,9 ,9H32.23a9,9,0,0,0,9-9V9H44ZM17,5a3,3,0,0,1,3-3h8a3,3,0,0,1,3,3V7H17ZM39.23,39a7 ,7,0,0,1-7,7H15.68a7,7,0,0,1-7-7V9H39.23Z" fill="#5CBCE1"/> | |
14 </g> | |
13 </svg> | 15 </svg> |
LEFT | RIGHT |