Skip to content

Commit

Permalink
Merge pull request #113 from buildingSMART/fix/ALS017_IVS-53_directio…
Browse files Browse the repository at this point in the history
…n_reporting

clean up alignment continuity reporting
  • Loading branch information
rw-bsi authored Nov 4, 2024
2 parents 2777342 + 3e3496b commit fc296de
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/src/GherkinResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function unsafe_format(obj) {
directionLabel = 'Gradient';
}
else {
directionLabel= '';
// warning is raised for position, so don't report any details of direction or gradient
directionLabel= 'suppress';
}

if ('continuity_details' in obj) {
Expand All @@ -76,11 +77,13 @@ function unsafe_format(obj) {
<div>{ctx} {display_value}</div>
<div>at end of {dts.previous_segment}</div>
<ul>Coords: ({dts.preceding_end_point[0]}, {dts.preceding_end_point[1]})</ul>
<ul>{directionLabel}: {dts.preceding_end_direction}</ul>
{ directionLabel !== 'suppress' && (
<ul>{directionLabel}: {dts.preceding_end_direction}</ul>) }
<br />
<div>and start of {dts.segment_to_analyze}</div>
<ul>Coords: ({dts.current_start_point[0]}, {dts.current_start_point[1]})</ul>
<ul>{directionLabel}: {dts.current_start_direction}</ul>
{ directionLabel !== 'suppress' && (
<ul>{directionLabel}: {dts.current_start_direction}</ul> )}
</div>
);
} else {
Expand Down

0 comments on commit fc296de

Please sign in to comment.