Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EPIC] Additional arrow types #695

Closed
AndreiMazol opened this issue Jul 27, 2021 · 0 comments
Closed

[EPIC] Additional arrow types #695

AndreiMazol opened this issue Jul 27, 2021 · 0 comments
Assignees
Milestone

Comments

@AndreiMazol
Copy link
Contributor

AndreiMazol commented Jul 27, 2021

This epic is created to enhance the functionality that relates to Arrow Tool and have partially been implemented in scope of #520 .

SCOPE:

  1. Need to decompose Reaction Arrow Tool button.
  2. Need to implement additional arrow types.
  3. Need to implement possibility to change arrow length and direction.

1. Decompose Reaction Arrow Tool button
image
Now:
Reaction Arrow Tool button is on the Taskbar on the left side. By clicking on the arrow on the corner of the button, list of tools expands - Reaction Arrow Tool, Reaction Arrow Equilibrium Tool, Plus, Reaction Auto-Mapping Tool, Reaction Mapping Tool, Reaction Unmapping tool.
To do:
Three separate buttons on the Taskbar: Arrow Open Angle Tool - by clicking on the corner the button, list of arrows expands, Plus, Reaction Mapping Tool - by clicking on the corner of the button, list of mapping tools expands.
Regardless browser's window's size, those three buttons should be presented on the Taskbar separately.
List of the arrows:

  1. Arrow Open Angle Tool
  2. Arrow Filled Triangle
  3. Arrow Filled Bow Tool
  4. Arrow Dashed Open Angle Tool
  5. Failed Arrow Tool
  6. Arrow Both Ends Filled Triangle Tool
  7. Arrow Equilibrium Filled Triangle Tool
  8. Arrow Equilibrium Filled Half Bow
  9. Arrow Equilibrium Open Angle Tool
  10. Arrow Unbalanced Equilibrium Filled Half Bow Tool
  11. Arrow Unbalanced Equilibrium Open Half Angle Tool
  12. Arrow Unbalanced Equilibrium Large Filled Half Bow Tool
  13. Arrow Unbalanced Equilibrium Filled Half Triangle Tool

Arrow Open Angle Tool is a default arrow.

2. Implement additional arrow types
Now:
There is two types of arrows available - Reaction Arrow Tool, Reaction Arrow Equilibrium Tool.
To do:

  • Change the name of available arrows:
  1. 'Reaction Arrow Tool' to 'Arrow Open Angle Tool'
  2. 'Reaction Arrow Equilibrium Tool' to 'Arrow Equilibrium Filled Half Bow'
  • Add new ones:

(Icon's view and view on the canvas for example)

  1. Arrow Filled Triangle
    image
    image

  2. Arrow Filled Bow Tool
    image
    image

  3. Arrow Dashed Open Angle Tool
    image
    image

  4. Failed Arrow Tool
    image
    image

  5. Arrow Both Ends Filled Triangle Tool
    image
    image

  6. Arrow Equilibrium Filled Triangle Tool
    image
    image

  7. Arrow Equilibrium Open Angle Tool
    image
    image

  8. Arrow Unbalanced Equilibrium Filled Half Bow Tool
    image
    image

  9. Arrow Unbalanced Equilibrium Open Half Angle Tool
    image
    image

  10. Arrow Unbalanced Equilibrium Large Filled Half Bow Tool
    image
    image

  11. Arrow Unbalanced Equilibrium Filled Half Triangle Tool
    image
    image

When user hover over the button in the Taskbar and in the expanded tools list, tooltips with the names of the tools appear.

3. Possibility to change arrow length and direction
When user clicks on the Arrow Tool and clicks on the canvas, arrow of the chosen type and default length appears.
When user clicks on the end of the arrow and drags it, arrow changes its length and direction.
When user use selection tool to select end of the arrow, selection works for the whole arrow (whole arrow is selected).

For the "ket" format save/load should work correctly (including arrow length, direction, coordinate and type)
If user selects another format to save the arrow, except Arrow Open Angle Tool, then the warning message "The ${Selected_format} does not support drawn elements: chosen arrow will be replaced with the reaction arrow" appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants