|
|
@ -13,7 +13,7 @@ const SizeUnits = Object.freeze({ |
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @abstract |
|
|
|
*/ |
|
|
|
class DirectionUnitDependentAttribute { |
|
|
|
_unit; |
|
|
@ -159,6 +159,8 @@ const CornerTransitionDirection = Object.freeze({ |
|
|
|
}); |
|
|
|
|
|
|
|
/** |
|
|
|
* @inheritdoc |
|
|
|
* @extends DirectionUnitDependentAttribute |
|
|
|
* |
|
|
|
*/ |
|
|
|
class Sides extends DirectionUnitDependentAttribute { |
|
|
@ -253,7 +255,8 @@ class Sides extends DirectionUnitDependentAttribute { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @inheritdoc |
|
|
|
* @extends Sides |
|
|
|
*/ |
|
|
|
class PaddingChain extends Sides { |
|
|
|
_modifier; |
|
|
@ -312,6 +315,9 @@ class PaddingChain extends Sides { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
*/ |
|
|
|
class TwoDimPoint { |
|
|
|
/** |
|
|
|
* |
|
|
@ -458,6 +464,7 @@ function isPointInArea(point, area, tolerance = 0, usePercentage = false) { |
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {HTMLElement} element |
|
|
|
* @returns {Object<SideDirections, number} |
|
|
|
*/ |
|
|
|
function getEnclosingBounds(element) { |
|
|
|
let area = element.getBoundingClientRect(); |
|
|
|