rubenmate / draw-entity-relation

A web application developed as my final project for the Computer Engineering Degree. It allows users to model entity-relationship diagrams and export them to SQL scripts after validation.
https://draw-entity-relation.vercel.app
0 stars 0 forks source link

Decision: Canvas Drawing Library Selection #2

Closed rubenmate closed 2 months ago

rubenmate commented 4 months ago

Background:

I need to choose the right canvas drawing library for our app. If I'm using React, there's the option of the react-diagrams library. Alternatively, there are libraries that don't rely on React and work with vanilla JavaScript, such as:

Goals:

Evaluate the features, compatibility, and community support of each canvas drawing library. Determine if integrating a React-based library like react-diagrams offers advantages over vanilla JavaScript libraries. Select the most suitable canvas drawing library that allows to fullfill the requirements.

Proposed Solution:

Research the features and documentation of react-diagrams and the vanilla JavaScript libraries (maxGraph, tldraw, draw.io). Experiment with sample implementations or demos to understand each library's functionality and flexibility.

rubenmate commented 2 months ago

maxGraph is the the successor of mxGraph which is now end of life.

The wise thing would be using maxGraph, but the problem I've found is that the documentation is not fully migrated. So with this in mind I'm going with mxGraph. The posterior migration to maxGraph would be possible taking a look at the guide and the exports of the modules