question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get the initial value of `pixelCrop` if user uses default selection

See original GitHub issue

In my application, I’m using onImageLoaded to center to the crop window on the image. It is possible that the user will not have to move the crop. If the user submits the form without clicking on the image, is there a way to get an instanceof pixelCrop?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
DominicTobiascommented, Sep 9, 2018

pixelCrop is now passed to onImageLoaded so this should be easier

1reaction
DominicTobiascommented, Jun 21, 2018

Thanks but no need for a PR, something like this has only come up twice in a few years. However I will document the other functions like getPixelCrop in the README.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I set the default value for an HTML <select> element?
Use javascript's querySelectorAll() to select all elements that have the custom attribute you just added. In the following example, when run, the first...
Read more >
react-image-crop - npm
Start using react-image-crop in your project by running `npm i ... If true is passed then selection can't be disabled if the user...
Read more >
Dynamic Media Image Profiles | Adobe Experience Manager
Use when you create a smart crop profile. Uncheck this option to generate new crop content – while still maintaining the focal point...
Read more >
Initial value when new record - Oracle Communities
I have a problem with initial value when new record is inserted. ... Or is there another way - when i use ent/exe...
Read more >
draft-ietf-cellar-matroska-09 - Matroska Media Container Format ...
Therefore Matroska writers MUST NOT use EBML Empty Elements, if the element has a default value that is not 0 for integers/dates and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found