File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,24 @@ function unsafe_format(obj) {
34
34
return < div > { ctx } < div > </ div > < ul > { obj . oneOf . map ( v => < li > { v } </ li > ) } </ ul > </ div >
35
35
} else if ( typeof obj == 'object' && 'num_digits' in obj ) {
36
36
// custom formatting for calculated alignment consistency (e.g. ALS016, ALS017, ALS018)
37
- console . log ( `object is ${ obj . expected } ` ) ;
38
37
let ctx = obj . context ? `${ obj . context . charAt ( 0 ) . toUpperCase ( ) } ${ obj . context . slice ( 1 ) } :` : `One of:`
39
38
let value = obj . expected || obj . observed ;
40
39
let display_value = value . toExponential ( obj . num_digits ) ;
41
- return < div > { ctx } { display_value } </ div >
40
+ if ( 'continuity_details' in obj ) {
41
+ let dts = obj . continuity_details ;
42
+ return < div >
43
+ < div > { ctx } { display_value } </ div >
44
+ < div > at end of { dts . previous_segment } </ div >
45
+ < ul > Coords: ({ dts . preceding_end_point [ 0 ] } , { dts . preceding_end_point [ 1 ] } )</ ul >
46
+ < ul > Tangent Direction: { dts . preceding_end_direction } </ ul >
47
+ < br />
48
+ < div > and start of { dts . segment_to_analyze } </ div >
49
+ < ul > Coords: ({ dts . current_start_point [ 0 ] } , { dts . current_start_point [ 1 ] } )</ ul >
50
+ < ul > Tangent Direction: { dts . current_start_direction } </ ul >
51
+ </ div >
52
+ } else {
53
+ return < div > { ctx } { display_value } </ div >
54
+ }
42
55
} else {
43
56
return JSON . stringify ( obj ) ;
44
57
}
You can’t perform that action at this time.
0 commit comments