(e, me)
| 254 | } |
| 255 | |
| 256 | findGraphicByPixel(e, me) { |
| 257 | const features = me.map.getFeaturesAtPixel(e.pixel) || []; |
| 258 | for (let index = 0; index < features.length; index++) { |
| 259 | const graphic = features[index]; |
| 260 | if (me.graphics.indexOf(graphic) > -1) { |
| 261 | return graphic; |
| 262 | } |
| 263 | } |
| 264 | return undefined; |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * @function Graphic.prototype.setGraphics |
no test coverage detected