excalidraw / excalidraw

Virtual whiteboard for sketching hand-drawn like diagrams
https://excalidraw.com
MIT License
76.72k stars 7k forks source link

Feature Request: Table Creation for Data Modeling #7491

Open Latish705 opened 6 months ago

Latish705 commented 6 months ago

Description:

Issue Type: Feature Request

Request:

I would like to propose the addition of a new feature that enables users to create tables for data modeling within the application. This feature would greatly enhance the data modeling capabilities of the tool, allowing users to visually represent and structure their data more efficiently.

Use Case:

As a user involved in data modeling, I often find myself needing to create tables to represent various entities and their relationships. Currently, the process involves external tools or manual drawing, which can be cumbersome and prone to errors. Having an integrated table creation feature within the application would streamline this process and improve the overall user experience.

Suggested Implementation:

The proposed feature could include a drag-and-drop interface for creating tables, where users can define columns, data types, and relationships between tables. Additionally, features such as the ability to add comments or descriptions to columns would be beneficial for documentation purposes.

Benefits:

Enhanced data modeling capabilities directly within the application. Improved user workflow and efficiency. Streamlined visualization of data structures. Reduction in the need for external tools for basic data modeling tasks. Additional Information:

Thank you for considering this feature request. I look forward to any discussions or feedback on the proposed enhancement.

Environment:

Web

dgzargo commented 4 months ago

I agree! I'm trying to solve Logic Puzzles and need that feature to show my conclusions. I have tried AI generation with the request: "Draw a table 5x5", but it didn't make it.

dgzargo commented 4 months ago

Implementation idea

Steps to implement

  1. Create an angle using two lines, resembling the letter "L" with one horizontal and one vertical line, but without maintaining the aspect ratio.
  2. The "Table" tool will generate the entire table using these angles, leading to line duplication.
  3. Introduce a "Simplify Lines" tool to decrease the line count while maintaining visual integrity.

    How will it work?

    • Borderlines will be constructed using multiple "L" shapes, providing flexibility but also resulting in redundancy.
    • Users can resize and merge cells according to their preferences.
    • To improve performance, redundant lines must be removed using the "Simplify Lines" tool.