From c24dab2e86ab2a5c8f2cb9245f2f68ed1973151d Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 22 Mar 2018 01:24:59 +0100 Subject: [PATCH] Update type definition --- src/core/element.js | 2 +- types/index.d.ts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/core/element.js b/src/core/element.js index 39c66b1..535fb7d 100644 --- a/src/core/element.js +++ b/src/core/element.js @@ -283,7 +283,7 @@ export default class Element { } /** - * Get an element CSS property on the page + * Get current element's CSS attribute value * @param {string} property * @returns string * @private diff --git a/types/index.d.ts b/types/index.d.ts index cadf1de..d32652b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -284,6 +284,24 @@ declare module 'driver.js' { * Adds the highlight classes to current element if required */ private addHighlightClasses(): void; + + /** + * Walks through the parents of the current element and fixes + * the stacking context + */ + private fixStackingContext(): void; + + /** + * Checks if we can make the current element relative or not + * @return {boolean} + */ + private canMakeRelative(): boolean; + + /** + * Get current element's CSS attribute value + * @return {string} + */ + private getStyleProperty(): string; } class Overlay {