Skip to content

Commit e51fcfb

Browse files
committed
Remove apis
1 parent 7b44693 commit e51fcfb

File tree

11 files changed

+68
-40
lines changed

11 files changed

+68
-40
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<p align="left">
44
<a href="https://travis-ci.org/webhacking/remote-screen-capture"><img src="https://travis-ci.org/webhacking/remote-screen-capture.svg?branch=master" alt="Build Status"></a>
55
<a href="https://codecov.io/gh/webhacking/remote-screen-capture"><img src="https://codecov.io/gh/webhacking/remote-screen-capture/branch/master/graph/badge.svg" /></a>
6+
<a href="https://badge.fury.io/js/remote-screen-capture"><img src="https://badge.fury.io/js/remote-screen-capture.svg" alt="npm version" height="18"></a>
67
</p>
78
89

@@ -59,6 +60,9 @@ RemoteScreenCapture.take('https://www.google.com', './images').subscribe(savePat
5960
## API
6061
- take(URI: string, options?: OptionsInterface)
6162
- options(width:number = 2880, height:number = 1800, savePath?: string)
63+
- takeByElementSelector(URI: string, selectorName: string, options?: OptionsInterface)
64+
- options(width:number = 2880, height:number = 1800, savePath?: string)
65+
6266

6367
## Where do I go for help?
6468
If you need, open an issue.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface OptionsInterface {
22
readonly width?: number;
33
readonly height?: number;
4-
readonly savePath?: string;
4+
readonly savePath: string;
55
}

dist/remote-screen-capture.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { ThenableWebDriver } from 'selenium-webdriver';
21
import { Observable } from 'rxjs';
32
import { OptionsInterface } from './interface/options.interface';
43
export declare class RemoteScreenCapture {
5-
getDriver(): Observable<ThenableWebDriver>;
6-
static take(URI: string, options?: OptionsInterface): Observable<string | void>;
4+
private getDriver;
5+
static take(URI: string, options?: OptionsInterface): Observable<string>;
76
}

dist/remote-screen-capture.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/remote-screen-capture.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
export * from './src';
2-
3-
1+
export * from './src';

package-lock.json

Lines changed: 48 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@
3737
},
3838
"devDependencies": {
3939
"@types/chromedriver": "2.38.0",
40+
"@types/filesystem": "0.0.29",
4041
"@types/jest": "24.0.13",
42+
"@types/node": "^12.0.7",
4143
"@types/selenium-webdriver": "4.0.0",
44+
"@types/sharp": "^0.22.2",
4245
"codecov": "3.5.0",
4346
"jest": "24.8.0",
4447
"nyc": "14.1.1",

src/interface/.DS_Store

6 KB
Binary file not shown.

src/interface/options.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface OptionsInterface {
22
readonly width?: number;
33
readonly height?: number;
4-
readonly savePath?: string;
4+
readonly savePath: string;
55
}

0 commit comments

Comments
 (0)