cytoscape.js-node-editing
cytoscape.js-node-editing copied to clipboard
remove jquery dependency
- remove jquery dependency on javascript code
- remove all references in the readme file and demo htmls
- code formatter
- tabWidth: 4
- singleQuote: true
Each file was formatted in a different way and cytoscape-node-editing.js file use several criterias at the same time, so I use the criteria shown above, since it were the most used inside the file. (If you want another criteria I can change it)
I think that in the future it would be good to add a .editorconfig file or .prettierrc.js file to maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. (I could add one if you want)
I hope this PR will help, anything let me know.
@marfyl Thanks for the PR. I checked some other extensions we developed and it seems that we generally prefer tabWidth: 2. Can you also change it for this PR as tabWidth: 2?
done! I just pushed the changes, thanks for the review.
@marfyl Thanks for the changes. I reviewed the PR and it seems generally ok, but I noticed a bug in your version that doesn't exist in our version. You can see that in the below video I generated using undoable demo. Can you please check the cause of the problem?
https://user-images.githubusercontent.com/22586369/185083955-e55ba95f-f96f-4431-a391-f2f095129edc.mp4
fixed, please refresh the cache to avoid problems
Do you need anything else from my side to bring out a new product release? Anything else you need just let me know
@marfyl Sorry for the late response. Your last commit fixed the error that I mentioned, but I now realized another bug during undo-redo operation. It is as follows: Correct behavior in master branch (when I undo, nodes return to their original position):
https://user-images.githubusercontent.com/22586369/189828948-357ca66d-8548-4d32-9742-f09c5009aea4.mp4
Behaviour in PR (nodes don't return to their original positions):
https://user-images.githubusercontent.com/22586369/189829169-45bebfc9-1f24-4b58-a9ed-86909d078ebd.mp4