MQMKQ2JO6E3KDJN3H6WACIETJI4C2APUS5N4YQZDM75ZIZDSC4XAC
2DMUYDN4QCFRWAQFS37HX5UKZOPCTJEIXR35JEOMHCTEG4VSMMYQC
RME4YP33NNUXA7HCHKUMB7UTNVGUCBDU3AZW3TDUTYL2CFZMNGOQC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
LRDM35CEK3OHXOTB7TEFJRL7P6PQWO5ZG3F2BVA7DIDFHBPJQ7KAC
LNUHQOGHIOFGJXNGA3DZLYEASLYYDGLN2I3EDZY5ANASQAHCG3YQC
2L5MEZV344TOZLVY3432RHJFIRVXFD6O3GWLL5O4CV66BGAFTURQC
UHB4GARJI5AB5UCDCZRFSCJNXGJSLU5DYGUGX5ITYEXI7Q43Z4CAC
LF7BWEG4DKQI7NMXMZC4LC2BE5PB42HK5PD6OYBNIDMAZBJASOKQC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
update_editor_box = function(node, preserve_screen_top_of_cursor_node)
if node.editor == nil then return end
if node.y > Viewport.y then
if not preserve_screen_top_of_cursor_node or node ~= Cursor_node then
node.editor.screen_top1.line = 1
node.editor.screen_top1.pos = 1
end
node.editor.top = vy(node.y)
else
node.editor.screen_top1, node.editor.top = schema1_of_y(node.editor, Viewport.y - node.y)
end
node.editor.top = node.editor.top + Menu_bar_height
node.editor.left = math.floor(vx(node.x+Line_number_width))
node.editor.right = math.ceil(vx(node.x+node.w))
edit.update_font_settings(node.editor, scale(20))
Text.redraw_all(node.editor)
end
{"on.code_change":306,"Cursor_node":172,"Viewport":439,"add_thick_line":400,"copy_shape":396,"on.keychord_press":391,"update_editor_box":451,"Page":444,"on.text_input":388,"on":1,"vy":448,"on.mouse_release":367,"on.update":368,"parent":450,"scale":7,"schema1_of_y":366,"Surface":422,"on.draw":443,"vx":5,"to_text":180,"on.initialize":350,"y_of_schema1":364,"B":379,"initialize_editor":450,"box_height":345,"compute_layout":385,"on.mouse_press":179,"font":353,"line_height":365,"A":433}
{"Surface":422,"vy":448,"Page":444,"Cursor_node":172,"to_text":180,"add_thick_line":400,"A":433,"copy_shape":396,"line_height":365,"parent":449,"schema1_of_y":366,"on.initialize":350,"on.code_change":306,"on.mouse_press":179,"vx":5,"on.keychord_press":391,"Viewport":439,"on.draw":443,"y_of_schema1":364,"font":353,"update_editor_box":449,"compute_layout":385,"initialize_editor":450,"on.text_input":388,"B":379,"scale":7,"on.update":368,"on.mouse_release":367,"on":1,"box_height":345}
initialize_editor = function(obj)
if obj.w then
-- use an editor to wrap the text
local scaled_fontsize = scale(20)
local scaled_lineheight = math.floor(scaled_fontsize*1.3)
obj.editor = edit.initialize_state(Menu_bar_height + vy(obj.y), math.floor(vx(obj.x)), math.ceil(vx(obj.x+obj.w)), scaled_fontsize, scaled_lineheight)
obj.editor.lines = load_array(obj.data)
Text.redraw_all(obj.editor)
end
end
update_editor_box = function(node, preserve_screen_top_of_cursor_node)
if node.editor == nil then return end
if node.y > Viewport.y then
if not preserve_screen_top_of_cursor_node or node ~= Cursor_node then
node.editor.screen_top1.line = 1
node.editor.screen_top1.pos = 1
end
node.editor.top = Menu_bar_height + vy(node.y)
else
node.editor.screen_top1, node.editor.top = schema1_of_y(node.editor, Viewport.y - node.y)
end
node.editor.left = math.floor(vx(node.x+Line_number_width))
node.editor.right = math.ceil(vx(node.x+node.w))
edit.update_font_settings(node.editor, scale(20))
Text.redraw_all(node.editor)
end
{"Surface":422,"vy":448,"Page":444,"Cursor_node":172,"to_text":180,"add_thick_line":400,"A":433,"copy_shape":396,"line_height":365,"parent":448,"schema1_of_y":366,"on.initialize":350,"on.code_change":306,"on.mouse_press":179,"vx":5,"on.keychord_press":391,"Viewport":439,"on.draw":443,"y_of_schema1":364,"font":353,"update_editor_box":449,"compute_layout":385,"initialize_editor":338,"on.text_input":388,"B":379,"scale":7,"on.update":368,"on.mouse_release":367,"on":1,"box_height":345}
vy = function(y)
return Menu_bar_height + scale(y-Viewport.y)
end
{"add_thick_line":400,"on":1,"on.initialize":350,"Viewport":439,"A":433,"box_height":345,"scale":7,"line_height":365,"B":379,"on.mouse_release":367,"copy_shape":396,"on.mouse_press":179,"vy":448,"Cursor_node":172,"initialize_editor":338,"on.update":368,"update_editor_box":446,"on.keychord_press":391,"compute_layout":385,"on.text_input":388,"y_of_schema1":364,"on.code_change":306,"on.draw":443,"vx":5,"font":353,"schema1_of_y":366,"parent":447,"Page":444,"Surface":422,"to_text":180}