Merge lines.love
[?]
Aug 23, 2022, 8:25 PM
32V6ZHQBHMVAY66WO5FAHXPY6W6PWNAURIRNN3S63YUCL5LCH4LACDependencies
- [2]
MD3W5IRAnew fork: rip out drawing support - [3]
5UKUADTWdistinguish consistently between mouse buttons and other buttons - [4]
ZCTJPR6Ipass all button params to the icon - [5]
LF7BWEG4group all editor globals - [6]
QFC3WRDZchunking by simple local variable - [7]
RSZD5A7Gforgot to add json.lua - [8]
TVCPXAAUrename - [9]
LUNH47XXmake text and drawings the same width - [10]
FS2ITYYHrecord a known issue - [11]
L6XA5EY2test: moving a point - [12]
DLQAEAC7add state arg to Drawing.mouse_pressed - [13]
QXVD2RIFadd state arg to Drawing.mouse_released - [14]
UHB4GARJleft/right margin -> left/right coordinates - [15]
KTZQ57HVreplace globals with args in a few functions - [16]
BW2IUB3Kkeep all text cache writes inside text.lua - [17]
3OTESDW6move drawing.starty into line cache - [18]
RT6EV6OPdelegate update events to drawings - [19]
LXTTOB33extract a couple of files - [20]
OGUV4HSAremove some memory leaks from rendered fragments - [21]
73OCE2MCafter much struggle, a brute-force undo - [22]
D2GCFTTTclean up repl functionality - [23]
66X36NZNa little more prose describing manual_tests - [24]
6DE7RBZ6move mouse_released events to Drawing - [25]
M6TH7VSZrip out notion of Line_width - [26]
4YDBYBA4clean up memory leak experiments - [27]
6LJZN727handle chords - [28]
LNUHQOGHstart passing in Editor_state explicitly - [29]
R5QXEHUIsomebody stop me - [30]
OTIBCAUJlove2d scaffold - [31]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [32]
AVTNUQYRbasic test-enabled framework - [33]
CE4LZV4Tdrop last couple of manual tests - [34]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [35]
VHQCNMARseveral more modules - [36]
2L5MEZV3experiment: new edit namespace - [37]
PP2IIHL6stop putting button state in a global - [38]
K2X6G75Zstart writing some tests for drawings - [39]
TLOAPLBJadd a license - [40]
BLWAYPKVextract a module - [41]
BULPIBEGbeginnings of a module for the text editor - [42]
C45WCXJ2keep drawings within the line width slider as well - [43]
XX7G2FFJintermingle freehand line drawings with text - [44]
T4FRZSYLdelete an ancient, unused file - [45]
LYN3L74Wcorrect commit f3abc2cbf2 - [46]
5DOTWNVMright margin - [47]
WJBZZQE4fold together two largely similar cases - [48]
VXORMHMEdelete experimental REPL - [49]
6J3NXBYGaffordance to adjust width for word wrap - [50]
4KC7I3E2make colors easier to edit - [51]
3QNOKBFMbeginnings of a test harness
Change contents
- file deletion: drawing.lua drawing.lua
function Drawing.mouse_released(State, x,y, mouse_button)if State.current_drawing_mode == 'move' thenState.current_drawing_mode = State.previous_drawing_modeState.previous_drawing_mode = nilif State.lines.current_drawing thenState.lines.current_drawing.pending = {}State.lines.current_drawing = nilfunction 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
function icon.insert_drawing(button_params)local x,y = button_params.x, button_params.yApp.color(Icon_color) - edit in edit.lua at line 103
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