-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(render/dot): makes the 'width' attribute on composite self-transi…
…tions applied to both halves of the self-transition (#222) ## Description - makes the 'width' attribute on composite self-transitions applied to both halves of the self-transition ## Motivation and Context fixes a bug ## How Has This Been Tested? - [x] green ci - [x] additional automated non-regression test ## Screenshots ### After  ### Before  ## Types of changes - [x] Bug fix (non-breaking change which fixes an issue) - [ ] Documentation only change - [ ] Refactor (non-breaking change which fixes an issue without changing functionality) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
- Loading branch information
Showing
14 changed files
with
206 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
test/render/fixtures/543-self-transition-composite-with-line-width.dot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
digraph "state transitions" { | ||
fontname="Helvetica" fontsize=12 penwidth=2.0 splines=true ordering=out compound=true overlap=scale nodesep=0.3 ranksep=0.1 | ||
node [shape=plaintext style=filled fillcolor="#FFFFFF01" fontname=Helvetica fontsize=12 penwidth=2.0] | ||
edge [fontname=Helvetica fontsize=10] | ||
|
||
"self_tr_a_a_1" [shape=point style=invis width=0 height=0 fixedsize=true] | ||
subgraph "cluster_a" { | ||
class="state regular" label= < | ||
<table cellborder="0" border="0"> | ||
<tr><td>a</td></tr> | ||
</table> | ||
> style=rounded penwidth=2.0 | ||
"a" [shape=point style=invis margin=0 width=0 height=0 fixedsize=true] | ||
"aa" [margin=0 class="state regular" label= < | ||
<table align="center" cellborder="0" border="2" style="rounded" width="48"> | ||
<tr><td width="48" cellpadding="7">aa</td></tr> | ||
</table> | ||
>] | ||
|
||
} | ||
"a" -> "self_tr_a_a_1" [label=" \l" arrowhead=none class="transition" tailport="e" headport="e" ltail="cluster_a" penwidth=4] | ||
"self_tr_a_a_1" -> "a" [class="transition" lhead="cluster_a" tailport="w" penwidth=4] | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
test/render/fixtures/543-self-transition-composite-with-line-width.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"states": [ | ||
{ | ||
"name": "a", | ||
"type": "regular", | ||
"statemachine": { | ||
"states": [ | ||
{ | ||
"name": "aa", | ||
"type": "regular" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"transitions": [ | ||
{ | ||
"from": "a", | ||
"to": "a", | ||
"width": 4, | ||
"id": 1 | ||
} | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
test/render/fixtures/543-self-transition-composite-with-line-width.scjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"states": [ | ||
{ | ||
"kind": "state", | ||
"id": "a", | ||
"transitions": [ | ||
{ | ||
"target": "a" | ||
} | ||
], | ||
"states": [ | ||
{ | ||
"kind": "state", | ||
"id": "aa" | ||
} | ||
] | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
test/render/fixtures/543-self-transition-composite-with-line-width.scxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"> | ||
<state id="a"> | ||
<state id="aa"> | ||
</state> | ||
<transition target="a"/> | ||
</state> | ||
</scxml> |
22 changes: 22 additions & 0 deletions
22
test/render/fixtures/543-self-transition-composite-with-line-width.scxml.re-json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"states": [ | ||
{ | ||
"name": "a", | ||
"type": "regular", | ||
"statemachine": { | ||
"states": [ | ||
{ | ||
"name": "aa", | ||
"type": "regular" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"transitions": [ | ||
{ | ||
"from": "a", | ||
"to": "a" | ||
} | ||
] | ||
} |
2 changes: 2 additions & 0 deletions
2
test/render/fixtures/543-self-transition-composite-with-line-width.smcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
a{aa;}; | ||
a--a[width=4]; |
27 changes: 27 additions & 0 deletions
27
test/render/fixtures/544-self-transition-composite-with-a-note.dot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
digraph "state transitions" { | ||
fontname="Helvetica" fontsize=12 penwidth=2.0 splines=true ordering=out compound=true overlap=scale nodesep=0.3 ranksep=0.1 | ||
node [shape=plaintext style=filled fillcolor="#FFFFFF01" fontname=Helvetica fontsize=12 penwidth=2.0] | ||
edge [fontname=Helvetica fontsize=10] | ||
|
||
"self_tr_a_a_1" [shape=point style=invis width=0 height=0 fixedsize=true] | ||
subgraph "cluster_a" { | ||
class="state regular" label= < | ||
<table cellborder="0" border="0"> | ||
<tr><td>a</td></tr> | ||
</table> | ||
> style=rounded penwidth=2.0 | ||
"a" [shape=point style=invis margin=0 width=0 height=0 fixedsize=true] | ||
"aa" [margin=0 class="state regular" label= < | ||
<table align="center" cellborder="0" border="2" style="rounded" width="48"> | ||
<tr><td width="48" cellpadding="7">aa</td></tr> | ||
</table> | ||
>] | ||
|
||
} | ||
"i_note_tr_a_a_1" [shape=point style=invis margin=0 width=0 height=0 fixedsize=true] | ||
"a" -> "i_note_tr_a_a_1" [arrowhead=none ltail="cluster_a"] | ||
"i_note_tr_a_a_1" -> "a" [label=" \l" lhead="cluster_a"] | ||
"i_note_tr_a_a_1" -> "note_tr_a_a_1" [style=dashed arrowtail=none arrowhead=none weight=0] | ||
"note_tr_a_a_1" [label="this is a note on the self-transition\l" shape=note fontsize=10 color=black fontcolor=black fillcolor="#ffffcc" penwidth=1.0] | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
test/render/fixtures/544-self-transition-composite-with-a-note.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"states": [ | ||
{ | ||
"name": "a", | ||
"type": "regular", | ||
"statemachine": { | ||
"states": [ | ||
{ | ||
"name": "aa", | ||
"type": "regular" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"transitions": [ | ||
{ | ||
"from": "a", | ||
"to": "a", | ||
"width": 2, | ||
"note": ["this is a note on the self-transition"], | ||
"id": 1 | ||
} | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
test/render/fixtures/544-self-transition-composite-with-a-note.scjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"states": [ | ||
{ | ||
"kind": "state", | ||
"id": "a", | ||
"transitions": [ | ||
{ | ||
"target": "a" | ||
} | ||
], | ||
"states": [ | ||
{ | ||
"kind": "state", | ||
"id": "aa" | ||
} | ||
] | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
test/render/fixtures/544-self-transition-composite-with-a-note.scxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"> | ||
<state id="a"> | ||
<state id="aa"> | ||
</state> | ||
<transition target="a"/> | ||
</state> | ||
</scxml> |
22 changes: 22 additions & 0 deletions
22
test/render/fixtures/544-self-transition-composite-with-a-note.scxml.re-json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"states": [ | ||
{ | ||
"name": "a", | ||
"type": "regular", | ||
"statemachine": { | ||
"states": [ | ||
{ | ||
"name": "aa", | ||
"type": "regular" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"transitions": [ | ||
{ | ||
"from": "a", | ||
"to": "a" | ||
} | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
test/render/fixtures/544-self-transition-composite-with-a-note.smcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
a{aa;}; | ||
# this is a note on the self-transition | ||
a--a[width=2]; |