From 8d414d098683df107264ee2b686d6e68e4d2c7b5 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 17 Oct 2018 13:45:56 +0200 Subject: [PATCH] more docs --- src/resizer/resizer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/resizer/resizer.js b/src/resizer/resizer.js index 10f08aa546..f207f4a215 100644 --- a/src/resizer/resizer.js +++ b/src/resizer/resizer.js @@ -55,6 +55,12 @@ export class Resizer { this.container.removeEventListener("mousedown", this.mouseDownHandler, false); } + /** + Gives the distributor for a specific resize handle, as if you would have started + to drag that handle. Can be used to manipulate the size of an item programmatically. + @param {number} handleIndex the index of the resize handle in the container + @return {Distributor} a new distributor for the given handle + */ forHandleAt(handleIndex) { const handles = this._getResizeHandles(); const handle = handles[handleIndex];