SIGN IN SIGN UP
drawdb-io / drawdb UNCLAIMED

Free, simple, and intuitive online database diagram editor and SQL generator.

0 0 1 JavaScript
2023-09-19 15:46:33 +03:00
{
"name": "drawdb",
2023-09-19 15:46:33 +03:00
"private": true,
2023-12-16 05:39:13 +02:00
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
2023-09-19 15:46:33 +03:00
"dependencies": {
2025-07-29 22:10:24 +04:00
"@dbml/core": "^3.13.9",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@douyinfe/semi-ui": "^2.77.1",
2023-12-16 05:39:13 +02:00
"@lexical/react": "^0.12.5",
"@monaco-editor/react": "^4.7.0",
2024-02-29 16:14:41 +02:00
"@vercel/analytics": "^1.2.2",
"axios": "^1.13.5",
2023-10-21 14:37:04 +03:00
"dexie": "^3.2.4",
2023-12-16 05:39:13 +02:00
"dexie-react-hooks": "^1.1.7",
2023-09-19 15:47:03 +03:00
"file-saver": "^2.0.5",
2024-01-18 09:21:30 +02:00
"framer-motion": "^10.18.0",
"html-to-image": "1.11.11",
"i18next": "^23.11.4",
"i18next-browser-languagedetector": "^8.0.0",
2023-09-19 15:49:28 +03:00
"jsonschema": "^1.4.1",
"jspdf": "^4.2.1",
2025-04-10 22:08:31 +04:00
"jszip": "^3.10.1",
2023-12-16 05:39:13 +02:00
"lexical": "^0.12.5",
"lodash": "^4.17.23",
"luxon": "^3.7.1",
"nanoid": "^5.1.5",
2026-01-24 00:40:18 +04:00
"node-sql-parser": "^5.4.0",
"oracle-sql-parser": "^0.1.0",
2023-09-19 15:46:33 +03:00
"react": "^18.2.0",
"react-dom": "^18.2.0",
2023-09-19 15:50:22 +03:00
"react-hotkeys-hook": "^4.4.1",
"react-i18next": "^14.1.1",
"react-router-dom": "^6.30.3",
2024-08-07 19:46:55 +03:00
"react-tweet": "^3.2.1",
fix: rewrite coordinate management After some initial smaller fixes, it turned out that I had broken the red line used when linking fields. Fixing this was not trivial as I found myself battling a lot of small bugs relating to scale and translation in the existing code. This was made extra difficult as a lot of coordinates were calculated when necessary in Canvas.jsx. This commit attempts to simplify the coordinate management in a few different ways: * There are now two distinct coordinate systems in use, typically referred to as "spaces". Screen space and diagram space. * Diagram space is no longer measured in pixels (though the dimension-less measure used instead still maps to pixels at 100% zoom). * The canvas now exposes helper methods for transforming between spaces. * Zoom and translation is now managed via the svg viewBox property. * This makes moving items in diagram space much easier as the coordinates remain constant regardless of zoom level. * The canvas now wraps the current mouse position in a context object, making mouse movement much easier to work with. * The transform.pan property now refers to the center of the screen. A new feature in this commit is that scroll wheel zoom is now based on the current cursor location, making the diagram more convenient to move around in. I have tried to focus on Canvas.jsx and avoid changes that might be desctructive on existing save files. I also believe more refactors and abstractions could be introduced based on these changes to make the diagram even easier to work with. However, I deem that out of scope for now.
2024-07-01 00:53:53 +02:00
"usehooks-ts": "^3.1.0"
2023-09-19 15:46:40 +03:00
},
"devDependencies": {
2025-03-21 01:25:36 +04:00
"@tailwindcss/postcss": "^4.0.14",
2023-12-16 05:39:13 +02:00
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
Bump esbuild, @vitejs/plugin-react and vite (#376) Bumps [esbuild](https://github.com/evanw/esbuild) to 0.25.1 and updates ancestor dependencies [esbuild](https://github.com/evanw/esbuild), [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite). These dependencies need to be updated together. Updates `esbuild` from 0.21.5 to 0.25.1 - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.21.5...v0.25.1) Updates `@vitejs/plugin-react` from 4.2.1 to 4.3.4 - [Release notes](https://github.com/vitejs/vite-plugin-react/releases) - [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite-plugin-react/commits/v4.3.4/packages/plugin-react) Updates `vite` from 5.4.1 to 6.2.3 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v6.2.3/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v6.2.3/packages/vite) --- updated-dependencies: - dependency-name: esbuild dependency-type: indirect - dependency-name: "@vitejs/plugin-react" dependency-type: direct:development - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-24 20:07:24 +04:00
"@vitejs/plugin-react": "^4.3.4",
2023-12-16 05:39:13 +02:00
"eslint": "^8.55.0",
2024-04-06 11:11:12 +03:00
"eslint-config-prettier": "^9.1.0",
2023-12-16 05:39:13 +02:00
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"postcss": "^8.4.32",
2024-04-06 11:11:12 +03:00
"prettier": "3.2.5",
2025-03-21 01:25:36 +04:00
"tailwindcss": "^4.0.14",
"vite": "^6.4.1"
2023-09-19 15:46:33 +03:00
}
}