add lines and nodes rendering
add offset
update demo