MCPcopy Index your code
hub / github.com/visgl/deck.gl / _createMesh

Method _createMesh

modules/layers/src/bitmap-layer/bitmap-layer.ts:230–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 /*

Callers 1

updateStateMethod · 0.95

Calls 2

isRectangularBoundsFunction · 0.85
createMeshFunction · 0.85

Tested by

no test coverage detected