(moving_stroke, parent_stroke)
| 74 | |
| 75 | |
| 76 | def connect_strokes(moving_stroke, parent_stroke): |
| 77 | point = moving_stroke[0] |
| 78 | segment = min([(i - point) for i in parent_stroke]) + point |
| 79 | projection = segment - point |
| 80 | return [i + projection for i in moving_stroke] |
| 81 | |
| 82 | |
| 83 | class ConnectStrokes(Operator): |