add some description to some classes
This commit is contained in:
parent
8d3347bcfb
commit
d8ead8a8bb
2 changed files with 12 additions and 0 deletions
|
@ -14,6 +14,14 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
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 {
|
class FixedDistributor {
|
||||||
constructor(sizer, item, config) {
|
constructor(sizer, item, config) {
|
||||||
this.sizer = sizer;
|
this.sizer = sizer;
|
||||||
|
|
|
@ -14,6 +14,10 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
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 {
|
class Sizer {
|
||||||
constructor(container, vertical, reverse) {
|
constructor(container, vertical, reverse) {
|
||||||
this.container = container;
|
this.container = container;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue