Commit Graph

38 Commits

Author SHA1 Message Date
Happy4Game
93869d2a4e Add tailwind colors to all data types and display them 2025-05-13 20:26:54 +02:00
Happy4Game
0b9137ad4b Color added to main datatypes 2025-05-13 00:21:34 +02:00
1ilit
94226de561
Table and field drag and drop ordering (#444)
* Add dnd for tables and fields

* Fix inputs

* Decouple ids and indecies in the editor

* Decouple ids and indecies in utils

* Fix field indexes

* Use nanoid instead of numberic ids for fields and tables

* Fix review comments
2025-05-11 21:44:04 +04:00
1ilit
0efb5470ab
Bulk select (#395)
* add rect for select

* collect selected elements

* increase note stroke width

* move elements and undo redo

* add icon to toolbar to toggle multiselect mode

* set bulk selected elements to none when panning
2025-04-09 01:00:20 +04:00
1ilit
f95841f0e7
Migrate to tailwind v4 (#370) 2025-03-21 01:25:36 +04:00
Kratik
3e7d1ac6f6
Toggle datatypes visibility (#366)
* showDatatype setting added in view control panel

* removed shortcut

can be discussed later

* fixed linting issue and made sure the condition check is above div element

in table.jsx code
in the else part im directly returning the element by keeping a check  for settings.showDataTypes?
which helps to not add empty element

for setSetting issue
I used the similar code used just above the snippet and modified it
2025-03-17 01:50:59 +04:00
1ilit
03647fb3f8 Add question mark to show if a field is nullable 2024-08-13 12:49:35 +03:00
tasnim
5ec54e2445 Display UI in RTL languages correctly 2024-08-04 15:27:31 +03:00
1ilit
6f7b080e62 Show field size on the diagram 2024-08-01 13:44:22 +03:00
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
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
9b606114df Rename TablesContext to DiagramContext 2024-07-04 23:18:20 +03:00
1ilit
1d1dde27e7 Crop long types 2024-06-15 22:46:19 +03:00
1ilit
2b4b01c358 Configure i18n and add simplified chinese (#99) 2024-05-16 06:45:47 +03:00
1ilit
598f41fed2 Remove inline styling 2024-04-14 10:23:02 +03:00
1ilit
2ac0f047a1 Merge commit 'refs/pull/35/head' of https://github.com/drawdb-io/drawdb 2024-04-14 09:59:25 +03:00
santilapi13
0797a3fd7a fix: set field comment width instead of popover width 2024-04-11 23:30:40 -03:00
Santiago N. Lapiana
6580a40017
Merge branch 'drawdb-io:main' into popovers_comments 2024-04-11 22:46:47 -03:00
1ilit
9faf99d9d7 Remove magic numbers in table height calculations 2024-04-12 04:24:19 +03:00
ClaPalo
99cee1c104 Reintroduced opacity using RGBA 2024-04-11 20:08:05 -05:00
haecheonlee
eadcff091a Fix class name evaluated by short circuit 2024-04-11 20:11:33 -04:00
ClaPalo
3509286426 Fixed field circle icons not moving in Safari 2024-04-11 19:09:19 -05:00
santilapi13
dd57df8bc2 fix: comment visualization in table and fields popovers 2024-04-11 19:15:28 -03:00
1ilit
2740aeeb9f
Merge pull request #29 from HaecheonLee/bug/fix-remaining-popover-after-deleting-table
Fix to close remainig popover after deleting table
2024-04-11 07:30:17 +03:00
haecheonlee
b788fd86dc Fix to close remainig popover after deleting table 2024-04-10 19:56:19 -04:00
Gautam krishna R
7023b2e611
added double click to open editor 2024-04-10 09:15:48 +00:00
1ilit
895c1da2b0 Add a setting to resize table width (#21) 2024-04-10 06:47:06 +03:00
1ilit
6ab13a70d2 Fix form label color in sidesheet for editing a table 2024-04-10 05:22:10 +03:00
1ilit
234d4fc04b Remove duplicate logic to edit table 2024-04-06 09:51:38 +03:00
1ilit
40800f8f28 Clean up tabs 2024-04-06 04:58:42 +03:00
1ilit
8cf95a9a06 Fix imports for hooks 2024-04-05 05:12:50 +03:00
1ilit
10e0e279cc Remove coords from relationship objects 2024-04-05 03:05:09 +03:00
1ilit
ee44cd2b7c Fix table names taking half of the table width when not hovered 2024-04-02 16:05:07 +03:00
1ilit
4d7f18c26e Removed isHovered from Table 2024-04-02 03:38:58 +03:00
1ilit
6fda5356b0 Add primary key icon to fields 2024-04-02 00:22:07 +03:00
1ilit
d9fa03ae01 Fix table name overflow 2024-04-01 20:57:13 +03:00
1ilit
19ca8a55c2 Fix field name overflow 2024-04-01 20:31:24 +03:00
1ilit
9df9527950 Reorganize files 2024-04-01 19:44:50 +03:00