Skip to content

Commit

Permalink
Merge branch 'main' into fix/depdencies-vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder authored Sep 20, 2023
2 parents f3f4d20 + 26a5c0c commit b6113e6
Show file tree
Hide file tree
Showing 9 changed files with 6,372 additions and 5,992 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:data-to="to"
data-type="interaction"
:data-signature="signature"
:class="{ highlight: isCurrent, self: isSelf, 'inited-from-occurrence': isInitedFromOccurrence }"
:class="{ highlight: isCurrent, self: isSelf, 'inited-from-occurrence': isInitedFromOccurrence, 'right-to-left': rightToLeft }"
:style="{
width: !isSelf && (interactionWidth + 'px'),
transform: 'translateX(' + translateX + 'px)',
Expand Down
134 changes: 71 additions & 63 deletions src/components/DiagramFrame/SeqDiagram/MessageLayer/MessageLayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,68 +55,76 @@ export default {

<style lang="scss">
.zenuml {
/* Avoid moving interaction to the left or right with margins.
We can always assume that an interaction's border is the lifeline.
Moving content with padding is OK.
Don't move this to the Interaction component. This is also used by Interaction-async
*/
.interaction {
/*Keep dashed or solid here otherwise no space is given to the border*/
border: dashed transparent 0;
}

.interaction.sync {
/* This border width configuration make sure the content width is
the same as from the source occurrence's right border to target
occurrence's left boarder (boarder not inclusive).*/
border-right-width: 7px;
}

.interaction.inited-from-occurrence,
.interaction.self-invocation {
border-left-width: 7px;
}

.interaction.return {
border-left-width: 7px;
border-right-width: 7px;
}

.interaction.return-to-start {
border-left-width: 0;
}

.interaction:hover {
cursor: pointer;
}

.message {
position: relative; /* positioning Point */
}

.message > .name {
text-align: center;
}

.interaction.right-to-left > .occurrence {
/* InteractionBorderWidth + (OccurrenceWidth-1)/2 */
left: -14px; /* overlay occurrence bar on the existing bar. */
}

.interaction.self > .occurrence {
/* width of InteractionBorderWidth 7px + lifeline center 1px */
left: -8px; /* overlay occurrence bar on the existing bar. */
margin-top: -10px;
}

.fragment {
border-width: 1px;
margin: 8px 0 0 0;
padding-bottom: 10px;
}

.fragment .fragment {
margin: 16px 0 0 0;
}
/* Avoid moving interaction to the left or right with margins.
We can always assume that an interaction's border is the lifeline.
Moving content with padding is OK.
Don't move this to the Interaction component. This is also used by Interaction-async
*/
.interaction {
/*Keep dashed or solid here otherwise no space is given to the border*/
border: dashed transparent 0;
}

.interaction.sync {
/* This border width configuration make sure the content width is
the same as from the source occurrence's right border to target
occurrence's left boarder (boarder not inclusive).*/
border-right-width: 7px;
}

.interaction.sync.right-to-left {
/* This border width configuration make sure the content width is
the same as from the source occurrence's right border to target
occurrence's left boarder (boarder not inclusive).*/
border-right-width: 0;
border-left-width: 7px;
}

.interaction.inited-from-occurrence,
.interaction.self-invocation {
border-left-width: 7px;
}

.interaction.return {
border-left-width: 7px;
border-right-width: 7px;
}

.interaction.return-to-start {
border-left-width: 0;
}

.interaction:hover {
cursor: pointer;
}

.message {
position: relative; /* positioning Point */
}

.message > .name {
text-align: center;
}

.interaction.right-to-left > .occurrence {
/* InteractionBorderWidth + (OccurrenceWidth-1)/2 */
left: -14px; /* overlay occurrence bar on the existing bar. */
}

.interaction.self > .occurrence {
/* width of InteractionBorderWidth 7px + lifeline center 1px */
left: -8px; /* overlay occurrence bar on the existing bar. */
margin-top: -10px;
}

.fragment {
border-width: 1px;
margin: 8px 0 0 0;
padding-bottom: 10px;
}

.fragment .fragment {
margin: 16px 0 0 0;
}
}
</style>
2 changes: 1 addition & 1 deletion src/g4/sequenceParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ prog
;

title
: TITLE TITLE_CONTENT TITLE_END?
: TITLE TITLE_CONTENT? TITLE_END?
;

head
Expand Down
622 changes: 230 additions & 392 deletions src/generated-parser/sequenceLexer.js

Large diffs are not rendered by default.

10,814 changes: 5,561 additions & 5,253 deletions src/generated-parser/sequenceParser.js

Large diffs are not rendered by default.

Loading

0 comments on commit b6113e6

Please sign in to comment.