d3.matcher()

d3.matcher(selector)

Given the specified selector, returns a function which returns true if this element matches the specified selector. This method is used internally by selection.filter. For example, this:

var div = selection.filter("div");

Is equivalent to:

var div = selection.filter(d3.matcher("div"));

(Although D3 is not a compatibility layer, this implementation does support vendor-prefixed implementations due to the recent standardization of element.matches.)

doc_D3_Js
2016-11-24 10:26:58
Comments
Leave a Comment

Please login to continue.