iVis-at-Bilkent / cytoscape.js-context-menus

A Cytoscape.js extension to provide context menu around elements and core instance
MIT License
85 stars 41 forks source link

Submenu indicator is not found #81

Open Yagnap opened 2 months ago

Yagnap commented 2 months ago

The default submenu indicator (assets/submenu-indicator-default.svg) is not shown when not explicitly added with its absolute path (e.g. /node_modules/cytoscape-context-menus/assets/submenu-indicator-default.svg) in the options in cy.contextMenus(option) as an additional field. The image is not found. It works in the demo because there, the files are all placed in the root directory and not in a subfolder. We also have an issue on this in our project: snikproject/graph#423

hasanbalci commented 2 months ago

Do you have any solution for this? If you have, please open a PR to the unstable branch. Otherwise, maybe we can add a note about changing the image link in the explanation of corresponding option.