{ "version": 1, "cases": [ {"name":"zoom_x_anchor","op":0,"input":[0,0,1,1,2,1,0,0,0.25,0.5],"output":[0.125,0,0.5,1]}, {"name":"zoom_y_anchor","op":0,"input":[0,0,1,1,1,4,0,0,0.5,0.75],"output":[0,0.5625,1,0.25]}, {"name":"pan_clamp","op":0,"input":[0.25,0.25,0.5,0.5,1,1,20,-20,0.5,0.5],"output":[0,0.5,0.5,0.5]}, {"name":"zoom_limit","op":0,"input":[0,0,1,1,1000,1000,0,0,0.5,0.5],"output":[0.49609375,0.49609375,0.0078125,0.0078125]}, {"name":"ignore_invalid_zoom","op":0,"input":[0.25,0.25,0.5,0.5,0,1,0,0,0.5,0.5],"output":[0.25,0.25,0.5,0.5]}, {"name":"horizontal_spread","op":1,"input":[100,2,8],"output":[1]}, {"name":"vertical_contract","op":1,"input":[2,-100,8],"output":[2]}, {"name":"touch_jitter","op":1,"input":[3,-4,8],"output":[0]}, {"name":"diagonal_tie_x","op":1,"input":[20,20,8],"output":[1]}, {"name":"x_fraction","op":2,"input":[15,10,30,0],"output":[0.25]}, {"name":"y_fraction","op":2,"input":[15,10,30,1],"output":[0.75]}, {"name":"outside_view","op":2,"input":[40,10,30,0],"output":[1.5]}, {"name":"y_coordinate","op":3,"input":[0.75,10,30,1],"output":[15]}, {"name":"drag_x","op":4,"input":[15,50,200,10,30,0],"output":[20]}, {"name":"drag_y","op":4,"input":[0,100,500,-10,10,1],"output":[-4]}, {"name":"drag_clamp","op":4,"input":[15,500,200,10,30,0],"output":[30]}, {"name":"ticks","op":5,"input":[100,800],"output":[20]}, {"name":"negative_delta","op":6,"input":[10,0,1],"output":[-10]}, {"name":"milliseconds","op":6,"input":[0,0.01,1000],"output":[10]}, {"name":"db_gain","op":7,"input":[1,10],"output":[20]}, {"name":"db_attenuation","op":7,"input":[10,1],"output":[-20]}, {"name":"db_zero_reference","op":7,"input":[0,1],"output":null}, {"name":"absolute_limits","op":8,"input":[0,500,-2,2],"output":[0,500,-2,2]}, {"name":"reversed_x_limits","op":8,"input":[1,1,-2,2],"output":null}, {"name":"zero_range","op":2,"input":[1,1,1,0],"output":null}, {"name":"zero_pixels","op":4,"input":[0,1,0,0,1,0],"output":null}, {"name":"bad_viewport","op":0,"input":[0,0,0,1,2,1,0,0,0.5,0.5],"output":null} ] }