From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/web/static/lib/nearest/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 addons/web/static/lib/nearest/README.md (limited to 'addons/web/static/lib/nearest/README.md') diff --git a/addons/web/static/lib/nearest/README.md b/addons/web/static/lib/nearest/README.md new file mode 100644 index 00000000..cc40c5fe --- /dev/null +++ b/addons/web/static/lib/nearest/README.md @@ -0,0 +1,22 @@ +jQuery Nearest Element plugin +====== + +**Full documentation is at ** + +**Demo:** + +Method signatures: + + * `$.nearest({x, y}, selector)` - find `$(selector)` closest to x/y point on screen + * `$(elem).nearest(selector)` - find `$(selector)` closest to elem + * `$(elemSet).nearest({x, y})` - filter `$(elemSet)` and return closest to x/y point on screen + +Reverse logic: + + * `$.furthest()` + * `$(elem).furthest()` + +Intersecting/touching: + + * `$.touching()` + * `$(elem).touching()` -- cgit v1.2.3