From d8ead8a8bb69a382bdacb29f1cc51ff0f8f16a27 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 17 Oct 2018 13:42:30 +0200 Subject: [PATCH] add some description to some classes --- src/resizer/distributors.js | 8 ++++++++ src/resizer/sizer.js | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/src/resizer/distributors.js b/src/resizer/distributors.js index a5ef48e571..a4dfd9b871 100644 --- a/src/resizer/distributors.js +++ b/src/resizer/distributors.js @@ -14,6 +14,14 @@ See the License for the specific language governing permissions and limitations under the License. */ +/** +distributors translate a moving cursor into +CSS/DOM changes by calling the sizer + +they have one method, `resize` that receives +the offset from the container edge of where +the mouse cursor is. +*/ class FixedDistributor { constructor(sizer, item, config) { this.sizer = sizer; diff --git a/src/resizer/sizer.js b/src/resizer/sizer.js index 674ea1823c..b8d1c55dd0 100644 --- a/src/resizer/sizer.js +++ b/src/resizer/sizer.js @@ -14,6 +14,10 @@ See the License for the specific language governing permissions and limitations under the License. */ +/** +implements DOM/CSS operations for resizing. +The sizer determines what CSS mechanism is used for sizing items, like flexbox, ... +*/ class Sizer { constructor(container, vertical, reverse) { this.container = container;