-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example on codesandbox.io or similar #10
Comments
I don't know what frontend framework / library you're using, but in angular the implementation is dead simple:
@NgModule({
declarations: [
// Components
AppComponent,
],
imports: [
//..
],
providers: [{ provide: Window, useValue: window }],
bootstrap: [AppComponent],
})
export class AppModule {}
import * as Pico from '@gripeless/pico';
@Injectable({
providedIn: 'root',
})
export class TicketService {
async doScreenShot() {
// ...
const screenshot = (await Pico.dataURL(window, {})).value;
console.log(screenshot ); // for debugging only
return screenshot;
}
} If you don't know angular: It uses not normal javascript, but its superset typescript. |
Well reason I asked for this is that I did fail to make it work in some simple case. Could be problem with how they package. So yeah I asked for some example project that has both code and published online to play around. |
Thanks for routing me to this example thread, unfortunately all examples are not working, resulting in "SyntaxError: Unexpected token" or "$csb__fluture.parallel is not a function". |
@JensUweB and what abotu the ignore option? Its failing if I provide |
Can any kind soul provide me the minified js file of this library? |
Is your feature request related to a problem? Please describe.
Tried to use but did not understood how.
Describe the solution you'd like
Code example that can be played with on some online code playground like https://codesandbox.io/
The text was updated successfully, but these errors were encountered: