left/right margin -> left/right coordinates
[?]
Jul 13, 2022, 1:29 AM
UHB4GARJI5AB5UCDCZRFSCJNXGJSLU5DYGUGX5ITYEXI7Q43Z4CACDependencies
- [2]
HPVT467Winitialize contains test state - [3]
APYPFFS3call edit rather than App callbacks in tests - [4]
DLQAEAC7add state arg to Drawing.mouse_pressed - [5]
7JH2ZT3Fadd state arg to Drawing.draw - [6]
PJEQCTBLadd state arg to Drawing.update - [7]
5ZA3BRNYadd state arg to a few functions - [8]
P4376EXKadd state arg to few functions - [9]
QCPXQ2E3add state arg to a few functions - [10]
3HVBAZPAadd state arg to a few functions - [11]
BYG5CEMVsupport for naming points - [12]
RT6EV6OPdelegate update events to drawings - [13]
ZHLO7K3Madd args to some functions - [14]
RMKMPFT5fix a corner case when selecting text - [15]
L6XA5EY2test: moving a point - [16]
WTDKUACNrectangle and square shapes - [17]
WOXIYUTLbugfix: manage screen_top and cursor when resizing - [18]
NHA7RUFImove current mode indicator slightly - [19]
7DPPMI2Uanother integer coordinate - [20]
VVXVV2D2change data model; text can now have metadata - [21]
4VKEE43Zbugfix - [22]
CRYGI3LRmore drawing tests - [23]
4KC7I3E2make colors easier to edit - [24]
XRLJDW3Wcasting about for more helpers to extract.. - [25]
SVJZZDC3snapshot - no, that's all wrong - [26]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [27]
HOSPP2ANcrisp font rendering - [28]
LXTTOB33extract a couple of files - [29]
LUNH47XXmake text and drawings the same width - [30]
NEXUNNCFextract a function - [31]
JFFUF5ALoverride mouse state lookups in tests - [32]
HMODUNJEscroll on backspace - [33]
AOIRVVJArevert selection logic to before commit 3ffc2ed8f - [34]
3QQZ7W4Ebring couple more globals back to the app level - [35]
BERHYBXMfix help for rectangles and squares - [36]
5UG5PQ6Kundo commit 861c57b533 - [37]
AJB4LFRBtry to maintain a reasonable line width - [38]
46ASCE5Kfirst commandline arg: window dimensions - [39]
K464QQR4more defensive resize handling - [40]
HTWAM4NZbugfix: scrolling in left/right movements - [41]
3RGHOJ25DRY some code - [42]
DHI6IJCNselecting text and deleting selections - [43]
3MAZEQK5add state arg to Text.textinput - [44]
R6GUSTBYdefault font size and line-height - [45]
6LJZN727handle chords - [46]
YT5P6TO6bugfix: save previous file when dropping a new one on - [47]
SRVDX4I5local var - [48]
GK47BBCYstart passing left/right margins everywhere - [49]
AMSESRTHmove some code - [50]
WQOSZSUEwarn on unused commandline args - [51]
KOYAJWE4extract a couple more methods - [52]
GN3IF4WFbugfix: pasting newlines - [53]
253TWKDAclean up - [54]
EBBFOW4Xbugfix: clear selection in a couple more places - [55]
ZLJGZYQGselect text with shift + mouseclick - [56]
DRFE3B3Zmouse buttons are integers, not strings - [57]
OWK3U6VDtests for drawing polygons - [58]
LNUHQOGHstart passing in Editor_state explicitly - [59]
CVSRHMJ2experiment: slightly adaptive scrolling - [60]
K2X6G75Zstart writing some tests for drawings - [61]
C6QTJYA4keep online help inside of drawing - [62]
WLJCIXYMadd state arg to a few functions - [63]
GSPXUEQO. - [64]
KAUD3YIKtests: deleting points/shapes - [65]
DXT4QTAHa few more integer coordinates - [66]
NZKYPBSKcheck for scroll when just typing - [67]
NYQ7HD4Dmove - [68]
GSV7DABCmake online help fit within a drawing - [69]
242L3OQXbugfix: ensure Cursor_line is always on a text line - [70]
5MR22SGZbugfix: enable resize when loading settings - [71]
KZ5GAYRPthis fixes the immediate regression - [72]
GJLOKCYKbugfix: clicking past end of screen line - [73]
Z4KNS42Nto open a file without a terminal, drag it on! - [74]
VO3GEIRWuse app name in window title - [75]
7CLGG7J2test: autosave after any shape - [76]
MTJEVRJRadd state arg to a few functions - [77]
FFBIY74Nbugfix: 'escape' to cancel a stroke - [78]
7DYUAOI6test: undo moving point - [79]
6DE7RBZ6move mouse_released events to Drawing - [80]
NUCZBE77bugfix: alignment of help screen - [81]
CUIV2LE5some typos - [82]
EMHRPJ3Rno, that's not right - [83]
LAW2O3NWextract variable Margin_left - [84]
65HNIAOSmake freehand drawings smoother - [85]
2L5MEZV3experiment: new edit namespace - [86]
DGK5BPVIbugfix: UTF-8 in compute_fragments - [87]
AVQ5MC5Dfinish uppercasing all globals - [88]
BLWAYPKVextract a module - [89]
VJ77YABHmore efficient undo/redo - [90]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [91]
4AXV2HG4all pending manual tests done! - [92]
BJ2C6F2Bignore 'name' mode in a few places - [93]
42LVB4DEtest: naming a point - [94]
QGO66DNKinitialize screen width to something reasonable - [95]
2JLVAYHBstart decoupling editor tests from App - [96]
LYN3L74Wcorrect commit f3abc2cbf2 - [97]
Y4VYNEGFtest: autosave after name/move/delete of point - [98]
XNFTJHC4split keyboard handling between Text and Drawing - [99]
T3B4NLV3include a unit test - [100]
YGCT2D2Ostart loading settings as applicable - [101]
Y2ZIPXEMnew test - [102]
WPW3AVFSmore precise shape selection - [103]
WAR3HXHTtest both ways of selecting text with mouse - [104]
MHOUX5JFexperiment: turn off JIT - [105]
2RXZ3PGObeginning of a new approach to scroll+wrap - [106]
X3F7ECSLadd state arg to some functions - [107]
CE4LZV4Tdrop last couple of manual tests - [108]
T7SJSJIHtest: undo naming a point - [109]
3OKKTUT4up and down arrow now moving by screen line where possible - [110]
YJGADSGKdelete unused arg - [111]
QKAMUWSBanother bugfix in scrolling while inserting text - [112]
SPSW74Y5add state arg to Text.keychord_pressed - [113]
OTIBCAUJlove2d scaffold - [114]
X75QPYVWmove Selection1 clearing past business logic - [115]
3TDOZESEextract scrolling logic out of insert_return - [116]
PX7DDEMOautosave slightly less aggressively - [117]
AVLAYODPmuch simpler - [118]
M6TH7VSZrip out notion of Line_width - [119]
AD34IX2Zcouple more tests - [120]
LF7BWEG4group all editor globals - [121]
2ZYV7D3Whandle tab characters - [122]
5DOTWNVMright margin - [123]
Z5HLXU4Padd state arg to a few functions - [124]
XSLCFVFH. - [125]
CG3264MMmove - [126]
V5MJRFOZbugfix: down arrow doesn't scroll up unnecessarily - [127]
BPWFKBXTnew test: dragging and dropping a file on lines.love - [128]
4J2L6JMRbugfix: deleting a selection spanning pages - [129]
4KOI3E6Rremove some redundant checks - [130]
IWYLK45Kclicking to the right of a line within line width - [131]
QXVD2RIFadd state arg to Drawing.mouse_released - [132]
H3ECRBXFbugfix: clicking on empty lines - [133]
VHQCNMARseveral more modules - [134]
AVTNUQYRbasic test-enabled framework - [135]
YCDYGEZUinclude drawing index in a few places - [136]
ZPUQSPQPextract a few methods - [137]
PR4KIAZDfirst stab at equally hacky cursor down support - [138]
RF5ALVNYallow the window to be resized - [139]
23MA4T3Gadd state arg to Drawing.keychord_pressed - [140]
PTDO2SOTadd state arg to schedule_save - [141]
DLQMM265scroll past first page - [142]
7Q6GKOOL. - [143]
KOTI3MFGbugfix in previous commit - [144]
C45WCXJ2keep drawings within the line width slider as well - [145]
PFT5Y2ZYmove - [146]
DSLD74DKlots more tests - [147]
HFI2YR2Crip out geometry commandline arg - [148]
S2MISTTMadd state arg to a few functions - [149]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [*]
AJP4OSTJnew test - [*]
NUZFHX6Iflesh out some tests for word movements - [*]
2LC3BM2Nsupport other whitespace chars in word movements - [*]
V3EABA35skip multiple consecutive whitespace - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- edit in text_tests.lua at line 6
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 19
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 22
edit.run_after_mouse_click(Editor_state, 8,Editor_state.margin_top+8, 1)edit.run_after_mouse_click(Editor_state, 8,Editor_state.top+8, 1) - edit in text_tests.lua at line 32
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 45
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 49
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 57
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 68
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 79
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 90
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 102
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 114
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 125
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 136
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 147
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 158
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 169
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 181
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 192
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 203
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 214
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 225
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 238
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 245
edit.run_after_mouse_click(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+5, 1)edit.run_after_mouse_click(Editor_state, Editor_state.left+8,Editor_state.top+5, 1) - edit in text_tests.lua at line 255
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 262
edit.run_after_mouse_click(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+5, 1)edit.run_after_mouse_click(Editor_state, Editor_state.left+8,Editor_state.top+5, 1) - edit in text_tests.lua at line 270
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 276
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 287
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 293
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 304
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 310
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 322
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 328
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 340
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 346
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 358
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 365
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 381
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 388
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 402
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 409
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 426
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 433
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 450
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 458
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 471
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 493
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 511
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 528
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 550
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 568
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 586
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 606
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 612
local y = Editor_state.margin_toplocal y = Editor_state.top - edit in text_tests.lua at line 630
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 640
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 651
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 658
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 669
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 680
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 697
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 704
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 716
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 727
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 734
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+5, 1) - edit in text_tests.lua at line 744
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 752
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+5, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+8,Editor_state.top+5, 1) - replacement in text_tests.lua at line 754
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+20,Editor_state.margin_top+Editor_state.line_height+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+20,Editor_state.top+Editor_state.line_height+5, 1) - edit in text_tests.lua at line 764
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 772
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+5, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+8,Editor_state.top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+5, 1) - replacement in text_tests.lua at line 776
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+20,Editor_state.margin_top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+20,Editor_state.margin_top+Editor_state.line_height+5, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+20,Editor_state.top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+20,Editor_state.top+Editor_state.line_height+5, 1) - edit in text_tests.lua at line 788
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 796
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+5, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+8,Editor_state.top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+5, 1) - replacement in text_tests.lua at line 800
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+20,Editor_state.margin_top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+20,Editor_state.margin_top+Editor_state.line_height+5, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+20,Editor_state.top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+20,Editor_state.top+Editor_state.line_height+5, 1) - replacement in text_tests.lua at line 804
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+20,Editor_state.margin_top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+Editor_state.line_height+5, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+20,Editor_state.top+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+Editor_state.line_height+5, 1) - replacement in text_tests.lua at line 817
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 834
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 841
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 849
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 859
App.screen.init{width=Editor_state.margin_left+drawing_width, height=80}App.screen.init{width=Editor_state.left+drawing_width, height=80}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 873
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 880
y = Editor_state.margin_top + drawing_heighty = Editor_state.top + drawing_height - edit in text_tests.lua at line 888
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 894
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 906
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 917
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 924
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 934
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 945
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 952
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 963
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 975
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 981
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 991
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1002
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1009
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1020
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1031
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1038
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1049
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1059
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1066
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1082
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 1094
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1100
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1111
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 1123
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1129
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1139
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1150
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1157
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1163
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1178
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1185
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1193
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 1209
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1215
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1225
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 1236
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1243
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1251
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1260
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1267
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1278
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1289
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1296
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1305
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1316
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1323
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1334
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1345
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1352
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1359
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1368
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1380
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1387
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1394
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1407
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1418
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1426
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1432
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1447
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1455
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1466
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1477
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1485
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1491
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1506
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1514
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1525
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 1537
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1543
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1554
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1561
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+8,Editor_state.margin_top+Editor_state.line_height*2+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+Editor_state.line_height*2+5, 1) - edit in text_tests.lua at line 1571
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1577
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1587
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1598
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right marginEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1606
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1612
y = Editor_state.margin_topy = Editor_state.top - replacement in text_tests.lua at line 1627
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right marginEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1643
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right marginEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1662
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right marginEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1681
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right marginEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1701
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right marginEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1721
App.screen.init{width=Editor_state.margin_left+30, height=60}App.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right marginEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - edit in text_tests.lua at line 1741
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1753
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1765
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 1776
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text_tests.lua at line 1787
local y = Editor_state.margin_toplocal y = Editor_state.top - replacement in text_tests.lua at line 1802
y = Editor_state.margin_topy = Editor_state.top - edit in text_tests.lua at line 1814
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in text.lua at line 144
Text.populate_screen_line_starting_pos(State.lines[State.cursor1.line], State.margin_left, App.screen.width-State.margin_right)Text.snap_cursor_to_bottom_of_screen(State, State.margin_left, App.screen.width-State.margin_right)Text.populate_screen_line_starting_pos(State.lines[State.cursor1.line], State.left, State.right)Text.snap_cursor_to_bottom_of_screen(State, State.left, State.right) - replacement in text.lua at line 168
Text.snap_cursor_to_bottom_of_screen(State, State.margin_left, App.screen.width-State.margin_right)Text.snap_cursor_to_bottom_of_screen(State, State.left, State.right) - replacement in text.lua at line 177
Text.populate_screen_line_starting_pos(State.lines[State.cursor1.line], State.margin_left, App.screen.width-State.margin_right)Text.snap_cursor_to_bottom_of_screen(State, State.margin_left, App.screen.width-State.margin_right)Text.populate_screen_line_starting_pos(State.lines[State.cursor1.line], State.left, State.right)Text.snap_cursor_to_bottom_of_screen(State, State.left, State.right) - replacement in text.lua at line 185
Text.delete_selection(State, State.margin_left, App.screen.width-State.margin_right)Text.delete_selection(State, State.left, State.right) - replacement in text.lua at line 215
local top2 = Text.to2(State, State.screen_top1, State.margin_left, App.screen.width-State.margin_right)top2 = Text.previous_screen_line(State, top2, State.margin_left, App.screen.width-State.margin_right)local top2 = Text.to2(State, State.screen_top1, State.left, State.right)top2 = Text.previous_screen_line(State, top2, State.left, State.right) - replacement in text.lua at line 226
Text.delete_selection(State, State.margin_left, App.screen.width-State.margin_right)Text.delete_selection(State, State.left, State.right) - replacement in text.lua at line 261
Text.left(State, State.margin_left, App.screen.width-State.margin_right)Text.left(State, State.left, State.right) - replacement in text.lua at line 264
Text.right(State, State.margin_left, App.screen.width-State.margin_right)Text.right(State, State.left, State.right) - replacement in text.lua at line 270
Text.left(State, State.margin_left, App.screen.width-State.margin_right)Text.left(State, State.left, State.right) - replacement in text.lua at line 275
Text.right(State, State.margin_left, App.screen.width-State.margin_right)Text.right(State, State.left, State.right) - replacement in text.lua at line 278
Text.word_left(State, State.margin_left, App.screen.width-State.margin_right)Text.word_left(State, State.left, State.right) - replacement in text.lua at line 281
Text.word_right(State, State.margin_left, App.screen.width-State.margin_right)Text.word_right(State, State.left, State.right) - replacement in text.lua at line 287
Text.word_left(State, State.margin_left, App.screen.width-State.margin_right)Text.word_left(State, State.left, State.right) - replacement in text.lua at line 292
Text.word_right(State, State.margin_left, App.screen.width-State.margin_right)Text.word_right(State, State.left, State.right) - replacement in text.lua at line 297
Text.end_of_line(State, State.margin_left, App.screen.width-State.margin_right)Text.end_of_line(State, State.left, State.right) - replacement in text.lua at line 308
Text.end_of_line(State, State.margin_left, App.screen.width-State.margin_right)Text.end_of_line(State, State.left, State.right) - replacement in text.lua at line 310
Text.up(State, State.margin_left, App.screen.width-State.margin_right)Text.up(State, State.left, State.right) - replacement in text.lua at line 313
Text.down(State, State.margin_left, App.screen.width-State.margin_right)Text.down(State, State.left, State.right) - replacement in text.lua at line 319
Text.up(State, State.margin_left, App.screen.width-State.margin_right)Text.up(State, State.left, State.right) - replacement in text.lua at line 324
Text.down(State, State.margin_left, App.screen.width-State.margin_right)Text.down(State, State.left, State.right) - replacement in text.lua at line 326
Text.pageup(State, State.margin_left, App.screen.width-State.margin_right)Text.pageup(State, State.left, State.right) - replacement in text.lua at line 329
Text.pagedown(State, State.margin_left, App.screen.width-State.margin_right)Text.pagedown(State, State.left, State.right) - replacement in text.lua at line 335
Text.pageup(State, State.margin_left, App.screen.width-State.margin_right)Text.pageup(State, State.left, State.right) - replacement in text.lua at line 340
Text.pagedown(State, State.margin_left, App.screen.width-State.margin_right)Text.pagedown(State, State.left, State.right) - replacement in text.lua at line 360
while y >= State.margin_top dowhile y >= State.top do - replacement in text.lua at line 638
local y = State.margin_toplocal y = State.top - replacement in text.lua at line 671
if y - h < State.margin_top thenif y - h < State.top then - replacement in text.lua at line 681
if y - h < State.margin_top thenif y - h < State.top then - replacement in search.lua at line 59
local _, pos = Text.pos_at_start_of_cursor_screen_line(State, State.margin_left, App.screen.width-State.margin_right)local _, pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right) - replacement in search.lua at line 99
local _, pos = Text.pos_at_start_of_cursor_screen_line(State, State.margin_left, App.screen.width-State.margin_right)local _, pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right) - replacement in main_tests.lua at line 4
App.screen.init{width=Editor_state.margin_left+300, height=300}check_eq(App.screen.width, Editor_state.margin_left+300, 'F - test_resize_window/baseline/width')App.screen.init{width=Editor_state.left+300, height=300}check_eq(App.screen.width, Editor_state.left+300, 'F - test_resize_window/baseline/width') - replacement in main_tests.lua at line 15
App.screen.init{width=Editor_state.margin_left+300, height=300}App.screen.init{width=Editor_state.left+300, height=300} - replacement in main_tests.lua at line 42
App.screen.init{width=Editor_state.margin_left+300, height=300}App.screen.init{width=Editor_state.left+300, height=300} - replacement in main.lua at line 17
Editor_state = edit.initialize_state()-- tests currently mostly clear their own state - replacement in main.lua at line 36
load_defaults()initialize_default_settings() - edit in main.lua at line 63
Editor_state.margin_right = 25Editor_state.margin_width = Editor_state.margin_left + Editor_state.margin_right - edit in main.lua at line 86
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right) - replacement in main.lua at line 88
initialize_font_settings(settings.font_height)Editor_state.font_height = settings.font_heightlove.graphics.setFont(love.graphics.newFont(Editor_state.font_height))Editor_state.line_height = math.floor(Editor_state.font_height*1.3)Editor_state.em = App.newText(love.graphics.getFont(), 'm') - replacement in main.lua at line 96
function load_defaults()initialize_font_settings(20)initialize_window_geometry()function initialize_default_settings()local font_height = 20love.graphics.setFont(love.graphics.newFont(font_height))local em = App.newText(love.graphics.getFont(), 'm')initialize_window_geometry(App.width(em))Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)Editor_state.font_height = font_heightEditor_state.line_height = math.floor(font_height*1.3)Editor_state.em = em - replacement in main.lua at line 107
function initialize_window_geometry()function initialize_window_geometry(em_width) - replacement in main.lua at line 111
-- shrink slightly to account for window decorationApp.screen.width = 40*App.width(Editor_state.em)-- shrink height slightly to account for window decoration - edit in main.lua at line 113
App.screen.width = 40*em_width - replacement in main.lua at line 125
Text.tweak_screen_top_and_cursor(Editor_state, Editor_state.margin_left, App.screen.height-Editor_state.margin_right)Text.tweak_screen_top_and_cursor(Editor_state, Editor_state.left, Editor_state.right) - edit in main.lua at line 127[11.189]→[11.690:695](∅→∅),[11.259]→[11.690:695](∅→∅),[11.690]→[11.690:695](∅→∅),[11.695]→[11.41:88](∅→∅),[11.41]→[11.41:88](∅→∅),[11.88]→[11.86306:86477](∅→∅),[11.86477]→[11.220:221](∅→∅),[11.220]→[11.220:221](∅→∅),[11.221]→[11.86478:86540](∅→∅)
endfunction initialize_font_settings(font_height)Editor_state.font_height = font_heightlove.graphics.setFont(love.graphics.newFont(Editor_state.font_height))Editor_state.line_height = math.floor(font_height*1.3)Editor_state.em = App.newText(love.graphics.getFont(), 'm') - replacement in help.lua at line 4
love.graphics.print("Things you can do:", State.margin_left+30,y)love.graphics.print("Things you can do:", State.left+30,y) - replacement in help.lua at line 6
love.graphics.print("* Press the mouse button to start drawing a "..current_shape(State), State.margin_left+30,y)love.graphics.print("* Press the mouse button to start drawing a "..current_shape(State), State.left+30,y) - replacement in help.lua at line 8
love.graphics.print("* Hover on a point and press 'ctrl+u' to pick it up and start moving it,", State.margin_left+30,y)love.graphics.print("* Hover on a point and press 'ctrl+u' to pick it up and start moving it,", State.left+30,y) - replacement in help.lua at line 10
love.graphics.print("then press the mouse button to drop it", State.margin_left+30+bullet_indent(),y)love.graphics.print("then press the mouse button to drop it", State.left+30+bullet_indent(),y) - replacement in help.lua at line 12
love.graphics.print("* Hover on a point and press 'ctrl+n', type a name, then press 'enter'", State.margin_left+30,y)love.graphics.print("* Hover on a point and press 'ctrl+n', type a name, then press 'enter'", State.left+30,y) - replacement in help.lua at line 14
love.graphics.print("* Hover on a point or shape and press 'ctrl+d' to delete it", State.margin_left+30,y)love.graphics.print("* Hover on a point or shape and press 'ctrl+d' to delete it", State.left+30,y) - replacement in help.lua at line 17
love.graphics.print("* Press 'ctrl+p' to switch to drawing freehand strokes", State.margin_left+30,y)love.graphics.print("* Press 'ctrl+p' to switch to drawing freehand strokes", State.left+30,y) - replacement in help.lua at line 21
love.graphics.print("* Press 'ctrl+l' to switch to drawing lines", State.margin_left+30,y)love.graphics.print("* Press 'ctrl+l' to switch to drawing lines", State.left+30,y) - replacement in help.lua at line 25
love.graphics.print("* Press 'ctrl+m' to switch to drawing horizontal/vertical lines", State.margin_left+30,y)love.graphics.print("* Press 'ctrl+m' to switch to drawing horizontal/vertical lines", State.left+30,y) - replacement in help.lua at line 29
love.graphics.print("* Press 'ctrl+o' to switch to drawing circles/arcs", State.margin_left+30,y)love.graphics.print("* Press 'ctrl+o' to switch to drawing circles/arcs", State.left+30,y) - replacement in help.lua at line 33
love.graphics.print("* Press 'ctrl+g' to switch to drawing polygons", State.margin_left+30,y)love.graphics.print("* Press 'ctrl+g' to switch to drawing polygons", State.left+30,y) - replacement in help.lua at line 37
love.graphics.print("* Press 'ctrl+r' to switch to drawing rectangles", State.margin_left+30,y)love.graphics.print("* Press 'ctrl+r' to switch to drawing rectangles", State.left+30,y) - replacement in help.lua at line 41
love.graphics.print("* Press 'ctrl+s' to switch to drawing squares", State.margin_left+30,y)love.graphics.print("* Press 'ctrl+s' to switch to drawing squares", State.left+30,y) - replacement in help.lua at line 44
love.graphics.print("* Press 'ctrl+=' or 'ctrl+-' to zoom in or out, ctrl+0 to reset zoom", State.margin_left+30,y)love.graphics.print("* Press 'ctrl+=' or 'ctrl+-' to zoom in or out, ctrl+0 to reset zoom", State.left+30,y) - replacement in help.lua at line 46
love.graphics.print("Press 'esc' now to hide this message", State.margin_left+30,y)love.graphics.print("Press 'esc' now to hide this message", State.left+30,y) - replacement in help.lua at line 49
love.graphics.rectangle('fill', State.margin_left,drawing.y, App.screen.width-State.margin_width, math.max(Drawing.pixels(drawing.h),y-drawing.y))love.graphics.rectangle('fill', State.left,drawing.y, State.width, math.max(Drawing.pixels(drawing.h),y-drawing.y)) - replacement in help.lua at line 55
love.graphics.print("You're currently drawing a "..current_shape(State, drawing.pending), State.margin_left+30,y)love.graphics.print("You're currently drawing a "..current_shape(State, drawing.pending), State.left+30,y) - replacement in help.lua at line 57
love.graphics.print('Things you can do now:', State.margin_left+30,y)love.graphics.print('Things you can do now:', State.left+30,y) - replacement in help.lua at line 60
love.graphics.print('* Release the mouse button to finish drawing the stroke', State.margin_left+30,y)love.graphics.print('* Release the mouse button to finish drawing the stroke', State.left+30,y) - replacement in help.lua at line 63
love.graphics.print('* Release the mouse button to finish drawing the line', State.margin_left+30,y)love.graphics.print('* Release the mouse button to finish drawing the line', State.left+30,y) - replacement in help.lua at line 67
love.graphics.print('* Release the mouse button to finish drawing the circle', State.margin_left+30,y)love.graphics.print('* Release the mouse button to finish drawing the circle', State.left+30,y) - replacement in help.lua at line 69
love.graphics.print("* Press 'a' to draw just an arc of a circle", State.margin_left+30,y)love.graphics.print("* Press 'a' to draw just an arc of a circle", State.left+30,y) - replacement in help.lua at line 71
love.graphics.print('* Release the mouse button to finish drawing the arc', State.margin_left+30,y)love.graphics.print('* Release the mouse button to finish drawing the arc', State.left+30,y) - replacement in help.lua at line 75
love.graphics.print('* Release the mouse button to finish drawing the polygon', State.margin_left+30,y)love.graphics.print('* Release the mouse button to finish drawing the polygon', State.left+30,y) - replacement in help.lua at line 77
love.graphics.print("* Press 'p' to add a vertex to the polygon", State.margin_left+30,y)love.graphics.print("* Press 'p' to add a vertex to the polygon", State.left+30,y) - replacement in help.lua at line 81
love.graphics.print("* Press 'p' to add a vertex to the rectangle", State.margin_left+30,y)love.graphics.print("* Press 'p' to add a vertex to the rectangle", State.left+30,y) - replacement in help.lua at line 84
love.graphics.print('* Release the mouse button to finish drawing the rectangle', State.margin_left+30,y)love.graphics.print('* Release the mouse button to finish drawing the rectangle', State.left+30,y) - replacement in help.lua at line 86
love.graphics.print("* Press 'p' to replace the second vertex of the rectangle", State.margin_left+30,y)love.graphics.print("* Press 'p' to replace the second vertex of the rectangle", State.left+30,y) - replacement in help.lua at line 91
love.graphics.print("* Press 'p' to add a vertex to the square", State.margin_left+30,y)love.graphics.print("* Press 'p' to add a vertex to the square", State.left+30,y) - replacement in help.lua at line 94
love.graphics.print('* Release the mouse button to finish drawing the square', State.margin_left+30,y)love.graphics.print('* Release the mouse button to finish drawing the square', State.left+30,y) - replacement in help.lua at line 96
love.graphics.print("* Press 'p' to replace the second vertex of the square", State.margin_left+30,y)love.graphics.print("* Press 'p' to replace the second vertex of the square", State.left+30,y) - replacement in help.lua at line 100
love.graphics.print("* Press 'esc' then release the mouse button to cancel the current shape", State.margin_left+30,y)love.graphics.print("* Press 'esc' then release the mouse button to cancel the current shape", State.left+30,y) - replacement in help.lua at line 104
love.graphics.print("* Press 'l' to switch to drawing lines", State.margin_left+30,y)love.graphics.print("* Press 'l' to switch to drawing lines", State.left+30,y) - replacement in help.lua at line 108
love.graphics.print("* Press 'm' to switch to drawing horizontal/vertical lines", State.margin_left+30,y)love.graphics.print("* Press 'm' to switch to drawing horizontal/vertical lines", State.left+30,y) - replacement in help.lua at line 112
love.graphics.print("* Press 'o' to switch to drawing circles/arcs", State.margin_left+30,y)love.graphics.print("* Press 'o' to switch to drawing circles/arcs", State.left+30,y) - replacement in help.lua at line 116
love.graphics.print("* Press 'g' to switch to drawing polygons", State.margin_left+30,y)love.graphics.print("* Press 'g' to switch to drawing polygons", State.left+30,y) - replacement in help.lua at line 120
love.graphics.print("* Press 'r' to switch to drawing rectangles", State.margin_left+30,y)love.graphics.print("* Press 'r' to switch to drawing rectangles", State.left+30,y) - replacement in help.lua at line 124
love.graphics.print("* Press 's' to switch to drawing squares", State.margin_left+30,y)love.graphics.print("* Press 's' to switch to drawing squares", State.left+30,y) - replacement in help.lua at line 128
love.graphics.rectangle('fill', State.margin_left,drawing.y, App.screen.width-State.margin_width, math.max(Drawing.pixels(drawing.h),y-drawing.y))love.graphics.rectangle('fill', State.left,drawing.y, State.width, math.max(Drawing.pixels(drawing.h),y-drawing.y)) - edit in edit.lua at line 13
Margin_top = 15Margin_left = 25Margin_right = 25 - replacement in edit.lua at line 29
function edit.initialize_state()function edit.initialize_state(top, left, right) -- currently always draws to bottom of screen - replacement in edit.lua at line 95[11.3415]→[11.97406:97449](∅→∅),[11.97449]→[2.133:155](∅→∅),[2.155]→[11.97472:97496](∅→∅),[11.97472]→[11.97472:97496](∅→∅)
margin_top = 15,margin_left = 25,margin_right = 0,margin_width = nil,top = top,left = left,right = right,width = right-left, - edit in edit.lua at line 116
result.margin_width = result.margin_left + result.margin_right - replacement in edit.lua at line 125
local y = State.margin_toplocal y = State.top - replacement in edit.lua at line 150
Text.draw_cursor(State, State.margin_left, y)Text.draw_cursor(State, State.left, y) - replacement in edit.lua at line 167
y, State.screen_bottom1.pos = Text.draw(State, line, line_index, line.starty, State.margin_left, App.screen.width-State.margin_right)y, State.screen_bottom1.pos = Text.draw(State, line, line_index, line.starty, State.left, State.right) - replacement in edit.lua at line 209
if Text.in_line(State, line, x,y, State.margin_left, App.screen.width-State.margin_right) thenif Text.in_line(State, line, x,y, State.left, State.right) then - replacement in edit.lua at line 224
pos=Text.to_pos_on_line(State, line, x, y, State.margin_left, App.screen.width-State.margin_right),pos=Text.to_pos_on_line(State, line, x, y, State.left, State.right), - replacement in edit.lua at line 254
if Text.in_line(State, line, x,y, State.margin_left, App.screen.width-State.margin_right) thenif Text.in_line(State, line, x,y, State.left, State.right) then - replacement in edit.lua at line 258
pos=Text.to_pos_on_line(State, line, x, y, State.margin_left, App.screen.width-State.margin_right),pos=Text.to_pos_on_line(State, line, x, y, State.left, State.right), - replacement in edit.lua at line 305
Text.delete_selection(State, State.margin_left, App.screen.width-State.margin_right)Text.delete_selection(State, State.left, State.right) - replacement in edit.lua at line 377
local s = Text.cut_selection(State, State.margin_left, App.screen.width-State.margin_right)local s = Text.cut_selection(State, State.left, State.right) - replacement in edit.lua at line 398
Text.snap_cursor_to_bottom_of_screen(State, State.margin_left, App.screen.height-State.margin_right)Text.snap_cursor_to_bottom_of_screen(State, State.left, State.right) - edit in drawing_tests.lua at line 8
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 13
edit.run_after_mouse_click(Editor_state, 8,Editor_state.margin_top+8, 1)edit.run_after_mouse_click(Editor_state, 8,Editor_state.top+8, 1) - replacement in drawing_tests.lua at line 28
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 35
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_draw_line/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_draw_line/baseline/y') - replacement in drawing_tests.lua at line 39
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 72
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 79
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_draw_horizontal_line/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_draw_horizontal_line/baseline/y') - replacement in drawing_tests.lua at line 83
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+26, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+26, 1) - replacement in drawing_tests.lua at line 100
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 107
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_draw_circle/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_draw_circle/baseline/y') - replacement in drawing_tests.lua at line 111
App.mouse_move(Editor_state.margin_left+4, Editor_state.margin_top+Editor_state.drawing_padding_top+4) -- hover on drawingApp.mouse_move(Editor_state.left+4, Editor_state.top+Editor_state.drawing_padding_top+4) -- hover on drawing - replacement in drawing_tests.lua at line 113
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35+30, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35+30, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 129
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 136
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_cancel_stroke/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_cancel_stroke/baseline/y') - replacement in drawing_tests.lua at line 140
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1) - replacement in drawing_tests.lua at line 143
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 151
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 157
App.mouse_move(Editor_state.margin_left+4, Editor_state.margin_top+Editor_state.drawing_padding_top+4) -- hover on drawingApp.mouse_move(Editor_state.left+4, Editor_state.top+Editor_state.drawing_padding_top+4) -- hover on drawing - replacement in drawing_tests.lua at line 167
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 174
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_draw_circle_mid_stroke/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_draw_circle_mid_stroke/baseline/y') - replacement in drawing_tests.lua at line 178
App.mouse_move(Editor_state.margin_left+4, Editor_state.margin_top+Editor_state.drawing_padding_top+4) -- hover on drawingedit.run_after_mouse_press(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)App.mouse_move(Editor_state.left+4, Editor_state.top+Editor_state.drawing_padding_top+4) -- hover on drawingedit.run_after_mouse_press(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 181
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35+30, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35+30, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 195
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 202
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_draw_arc/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_draw_arc/baseline/y') - replacement in drawing_tests.lua at line 206
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)App.mouse_move(Editor_state.margin_left+35+30, Editor_state.margin_top+Editor_state.drawing_padding_top+36)edit.run_after_mouse_press(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1)App.mouse_move(Editor_state.left+35+30, Editor_state.top+Editor_state.drawing_padding_top+36) - replacement in drawing_tests.lua at line 209
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35+50, Editor_state.margin_top+Editor_state.drawing_padding_top+36+50, 1) -- 45°edit.run_after_mouse_release(Editor_state, Editor_state.left+35+50, Editor_state.top+Editor_state.drawing_padding_top+36+50, 1) -- 45° - replacement in drawing_tests.lua at line 226
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 233
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_draw_polygon/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_draw_polygon/baseline/y') - replacement in drawing_tests.lua at line 237
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1) - replacement in drawing_tests.lua at line 240
App.mouse_move(Editor_state.margin_left+65, Editor_state.margin_top+Editor_state.drawing_padding_top+36)App.mouse_move(Editor_state.left+65, Editor_state.top+Editor_state.drawing_padding_top+36) - replacement in drawing_tests.lua at line 243
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+26, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+26, 1) - replacement in drawing_tests.lua at line 264
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 271
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_draw_rectangle/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_draw_rectangle/baseline/y') - replacement in drawing_tests.lua at line 275
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 278
App.mouse_move(Editor_state.margin_left+42, Editor_state.margin_top+Editor_state.drawing_padding_top+45)App.mouse_move(Editor_state.left+42, Editor_state.top+Editor_state.drawing_padding_top+45) - replacement in drawing_tests.lua at line 281
App.mouse_move(Editor_state.margin_left+75, Editor_state.margin_top+Editor_state.drawing_padding_top+76)App.mouse_move(Editor_state.left+75, Editor_state.top+Editor_state.drawing_padding_top+76) - replacement in drawing_tests.lua at line 284
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+15, Editor_state.margin_top+Editor_state.drawing_padding_top+26, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+15, Editor_state.top+Editor_state.drawing_padding_top+26, 1) - replacement in drawing_tests.lua at line 308
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 315
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_draw_rectangle_intermediate/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_draw_rectangle_intermediate/baseline/y') - replacement in drawing_tests.lua at line 319
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 322
App.mouse_move(Editor_state.margin_left+42, Editor_state.margin_top+Editor_state.drawing_padding_top+45)App.mouse_move(Editor_state.left+42, Editor_state.top+Editor_state.drawing_padding_top+45) - replacement in drawing_tests.lua at line 325
App.mouse_move(Editor_state.margin_left+75, Editor_state.margin_top+Editor_state.drawing_padding_top+76)App.mouse_move(Editor_state.left+75, Editor_state.top+Editor_state.drawing_padding_top+76) - replacement in drawing_tests.lua at line 344
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 351
check_eq(Editor_state.lines[1].y, Editor_state.margin_top+Editor_state.drawing_padding_top, 'F - test_draw_square/baseline/y')check_eq(Editor_state.lines[1].y, Editor_state.top+Editor_state.drawing_padding_top, 'F - test_draw_square/baseline/y') - replacement in drawing_tests.lua at line 355
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 358
App.mouse_move(Editor_state.margin_left+42, Editor_state.margin_top+Editor_state.drawing_padding_top+45)App.mouse_move(Editor_state.left+42, Editor_state.top+Editor_state.drawing_padding_top+45) - replacement in drawing_tests.lua at line 361
App.mouse_move(Editor_state.margin_left+65, Editor_state.margin_top+Editor_state.drawing_padding_top+66)App.mouse_move(Editor_state.left+65, Editor_state.top+Editor_state.drawing_padding_top+66) - replacement in drawing_tests.lua at line 364
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+15, Editor_state.margin_top+Editor_state.drawing_padding_top+26, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+15, Editor_state.top+Editor_state.drawing_padding_top+26, 1) - replacement in drawing_tests.lua at line 388
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 394
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 431
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 436
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 465
App.mouse_move(Editor_state.margin_left+26, Editor_state.margin_top+Editor_state.drawing_padding_top+44)App.mouse_move(Editor_state.left+26, Editor_state.top+Editor_state.drawing_padding_top+44) - replacement in drawing_tests.lua at line 471
edit.run_after_mouse_click(Editor_state, Editor_state.margin_left+26, Editor_state.margin_top+Editor_state.drawing_padding_top+44, 1)edit.run_after_mouse_click(Editor_state, Editor_state.left+26, Editor_state.top+Editor_state.drawing_padding_top+44, 1) - replacement in drawing_tests.lua at line 488
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 493
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+46, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+46, 1) - replacement in drawing_tests.lua at line 504
App.mouse_move(Editor_state.margin_left+26, Editor_state.margin_top+Editor_state.drawing_padding_top+44)App.mouse_move(Editor_state.left+26, Editor_state.top+Editor_state.drawing_padding_top+44) - replacement in drawing_tests.lua at line 514
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 519
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+55, Editor_state.margin_top+Editor_state.drawing_padding_top+26, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+55, Editor_state.top+Editor_state.drawing_padding_top+26, 1) - replacement in drawing_tests.lua at line 528
App.mouse_move(Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36)App.mouse_move(Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36) - replacement in drawing_tests.lua at line 543
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 548
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+55, Editor_state.margin_top+Editor_state.drawing_padding_top+26, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+55, Editor_state.top+Editor_state.drawing_padding_top+26, 1) - replacement in drawing_tests.lua at line 557
App.mouse_move(Editor_state.margin_left+25, Editor_state.margin_top+Editor_state.drawing_padding_top+26)App.mouse_move(Editor_state.left+25, Editor_state.top+Editor_state.drawing_padding_top+26) - replacement in drawing_tests.lua at line 567
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 573
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1) - replacement in drawing_tests.lua at line 576
App.mouse_move(Editor_state.margin_left+65, Editor_state.margin_top+Editor_state.drawing_padding_top+36)App.mouse_move(Editor_state.left+65, Editor_state.top+Editor_state.drawing_padding_top+36) - replacement in drawing_tests.lua at line 579
App.mouse_move(Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+26)App.mouse_move(Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+26) - replacement in drawing_tests.lua at line 582
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+14, Editor_state.margin_top+Editor_state.drawing_padding_top+16, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+14, Editor_state.top+Editor_state.drawing_padding_top+16, 1) - replacement in drawing_tests.lua at line 588
App.mouse_move(Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+26)App.mouse_move(Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+26) - replacement in drawing_tests.lua at line 598
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 604
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1) - replacement in drawing_tests.lua at line 607
App.mouse_move(Editor_state.margin_left+65, Editor_state.margin_top+Editor_state.drawing_padding_top+36)App.mouse_move(Editor_state.left+65, Editor_state.top+Editor_state.drawing_padding_top+36) - replacement in drawing_tests.lua at line 610
edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+14, Editor_state.margin_top+Editor_state.drawing_padding_top+16, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+14, Editor_state.top+Editor_state.drawing_padding_top+16, 1) - replacement in drawing_tests.lua at line 616
App.mouse_move(Editor_state.margin_left+65, Editor_state.margin_top+Editor_state.drawing_padding_top+36)App.mouse_move(Editor_state.left+65, Editor_state.top+Editor_state.drawing_padding_top+36) - replacement in drawing_tests.lua at line 626
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 632
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 672
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 677
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1) - replacement in drawing_tests.lua at line 692
App.mouse_move(Editor_state.margin_left+26, Editor_state.margin_top+Editor_state.drawing_padding_top+44)App.mouse_move(Editor_state.left+26, Editor_state.top+Editor_state.drawing_padding_top+44) - replacement in drawing_tests.lua at line 698
edit.run_after_mouse_click(Editor_state, Editor_state.margin_left+26, Editor_state.margin_top+Editor_state.drawing_padding_top+44, 1)edit.run_after_mouse_click(Editor_state, Editor_state.left+26, Editor_state.top+Editor_state.drawing_padding_top+44, 1) - replacement in drawing_tests.lua at line 722
App.screen.init{width=Editor_state.margin_width+256, height=300} -- drawing coordinates 1:1 with pixelsApp.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - replacement in drawing_tests.lua at line 727
edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+5, Editor_state.margin_top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.margin_left+55, Editor_state.margin_top+Editor_state.drawing_padding_top+26, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+5, Editor_state.top+Editor_state.drawing_padding_top+6, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_press(Editor_state, Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+55, Editor_state.top+Editor_state.drawing_padding_top+26, 1) - replacement in drawing_tests.lua at line 736
App.mouse_move(Editor_state.margin_left+35, Editor_state.margin_top+Editor_state.drawing_padding_top+36)App.mouse_move(Editor_state.left+35, Editor_state.top+Editor_state.drawing_padding_top+36) - replacement in drawing.lua at line 9
if pmx < App.screen.width-State.margin_right and pmy > line.y and pmy < line.y+Drawing.pixels(line.h) thenif pmx < State.right and pmy > line.y and pmy < line.y+Drawing.pixels(line.h) then - replacement in drawing.lua at line 11
love.graphics.rectangle('line', State.margin_left,line.y, App.screen.width-State.margin_width,Drawing.pixels(line.h))love.graphics.rectangle('line', State.left,line.y, State.width,Drawing.pixels(line.h)) - replacement in drawing.lua at line 13
icon[State.current_drawing_mode](App.screen.width-State.margin_right-22, line.y+4)icon[State.current_drawing_mode](State.right-22, line.y+4) - replacement in drawing.lua at line 15
icon[State.previous_drawing_mode](App.screen.width-State.margin_right-22, line.y+4)icon[State.previous_drawing_mode](State.right-22, line.y+4) - replacement in drawing.lua at line 29
local mx,my = Drawing.coord(pmx-State.margin_left), Drawing.coord(pmy-line.y)local mx,my = Drawing.coord(pmx-State.left), Drawing.coord(pmy-line.y) - replacement in drawing.lua at line 38
Drawing.draw_shape(State.margin_left,line.y, line, shape)Drawing.draw_shape(State.left,line.y, line, shape) - replacement in drawing.lua at line 44
love.graphics.circle('line', Drawing.pixels(p.x)+State.margin_left,Drawing.pixels(p.y)+line.y, 4)love.graphics.circle('line', Drawing.pixels(p.x)+State.left,Drawing.pixels(p.y)+line.y, 4) - replacement in drawing.lua at line 47
love.graphics.circle('fill', Drawing.pixels(p.x)+State.margin_left,Drawing.pixels(p.y)+line.y, 2)love.graphics.circle('fill', Drawing.pixels(p.x)+State.left,Drawing.pixels(p.y)+line.y, 2) - replacement in drawing.lua at line 51
local x,y = Drawing.pixels(p.x)+State.margin_left+5, Drawing.pixels(p.y)+line.y+5local x,y = Drawing.pixels(p.x)+State.left+5, Drawing.pixels(p.y)+line.y+5 - replacement in drawing.lua at line 69
Drawing.draw_pending_shape(State.margin_left,line.y, line)Drawing.draw_pending_shape(State.left,line.y, line) - replacement in drawing.lua at line 207
return y >= drawing.y and y < drawing.y + Drawing.pixels(drawing.h) and x >= Editor_state.margin_left and x < App.screen.width-Editor_state.margin_rightreturn y >= drawing.y and y < drawing.y + Drawing.pixels(drawing.h) and x >= Editor_state.left and x < Editor_state.right - replacement in drawing.lua at line 212
drawing.pending = {mode=State.current_drawing_mode, points={{x=Drawing.coord(x-State.margin_left), y=Drawing.coord(y-drawing.y)}}}drawing.pending = {mode=State.current_drawing_mode, points={{x=Drawing.coord(x-State.left), y=Drawing.coord(y-drawing.y)}}} - replacement in drawing.lua at line 214
local j = Drawing.insert_point(drawing.points, Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y))local j = Drawing.insert_point(drawing.points, Drawing.coord(x-State.left), Drawing.coord(y-drawing.y)) - replacement in drawing.lua at line 217
local j = Drawing.insert_point(drawing.points, Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y))local j = Drawing.insert_point(drawing.points, Drawing.coord(x-State.left), Drawing.coord(y-drawing.y)) - replacement in drawing.lua at line 220
local j = Drawing.insert_point(drawing.points, Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y))local j = Drawing.insert_point(drawing.points, Drawing.coord(x-State.left), Drawing.coord(y-drawing.y)) - replacement in drawing.lua at line 241
table.insert(drawing.pending.points, {x=Drawing.coord(App.mouse_x()-State.margin_left), y=Drawing.coord(App.mouse_y()-drawing.y)})table.insert(drawing.pending.points, {x=Drawing.coord(App.mouse_x()-State.left), y=Drawing.coord(App.mouse_y()-drawing.y)}) - replacement in drawing.lua at line 243
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 251
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 297
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 304
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 312
App.mouse_move(State.margin_left+Drawing.pixels(p2.x), drawing.y+Drawing.pixels(p2.y))App.mouse_move(State.left+Drawing.pixels(p2.x), drawing.y+Drawing.pixels(p2.y)) - replacement in drawing.lua at line 316
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 324
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 339
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 350
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 357
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 463
local mx,my = Drawing.coord(App.mouse_x()-State.margin_left), Drawing.coord(App.mouse_y()-drawing.y)local mx,my = Drawing.coord(App.mouse_x()-State.left), Drawing.coord(App.mouse_y()-drawing.y) - replacement in drawing.lua at line 468
local mx,my = Drawing.coord(App.mouse_x()-State.margin_left), Drawing.coord(App.mouse_y()-drawing.y)local mx,my = Drawing.coord(App.mouse_x()-State.left), Drawing.coord(App.mouse_y()-drawing.y) - replacement in drawing.lua at line 479
local mx,my = Drawing.coord(App.mouse_x()-State.margin_left), Drawing.coord(App.mouse_y()-drawing.y)local mx,my = Drawing.coord(App.mouse_x()-State.left), Drawing.coord(App.mouse_y()-drawing.y) - replacement in drawing.lua at line 617
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 634
local mx,my = Drawing.coord(x-State.margin_left), Drawing.coord(y-drawing.y)local mx,my = Drawing.coord(x-State.left), Drawing.coord(y-drawing.y) - replacement in drawing.lua at line 703
return (cx-px)*(cx-px) + (cy-py)*(cy-py) < Editor_state.margin_leftreturn (cx-px)*(cx-px) + (cy-py)*(cy-py) < Editor_state.left - replacement in drawing.lua at line 707
return math.floor(n*(App.screen.width-Editor_state.margin_width)/256)return math.floor(n*Editor_state.width/256) - replacement in drawing.lua at line 710
return math.floor(n*256/(App.screen.width-Editor_state.margin_width))return math.floor(n*256/Editor_state.width)