@koine/dom 2.0.0-beta.190 → 2.0.0-beta.192

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- let getVisualBackgroundColor=r=>{if(!r)return "#fff";let e=window.getComputedStyle(r).backgroundColor;if("rgba(0, 0, 0, 0)"===e||"transparent"===e){let e=r.parentElement;return e?getVisualBackgroundColor(e):"#fff"}return e};
5
+ let getVisualBackgroundColor=r=>{if(!r)return "#fff";let e=window.getComputedStyle(r).backgroundColor;if(!e||"rgba(0, 0, 0, 0)"===e||"transparent"===e){let e=r.parentElement;return e?getVisualBackgroundColor(e):"#fff"}return e};
6
6
 
7
7
  exports.default = getVisualBackgroundColor;
8
8
  exports.getVisualBackgroundColor = getVisualBackgroundColor;
@@ -2,5 +2,5 @@
2
2
  * Get the background color of an element eventually looking recursively into
3
3
  * its parents, if nothing is found it returns a `#fff` background
4
4
  */
5
- export declare let getVisualBackgroundColor: (elem?: null | HTMLElement) => string;
5
+ export declare let getVisualBackgroundColor: (elem?: null | Element) => string;
6
6
  export default getVisualBackgroundColor;
@@ -1,3 +1,3 @@
1
- let getVisualBackgroundColor=r=>{if(!r)return "#fff";let e=window.getComputedStyle(r).backgroundColor;if("rgba(0, 0, 0, 0)"===e||"transparent"===e){let e=r.parentElement;return e?getVisualBackgroundColor(e):"#fff"}return e};
1
+ let getVisualBackgroundColor=r=>{if(!r)return "#fff";let e=window.getComputedStyle(r).backgroundColor;if(!e||"rgba(0, 0, 0, 0)"===e||"transparent"===e){let e=r.parentElement;return e?getVisualBackgroundColor(e):"#fff"}return e};
2
2
 
3
3
  export { getVisualBackgroundColor as default, getVisualBackgroundColor };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@koine/dom",
3
3
  "sideEffects": false,
4
4
  "dependencies": {
5
- "@koine/utils": "2.0.0-beta.190"
5
+ "@koine/utils": "2.0.0-beta.192"
6
6
  },
7
7
  "exports": {
8
8
  "./package.json": "./package.json",
@@ -292,5 +292,5 @@
292
292
  "module": "./index.esm.js",
293
293
  "main": "./index.cjs.js",
294
294
  "types": "./index.esm.d.ts",
295
- "version": "2.0.0-beta.190"
295
+ "version": "2.0.0-beta.192"
296
296
  }