How to use the cropperjs.prototype function in cropperjs

To help you get started, we’ve selected a few cropperjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Hughp135 / angular-5-chat-app / src / app / components / image-cropper / image-cropper.component.spec.ts View on Github external
beforeEach(() => {
    fixture = TestBed.createComponent(ImageCropperComponent);
    component = fixture.componentInstance;
    spyOn(Cropper.prototype, 'getCroppedCanvas')
      .and.callFake(() => fakeCanvas);
    spyOn(component.croppedImgSrc, 'emit');
    fixture.detectChanges();
  });

cropperjs

JavaScript image cropper.

MIT
Latest version published 3 months ago

Package Health Score

88 / 100
Full package analysis