mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 15:01:13 +02:00
add some description to some classes
This commit is contained in:
parent
8d3347bcfb
commit
d8ead8a8bb
@ -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…
x
Reference in New Issue
Block a user