Felix Zedén Yverås
3659ba9143
fix: release pointer capture when using onPointerLeave
events
...
Certain input sources (such as touch) are "captured" when they
press an element. This means the pointer is always considered
"inside" the element by the browser, even when they visually are
not. This caused some issues on mobile browsers where touch and
stylus events could not connect table columns with each other.
Just to be safe, I've added the required `releasePointerCapture`
call everywhere `onPointerEnter` or `onPointerLeave` is used.
2024-07-17 22:22:52 +02:00
Felix Zedén Yverås
32c82168fe
feat: add debug coordinate overlay
...
Makes debugging issues in conversion from screen space
to diagram space easier.
Only adding english translations as I do not speak the
other languages.
2024-07-14 15:36:54 +02:00
Felix Zedén Yverås
cdecf7c633
feat: add basic touchscreen support
...
This is basically a migration from mouse events to
[pointer events](
https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events
).
The `PointerEvent` interface inherits all of the `MouseEvent`
properties, meaning that existing code can essentially be left
as-is. The only major change is making sure we only respond to the
"primary" pointer.
Known issues include:
* stylus hover is not detected
* touchscreens do not have a concept of hover, making it difficult
to e.g. resize areas
* no touch gesture support, e.g. "pinch-to-zoom"
2024-07-14 15:36:54 +02:00
1ilit
84abae7d06
Save database type and enums for templates
2024-07-08 11:54:04 +03:00
1ilit
159dcca4dc
Fix import diagram
2024-07-08 04:03:41 +03:00
1ilit
c84990ca6d
Fix loading the diagram on open to load in types and enums
2024-07-08 02:18:12 +03:00
1ilit
c907cfea47
Add database icon to diagrams
2024-07-08 02:09:51 +03:00
1ilit
322bb6e988
Merge branch 'main' into select-db
...
# Conflicts:
# src/i18n/locales/en.js
# src/utils/exportSQL/generic.js
2024-07-07 17:57:33 +03:00
1ilit
1580641e97
Delete types and enums on clear
2024-07-05 22:29:42 +03:00
1ilit
9b606114df
Rename TablesContext to DiagramContext
2024-07-04 23:18:20 +03:00
1ilit
d00c21b2e3
Add MSSQL types
2024-07-04 19:42:11 +03:00
1ilit
7c1eecd7a0
Undo and redo enum editing
2024-07-03 21:21:44 +03:00
1ilit
1430db881c
Export and import enums in diagrams
2024-07-03 13:25:24 +03:00
1ilit
3c1e72fbdd
Export enums to sql
2024-07-02 23:26:45 +03:00
1ilit
dd2aafe80b
Import enums from source
2024-06-30 15:38:25 +03:00
1ilit
5b18b02946
Fix db names on open modal
2024-06-30 13:36:57 +03:00
1ilit
810afe4bc0
Add enums tab
2024-06-30 13:19:21 +03:00
1ilit
259835892a
Fix add field for types to work with dbToTypes
2024-06-27 11:34:21 +03:00
1ilit
d79b0c205d
Return types after import
2024-06-27 11:12:09 +03:00
1ilit
d8128f5010
Import from postgres
2024-06-22 04:13:44 +03:00
Huy Bui
43e4744afa
fix: todo details value
2024-06-16 22:42:44 +07:00
1ilit
a4fe117c80
Move export sql above export as in menubar
2024-06-16 05:08:28 +03:00
1ilit
3f6dfe6437
Import and export to mariadb in mariadb diagrams
2024-06-16 04:54:03 +03:00
1ilit
bff10e6fe9
Remove unnecessary fields in datatype
2024-06-15 04:41:06 +03:00
1ilit
e61757f93d
Import SQLite source
2024-06-14 01:00:47 +03:00
1ilit
c0584f11c6
Show database type on open
2024-06-11 07:30:30 +03:00
1ilit
6c1ff1518f
Set up multiple imports for generic diagrams
2024-06-10 22:57:21 +03:00
1ilit
73dff50f14
Export sqlite
2024-06-10 15:23:57 +03:00
1ilit
9c31e2be52
Move all type data to datatypes.js
2024-06-10 02:17:43 +03:00
1ilit
0908d040e0
Load database type on open
2024-06-09 20:18:12 +03:00
1ilit
1283f66a86
Fix hyphenated languages not having a border when selected
2024-06-01 21:23:48 +03:00
1ilit
3988b8d990
Recover relationships after undoing table delete
2024-05-31 20:17:21 +03:00
1ilit
679f6b05e5
Recover relationships after undoing 'field_delete'
2024-05-31 19:19:58 +03:00
1ilit
cd050a59f9
Fix styling for overflowing elements
2024-05-17 03:45:42 +03:00
lilit
0371606829
Merge branch 'main' into i18n
2024-05-16 07:01:55 +03:00
1ilit
2b4b01c358
Configure i18n and add simplified chinese ( #99 )
2024-05-16 06:45:47 +03:00
liao文禧
a33b68bfd0
place optional parameters of functions at the end( #104 )
2024-05-14 11:22:13 +08:00
1ilit
11e83bb12b
Arrange tables in import from source ( #28 )
2024-04-22 21:43:51 +03:00
1ilit
898d81d6e9
Display sql error location and message on import
2024-04-20 18:16:41 +03:00
1ilit
3656d60099
Switch to codemirror
2024-04-19 17:28:32 +03:00
haecheonlee
a193bf6a48
Fix to show the state of field summary in setting
2024-04-15 01:21:41 -04:00
1ilit
0913ee8108
Add tags to indicate if a setting is on or off
2024-04-11 11:11:02 +03:00
1ilit
2f7702a593
Add warnings to destructive operations
2024-04-11 10:44:13 +03:00
ClaPalo
12fbeeceb0
Added button to switch theme
2024-04-10 23:48:17 -05:00
1ilit
895c1da2b0
Add a setting to resize table width ( #21 )
2024-04-10 06:47:06 +03:00
1ilit
9b5c548e15
Update discord link
2024-04-07 00:20:24 +03:00
1ilit
0ec280b821
Fix import source
2024-04-06 08:22:23 +03:00
1ilit
173b02daa2
Move controlpanel modal and sidesheet into folders
2024-04-06 08:19:12 +03:00
1ilit
1576b3fb96
Add robots.txt
2024-04-06 05:19:13 +03:00
1ilit
8cf95a9a06
Fix imports for hooks
2024-04-05 05:12:50 +03:00