(state: GestureStateTypes)
| 126 | } |
| 127 | |
| 128 | function getStateAsString(state: GestureStateTypes): string { |
| 129 | const states = new Array<string>(); |
| 130 | if (state === GestureStateTypes.began) { |
| 131 | states.length = 0; |
| 132 | states.push('began'); |
| 133 | } else if (state === GestureStateTypes.cancelled) { |
| 134 | states.push('cancelled'); |
| 135 | } else if (state === GestureStateTypes.changed) { |
| 136 | if (states.indexOf('changed') === -1) { |
| 137 | states.push('changed'); |
| 138 | } |
| 139 | } else if (state === GestureStateTypes.ended) { |
| 140 | states.push('ended'); |
| 141 | } |
| 142 | |
| 143 | return ', states: ' + states.join(','); |
| 144 | } |
| 145 | |
| 146 | function createLabel(text: string, labelHeight: number, shouldWrap = false) { |
| 147 | const label = new Label(); |
no test coverage detected