Commit af88c35
committed
Use linear segments for basis interpolation ends.
The first and last segment of a line interpolated using basis (B-spline)
interpolation are necessarily linear. WebKit appears to have a bug where linear
Bézier segments do not compute tangents correctly (presumably because the
control points are coincident with an end point, and the angle of a zero-length
vector is undefined). We can workaround this browser bug by using linear
segments for the start and end.1 parent 747c523 commit af88c35
3 files changed
Lines changed: 11 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4079 | 4079 | | |
4080 | 4080 | | |
4081 | 4081 | | |
4082 | | - | |
4083 | | - | |
4084 | | - | |
| 4082 | + | |
| 4083 | + | |
| 4084 | + | |
4085 | 4085 | | |
4086 | 4086 | | |
4087 | 4087 | | |
4088 | 4088 | | |
4089 | 4089 | | |
4090 | 4090 | | |
4091 | 4091 | | |
4092 | | - | |
4093 | | - | |
4094 | | - | |
4095 | | - | |
4096 | | - | |
4097 | | - | |
4098 | | - | |
4099 | | - | |
| 4092 | + | |
| 4093 | + | |
4100 | 4094 | | |
4101 | 4095 | | |
4102 | 4096 | | |
| |||
0 commit comments