Commit Graph

40 Commits

Author SHA1 Message Date
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
c907cfea47 Add database icon to diagrams 2024-07-08 02:09:51 +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
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
d8128f5010 Import from postgres 2024-06-22 04:13:44 +03: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
e61757f93d Import SQLite source 2024-06-14 01:00:47 +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
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
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
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
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
1ilit
9036a96a22 Move custom icons to a separate folder 2024-04-05 04:19:36 +03:00
1ilit
10e0e279cc Remove coords from relationship objects 2024-04-05 03:05:09 +03:00
1ilit
cf71859f5c Fix broken discord link 2024-04-02 00:48:24 +03:00
1ilit
5347f75529 Remove select dbms from import source modal 2024-04-02 00:38:53 +03:00
1ilit
9df9527950 Reorganize files 2024-04-01 19:44:50 +03:00