CKGWLO67CSR67ZO6CZAICVAC4FNCO2QBQWOBQA6CU6ISUAXLBDYAC
{"Cursor_node":172,"vy":8,"on.mouse_press":179,"on.mouse_release":178,"initialize_editor":338,"on.update":315,"box_height":345,"on.keychord_press":311,"compute_layout":349,"to_text":180,"Page":344,"on.code_change":306,"clip":236,"font":228,"on.text_input":177,"scale":7,"on":1,"clip_all":265,"Surface":196,"update_editor_box":351,"B":352,"on.draw":346,"on.initialize":350,"vx":5,"A":309,"Viewport":303,"parent":351}
B = function()
-- 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)
else
obj.text = love.graphics.newText(love.graphics.getFont(), obj.data)
end
end
end
end
update_editor_box = function(obj)
if obj.editor == nil then return end
obj.editor.top = vy(obj.y)
obj.editor.left = math.floor(vx(obj.x))
obj.editor.right = math.ceil(vx(obj.x+obj.w))
edit.update_font_settings(obj.editor, scale(20))
Text.redraw_all(obj.editor)
end
{"on.mouse_press":179,"to_text":180,"on.mouse_release":178,"on.update":315,"box_height":345,"on.keychord_press":311,"compute_layout":349,"on.code_change":306,"update_editor_box":351,"on.text_input":177,"on.initialize":350,"scale":7,"Surface":196,"A":309,"vy":8,"on.draw":346,"B":316,"vx":5,"initialize_editor":338,"Viewport":303,"on":1,"parent":350,"Cursor_node":172,"font":228,"clip":236,"Page":344,"clip_all":265}
on.initialize = function()
A()
end
{"on.mouse_press":179,"to_text":180,"on.mouse_release":178,"on.update":315,"box_height":345,"on.keychord_press":311,"compute_layout":349,"on.code_change":306,"on.text_input":177,"on.initialize":350,"scale":7,"Surface":196,"A":309,"vy":8,"on.draw":346,"B":316,"vx":5,"initialize_editor":338,"Viewport":303,"on":1,"parent":349,"Cursor_node":172,"font":228,"clip":236,"Page":344,"clip_all":265}