TKP3F6NDYNT2FFRNKWJCWIFNGCC2XA3TSB72AQE3PYPG3BEWHLDQC SVSD5NO3MQFKEFX4Y34OT5OO7SF5PK3PODCYZ4DUOM4OH5UTWWCAC KKHSOUW46XWS7M4JOKFQ5CIUPRRAWGQADVSOWJJ7TH37H24EEKPQC R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC KKMFQDR43ZWVCDRHQLWWX3FCWCFA3ZSXYOBRJNPHUQZR2XPKWULAC OI4FPFINEROK6GNDEMOBTGSPYIULCLRGGT5W3H7VLM7VFH22GMWQC QEXZHD2VPCM4TAPP7PR2K2PIR4BVES5IZWC3T6ZRNJWKWOXFILNQC JOPVPUSAMMU6RFVDQR4NJC4GNNUFB7GPKVH7OS5FKCYS5QZ53VLQC VHQCNMARPMNBSIUFLJG7HVK4QGDNPCGNVFLHS3I4IGNVSV5MRLYQC MD3W5IRAC6UQALQE4LJC52VQNDO3I3HXF3XE2XHDABXBYJBUVAXQC QYIFOHW3WDDQMK4ATY6IOSQRFHJOQ5QCPDKRC4GVGWLQEH4HGWVQC outfile:write(json.encode(shape))outfile:write('\n')outfile:write(line)outfile:write('\n')outfile:write(line)outfile:write('\n')outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius}))outfile:write('\n')outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}))outfile:write('\n')elseif shape.mode == 'deleted' then-- ignoreelseprint(shape.mode)assert(false)endendoutfile:write('```\n')elseif shape.mode == 'arc' thenelseif shape.mode == 'circle' thenelseif shape.mode == 'polygon' or shape.mode == 'rectangle' or shape.mode == 'square' thenlocal obj = {mode=shape.mode, vertices={}}for _,p in ipairs(shape.vertices) dotable.insert(obj.vertices, drawing.points[p])endlocal line = json.encode(obj)elseif shape.mode == 'line' or shape.mode == 'manhattan' thenlocal line = json.encode({mode=shape.mode, p1=drawing.points[shape.p1], p2=drawing.points[shape.p2]})
outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}), '\n')
outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}))outfile:write('\n')
outfile:write(json.encode(shape))outfile:write('\n')outfile:write(line)outfile:write('\n')outfile:write(line)outfile:write('\n')outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius}))outfile:write('\n')outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}))outfile:write('\n')