maxun-core 0.0.25 → 0.0.26

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.
@@ -1,17 +1,17 @@
1
- declare function getBiggestElement(selector: any): any;
2
- /**
3
- * Generates structural selector (describing element by its DOM tree location).
4
- *
5
- * **The generated selector is not guaranteed to be unique!** (In fact, this is
6
- * the desired behaviour in here.)
7
- * @param {HTMLElement} element Element being described.
8
- * @returns {string} CSS-compliant selector describing the element's location in the DOM tree.
9
- */
10
- declare function GetSelectorStructural(element: HTMLElement): string;
11
- /**
12
- * Heuristic method to find collections of "interesting" items on the page.
13
- * @returns {Array<HTMLElement>} A collection of interesting DOM nodes
14
- * (online store products, plane tickets, list items... and many more?)
15
- */
16
- declare function scrapableHeuristics(maxCountPerPage?: number, minArea?: number, scrolls?: number, metricType?: string): Array<HTMLElement>;
17
- declare function area(element: any): number;
1
+ declare function getBiggestElement(selector: any): any;
2
+ /**
3
+ * Generates structural selector (describing element by its DOM tree location).
4
+ *
5
+ * **The generated selector is not guaranteed to be unique!** (In fact, this is
6
+ * the desired behaviour in here.)
7
+ * @param {HTMLElement} element Element being described.
8
+ * @returns {string} CSS-compliant selector describing the element's location in the DOM tree.
9
+ */
10
+ declare function GetSelectorStructural(element: HTMLElement): string;
11
+ /**
12
+ * Heuristic method to find collections of "interesting" items on the page.
13
+ * @returns {Array<HTMLElement>} A collection of interesting DOM nodes
14
+ * (online store products, plane tickets, list items... and many more?)
15
+ */
16
+ declare function scrapableHeuristics(maxCountPerPage?: number, minArea?: number, scrolls?: number, metricType?: string): Array<HTMLElement>;
17
+ declare function area(element: any): number;