B:BD[
5.4442] → [
5.4442:4595]
B:BD[
5.4595] → [
7.2038:2118]
∅:D[
7.2118] → [
4.3139:3391]
B:BD[
5.4668] → [
4.3139:3391]
∅:D[
4.3391] → [
5.4896:4921]
∅:D[
6.98854] → [
5.4896:4921]
B:BD[
5.4896] → [
5.4896:4921]
B:BD[
5.4921] → [
8.206:248]
B:BD[
8.248] → [
7.2119:2241]
∅:D[
2.39] → [
5.5089:5098]
B:BD[
5.5089] → [
5.5089:5098]
B:BD[
5.5098] → [
4.3392:3480]
B:BD[
4.3480] → [
9.22446:22495]
∅:D[
10.1927] → [
5.5217:5229]
∅:D[
4.3529] → [
5.5217:5229]
∅:D[
9.22495] → [
5.5217:5229]
∅:D[
6.99013] → [
5.5217:5229]
B:BD[
5.5217] → [
5.5217:5229]
-- insert new drawing
button('draw', {x=4,y=y+4, w=12,h=12, color={1,1,0},
icon = icon.insert_drawing,
onpress1 = function()
Drawing.before = snapshot(State, line_index-1, line_index)
table.insert(State.lines, line_index, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})
if State.cursor1.line >= line_index then
State.cursor1.line = State.cursor1.line+1
end
schedule_save(State)
record_undo_event(State, {before=Drawing.before, after=snapshot(State, line_index-1, line_index+1)})
end,
})
if State.search_term == nil then
if line_index == State.cursor1.line then
Text.draw_cursor(State, State.left, y)
end
if line_index == State.screen_top1.line then
line.startpos = State.screen_top1.pos
end
if line.data == '' then
-- button to insert new drawing
button('draw', {x=4,y=y+4, w=12,h=12, color={1,1,0},
icon = icon.insert_drawing,
onpress1 = function()
Drawing.before = snapshot(State, line_index-1, line_index)
table.insert(State.lines, line_index, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})
if State.cursor1.line >= line_index then
State.cursor1.line = State.cursor1.line+1
end
schedule_save(State)
record_undo_event(State, {before=Drawing.before, after=snapshot(State, line_index-1, line_index+1)})
end,
})