add some description to some classes

pull/21833/head
Bruno Windels 2018-10-17 13:42:30 +02:00
parent 8d3347bcfb
commit d8ead8a8bb
2 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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;