/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to js/graph.js

  • Committer: Suren A. Chilingaryan
  • Date: 2009-03-07 09:12:49 UTC
  • Revision ID: csa@dside.dyndns.org-20090307091249-0f76jvezb277fomn
Support for dates prior to Jan 01, 1970

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    return function( coords, dimensions ) {
72
72
        if (self.window) {
73
73
            if ((dimensions.width < self.allWidth)&&(dimensions.height < self.allHeight)) {
74
 
                self.window.SetCustomWindow(0, 0);
 
74
                self.window.SetCustomWindow();
75
75
 
76
76
                for (var i = 0; i < self.axis.length; i++) {
77
 
                    self.window.SetCustomAxis(self.axis[i], 0, 0);
 
77
                    self.window.SetCustomAxis(self.axis[i]);
78
78
                }
79
79
            } else if (dimensions.height < self.allHeight) {
80
80
                var xmin = self.xmin + (self.xmax - self.xmin)*(coords.x1 - self.margins.left) / self.real_width;
82
82
                self.window.SetCustomWindow(xmin, xmax);
83
83
                
84
84
                for (var i = 0; i < self.axis.length; i++) {
85
 
                    self.window.SetCustomAxis(self.axis[i], 0, 0);
 
85
                    self.window.SetCustomAxis(self.axis[i]);
86
86
                }
87
87
            } else if (dimensions.width < self.allWidth) {
88
88
                for (var i = 0; i < self.axis.length; i++) {
109
109
GRAPH.prototype.onCancelCrop = function (self) {
110
110
    return function() {
111
111
        if (self.window) {
112
 
            self.window.SetCustomWindow(0,0);
 
112
            self.window.SetCustomWindow();
113
113
            for (var i = 0; i < self.axis.length; i++) {
114
 
                self.window.SetCustomAxis(self.axis[i], 0, 0);
 
114
                self.window.SetCustomAxis(self.axis[i]);
115
115
            }
116
116
        }
117
117
    }