| 109 | |
| 110 | function createChainWidget() { |
| 111 | class ChainDate { |
| 112 | constructor(widgetDate) { |
| 113 | this.widgetDate = widgetDate; |
| 114 | } |
| 115 | applyDateStyle() { |
| 116 | this.widgetDate.applyDateStyle(); |
| 117 | return this; |
| 118 | } |
| 119 | applyOffsetStyle() { |
| 120 | this.widgetDate.applyOffsetStyle(); |
| 121 | return this; |
| 122 | } |
| 123 | applyRelativeStyle() { |
| 124 | this.widgetDate.applyRelativeStyle(); |
| 125 | return this; |
| 126 | } |
| 127 | applyTimeStyle() { |
| 128 | this.widgetDate.applyTimeStyle(); |
| 129 | return this; |
| 130 | } |
| 131 | applyTimerStyle() { |
| 132 | this.widgetDate.applyTimerStyle(); |
| 133 | return this; |
| 134 | } |
| 135 | centerAlignText() { |
| 136 | this.widgetDate.centerAlignText(); |
| 137 | return this; |
| 138 | } |
| 139 | date(date) { |
| 140 | this.widgetDate.date = date; |
| 141 | return this; |
| 142 | } |
| 143 | font(font) { |
| 144 | this.widgetDate.font = font; |
| 145 | return this; |
| 146 | } |
| 147 | leftAlignText() { |
| 148 | this.widgetDate.leftAlignText(); |
| 149 | return this; |
| 150 | } |
| 151 | lineLimit(number) { |
| 152 | this.widgetDate.lineLimit = number; |
| 153 | return this; |
| 154 | } |
| 155 | minimumScaleFactor(number) { |
| 156 | this.widgetDate.minimumScaleFactor = number; |
| 157 | return this; |
| 158 | } |
| 159 | rightAlignText() { |
| 160 | this.widgetDate.rightAlignText(); |
| 161 | return this; |
| 162 | } |
| 163 | shadowColor(color) { |
| 164 | this.widgetDate.shadowColor = color; |
| 165 | return this; |
| 166 | } |
| 167 | shadowOffset(point) { |
| 168 | this.widgetDate.shadowOffset = point; |
nothing calls this directly
no outgoing calls
no test coverage detected