Commit 76440e0
committed
refactor(as_points): dedup fast-extent idiom, fix stale 50k docs
- extract _fast_extent(element, cs) helper; the '_element_extent_fast(...) or
get_extent(...)' idiom was duplicated verbatim at the shapes as_points site
and the datashader-canvas helper
- fix docstrings that still said '~500k' after the threshold dropped to 50k
- trim _render_centroids_as_points docstring and a non-actionable comment
No behavior change: _fast_extent is identical to the inline form (verified
== get_extent on blobs), render_points byte-identical.1 parent 38086e2 commit 76440e0
4 files changed
Lines changed: 15 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1051 | 1051 | | |
1052 | 1052 | | |
1053 | 1053 | | |
1054 | | - | |
| 1054 | + | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
| 778 | + | |
782 | 779 | | |
783 | 780 | | |
784 | 781 | | |
| |||
1164 | 1161 | | |
1165 | 1162 | | |
1166 | 1163 | | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1172 | 1167 | | |
1173 | 1168 | | |
1174 | 1169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3976 | 3976 | | |
3977 | 3977 | | |
3978 | 3978 | | |
3979 | | - | |
3980 | | - | |
3981 | | - | |
3982 | | - | |
3983 | | - | |
| 3979 | + | |
3984 | 3980 | | |
3985 | 3981 | | |
3986 | 3982 | | |
| |||
4803 | 4799 | | |
4804 | 4800 | | |
4805 | 4801 | | |
4806 | | - | |
| 4802 | + | |
4807 | 4803 | | |
4808 | 4804 | | |
4809 | 4805 | | |
| |||
4864 | 4860 | | |
4865 | 4861 | | |
4866 | 4862 | | |
| 4863 | + | |
| 4864 | + | |
| 4865 | + | |
| 4866 | + | |
| 4867 | + | |
| 4868 | + | |
4867 | 4869 | | |
4868 | 4870 | | |
4869 | 4871 | | |
| |||
0 commit comments