File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1116,6 +1116,8 @@ module type Wrapped_functions = sig
11161116 val string_of_orient : (Svg_types.Unit .angle option , string ) Xml .W .ft
11171117
11181118 val string_of_paint : ([< Svg_types .paint ], string ) Xml .W .ft
1119+
1120+ val string_of_opacity : (float , string ) Xml .W .ft
11191121
11201122 val string_of_fill_rule : ([< Svg_types .fill_rule ], string ) Xml .W .ft
11211123
Original file line number Diff line number Diff line change @@ -501,12 +501,12 @@ let fill_opacity =
501501 in
502502
503503 let v =
504- if group_matched 2 s then [ % expr [ % e n] /. 100. ]
505- else [ % expr [ % e n]] in
504+ if group_matched 2 s then (n /. 100. )
505+ else n in
506506
507- if v > = 0. && v < = 1. then Some v
507+ if v > = 0. && v < = 1. then Some [ % expr [ % e v]]
508508 else
509- Common. error loc " Value of %s must be between 0 and 1." name in
509+ Common. error loc " Value of %s must be between 0 and 1." name
510510 end [@ metaloc loc]
511511
512512let fill_rule ?separated_by :_ ?default:_ loc _name s =
You can’t perform that action at this time.
0 commit comments