center-center 0.1.97 → 0.1.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "center-center",
3
- "version": "0.1.97",
3
+ "version": "0.1.98",
4
4
  "description": "Position an element at the center center of a container",
5
5
  "main": "./src/index.mjs",
6
6
  "type": "module",
@@ -26,9 +26,9 @@
26
26
  "debug": "^4.4.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@sequencemedia/eslint-config-standard": "^0.2.54",
30
- "@sequencemedia/eslint-config-typescript": "^0.1.85",
31
- "@sequencemedia/process": "^0.0.21",
29
+ "@sequencemedia/eslint-config-standard": "^0.2.55",
30
+ "@sequencemedia/eslint-config-typescript": "^0.1.86",
31
+ "@sequencemedia/process": "^0.0.22",
32
32
  "@types/chai": "^5.2.2",
33
33
  "@types/debug": "^4.1.12",
34
34
  "@types/express": "^5.0.1",
@@ -37,7 +37,7 @@
37
37
  "cross-env": "^7.0.3",
38
38
  "eslint": "^9.26.0",
39
39
  "express": "^5.1.0",
40
- "globals": "^16.0.0",
40
+ "globals": "^16.1.0",
41
41
  "husky": "^9.1.7",
42
42
  "mocha": "^11.2.2",
43
43
  "nodemon": "^3.1.10"
@@ -10,8 +10,8 @@
10
10
  * @returns {ScrollingElement}
11
11
  */
12
12
  export function getScrollingElement () {
13
- if ('scrollingElement' in document) { // (Reflect.has(document, 'scrollingElement')) {
14
- const scrollingElement = document.scrollingElement // Reflect.get(document, 'scrollingElement')
13
+ if ('scrollingElement' in document) {
14
+ const scrollingElement = document.scrollingElement
15
15
  if (scrollingElement) return scrollingElement
16
16
  }
17
17
 
@@ -52,7 +52,7 @@ export function createViewportRect () {
52
52
  *
53
53
  * @param {Element} element
54
54
  * @returns {CenterCenterRect}
55
- */
55
+ */
56
56
  export function createDOMElementRect (element) {
57
57
  const {
58
58
  scrollLeft,
@@ -84,7 +84,7 @@ export function createDOMElementRect (element) {
84
84
  *
85
85
  * @param {SVGGraphicsElement} element
86
86
  * @returns {CenterCenterRect}
87
- */
87
+ */
88
88
  export function createSVGElementRect (element) {
89
89
  const {
90
90
  x: left,