renew-js / renew-lib

Core component of renew-js for displaying and modifying drawings
Other
0 stars 0 forks source link

Label direct editing ignores viewport transform #95

Closed 0x4d closed 5 years ago

0x4d commented 5 years ago

Describe the bug

  1. Direct label editing ignores viewport transform
  2. Shape placed after direct editing has wrong coordinates

To Reproduce

Steps to reproduce the behavior:

  1. Translate the canvas
  2. Start creating a label
  3. The direct editing box uses the viewport coordinates as screen coordinates

Expected behavior

Screen coordinates should be translated