()
| 228 | } |
| 229 | |
| 230 | protected _createMesh() { |
| 231 | const {bounds} = this.props; |
| 232 | |
| 233 | let normalizedBounds = bounds; |
| 234 | // bounds as [minX, minY, maxX, maxY] |
| 235 | if (isRectangularBounds(bounds)) { |
| 236 | /* |
| 237 | (minX0, maxY3) ---- (maxX2, maxY3) |
| 238 | | | |
| 239 | | | |
| 240 | | | |
| 241 | (minX0, minY1) ---- (maxX2, minY1) |
| 242 | */ |
| 243 | normalizedBounds = [ |
| 244 | [bounds[0], bounds[1]], |
| 245 | [bounds[0], bounds[3]], |
| 246 | [bounds[2], bounds[3]], |
| 247 | [bounds[2], bounds[1]] |
| 248 | ]; |
| 249 | } |
| 250 | |
| 251 | return createMesh(normalizedBounds, this.context.viewport.resolution); |
| 252 | } |
| 253 | |
| 254 | protected _getModel(): Model { |
| 255 | /* |
no test coverage detected