Commit ee1514c
Do not wrap custom Translatable representations as precise types
The wrapping mechanism for Translatables when performing
Figure#translate...() operations currently wraps every instance of the
Translatable types provided by Draw2d. However, consumers may have
custom specializations of those types, which can be incompatible with
the implemented wrapping. This particularly applies to types like
PointList, for which precision implementations did not exist such that
consumers may use custom implementations of them.
This adapts the wrapping logic to ensure that only the relevant basic
Draw2d types are wrapped to avoid that custom specializations that are
potentially incompatible with the implemented wrapping mechanism get
wrapped as well.1 parent 426184f commit ee1514c
1 file changed
+13
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2092 | 2092 | | |
2093 | 2093 | | |
2094 | 2094 | | |
2095 | | - | |
2096 | | - | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
2101 | | - | |
2102 | | - | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
2103 | 2108 | | |
2104 | 2109 | | |
2105 | 2110 | | |
| |||
0 commit comments