clean up

[?]
Jun 18, 2022, 6:16 AM
253TWKDAPJCUTRHXJCPF3Y3EMMMKIUV6PNBWQDLYLHACD6BBBOEAC

Dependencies

  • [2] ALOY4663 .
  • [3] WPW3AVFS more precise shape selection
  • [4] TCNHUMIW one more known issue
  • [5] ZTMRQZSW Readme
  • [6] VHQCNMAR several more modules
  • [7] F3OOGMME switch freehand hotkey to eliminate conflict with search
  • [8] LAW2O3NW extract variable Margin_left
  • [9] HOSPP2AN crisp font rendering
  • [10] XNFTJHC4 split keyboard handling between Text and Drawing
  • [11] JFFUF5AL override mouse state lookups in tests
  • [12] K2X6G75Z start writing some tests for drawings
  • [13] XRLJDW3W casting about for more helpers to extract..
  • [14] DRFE3B3Z mouse buttons are integers, not strings
  • [15] BLWAYPKV extract a module
  • [16] IDGP4BJZ new known issue with drawings
  • [17] FS2ITYYH record a known issue
  • [18] A2TQYJ6J .

Change contents

  • edit in geom.lua at line 2
    [4.11596][4.11596:11597](),[4.11597][3.13:213]()
    function geom.on_any_shape(x,y, drawing)
    for _,shape in ipairs(drawing.shapes) do
    assert(shape)
    if geom.on_shape(x,y, drawing, shape) then
    return true
    end
    end
    return false
    end
  • edit in drawing.lua at line 6
    [4.1602][3.548:569]()
    Show_nearby = false
  • edit in drawing.lua at line 31
    [4.817][3.570:853]()
    if Show_nearby then
    love.graphics.setColor(1,0.75,0.75)
    for y=0,127 do
    for x=0,255 do
    if geom.on_any_shape(x,y, line) then
    love.graphics.circle('fill', Drawing.pixels(x)+Margin_left, Drawing.pixels(y)+line.y, 2)
    end
    end
    end
    end
  • edit in drawing.lua at line 373
    [4.5258][3.854:930]()
    if chord == 'C-a' then
    Show_nearby = not Show_nearby
    return
    end
  • edit in README.md at line 69
    [4.13][2.18:94](),[2.94][4.89:146](),[4.89][4.89:146]()
    * There's a bug in freehand drawings (`ctrl+p` mode) that causes them to be
    highlighted even when the mouse is nowhere near them.