| OLD | NEW |
| 1 var sunflower; | 1 var sunflower; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 let ORANGE = "orange"; | 4 let ORANGE = "orange"; |
| 5 let SEED_RADIUS = 2; | 5 let SEED_RADIUS = 2; |
| 6 let SCALE_FACTOR = 4; | 6 let SCALE_FACTOR = 4; |
| 7 let TAU = dart.notNull(math.PI) * 2; | 7 let TAU = dart.notNull(math.PI) * 2; |
| 8 let MAX_D = 300; | 8 let MAX_D = 300; |
| 9 let centerX = dart.notNull(MAX_D) / 2; | 9 let centerX = dart.notNull(MAX_D) / 2; |
| 10 let centerY = centerX; | 10 let centerY = centerX; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 exports.context.fill(); | 65 exports.context.fill(); |
| 66 exports.context.closePath(); | 66 exports.context.closePath(); |
| 67 exports.context.stroke(); | 67 exports.context.stroke(); |
| 68 } | 68 } |
| 69 } | 69 } |
| 70 class SunflowerSeed extends dart.mixin(Circle, CirclePainter) { | 70 class SunflowerSeed extends dart.mixin(Circle, CirclePainter) { |
| 71 SunflowerSeed(x, y, radius, color) { | 71 SunflowerSeed(x, y, radius, color) { |
| 72 if (color === void 0) | 72 if (color === void 0) |
| 73 color = null; | 73 color = null; |
| 74 super.Circle(x, y, radius); | 74 super.Circle(x, y, radius); |
| 75 if (color !== null) | 75 if (color != null) |
| 76 this.color = color; | 76 this.color = color; |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 // Exports: | 79 // Exports: |
| 80 exports.ORANGE = ORANGE; | 80 exports.ORANGE = ORANGE; |
| 81 exports.SEED_RADIUS = SEED_RADIUS; | 81 exports.SEED_RADIUS = SEED_RADIUS; |
| 82 exports.SCALE_FACTOR = SCALE_FACTOR; | 82 exports.SCALE_FACTOR = SCALE_FACTOR; |
| 83 exports.TAU = TAU; | 83 exports.TAU = TAU; |
| 84 exports.MAX_D = MAX_D; | 84 exports.MAX_D = MAX_D; |
| 85 exports.centerX = centerX; | 85 exports.centerX = centerX; |
| 86 exports.centerY = centerY; | 86 exports.centerY = centerY; |
| 87 exports.querySelector = querySelector; | 87 exports.querySelector = querySelector; |
| 88 exports.main = main; | 88 exports.main = main; |
| 89 exports.draw = draw; | 89 exports.draw = draw; |
| 90 exports.SunflowerSeed = SunflowerSeed; | 90 exports.SunflowerSeed = SunflowerSeed; |
| 91 exports.Circle = Circle; | 91 exports.Circle = Circle; |
| 92 exports.CirclePainter = CirclePainter; | 92 exports.CirclePainter = CirclePainter; |
| 93 })(sunflower || (sunflower = {})); | 93 })(sunflower || (sunflower = {})); |
| OLD | NEW |