|
| 1 | +<div class="angle-diagram-container"> |
| 2 | + <div class="control-section" style="width: 100%"> |
| 3 | + <div id="diagram"></div> |
| 4 | + </div> |
| 5 | + </div> |
| 6 | + <div id="action-description"> |
| 7 | + <p> |
| 8 | + This sample demonstrates an interactive solar panel tilt system built with the Syncfusion<sup>®</sup> EJ2 JavaScript Diagram component. Adjust the panel angle to see real-time changes in system efficiency based on the sun's position and location. |
| 9 | + </p> |
| 10 | + </div> |
| 11 | + <div id="description"> |
| 12 | + <p> |
| 13 | + This interactive diagram visualizes a solar panel system. The sun's path is represented by a curved connector, and users can adjust the panel's tilt angle either by direct rotation or using integrated buttons. The system provides immediate feedback through a dynamic efficiency gauge and performance messages. Users can also select different locations to observe how regional variations impact overall solar efficiency. |
| 14 | + </p> |
| 15 | + </div> |
| 16 | +</div> |
| 17 | + |
| 18 | + <style> |
| 19 | + .angle-diagram-container .e-ddl.e-input-group .e-input-group-icon, .e-ddl.e-input-group.e-control-wrapper .e-input-group-icon:hover { |
| 20 | + color: #9CA3AF; |
| 21 | + } |
| 22 | + |
| 23 | + .angle-diagram-container .e-ddl.e-input-group.e-control-wrapper .e-input { |
| 24 | + color: #9CA3AF; |
| 25 | + font-size: 16px; |
| 26 | + font-weight : 500; |
| 27 | + } |
| 28 | + |
| 29 | + .angle-diagram-container .angle-control-section { |
| 30 | + margin-bottom: 25px; |
| 31 | + background: linear-gradient(145deg, #ffffff, #f8f9fa); |
| 32 | + border-radius: 15px; |
| 33 | + padding: 25px; |
| 34 | + box-shadow: 0 5px 20px rgba(0,0,0,0.06); |
| 35 | + transition: transform 0.2s ease, box-shadow 0.2s ease; |
| 36 | + } |
| 37 | + |
| 38 | + .angle-diagram-container .angle-control-label { |
| 39 | + display: flex; |
| 40 | + align-items: center; |
| 41 | + font-weight: 600; |
| 42 | + font-size: 18px; |
| 43 | + color: #2c3e50; |
| 44 | + margin-bottom: 15px; |
| 45 | + text-transform: uppercase; |
| 46 | + letter-spacing: 0.5px; |
| 47 | + } |
| 48 | + |
| 49 | + .angle-diagram-container .angle-control { |
| 50 | + align-items: center; |
| 51 | + background: linear-gradient(145deg, #f8f9fa, #e9ecef); |
| 52 | + border: 2px solid #e9ecef; |
| 53 | + border-radius: 12px; |
| 54 | + padding: 15px; |
| 55 | + transition: all 0.3s ease; |
| 56 | + height: 100px; |
| 57 | + } |
| 58 | + |
| 59 | + .angle-diagram-container .angle-display { |
| 60 | + display: block; |
| 61 | + text-align: center; |
| 62 | + margin: 0 20px; |
| 63 | + } |
| 64 | + |
| 65 | + .angle-diagram-container .angle-value { |
| 66 | + font-size: 20px; |
| 67 | + font-weight: bold; |
| 68 | + color: #2c3e50; |
| 69 | + margin-bottom: 5px; |
| 70 | + } |
| 71 | + |
| 72 | + .angle-diagram-container .angle-description { |
| 73 | + font-size: 16px; |
| 74 | + color: #7f8c8d; |
| 75 | + font-weight: 500; |
| 76 | + margin-top: 20px; |
| 77 | + margin-left: 2px; |
| 78 | + } |
| 79 | + |
| 80 | + .angle-diagram-container .efficiency-section { |
| 81 | + text-align: center; |
| 82 | + margin-bottom: 30px; |
| 83 | + background: linear-gradient(145deg, #ffffff, #f1f3f4); |
| 84 | + border-radius: 20px; |
| 85 | + padding: 25px; |
| 86 | + box-shadow: 0 8px 25px rgba(0,0,0,0.08); |
| 87 | + } |
| 88 | + |
| 89 | + .angle-diagram-container .e-diagram-selector { |
| 90 | + stroke-width: 0; |
| 91 | + } |
| 92 | +</style> |
0 commit comments