dedup points while loading drawing from disk
[?]
Sep 4, 2022, 2:22 AM
LE3OPXMNV3D2ZNZRPUT4D4ZGCS6UILAJPQBU5JHESABRSV5XFJ6ACDependencies
- [2]
VDJSUX2Qtypos - [3]
R3JZDBI2drop heavyweight near check on file load/store - [4]
KJQ5FEYVround coordinates to integers in a few places - [5]
2XLZCWZCbugfix: rectangles and squares are now saved - [6]
VFJEVPPObugfix: function names - [7]
BYG5CEMVsupport for naming points - [8]
KTZQ57HVreplace globals with args in a few functions - [9]
QYIFOHW3first test! - [10]
VTYCPKNHdead code - [11]
VHQCNMARseveral more modules - [12]
YTSPVDZHfirst successful pagedown test, first bug found by test - [*]
BLWAYPKVextract a module
Change contents
- replacement in file.lua at line 64
shape.p1 = Drawing.insert_point(drawing.points, shape.p1.x, shape.p1.y)shape.p1 = Drawing.find_or_insert_point(drawing.points, shape.p1.x, shape.p1.y, --[[large width to minimize overlap]] 1600) - replacement in file.lua at line 67
shape.p2 = Drawing.insert_point(drawing.points, shape.p2.x, shape.p2.y)shape.p2 = Drawing.find_or_insert_point(drawing.points, shape.p2.x, shape.p2.y, --[[large width to minimize overlap]] 1600) - replacement in file.lua at line 72
shape.vertices[i] = Drawing.insert_point(drawing.points, p.x,p.y)shape.vertices[i] = Drawing.find_or_insert_point(drawing.points, p.x,p.y, --[[large width to minimize overlap]] 1600) - replacement in file.lua at line 77
shape.center = Drawing.insert_point(drawing.points, shape.center.x,shape.center.y)shape.center = Drawing.find_or_insert_point(drawing.points, shape.center.x,shape.center.y, --[[large width to minimize overlap]] 1600) - replacement in file.lua at line 157
shape.p1 = Drawing.insert_point(drawing.points, shape.p1.x, shape.p1.y)shape.p1 = Drawing.find_or_insert_point(drawing.points, shape.p1.x, shape.p1.y, --[[large width to minimize overlap]] 1600) - replacement in file.lua at line 160
shape.p2 = Drawing.insert_point(drawing.points, shape.p2.x, shape.p2.y)shape.p2 = Drawing.find_or_insert_point(drawing.points, shape.p2.x, shape.p2.y, --[[large width to minimize overlap]] 1600) - replacement in file.lua at line 165
shape.vertices[i] = Drawing.insert_point(drawing.points, p.x,p.y)shape.vertices[i] = Drawing.find_or_insert_point(drawing.points, p.x,p.y, --[[large width to minimize overlap]] 1600) - replacement in file.lua at line 170
shape.center = Drawing.insert_point(drawing.points, shape.center.x,shape.center.y)shape.center = Drawing.find_or_insert_point(drawing.points, shape.center.x,shape.center.y, --[[large width to minimize overlap]] 1600) - edit in drawing.lua at line 715
function Drawing.insert_point(points, x,y)table.insert(points, {x=x, y=y})return #pointsend