<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