Git Product home page Git Product logo

dhek's People

Contributors

yoeight avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dhek's Issues

Top-left coordinates

Make sure that areas x,y saved are the most top-left coordinates for each one.
For now it takes selection origin, and width or height can be negative if gesture end if before x|y.

Wanted fix is:

  • if width (as calculed for now) is negative, normalizes it with abs(...) and substract normalized value from x; {x: 3,width: -1} => {x:2,width:1};
  • similar normalization for height/y.

Guide lines

Allow to create horizontal xor vertical lines (e.g. dragging in from rulers, like in Gimp/Photoshop).

Remove View button

No longer a separate View button, directly display PDF when file is selected from filechooser.

Save areas

For now, on exit save areas in a separate tmp.json file:

{ "resolution": ...,
  "areas": [
    { "x": ..., "y": ..., "width": ..., "height": ..., "name": ..., "type": "text/checkbox" }
  ]
}

Custom annotation management

Allow user to draw rectangular annotation on page display, handle it as annotation with known coordinates, to be able to attach custom properties (field type, field name) to each annotation.

Update on change

Remove Update button from Area editor and update area on each change for each editor component (field name text input, type combobox, ...).

Field name change notification/control on various events/ways

Events considered as name change:

  • on input (keyup)
  • on blur (focus lost)

Validations:

  • not empty

Error feedbacks (if not valid):

  • font color = red
  • prevent loosing focus (disable list, area editor and drawing area while it's not fixed)
  • display an explanatory message under field (reserve blank space for that as soon as editor is display)

Success feedback:

  • font color = normal
  • no error message
  • update field name in model (and list)

Move scrollview with mouse

Move area of doc displayed in the scrollpane (scrollview) with mouse gesture: mousedown-mousemove-mouseup (usually hand cursor/tool in draw tools).

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.