| OLD | NEW |
| 1 var math; | 1 var math; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 class _JenkinsSmiHash extends core.Object { | 4 class _JenkinsSmiHash extends core.Object { |
| 5 static combine(hash, value) { | 5 static combine(hash, value) { |
| 6 hash = 536870911 & dart.notNull(hash) + dart.notNull(value); | 6 hash = 536870911 & dart.notNull(hash) + dart.notNull(value); |
| 7 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) <<
10); | 7 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) <<
10); |
| 8 return dart.notNull(hash) ^ dart.notNull(hash) >> 6; | 8 return dart.notNull(hash) ^ dart.notNull(hash) >> 6; |
| 9 } | 9 } |
| 10 static finish(hash) { | 10 static finish(hash) { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 let _RectangleBase = _RectangleBase$(dart.dynamic); | 136 let _RectangleBase = _RectangleBase$(dart.dynamic); |
| 137 let Rectangle$ = dart.generic(function(T) { | 137 let Rectangle$ = dart.generic(function(T) { |
| 138 class Rectangle extends _RectangleBase$(T) { | 138 class Rectangle extends _RectangleBase$(T) { |
| 139 Rectangle(left, top, width, height) { | 139 Rectangle(left, top, width, height) { |
| 140 this.left = left; | 140 this.left = left; |
| 141 this.top = top; | 141 this.top = top; |
| 142 this.width = dart.as(width['<'](0) ? dart.notNull(width['unary-']()) * 0
: width, T); | 142 this.width = dart.as(width['<'](0) ? dart.notNull(width['unary-']()) * 0
: width, T); |
| 143 this.height = dart.as(height['<'](0) ? dart.notNull(height['unary-']())
* 0 : height, T); | 143 this.height = dart.as(height['<'](0) ? dart.notNull(height['unary-']())
* 0 : height, T); |
| 144 super._RectangleBase(); | 144 super._RectangleBase(); |
| 145 } | 145 } |
| 146 Rectangle$fromPoints(a, b) { | 146 fromPoints(a, b) { |
| 147 let left = dart.as(min(a.x, b.x), T); | 147 let left = dart.as(min(a.x, b.x), T); |
| 148 let width = dart.as(core.num['-'](max(a.x, b.x), left), T); | 148 let width = dart.as(core.num['-'](max(a.x, b.x), left), T); |
| 149 let top = dart.as(min(a.y, b.y), T); | 149 let top = dart.as(min(a.y, b.y), T); |
| 150 let height = dart.as(core.num['-'](max(a.y, b.y), top), T); | 150 let height = dart.as(core.num['-'](max(a.y, b.y), top), T); |
| 151 return new Rectangle(left, top, width, height); | 151 return new Rectangle(left, top, width, height); |
| 152 } | 152 } |
| 153 } | 153 } |
| 154 dart.defineNamedConstructor(Rectangle, 'fromPoints'); | 154 dart.defineNamedConstructor(Rectangle, 'fromPoints'); |
| 155 return Rectangle; | 155 return Rectangle; |
| 156 }); | 156 }); |
| 157 let Rectangle = Rectangle$(dart.dynamic); | 157 let Rectangle = Rectangle$(dart.dynamic); |
| 158 let _width = Symbol('_width'); | 158 let _width = Symbol('_width'); |
| 159 let _height = Symbol('_height'); | 159 let _height = Symbol('_height'); |
| 160 let MutableRectangle$ = dart.generic(function(T) { | 160 let MutableRectangle$ = dart.generic(function(T) { |
| 161 class MutableRectangle extends _RectangleBase$(T) { | 161 class MutableRectangle extends _RectangleBase$(T) { |
| 162 MutableRectangle(left, top, width, height) { | 162 MutableRectangle(left, top, width, height) { |
| 163 this.left = left; | 163 this.left = left; |
| 164 this.top = top; | 164 this.top = top; |
| 165 this[_width] = dart.as(width['<'](0) ? _clampToZero(width) : width, T); | 165 this[_width] = dart.as(width['<'](0) ? _clampToZero(width) : width, T); |
| 166 this[_height] = dart.as(height['<'](0) ? _clampToZero(height) : height,
T); | 166 this[_height] = dart.as(height['<'](0) ? _clampToZero(height) : height,
T); |
| 167 super._RectangleBase(); | 167 super._RectangleBase(); |
| 168 } | 168 } |
| 169 MutableRectangle$fromPoints(a, b) { | 169 fromPoints(a, b) { |
| 170 let left = dart.as(min(a.x, b.x), T); | 170 let left = dart.as(min(a.x, b.x), T); |
| 171 let width = dart.as(core.num['-'](max(a.x, b.x), left), T); | 171 let width = dart.as(core.num['-'](max(a.x, b.x), left), T); |
| 172 let top = dart.as(min(a.y, b.y), T); | 172 let top = dart.as(min(a.y, b.y), T); |
| 173 let height = dart.as(core.num['-'](max(a.y, b.y), top), T); | 173 let height = dart.as(core.num['-'](max(a.y, b.y), top), T); |
| 174 return new MutableRectangle(left, top, width, height); | 174 return new MutableRectangle(left, top, width, height); |
| 175 } | 175 } |
| 176 get width() { | 176 get width() { |
| 177 return this[_width]; | 177 return this[_width]; |
| 178 } | 178 } |
| 179 set width(width) { | 179 set width(width) { |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 exports.sin = sin; | 446 exports.sin = sin; |
| 447 exports.cos = cos; | 447 exports.cos = cos; |
| 448 exports.tan = tan; | 448 exports.tan = tan; |
| 449 exports.acos = acos; | 449 exports.acos = acos; |
| 450 exports.asin = asin; | 450 exports.asin = asin; |
| 451 exports.atan = atan; | 451 exports.atan = atan; |
| 452 exports.sqrt = sqrt; | 452 exports.sqrt = sqrt; |
| 453 exports.exp = exp; | 453 exports.exp = exp; |
| 454 exports.log = log; | 454 exports.log = log; |
| 455 })(math || (math = {})); | 455 })(math || (math = {})); |
| OLD | NEW |