drawDB/package.json

62 lines
1.7 KiB
JSON
Raw Normal View History

2023-09-19 20:46:33 +08:00
{
2023-12-16 11:39:13 +08:00
"name": "client-vite",
2023-09-19 20:46:33 +08:00
"private": true,
2023-12-16 11:39:13 +08: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 20:46:33 +08:00
"dependencies": {
2024-04-19 22:28:32 +08:00
"@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-sql": "^6.6.3",
"@douyinfe/semi-ui": "^2.51.3",
2023-12-16 11:39:13 +08:00
"@lexical/react": "^0.12.5",
2024-04-19 22:28:32 +08:00
"@uiw/codemirror-theme-github": "^4.21.25",
"@uiw/codemirror-theme-vscode": "^4.21.25",
"@uiw/react-codemirror": "^4.21.25",
2024-02-29 22:14:41 +08:00
"@vercel/analytics": "^1.2.2",
"axios": "^1.7.4",
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 06:53:53 +08:00
"classnames": "^2.5.1",
2023-10-21 19:37:04 +08:00
"dexie": "^3.2.4",
2023-12-16 11:39:13 +08:00
"dexie-react-hooks": "^1.1.7",
2023-09-19 20:47:03 +08:00
"file-saver": "^2.0.5",
2024-01-18 15:21:30 +08:00
"framer-motion": "^10.18.0",
2023-09-19 20:48:24 +08:00
"html-to-image": "^1.11.11",
"i18next": "^23.11.4",
"i18next-browser-languagedetector": "^8.0.0",
2023-09-19 20:49:28 +08:00
"jsonschema": "^1.4.1",
2023-09-19 20:49:24 +08:00
"jspdf": "^2.5.1",
2023-12-16 11:39:13 +08:00
"lexical": "^0.12.5",
"node-sql-parser": "^5.3.0",
2023-09-19 20:46:33 +08:00
"react": "^18.2.0",
"react-dom": "^18.2.0",
2023-09-19 20:50:22 +08:00
"react-hotkeys-hook": "^4.4.1",
"react-i18next": "^14.1.1",
2023-12-16 11:39:13 +08:00
"react-router-dom": "^6.21.0",
2024-08-08 00:46:55 +08: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 06:53:53 +08:00
"url": "^0.11.1",
"usehooks-ts": "^3.1.0"
2023-09-19 20:46:40 +08:00
},
"devDependencies": {
2023-12-16 11:39:13 +08:00
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.16",
"eslint": "^8.55.0",
2024-04-06 16:11:12 +08:00
"eslint-config-prettier": "^9.1.0",
2023-12-16 11:39:13 +08: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 16:11:12 +08:00
"prettier": "3.2.5",
2023-12-16 11:39:13 +08:00
"tailwindcss": "^3.3.6",
"vite": "^5.4.1"
2024-02-13 03:05:21 +08:00
},
"overrides": {
"follow-redirects": "^1.15.4"
2023-09-19 20:46:33 +08:00
}
}