Update clipsegment documentation
Per the tests here (https://github.com/Leaflet/Leaflet/blob/master/spec/suites/geometry/LineUtilSpec.js), and the implementation, clipSegement no longer modifies the points in place.
This commit is contained in:
parent
2bc8a8b762
commit
0c99f08c8b
@ -5517,9 +5517,9 @@ MyClass.FOO; // 'bar'</code></pre>
|
||||
<nobr><<a href="#bounds">Bounds</a>> <i>bounds</i> )</nobr>
|
||||
</code></td>
|
||||
|
||||
<td><code>-</code></td>
|
||||
<td><code><a href="#point">Point</a>[]</code></td>
|
||||
|
||||
<td>Clips the segment <code>a</code> to <code>b</code> by rectangular bounds (modifying the segment points directly!). Used by Leaflet to only show polyline points that are on the screen or near, increasing performance.</td>
|
||||
<td>Clips the segment <code>a</code> to <code>b</code> by rectangular bounds. Returns either false or an array of clipped points. Used by Leaflet to only show polyline points that are on the screen or near, increasing performance.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user