Giter VIP home page Giter VIP logo

react-pdf-selection's People

Contributors

acco avatar agentcooper avatar albcunha avatar amihay-hellofyllo avatar arpitbhalla avatar dependabot[bot] avatar jonasgruenwald avatar jsg2021 avatar mapreal19 avatar mathiasmeuleman avatar steevn avatar z4m0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-pdf-selection's Issues

Make newAreaSelectionComponent close programmatically.

I am trying to set a newAreaSelectionComponent that has a popover where the user can enter some more data about the selection before saving it. The problem I am having is every time I click into the Popover it triggers a reset of the newAreaSelectionComponent. How can I programatically control reseting when the newAreaSelectionComponent is closed so losing focus does not automatically reset the selection.

         newAreaSelectionComponent={(boundingRect)=>{
                return(
                    <CustomSelectionComponent  boundingRect={boundingRect.boundingRect} selectionPageNumber={selectionPageNumber}/>
                    )
            }}


        <Popover>
                <div
                    style={{
                        ...boundingRect,
                        position: "absolute",
                        border: "1px dashed #333",
                        background: "rgba(252, 232, 151, 1)",
                        mixBlendMode: "multiply",
                    }}
                />
          </Popover>
Screen.Recording.2023-03-22.at.2.12.17.PM.mov

Select text spanning multiple pages

Currently, selecting text that spans multiple pages will only result in the text on the first of those pages being properly selected. It would be nice if this library would support multi-page text selections.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.