Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Yfiles HTML - GraphEditorInputMode

0 votes

<script>

var /** yfiles.input.GraphEditorInputMode */
mode = new yfiles.input.GraphEditorInputMode();
 
mode.marqueeSelectionInputMode.enabled = true;
 mode.availableCommands.clear();
    mode.availableCommands.add(yfiles.input.GraphCommands.TOGGLE_ITEM_SELECTION_COMMAND);
     mode.availableCommands.add(yfiles.system.ApplicationCommands.SELECT_ALL);
      
    
    mode.createNavigationInputMode();
    mode.navigationInputMode.availableCommands.clear();
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.EXTEND_SELECTION_LEFT);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.EXTEND_SELECTION_RIGHT);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.EXTEND_SELECTION_UP);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.EXTEND_SELECTION_DOWN);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.SELECT_TO_PAGE_UP);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.SELECT_TO_PAGE_DOWN);

</script>

 

I want to be able to select multiple node, but with marquee is ok, but when i do CTRL + click the framework doesn't select the two nodes... I read more on tutorial and on doc but i have no idea how to do this. 

doc read : 

http://docs.yworks.com/yfileshtml/html/T_f71df29c-2c12-44fd-9e11-e6178a2799eb.htm

tutorial : 

http://live.yworks.com/yfiles-for-html/1.3/demos/input/demo.yfiles.input.singleselection/index.html. 

http://live.yworks.com/yfiles-for-html/1.3/tutorials/01_Getting_Started/06_Basic_Interaction/index.html

 

( the code in the tutorial is very hard to read and understand ) 

Can anyone help, please. 

Thanks a lot 

closed with the note: Not a yEd question.
in Help by
closed by

1 Answer

0 votes

This forum is for yEd questions only. For questions regarding the yFiles for HTML programming library, please contact yWorks support by mail. (Please include your yWorks customer or evaluator ID in your mail when doing so.)

by [yWorks] (144k points)
Legal Disclosure | Privacy Policy
...