N5J7ZUXO45VS6GANQ4UWQTXMMQGSPRNDG4C2MG4NYVIZX5XMEB7AC
{"box_height":345,"compute_layout":385,"ntracks":505,"B":379,"compute_ntracks":519,"Input_filename":436,"Surface":588,"on.draw":418,"vx":5,"Viewport":303,"on.text_input":587,"initialize_editor":338,"render_thread_to_surface":583,"dehtml":456,"on.mouse_press":585,"add_thick_line":400,"on.mouse_release":586,"copy_shape":396,"on.update":368,"to_text":180,"on.keychord_press":584,"load_from_iterator":463,"split_lines":469,"on.code_change":578,"scale":7,"A":582,"vy":8,"Cursor_node":172,"font":353,"add_edge":575,"y_of_schema1":364,"schema1_of_y":366,"update_editor_box":430,"line_height":365,"add_node":576,"fw_parent":587,"on":1,"fw_app":"mastodon-luaML","render_node_and_descendants":579,"on.initialize":446}
Surface = {
}
on.text_input = function(t)
end
{"box_height":345,"compute_layout":385,"Input_filename":436,"on":1,"Surface":434,"on.draw":418,"vx":5,"schema1_of_y":366,"Viewport":303,"dehtml":456,"on.initialize":446,"y_of_schema1":364,"A":582,"to_text":180,"on.mouse_press":585,"on.code_change":578,"initialize_editor":338,"on.update":368,"on.keychord_press":584,"load_from_iterator":463,"fw_parent":586,"split_lines":469,"fw_app":"mastodon-luaML","font":353,"Cursor_node":172,"update_editor_box":430,"ntracks":505,"line_height":365,"copy_shape":396,"on.text_input":587,"on.mouse_release":586,"compute_ntracks":519,"add_node":576,"vy":8,"render_thread_to_surface":583,"add_thick_line":400,"render_node_and_descendants":579,"scale":7,"B":379,"add_edge":575}
on.mouse_release = function(x,y, mouse_button)
if Pan then
Pan = nil
end
end
{"box_height":345,"compute_layout":385,"Input_filename":436,"on":1,"Surface":434,"on.draw":418,"vx":5,"schema1_of_y":366,"Viewport":303,"dehtml":456,"on.initialize":446,"y_of_schema1":364,"A":582,"to_text":180,"on.mouse_press":585,"on.code_change":578,"initialize_editor":338,"on.update":368,"on.keychord_press":584,"load_from_iterator":463,"fw_parent":585,"split_lines":469,"fw_app":"mastodon-luaML","font":353,"Cursor_node":172,"update_editor_box":430,"ntracks":505,"line_height":365,"copy_shape":396,"on.text_input":388,"on.mouse_release":586,"compute_ntracks":519,"add_node":576,"vy":8,"render_thread_to_surface":583,"add_thick_line":400,"render_node_and_descendants":579,"scale":7,"B":379,"add_edge":575}
on.mouse_press = function(x,y, mouse_button)
local node = to_text(x,y)
if node then
-- TODO: copy node's url
else
Pan = {x=Viewport.x+x,y=Viewport.y+y}
end
end
{"box_height":345,"compute_layout":385,"Input_filename":436,"on":1,"Surface":434,"on.draw":418,"vx":5,"schema1_of_y":366,"Viewport":303,"dehtml":456,"on.initialize":446,"y_of_schema1":364,"A":582,"to_text":180,"on.mouse_press":585,"on.code_change":578,"initialize_editor":338,"on.update":368,"on.keychord_press":584,"load_from_iterator":463,"fw_parent":584,"split_lines":469,"fw_app":"mastodon-luaML","font":353,"Cursor_node":172,"update_editor_box":430,"ntracks":505,"line_height":365,"copy_shape":396,"on.text_input":388,"on.mouse_release":367,"compute_ntracks":519,"add_node":576,"vy":8,"render_thread_to_surface":583,"add_thick_line":400,"render_node_and_descendants":579,"scale":7,"B":379,"add_edge":575}
on.keychord_press = function(chord, key)
if chord == 'C-=' then
-- zoom in
Viewport.zoom = Viewport.zoom+0.1
B()
elseif chord == 'C--' then
-- zoom out
Viewport.zoom = Viewport.zoom-0.1
B()
elseif chord == 'C-0' then
-- reset zoom
Viewport.zoom = 1.0
B()
end
end
{"box_height":345,"compute_layout":385,"Input_filename":436,"on":1,"Surface":434,"on.draw":418,"vx":5,"schema1_of_y":366,"Viewport":303,"dehtml":456,"on.initialize":446,"y_of_schema1":364,"A":582,"to_text":180,"on.mouse_press":179,"on.code_change":578,"initialize_editor":338,"on.update":368,"on.keychord_press":584,"load_from_iterator":463,"fw_parent":583,"split_lines":469,"fw_app":"mastodon-luaML","font":353,"Cursor_node":172,"update_editor_box":430,"ntracks":505,"line_height":365,"copy_shape":396,"on.text_input":388,"on.mouse_release":367,"compute_ntracks":519,"add_node":576,"vy":8,"render_thread_to_surface":583,"add_thick_line":400,"render_node_and_descendants":579,"scale":7,"B":379,"add_edge":575}