Changeset 13683 for trunk/FACT++


Ignore:
Timestamp:
05/13/12 09:46:27 (12 years ago)
Author:
tbretz
Message:
Set a fixed precision for the units of the camera display
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/index.js

    r13678 r13683  
    12001200    {
    12011201        ctx.strokeStyle = "#"+color(16*i);
    1202         ctx.strokeText((v0+diff*i/10)+unit, cw-5, 120-i*12);
     1202        ctx.strokeText((v0+diff*i/10).toPrecision(3)+unit, cw-5, 120-i*12);
    12031203    }
    12041204}
Note: See TracChangeset for help on using the changeset viewer.