MEP5NZPONYLPILVA7MEX2ZFQDOLEKAJQEVFH5UZ6XZERGS22Z5ZQC
{"manifest_navigator_down":635,"line_height":365,"delete_definition":673,"add_thick_line":400,"copy_shape":396,"fw_parent":1017,"draw_run_time_error":808,"on_handle":547,"box_height":680,"compute_layout":385,"survey_animation":1014,"on_text":539,"on.load_settings":940,"sx":955,"table_and_array_both_empty":689,"font":353,"on.key_release":720,"text_input_on_manifest_navigator":634,"surface_bounds":814,"manifest_index":637,"on.initialize":948,"mouse_cursor":558,"A":1017,"Mouse_cursor":559,"initialize_editor":678,"B":1018,"set_mouse_cursor":562,"draw_ticks":997,"get_definition_from_app":784,"on.update":945,"on.draw":986,"Animating":842,"undo_zoom_out":921,"order_of_magnitude":573,"Failing_test_definition_background_color":925,"animate_next_frame":915,"zoom_out":908,"initialize_manifest_navigator":773,"approximate":579,"tick_spec":998,"Definitions":503,"Num_animation_frames":840,"add_def_to_menu":640,"draw_load_time_error":929,"load_manifest":694,"draw_test_failure_indicator":935,"scale":712,"approximate_up":985,"manifest_navigator_candidates":638,"zoom_in":920,"on.keychord_press":919,"Definition_background_color":849,"Ticks_font":669,"manifest_coord":636,"load_definition":854,"Menu_border_color":612,"Test_definition_background_color":858,"interpolate_viewport":843,"definition_background_color":1015,"keychord_press_on_manifest_navigator":765,"from_viewport":823,"sy":954,"move_candidate_to_front_of_manifest":632,"Spawn_point":822,"on.save_settings":742,"update_editor_box":711,"Surface":422,"wait_for_response":781,"fw_app":"driver","iscale":953,"snapshot_canvas":913,"vx":545,"Save_viewport":865,"Manifest_navigator":495,"copy_viewport":866,"on.code_change":924,"vy":956,"Menu_background_color":611,"test_approximate_up":983,"Zoomed_out":869,"y_of_schema1":364,"on.mouse_press":916,"on.code_submit":947,"Menu_highlight_color":614,"animate_next":914,"draw_menu_bar":861,"draw_cursor":639,"add_hotkey_to_menu":616,"Manifest":769,"get_default_map":937,"draw_manifest_navigator":677,"Page":475,"num_lines_for_manifest_navigator":676,"get_manifest":768,"on":1,"reset_manifest_navigator":772,"get_multiple_definitions_from_app":1016,"schema1_of_y":667,"load_from_iterator":670,"maybe_update_key_in_definitions":529,"Cursor_node":172,"on.mouse_release":836,"new_definition":848,"Viewport":604,"Menu_command_color":613,"manifest_navigator_up":628,"on.text_input":855}
B = function(preserve_screen_top_of_cursor_node)
-- print('B')
-- recompute various aspects based on the current viewport settings
love.graphics.setFont(love.graphics.newFont(scale(20))) -- editor objects implicitly depend on current font so update it
for _,obj in ipairs(Surface) do
if obj.type == 'line' then
obj.zdata = {}
for i=1,#obj.data,2 do
table.insert(obj.zdata, vx(obj.data[i]))
table.insert(obj.zdata, vy(obj.data[i+1]))
end
elseif obj.type == 'bezier' then
zdata = {}
for i=1,#obj.data,2 do
table.insert(zdata, vx(obj.data[i]))
table.insert(zdata, vy(obj.data[i+1]))
end
obj.zdata = love.math.newBezierCurve(zdata):render()
elseif obj.type == 'text' then
if obj.w then
update_editor_box(obj, preserve_screen_top_of_cursor_node)
else
obj.text = love.graphics.newText(love.graphics.getFont(), obj.data)
end
end
end
end
{"manifest_navigator_down":635,"line_height":365,"delete_definition":673,"add_thick_line":400,"copy_shape":396,"fw_parent":1016,"draw_run_time_error":808,"on_handle":547,"box_height":680,"compute_layout":385,"survey_animation":1014,"on_text":539,"on.load_settings":940,"sx":955,"table_and_array_both_empty":689,"font":353,"on.key_release":720,"text_input_on_manifest_navigator":634,"surface_bounds":814,"manifest_index":637,"on.initialize":948,"mouse_cursor":558,"A":1017,"Mouse_cursor":559,"initialize_editor":678,"B":830,"set_mouse_cursor":562,"draw_ticks":997,"get_definition_from_app":784,"on.update":945,"on.draw":986,"Animating":842,"undo_zoom_out":921,"order_of_magnitude":573,"Failing_test_definition_background_color":925,"animate_next_frame":915,"zoom_out":908,"initialize_manifest_navigator":773,"approximate":579,"tick_spec":998,"Definitions":503,"Num_animation_frames":840,"add_def_to_menu":640,"draw_load_time_error":929,"load_manifest":694,"draw_test_failure_indicator":935,"scale":712,"approximate_up":985,"manifest_navigator_candidates":638,"zoom_in":920,"on.keychord_press":919,"Definition_background_color":849,"Ticks_font":669,"manifest_coord":636,"load_definition":854,"Menu_border_color":612,"Test_definition_background_color":858,"interpolate_viewport":843,"definition_background_color":1015,"keychord_press_on_manifest_navigator":765,"from_viewport":823,"sy":954,"move_candidate_to_front_of_manifest":632,"Spawn_point":822,"on.save_settings":742,"update_editor_box":711,"Surface":422,"wait_for_response":781,"fw_app":"driver","iscale":953,"snapshot_canvas":913,"vx":545,"Save_viewport":865,"Manifest_navigator":495,"copy_viewport":866,"on.code_change":924,"vy":956,"Menu_background_color":611,"test_approximate_up":983,"Zoomed_out":869,"y_of_schema1":364,"on.mouse_press":916,"on.code_submit":947,"Menu_highlight_color":614,"animate_next":914,"draw_menu_bar":861,"draw_cursor":639,"add_hotkey_to_menu":616,"Manifest":769,"get_default_map":937,"draw_manifest_navigator":677,"Page":475,"num_lines_for_manifest_navigator":676,"get_manifest":768,"on":1,"reset_manifest_navigator":772,"get_multiple_definitions_from_app":1016,"schema1_of_y":667,"load_from_iterator":670,"maybe_update_key_in_definitions":529,"Cursor_node":172,"on.mouse_release":836,"new_definition":848,"Viewport":604,"Menu_command_color":613,"manifest_navigator_up":628,"on.text_input":855}
A = function(preserve_screen_top_of_cursor_node)
-- print('A')
love.graphics.setFont(love.graphics.newFont(scale(20))) -- editor objects implicitly depend on current font
-- translate Definitions to Surface
Surface = {}
for _,node in pairs(Definitions) do
compute_layout(node, node.x,node.y, Surface, preserve_screen_top_of_cursor_node)
end
-- continue the pipeline
B(preserve_screen_top_of_cursor_node)
-- TODO: ugly that we're manipulating editor objects twice
end