ZAAYA23GE7JWXF22KUFZMKMTL5ZVGNKMCTUYUDXU4UTXBKRTFAOAC
on.mouse_press = function(x,y, mouse_button)
if Animating then return end
if Zoomed_out then
zoom_in(x,y)
Zoomed_out = nil
Save_viewport = nil
B()
return
end
if Cursor_node then
Cursor_node.show_cursor = nil
Cursor_node = nil
end
if mouse_press_consumed_by_any_button_handler(HUD, x,y, mouse_button) then
return
end
local node = on_text(x,y)
if node then
-- position cursor in node
Cursor_node = node
edit.mouse_press(node.editor, x,y, mouse_button)
return
end
local node = on_handle(x,y)
if node then
-- move node
Move = {xoff=App.mouse_x()-vx(node.x), yoff=App.mouse_y()-vy(node.y), node=node}
return
end
-- pan surface
Pan = {x=Viewport.x+x,y=Viewport.y+y}
end
{"draw_cursor":639,"mouse_cursor":558,"fw_parent":878,"Mouse_cursor":559,"Definitions":503,"on.mouse_release":836,"set_mouse_cursor":562,"zoom_out":870,"draw_ticks":862,"load_manifest":694,"zoom_in":877,"order_of_magnitude":573,"maybe_update_key_in_definitions":529,"on.code_submit":787,"approximate":579,"add_thick_line":400,"y_of_schema1":364,"A":831,"approximate_up":658,"get_multiple_definitions_from_app":783,"Ticks_font":669,"on_handle":547,"wait_for_response":781,"Page":475,"on_text":539,"on.code_change":820,"sx":544,"manifest_navigator_down":635,"from_viewport":823,"on.initialize":807,"vx":545,"draw_run_time_error":808,"tick_spec":660,"update_editor_box":711,"get_manifest":768,"on.key_release":720,"survey_animation":863,"Manifest":769,"animate_next":841,"Menu_border_color":612,"schema1_of_y":667,"on":1,"scale":712,"Menu_highlight_color":614,"animate_next_frame":825,"draw_menu_bar":861,"copy_shape":396,"add_hotkey_to_menu":616,"load_definition":854,"on.mouse_press":879,"draw_manifest_navigator":677,"vy":546,"num_lines_for_manifest_navigator":676,"initialize_editor":678,"surface_bounds":814,"reset_manifest_navigator":772,"on.keychord_press":871,"line_height":365,"load_from_iterator":670,"Animating":842,"get_definition_from_app":784,"manifest_navigator_candidates":638,"on.load_settings":782,"Spawn_point":822,"manifest_index":637,"manifest_navigator_up":628,"Num_animation_frames":840,"interpolate_viewport":843,"Surface":422,"new_definition":848,"delete_definition":673,"sy":469,"move_candidate_to_front_of_manifest":632,"on.text_input":855,"keychord_press_on_manifest_navigator":765,"B":830,"text_input_on_manifest_navigator":634,"font":353,"Zoomed_out":869,"manifest_coord":636,"initialize_manifest_navigator":773,"Test_definition_background_color":858,"Cursor_node":172,"Manifest_navigator":495,"on.update":835,"on.save_settings":742,"add_def_to_menu":640,"fw_app":"driver","table_and_array_both_empty":689,"Menu_background_color":611,"definition_background_color":859,"compute_layout":385,"Menu_command_color":613,"box_height":680,"on.draw":797,"snapshot_canvas":872,"Definition_background_color":849,"Save_viewport":865,"Viewport":604,"copy_viewport":866}
on.mouse_press = function(x,y, mouse_button)
if Animating then return end
if Zoomed_out then
zoom_in(x,y)
Zoomed_out = nil
Save_viewport = nil
return
end
if Cursor_node then
Cursor_node.show_cursor = nil
Cursor_node = nil
end
if mouse_press_consumed_by_any_button_handler(HUD, x,y, mouse_button) then
return
end
local node = on_text(x,y)
if node then
-- position cursor in node
Cursor_node = node
edit.mouse_press(node.editor, x,y, mouse_button)
return
end
local node = on_handle(x,y)
if node then
-- move node
Move = {xoff=App.mouse_x()-vx(node.x), yoff=App.mouse_y()-vy(node.y), node=node}
return
end
-- pan surface
Pan = {x=Viewport.x+x,y=Viewport.y+y}
end
{"draw_cursor":639,"mouse_cursor":558,"fw_parent":877,"Mouse_cursor":559,"Definitions":503,"on.mouse_release":836,"set_mouse_cursor":562,"zoom_out":870,"draw_ticks":862,"load_manifest":694,"zoom_in":877,"order_of_magnitude":573,"maybe_update_key_in_definitions":529,"on.code_submit":787,"approximate":579,"add_thick_line":400,"y_of_schema1":364,"A":831,"approximate_up":658,"get_multiple_definitions_from_app":783,"Ticks_font":669,"on_handle":547,"wait_for_response":781,"Page":475,"on_text":539,"on.code_change":820,"sx":544,"manifest_navigator_down":635,"from_viewport":823,"on.initialize":807,"vx":545,"draw_run_time_error":808,"tick_spec":660,"update_editor_box":711,"get_manifest":768,"on.key_release":720,"survey_animation":863,"Manifest":769,"animate_next":841,"Menu_border_color":612,"schema1_of_y":667,"on":1,"scale":712,"Menu_highlight_color":614,"animate_next_frame":825,"draw_menu_bar":861,"copy_shape":396,"add_hotkey_to_menu":616,"load_definition":854,"on.mouse_press":878,"draw_manifest_navigator":677,"vy":546,"num_lines_for_manifest_navigator":676,"initialize_editor":678,"surface_bounds":814,"reset_manifest_navigator":772,"on.keychord_press":871,"line_height":365,"load_from_iterator":670,"Animating":842,"get_definition_from_app":784,"manifest_navigator_candidates":638,"on.load_settings":782,"Spawn_point":822,"manifest_index":637,"manifest_navigator_up":628,"Num_animation_frames":840,"interpolate_viewport":843,"Surface":422,"new_definition":848,"delete_definition":673,"sy":469,"move_candidate_to_front_of_manifest":632,"on.text_input":855,"keychord_press_on_manifest_navigator":765,"B":830,"text_input_on_manifest_navigator":634,"font":353,"Zoomed_out":869,"manifest_coord":636,"initialize_manifest_navigator":773,"Test_definition_background_color":858,"Cursor_node":172,"Manifest_navigator":495,"on.update":835,"on.save_settings":742,"add_def_to_menu":640,"fw_app":"driver","table_and_array_both_empty":689,"Menu_background_color":611,"definition_background_color":859,"compute_layout":385,"Menu_command_color":613,"box_height":680,"on.draw":797,"snapshot_canvas":872,"Definition_background_color":849,"Save_viewport":865,"Viewport":604,"copy_viewport":866}
zoom_in = function(x,y)
-- precondition: Zoomed_out
-- precondition: Viewport == Global_viewport
-- precondition: Save_viewport exists
-- center Viewport on x,y at zoom level Saved_viewport.zoom
Viewport = {
x=sx(x)-App.screen.width/Save_viewport.zoom/2,
y=sy(y)-App.screen.height/Save_viewport.zoom/2,
w=App.screen.width/Save_viewport.zoom,
h=App.screen.height/Save_viewport.zoom,
zoom=Save_viewport.zoom,
}
end
{"draw_cursor":639,"mouse_cursor":558,"fw_parent":876,"Mouse_cursor":559,"Definitions":503,"on.mouse_release":836,"set_mouse_cursor":562,"zoom_out":870,"draw_ticks":862,"load_manifest":694,"zoom_in":877,"order_of_magnitude":573,"maybe_update_key_in_definitions":529,"on.code_submit":787,"approximate":579,"add_thick_line":400,"y_of_schema1":364,"A":831,"approximate_up":658,"get_multiple_definitions_from_app":783,"Ticks_font":669,"on_handle":547,"wait_for_response":781,"Page":475,"on_text":539,"on.code_change":820,"sx":544,"manifest_navigator_down":635,"from_viewport":823,"on.initialize":807,"vx":545,"draw_run_time_error":808,"tick_spec":660,"update_editor_box":711,"get_manifest":768,"on.key_release":720,"survey_animation":863,"Manifest":769,"animate_next":841,"Menu_border_color":612,"schema1_of_y":667,"on":1,"scale":712,"Menu_highlight_color":614,"animate_next_frame":825,"draw_menu_bar":861,"copy_shape":396,"add_hotkey_to_menu":616,"load_definition":854,"on.mouse_press":875,"draw_manifest_navigator":677,"vy":546,"num_lines_for_manifest_navigator":676,"initialize_editor":678,"surface_bounds":814,"reset_manifest_navigator":772,"on.keychord_press":871,"line_height":365,"load_from_iterator":670,"Animating":842,"get_definition_from_app":784,"manifest_navigator_candidates":638,"on.load_settings":782,"Spawn_point":822,"manifest_index":637,"manifest_navigator_up":628,"Num_animation_frames":840,"interpolate_viewport":843,"Surface":422,"new_definition":848,"delete_definition":673,"sy":469,"move_candidate_to_front_of_manifest":632,"on.text_input":855,"keychord_press_on_manifest_navigator":765,"B":830,"text_input_on_manifest_navigator":634,"font":353,"Zoomed_out":869,"manifest_coord":636,"initialize_manifest_navigator":773,"Test_definition_background_color":858,"Cursor_node":172,"Manifest_navigator":495,"on.update":835,"on.save_settings":742,"add_def_to_menu":640,"fw_app":"driver","table_and_array_both_empty":689,"Menu_background_color":611,"definition_background_color":859,"compute_layout":385,"Menu_command_color":613,"box_height":680,"on.draw":797,"snapshot_canvas":872,"Definition_background_color":849,"Save_viewport":865,"Viewport":604,"copy_viewport":866}
zoom_in = function(x,y)
-- precondition: Zoomed_out
-- precondition: Viewport == Global_viewport
-- precondition: Saved_viewport exists
-- center Viewport on x,y at zoom level Saved_viewport.zoom
Viewport = {
x=sx(x)-App.screen.width/Saved_viewport.zoom/2,
y=sy(y)-App.screen.height/Saved_viewport.zoom/2,
w=App.screen.width/Saved_viewport.zoom,
h=App.screen.height/Saved_viewport.zoom,
zoom=Saved_viewport.zoom,
}
end
{"Mouse_cursor":559,"definition_background_color":859,"set_mouse_cursor":562,"tick_spec":660,"draw_ticks":862,"Surface":422,"on.draw":797,"snapshot_canvas":872,"order_of_magnitude":573,"Save_viewport":865,"A":831,"copy_viewport":866,"approximate":579,"B":830,"Zoomed_out":869,"on.mouse_release":836,"on":1,"approximate_up":658,"on.save_settings":742,"on.load_settings":782,"Page":475,"table_and_array_both_empty":689,"get_multiple_definitions_from_app":783,"vy":546,"fw_parent":875,"fw_app":"driver","zoom_in":876,"get_manifest":768,"load_manifest":694,"Manifest":769,"compute_layout":385,"Definitions":503,"Menu_background_color":611,"draw_run_time_error":808,"box_height":680,"Test_definition_background_color":858,"Menu_command_color":613,"sy":469,"survey_animation":863,"on.code_change":820,"animate_next":841,"line_height":365,"add_hotkey_to_menu":616,"interpolate_viewport":843,"on.update":835,"draw_cursor":639,"animate_next_frame":825,"num_lines_for_manifest_navigator":676,"initialize_manifest_navigator":773,"Manifest_navigator":495,"reset_manifest_navigator":772,"new_definition":848,"load_definition":854,"y_of_schema1":364,"on.initialize":807,"get_definition_from_app":784,"surface_bounds":814,"Ticks_font":669,"Cursor_node":172,"on.code_submit":787,"manifest_navigator_up":628,"font":353,"maybe_update_key_in_definitions":529,"Menu_border_color":612,"initialize_editor":678,"Spawn_point":822,"wait_for_response":781,"move_candidate_to_front_of_manifest":632,"Menu_highlight_color":614,"keychord_press_on_manifest_navigator":765,"add_def_to_menu":640,"text_input_on_manifest_navigator":634,"on.text_input":855,"draw_manifest_navigator":677,"manifest_coord":636,"Num_animation_frames":840,"manifest_index":637,"schema1_of_y":667,"manifest_navigator_candidates":638,"draw_menu_bar":861,"on_handle":547,"Animating":842,"load_from_iterator":670,"on.keychord_press":871,"delete_definition":673,"on_text":539,"add_thick_line":400,"on.mouse_press":875,"copy_shape":396,"scale":712,"on.key_release":720,"Viewport":604,"sx":544,"update_editor_box":711,"vx":545,"zoom_out":870,"Definition_background_color":849,"from_viewport":823,"manifest_navigator_down":635,"mouse_cursor":558}
on.mouse_press = function(x,y, mouse_button)
if Animating then return end
if Zoomed_out then
zoom_in(x,y)
Zoomed_out = nil
Saved_viewport = nil
return
end
if Cursor_node then
Cursor_node.show_cursor = nil
Cursor_node = nil
end
if mouse_press_consumed_by_any_button_handler(HUD, x,y, mouse_button) then
return
end
local node = on_text(x,y)
if node then
-- position cursor in node
Cursor_node = node
edit.mouse_press(node.editor, x,y, mouse_button)
return
end
local node = on_handle(x,y)
if node then
-- move node
Move = {xoff=App.mouse_x()-vx(node.x), yoff=App.mouse_y()-vy(node.y), node=node}
return
end
-- pan surface
Pan = {x=Viewport.x+x,y=Viewport.y+y}
end
{"Mouse_cursor":559,"definition_background_color":859,"set_mouse_cursor":562,"tick_spec":660,"draw_ticks":862,"Surface":422,"on.draw":797,"snapshot_canvas":872,"order_of_magnitude":573,"Save_viewport":865,"A":831,"copy_viewport":866,"approximate":579,"B":830,"Zoomed_out":869,"on.mouse_release":836,"on":1,"approximate_up":658,"on.save_settings":742,"on.load_settings":782,"Page":475,"table_and_array_both_empty":689,"get_multiple_definitions_from_app":783,"vy":546,"fw_parent":874,"fw_app":"driver","zoom_in":874,"get_manifest":768,"load_manifest":694,"Manifest":769,"compute_layout":385,"Definitions":503,"Menu_background_color":611,"draw_run_time_error":808,"box_height":680,"Test_definition_background_color":858,"Menu_command_color":613,"sy":469,"survey_animation":863,"on.code_change":820,"animate_next":841,"line_height":365,"add_hotkey_to_menu":616,"interpolate_viewport":843,"on.update":835,"draw_cursor":639,"animate_next_frame":825,"num_lines_for_manifest_navigator":676,"initialize_manifest_navigator":773,"Manifest_navigator":495,"reset_manifest_navigator":772,"new_definition":848,"load_definition":854,"y_of_schema1":364,"on.initialize":807,"get_definition_from_app":784,"surface_bounds":814,"Ticks_font":669,"Cursor_node":172,"on.code_submit":787,"manifest_navigator_up":628,"font":353,"maybe_update_key_in_definitions":529,"Menu_border_color":612,"initialize_editor":678,"Spawn_point":822,"wait_for_response":781,"move_candidate_to_front_of_manifest":632,"Menu_highlight_color":614,"keychord_press_on_manifest_navigator":765,"add_def_to_menu":640,"text_input_on_manifest_navigator":634,"on.text_input":855,"draw_manifest_navigator":677,"manifest_coord":636,"Num_animation_frames":840,"manifest_index":637,"schema1_of_y":667,"manifest_navigator_candidates":638,"draw_menu_bar":861,"on_handle":547,"Animating":842,"load_from_iterator":670,"on.keychord_press":871,"delete_definition":673,"on_text":539,"add_thick_line":400,"on.mouse_press":875,"copy_shape":396,"scale":712,"on.key_release":720,"Viewport":604,"sx":544,"update_editor_box":711,"vx":545,"zoom_out":870,"Definition_background_color":849,"from_viewport":823,"manifest_navigator_down":635,"mouse_cursor":558}
zoom_in = function(x,y)
-- precondition: Zoomed_out
-- precondition: Viewport == Global_viewport
-- precondition: Saved_viewport exists
-- center Viewport on x,y at zoom level Saved_viewport.zoom
local sx, sy = sx(x), sy(y)
Viewport = {
x=sx(x)-App.screen.width/Saved_viewport.zoom/2,
y=sy(y)-App.screen.height/Saved_viewport.zoom/2,
w=App.screen.width/Saved_viewport.zoom,
h=App.screen.height/Saved_viewport.zoom,
zoom=Saved_viewport.zoom,
}
end
{"Mouse_cursor":559,"definition_background_color":859,"set_mouse_cursor":562,"tick_spec":660,"draw_ticks":862,"Surface":422,"on.draw":797,"snapshot_canvas":872,"order_of_magnitude":573,"Save_viewport":865,"A":831,"copy_viewport":866,"approximate":579,"B":830,"Zoomed_out":869,"on.mouse_release":836,"on":1,"approximate_up":658,"on.save_settings":742,"on.load_settings":782,"Page":475,"table_and_array_both_empty":689,"get_multiple_definitions_from_app":783,"vy":546,"fw_parent":873,"fw_app":"driver","zoom_in":874,"get_manifest":768,"load_manifest":694,"Manifest":769,"compute_layout":385,"Definitions":503,"Menu_background_color":611,"draw_run_time_error":808,"box_height":680,"Test_definition_background_color":858,"Menu_command_color":613,"sy":469,"survey_animation":863,"on.code_change":820,"animate_next":841,"line_height":365,"add_hotkey_to_menu":616,"interpolate_viewport":843,"on.update":835,"draw_cursor":639,"animate_next_frame":825,"num_lines_for_manifest_navigator":676,"initialize_manifest_navigator":773,"Manifest_navigator":495,"reset_manifest_navigator":772,"new_definition":848,"load_definition":854,"y_of_schema1":364,"on.initialize":807,"get_definition_from_app":784,"surface_bounds":814,"Ticks_font":669,"Cursor_node":172,"on.code_submit":787,"manifest_navigator_up":628,"font":353,"maybe_update_key_in_definitions":529,"Menu_border_color":612,"initialize_editor":678,"Spawn_point":822,"wait_for_response":781,"move_candidate_to_front_of_manifest":632,"Menu_highlight_color":614,"keychord_press_on_manifest_navigator":765,"add_def_to_menu":640,"text_input_on_manifest_navigator":634,"on.text_input":855,"draw_manifest_navigator":677,"manifest_coord":636,"Num_animation_frames":840,"manifest_index":637,"schema1_of_y":667,"manifest_navigator_candidates":638,"draw_menu_bar":861,"on_handle":547,"Animating":842,"load_from_iterator":670,"on.keychord_press":871,"delete_definition":673,"on_text":539,"add_thick_line":400,"on.mouse_press":873,"copy_shape":396,"scale":712,"on.key_release":720,"Viewport":604,"sx":544,"update_editor_box":711,"vx":545,"zoom_out":870,"Definition_background_color":849,"from_viewport":823,"manifest_navigator_down":635,"mouse_cursor":558}
on.mouse_press = function(x,y, mouse_button)
if Animating then return end
if Zoomed_out then
zoom_in_on_viewport(x,y)
Zoomed_out = nil
Saved_viewport = nil
return
end
if Cursor_node then
Cursor_node.show_cursor = nil
Cursor_node = nil
end
if mouse_press_consumed_by_any_button_handler(HUD, x,y, mouse_button) then
return
end
local node = on_text(x,y)
if node then
-- position cursor in node
Cursor_node = node
edit.mouse_press(node.editor, x,y, mouse_button)
return
end
local node = on_handle(x,y)
if node then
-- move node
Move = {xoff=App.mouse_x()-vx(node.x), yoff=App.mouse_y()-vy(node.y), node=node}
return
end
-- pan surface
Pan = {x=Viewport.x+x,y=Viewport.y+y}
end
{"Mouse_cursor":559,"definition_background_color":859,"set_mouse_cursor":562,"tick_spec":660,"draw_ticks":862,"Surface":422,"on.draw":797,"snapshot_canvas":872,"order_of_magnitude":573,"Save_viewport":865,"A":831,"copy_viewport":866,"approximate":579,"B":830,"Zoomed_out":869,"on.mouse_release":836,"on":1,"approximate_up":658,"on.save_settings":742,"on.load_settings":782,"Page":475,"table_and_array_both_empty":689,"get_multiple_definitions_from_app":783,"vy":546,"fw_parent":872,"fw_app":"driver","get_manifest":768,"load_manifest":694,"Manifest":769,"compute_layout":385,"Definitions":503,"Menu_background_color":611,"draw_run_time_error":808,"box_height":680,"Test_definition_background_color":858,"Menu_command_color":613,"sy":469,"survey_animation":863,"on.code_change":820,"animate_next":841,"line_height":365,"add_hotkey_to_menu":616,"interpolate_viewport":843,"on.update":835,"draw_cursor":639,"animate_next_frame":825,"num_lines_for_manifest_navigator":676,"initialize_manifest_navigator":773,"Manifest_navigator":495,"reset_manifest_navigator":772,"new_definition":848,"load_definition":854,"y_of_schema1":364,"on.initialize":807,"get_definition_from_app":784,"surface_bounds":814,"Ticks_font":669,"Cursor_node":172,"on.code_submit":787,"manifest_navigator_up":628,"font":353,"maybe_update_key_in_definitions":529,"Menu_border_color":612,"initialize_editor":678,"Spawn_point":822,"wait_for_response":781,"move_candidate_to_front_of_manifest":632,"Menu_highlight_color":614,"keychord_press_on_manifest_navigator":765,"add_def_to_menu":640,"text_input_on_manifest_navigator":634,"on.text_input":855,"draw_manifest_navigator":677,"manifest_coord":636,"Num_animation_frames":840,"manifest_index":637,"schema1_of_y":667,"manifest_navigator_candidates":638,"draw_menu_bar":861,"on_handle":547,"Animating":842,"load_from_iterator":670,"on.keychord_press":871,"delete_definition":673,"on_text":539,"add_thick_line":400,"on.mouse_press":873,"copy_shape":396,"scale":712,"on.key_release":720,"Viewport":604,"sx":544,"update_editor_box":711,"vx":545,"zoom_out":870,"Definition_background_color":849,"from_viewport":823,"manifest_navigator_down":635,"mouse_cursor":558}