Transpiled version (13636L) is out of date.
1 | static JSpinner mapMethodLike dm_doubleSpinner(S field, double min, double max) {
|
2 | int steps = 10000; |
3 | ret liveValueSpinner(dm_fieldLiveValueWithConversions(field, Int, |
4 | d -> iround((clamp(d, min, max)-min)/(max-min)*steps), |
5 | i -> min+i*(max-min)/steps), 0, steps); |
6 | } |
Began life as a copy of #1024556
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1031894 |
| Snippet name: | dm_doubleSpinner - this is nonsense (why?) |
| Eternal ID of this version: | #1031894/3 |
| Text MD5: | bd95db39fdc44258cc595ae792b7da8b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-12 16:35:49 |
| Source code size: | 280 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 404 / 527 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |