Skip to content

Extrapolate selections of DOM elements to include similar elements according to a Bayesian model

Notifications You must be signed in to change notification settings

cecchi/dom-selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

dom-selection

Extrapolate selections of DOM elements to include similar elements

Methods

.include(HTMLElement|Array|NodeList|String)

Adds one or more elements to the selection.

.exclude(HTMLElement|Array|NodeList|String)

Removes one or more elements from the selection and prevents them from being selected during extrapolation.

.contains(HTMLElement, Boolean)

Determines if the provided element is included in the selection. If the second parameter is true it will check child elements in the selection recursively.

.extrapolate()

Extends the selection to include similar elements based on Bayesian similarity of various element properties and returns the new selection.

About

Extrapolate selections of DOM elements to include similar elements according to a Bayesian model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published