Commit ee2e9bd
charts: revert diagnostic logging + chart-line test config
The CN1SS:DBG diagnostic logging in ChartComponent.paint and
XYChart.draw plus the empty-dataset / labels-off variants of
ChartLineScreenshotTest narrowed the iOS GL+Metal blank-render to
LineChart.drawSeries -> AbstractChart.drawPath ->
g.drawShape(translatedPath, stroke) on the form-Graphics. The bug
is in the iOS port's GlobalGraphics.nativeDrawShape /
TextureAlphaMask path -- removing data from chart-line so drawSeries
isn't invoked produced a non-blank form (title bar visible) on iOS
Metal, while restoring drawSeries reliably reproduces the all-blank
PNG. drawShape on iOS form-Graphics aborts the entire frame, not
just the chart area; that's why even the form's title bar
disappears.
Revert the diagnostics now that the culprit is identified. The
chart-line config goes back to its real two-series LineChart so
Android, JavaSE and the (eventually-fixed) iOS path all keep meaning-
ful coverage. The Canvas.rotate xTranslate-conjugation fix in
16deb08 was investigated and ruled out -- it stays in place
because it's correct under the universal Graphics.setTransform
conjugation, just not the cause of this iOS-specific blank.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 532f52f commit ee2e9bd
3 files changed
Lines changed: 19 additions & 44 deletions
File tree
- CodenameOne/src/com/codename1/charts
- views
- scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests/charts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 309 | + | |
324 | 310 | | |
325 | 311 | | |
326 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 110 | | |
117 | 111 | | |
118 | 112 | | |
| |||
164 | 158 | | |
165 | 159 | | |
166 | 160 | | |
167 | | - | |
168 | 161 | | |
169 | 162 | | |
170 | 163 | | |
| |||
501 | 494 | | |
502 | 495 | | |
503 | 496 | | |
504 | | - | |
505 | 497 | | |
506 | 498 | | |
507 | 499 | | |
| |||
Lines changed: 18 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 43 | + | |
| 44 | + | |
48 | 45 | | |
49 | 46 | | |
50 | | - | |
| 47 | + | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
0 commit comments