feat: widgets can move inside the canvas

This commit is contained in:
paul
2024-09-09 19:06:03 +05:30
parent b7f5ba05f4
commit 5a9346af0b
4 changed files with 299 additions and 100 deletions

View File

@@ -0,0 +1,5 @@
// given a string, converts to a python naming variable (snake case)
export function toSnakeCase(str) {
return str.replace(/[^a-zA-Z0-9\s]/g, '').replace(/\s+/g, '_').toLowerCase()
}