Merge lines.love

[?]
Aug 23, 2022, 8:25 PM
32V6ZHQBHMVAY66WO5FAHXPY6W6PWNAURIRNN3S63YUCL5LCH4LAC

Dependencies

  • [2] MD3W5IRA new fork: rip out drawing support
  • [3] 5UKUADTW distinguish consistently between mouse buttons and other buttons
  • [4] ZCTJPR6I pass all button params to the icon
  • [5] 6J3NXBYG affordance to adjust width for word wrap
  • [6] C45WCXJ2 keep drawings within the line width slider as well
  • [7] BULPIBEG beginnings of a module for the text editor
  • [8] VXORMHME delete experimental REPL
  • [9] 6LJZN727 handle chords
  • [10] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [11] QFC3WRDZ chunking by simple local variable
  • [12] T4FRZSYL delete an ancient, unused file
  • [13] BLWAYPKV extract a module
  • [14] 6DE7RBZ6 move mouse_released events to Drawing
  • [15] LYN3L74W correct commit f3abc2cbf2
  • [16] 3OTESDW6 move drawing.starty into line cache
  • [17] LNUHQOGH start passing in Editor_state explicitly
  • [18] LXTTOB33 extract a couple of files
  • [19] KTZQ57HV replace globals with args in a few functions
  • [20] BW2IUB3K keep all text cache writes inside text.lua
  • [21] R5QXEHUI somebody stop me
  • [22] 3QNOKBFM beginnings of a test harness
  • [23] OGUV4HSA remove some memory leaks from rendered fragments
  • [24] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [25] L6XA5EY2 test: moving a point
  • [26] 5DOTWNVM right margin
  • [27] PP2IIHL6 stop putting button state in a global
  • [28] OTIBCAUJ love2d scaffold
  • [29] TLOAPLBJ add a license
  • [30] LUNH47XX make text and drawings the same width
  • [31] 73OCE2MC after much struggle, a brute-force undo
  • [32] 66X36NZN a little more prose describing manual_tests
  • [33] XX7G2FFJ intermingle freehand line drawings with text
  • [34] D2GCFTTT clean up repl functionality
  • [35] 4YDBYBA4 clean up memory leak experiments
  • [36] RSZD5A7G forgot to add json.lua
  • [37] M6TH7VSZ rip out notion of Line_width
  • [38] FS2ITYYH record a known issue
  • [39] K2X6G75Z start writing some tests for drawings
  • [40] UHB4GARJ left/right margin -> left/right coordinates
  • [41] WJBZZQE4 fold together two largely similar cases
  • [42] 4KC7I3E2 make colors easier to edit
  • [43] 2L5MEZV3 experiment: new edit namespace
  • [44] RT6EV6OP delegate update events to drawings
  • [45] CE4LZV4T drop last couple of manual tests
  • [46] LF7BWEG4 group all editor globals
  • [47] QXVD2RIF add state arg to Drawing.mouse_released
  • [48] AVTNUQYR basic test-enabled framework
  • [49] VHQCNMAR several more modules
  • [50] TVCPXAAU rename
  • [51] DLQAEAC7 add state arg to Drawing.mouse_pressed

Change contents

  • file deletion: drawing.lua (----------)drawing.lua (----------)
    [5.2][5.1542:1577](),[5.2][5.1542:1577](),[5.1577][5.98:98]()
    function Drawing.mouse_released(State, x,y, mouse_button)
    if State.current_drawing_mode == 'move' then
    State.current_drawing_mode = State.previous_drawing_mode
    State.previous_drawing_mode = nil
    if State.lines.current_drawing then
    State.lines.current_drawing.pending = {}
    State.lines.current_drawing = nil
    function Drawing.mouse_pressed(State, drawing_index, x,y, mouse_button)
    local drawing = State.lines[drawing_index]
    local line_cache = State.line_cache[drawing_index]
  • file deletion: icons.lua (----------)icons.lua (----------)
    [5.2][5.6587:6620](),[5.2][5.6587:6620](),[5.6620][5.5323:5323]()
    function icon.insert_drawing(button_params)
    local x,y = button_params.x, button_params.y
    App.color(Icon_color)
  • edit in edit.lua at line 103
    [5.269][5.45:113](),[5.269][5.45:113]()
    button(State, 'draw', {x=4,y=y+4, w=12,h=12, color={1,1,0},
  • resolve order conflict in edit.lua at line 103
    [2.9658]
    [5.5845]