(color, id, type, colorAttribute)
| 458 | } |
| 459 | |
| 460 | function findAROByColor(color, id, type, colorAttribute) { |
| 461 | id = (id === undefined) ? '' : id + ' '; |
| 462 | type = (type === undefined) ? 'path' : type; |
| 463 | colorAttribute = (colorAttribute === undefined) ? 'stroke' : colorAttribute; |
| 464 | var selector = id + type; |
| 465 | var ret = d3SelectAll(selector).filter(function() { |
| 466 | return this.style[colorAttribute] === color; |
| 467 | }).node(); |
| 468 | return ret; |
| 469 | } |
| 470 | |
| 471 | function findImage(id) { |
| 472 | id = (id === undefined) ? '' : id + ' '; |
no outgoing calls
no test coverage detected
searching dependent graphs…