renew-js / renew-lib

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

Some shapes are not resized on import #134

Closed 0x4d closed 5 years ago

0x4d commented 5 years ago

Describe the bug

The element size is updated and the outline reflects it, however the element graphics do not.

To Reproduce

Steps to reproduce the behavior:

  1. Draw place in renew
  2. Export as PNML
  3. Import in renew-js
  4. See error

Expected behavior

Shapes should have the sizes that is specified in the import file.

tim-kilian commented 5 years ago

The initial representation is not updated after the creation on the import. This should be handled on each create process because you can modify the widths and heigths in the factory with your prefered values.