drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Unable to set the value of the slope angle to more than 1 in the style editor

Open function2-llx opened this issue 2 years ago • 1 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug When creating a parallelogram/trapezoid, it is unable to set the value of the slope angle to more than 1 in the style editor.

To Reproduce Steps to reproduce the behavior:

  1. Create a parallelogram.
  2. Click on the created parallelogram shape to open the style editor
  3. Open the property list and find the "Slope Angle" item, change its value to 30 The value is not changed to 30 but clipped to 1.

Expected behavior The value of the "Slope Angle" is changed to 30

Screenshots

https://github.com/jgraph/drawio/assets/38486514/6045de73-df29-4bcf-8e32-bc5af37d0366

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version: 21.3.2

Desktop

  • OS: Ubuntu 22.04
  • Browser: Firefox 114.0.1

Additional context

Current workaround: right click on the shape, click "Edit Style", and modify the "size" value.

Possible cause:

https://github.com/jgraph/drawio/blob/9d6532de36496e77d872d91b1947bb696607d623/src/main/webapp/js/diagramly/Editor.js#L4334-L4337

function2-llx avatar Jun 16 '23 03:06 function2-llx

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

github-actions[bot] avatar Jun 12 '24 11:06 github-actions[bot]

Still broken in v25.0.3.

ErikSwan avatar Dec 27 '24 18:12 ErikSwan

Related: the property editor in the user interface shows the default Slope Angle as 0.2, but the actual default Slope Angle appears to be 20.

ErikSwan avatar Dec 27 '24 20:12 ErikSwan