-
Notifications
You must be signed in to change notification settings - Fork 5
feat(overlay): allow to set the overlay position #210
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
Conversation
|
♻️ PR Preview ba84537 has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
89ccd23 to
81ac928
Compare
81ac928 to
6b030db
Compare
6b030db to
11411c0
Compare
tbouffard
left a comment
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.
LGTM, I like the refactor of the JS bridge code. Easier to read and more compact.
I suggested a minor changes in the documentation to have a more complete live example.
| style: overlay.style ?? (x.enableDefaultOverlayStyle && buildDefaultOverlayStyle(elementsByIds[0].bpmnSemantic.isShape)), | ||
| position: elementsByIds[0].bpmnSemantic.isShape ? 'top-center' : 'middle', | ||
| }; | ||
| renderValue: function({bpmnContent, overlays, enableDefaultOverlayStyle}) { |
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.
praise: nice to use object destructuring. This makes the code easier to read!
ddb6eeb to
ba84537
Compare

Similar to #207
Closes #14