Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OPOSSUM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
phelix
rust
OPOSSUM
Commits
1981043c
Commit
1981043c
authored
1 year ago
by
y.zobus
Browse files
Options
Downloads
Patches
Plain Diff
Changed html table layout
parent
366865cc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/pa_doublepass_graph.rs
+1
-1
1 addition, 1 deletion
examples/pa_doublepass_graph.rs
src/optic_node.rs
+2
-2
2 additions, 2 deletions
src/optic_node.rs
with
3 additions
and
3 deletions
examples/pa_doublepass_graph.rs
+
1
−
1
View file @
1981043c
use
opossum
::
nodes
::{
NodeDummy
,
NodeGroup
,
NodeReference
,
NodeSource
,
NodeDetector
};
use
opossum
::
nodes
::{
NodeDummy
,
NodeGroup
,
NodeReference
,
NodeSource
,
NodeDetector
,
NodeBeamSplitter
};
use
opossum
::
optic_node
::
OpticNode
;
use
opossum
::
optic_scenery
::
OpticScenery
;
use
opossum
::
analyzer
::
AnalyzerEnergy
;
...
...
This diff is collapsed.
Click to expand it.
src/optic_node.rs
+
2
−
2
View file @
1981043c
...
...
@@ -151,7 +151,7 @@ pub trait Dottable {
fn
create_main_node_row_str
(
&
self
,
node_name
:
&
str
,
indent_level
:
&
mut
i32
)
->
String
{
let
mut
dot_str
=
self
.create_html_like_container
(
"row"
,
indent_level
,
true
,
1
);
dot_str
.push_str
(
&
format!
(
"{}<TD BORDER=
\"
1
\"
BGCOLOR=
\"
{}
\"
WIDTH=
\"
8
0
\"
HEIGHT=
\"
80
\"
STYLE=
\"
ROUNDED
\"
>{}</TD>
\n
"
,
"
\t
"
.repeat
(
*
indent_level
as
usize
),
self
.node_color
(),
node_name
));
dot_str
.push_str
(
&
format!
(
"{}<TD BORDER=
\"
1
\"
BGCOLOR=
\"
{}
\"
ALIGN=
\"
CENTER
\"
WIDTH=
\"
80
\"
CELLPADDING=
\"
1
0
\"
HEIGHT=
\"
80
\"
STYLE=
\"
ROUNDED
\"
>{}</TD>
\n
"
,
"
\t
"
.repeat
(
*
indent_level
as
usize
),
self
.node_color
(),
node_name
));
*
indent_level
-=
1
;
dot_str
.push_str
(
&
self
.create_html_like_container
(
"row"
,
indent_level
,
false
,
0
));
...
...
@@ -163,7 +163,7 @@ pub trait Dottable {
let
container
=
match
container_str
{
"row"
=>
if
start_flag
{
"<TR>"
}
else
{
"</TR>"
},
"cell"
=>
if
start_flag
{
"<TD BORDER=
\"
0
\"
>"
}
else
{
"</TD>"
},
"table"
=>
if
start_flag
{
"<TABLE BORDER=
\"
0
\"
CELLBORDER=
\"
0
\"
CELLSPACING=
\"
0
\"
CELLPADDING=
\"
0
\"
>"
}
else
{
"</TABLE>"
},
"table"
=>
if
start_flag
{
"<TABLE BORDER=
\"
0
\"
CELLBORDER=
\"
0
\"
CELLSPACING=
\"
0
\"
CELLPADDING=
\"
0
\"
ALIGN=
\"
CENTER
\"
>"
}
else
{
"</TABLE>"
},
_
=>
"Invalid container string!"
,
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment