-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagrama Dinamico - Canvas size, booleans and collections #67
Conversation
No viene al caso pero me pareceria mas amigable que en vez de decir List# diga "a List" o "un/a List". Ademas era como se mostraba en XText |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HAARRrrrmoso 🌟
Mergeo y abro issue con mejoras
width: 100vw; | ||
height: 100vh; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esto qué onda? Se adapta a la pantalla? Podemos dejar un comentario?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sip, v = viewport w/h = width/height
{ data: { id: `${id}_${obj.get(name)?.id}`, label: name, source: id, target: obj.get(name)?.id } }, | ||
...elementFromObject(obj.get(name)!, [...alreadyVisited, id]), | ||
]), | ||
...obj.innerCollection ? | ||
obj.innerCollection.flatMap(item => | ||
[ | ||
{ data: { id: `${id}_${item.id}`, source: id, target: item.id } }, | ||
...elementFromObject(item, [...alreadyVisited, id] ), | ||
] | ||
) | ||
: [], | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esta función está heavy :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
le falta un refactor urgente, lo de las colecciones quedo medio repetida la logica
fixes: #66 #64 #56
El siguiente codigo:
Genera este diagrama: