TranKung

Results comments of TranKung

@jaywcjlove thanks. It works. I use `event.preventDefault(); ` to disabled short cut of browser or computer

You can make your own undo, redo function using stack: https://github.com/chrisknowles/undo-redo-stack/blob/master/src/undo-redo-stack.js, In my case, I save `engineScript` as JSON format of diagramModel: ``` const engineScript = app .getDiagramEngine() .getDiagramModel() .serializeDiagram();...

@irgijs very nice approach. It seems like you use Command pattern on design-pattern

I use `event.preventDefault();` on onKeyUp but it does not work. It just work on onKeyDown listener

if you use Nextjs, you could try: ``` const nextConfig = { transpilePackages: ['react-hexgrid'], }; module.exports = nextConfig; ``` It works for me

thank @JokerNN , it need to `return true` to works

@memsenpai same for me. By the way, I am Vietnamese =))

Hi @dylanvorster, how to disable Shift+click or any key event to delete a link, because I do not want this function on my app. And another weird thing happen, when...

thank @David-Melo , it works

This how I make it works. In `diagramModel`, I add an event listener: ` diagramModel.addListener({ linksUpdated: this.removeNotValidLink, });` When you created new link, or update `targetPort` of a link, `linksUpdated()`...