1
1
/**
2
- * Hilo 1.3 .0 for amd
2
+ * Hilo 1.4 .0 for amd
3
3
* Copyright 2016 alibaba.com
4
4
* Licensed under the MIT License
5
5
*/
@@ -192,7 +192,7 @@ return browser;
192
192
193
193
} ) ;
194
194
/**
195
- * Hilo 1.3 .0 for amd
195
+ * Hilo 1.4 .0 for amd
196
196
* Copyright 2016 alibaba.com
197
197
* Licensed under the MIT License
198
198
*/
@@ -229,7 +229,7 @@ return util;
229
229
230
230
} ) ;
231
231
/**
232
- * Hilo 1.3 .0 for amd
232
+ * Hilo 1.4 .0 for amd
233
233
* Copyright 2016 alibaba.com
234
234
* Licensed under the MIT License
235
235
*/
@@ -257,7 +257,7 @@ var Hilo = {
257
257
* Hilo version
258
258
* @type String
259
259
*/
260
- version : '1.3 .0' ,
260
+ version : '1.4 .0' ,
261
261
/**
262
262
* @language =en
263
263
* Gets a globally unique id. Such as Stage1, Bitmap2 etc.
@@ -565,7 +565,7 @@ return Hilo;
565
565
566
566
} ) ;
567
567
/**
568
- * Hilo 1.3 .0 for amd
568
+ * Hilo 1.4 .0 for amd
569
569
* Copyright 2016 alibaba.com
570
570
* Licensed under the MIT License
571
571
*/
@@ -748,7 +748,7 @@ return Class;
748
748
749
749
} ) ;
750
750
/**
751
- * Hilo 1.3 .0 for amd
751
+ * Hilo 1.4 .0 for amd
752
752
* Copyright 2016 alibaba.com
753
753
* Licensed under the MIT License
754
754
*/
@@ -972,7 +972,7 @@ return Matrix;
972
972
973
973
} ) ;
974
974
/**
975
- * Hilo 1.3 .0 for amd
975
+ * Hilo 1.4 .0 for amd
976
976
* Copyright 2016 alibaba.com
977
977
* Licensed under the MIT License
978
978
*/
@@ -1125,7 +1125,7 @@ return EventMixin;
1125
1125
1126
1126
} ) ;
1127
1127
/**
1128
- * Hilo 1.3 .0 for amd
1128
+ * Hilo 1.4 .0 for amd
1129
1129
* Copyright 2016 alibaba.com
1130
1130
* Licensed under the MIT License
1131
1131
*/
@@ -1206,7 +1206,7 @@ return Drawable;
1206
1206
1207
1207
} ) ;
1208
1208
/**
1209
- * Hilo 1.3 .0 for amd
1209
+ * Hilo 1.4 .0 for amd
1210
1210
* Copyright 2016 alibaba.com
1211
1211
* Licensed under the MIT License
1212
1212
*/
@@ -1300,7 +1300,7 @@ return Renderer;
1300
1300
1301
1301
} ) ;
1302
1302
/**
1303
- * Hilo 1.3 .0 for amd
1303
+ * Hilo 1.4 .0 for amd
1304
1304
* Copyright 2016 alibaba.com
1305
1305
* Licensed under the MIT License
1306
1306
*/
@@ -1511,7 +1511,7 @@ return CanvasRenderer;
1511
1511
1512
1512
} ) ;
1513
1513
/**
1514
- * Hilo 1.3 .0 for amd
1514
+ * Hilo 1.4 .0 for amd
1515
1515
* Copyright 2016 alibaba.com
1516
1516
* Licensed under the MIT License
1517
1517
*/
@@ -1693,7 +1693,7 @@ return DOMRenderer;
1693
1693
1694
1694
} ) ;
1695
1695
/**
1696
- * Hilo 1.3 .0 for amd
1696
+ * Hilo 1.4 .0 for amd
1697
1697
* Copyright 2016 alibaba.com
1698
1698
* Licensed under the MIT License
1699
1699
*/
@@ -1750,7 +1750,13 @@ var WebGLRenderer = Class.create(/** @lends WebGLRenderer.prototype */{
1750
1750
}
1751
1751
}
1752
1752
return this . _isSupported ;
1753
- }
1753
+ } ,
1754
+ /**
1755
+ * WebGL context Options
1756
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes
1757
+ * @type {Object }
1758
+ */
1759
+ contextOptions : null
1754
1760
} ,
1755
1761
renderType :'webgl' ,
1756
1762
gl :null ,
@@ -1759,7 +1765,8 @@ var WebGLRenderer = Class.create(/** @lends WebGLRenderer.prototype */{
1759
1765
constructor : function ( properties ) {
1760
1766
WebGLRenderer . superclass . constructor . call ( this , properties ) ;
1761
1767
var that = this ;
1762
- this . gl = this . canvas . getContext ( "webgl" ) || this . canvas . getContext ( 'experimental-webgl' ) ;
1768
+ var contextOptions = WebGLRenderer . contextOptions || { } ;
1769
+ this . gl = this . canvas . getContext ( "webgl" , contextOptions ) || this . canvas . getContext ( 'experimental-webgl' , contextOptions ) ;
1763
1770
1764
1771
this . maxBatchNum = WebGLRenderer . MAX_BATCH_NUM ;
1765
1772
this . positionStride = WebGLRenderer . ATTRIBUTE_NUM * 4 ;
@@ -2270,7 +2277,7 @@ return WebGLRenderer;
2270
2277
2271
2278
} ) ;
2272
2279
/**
2273
- * Hilo 1.3 .0 for amd
2280
+ * Hilo 1.4 .0 for amd
2274
2281
* Copyright 2016 alibaba.com
2275
2282
* Licensed under the MIT License
2276
2283
*/
@@ -2767,7 +2774,7 @@ return View;
2767
2774
2768
2775
} ) ;
2769
2776
/**
2770
- * Hilo 1.3 .0 for amd
2777
+ * Hilo 1.4 .0 for amd
2771
2778
* Copyright 2016 alibaba.com
2772
2779
* Licensed under the MIT License
2773
2780
*/
@@ -2833,7 +2840,7 @@ return CacheMixin;
2833
2840
2834
2841
} ) ;
2835
2842
/**
2836
- * Hilo 1.3 .0 for amd
2843
+ * Hilo 1.4 .0 for amd
2837
2844
* Copyright 2016 alibaba.com
2838
2845
* Licensed under the MIT License
2839
2846
*/
@@ -3207,7 +3214,7 @@ return Container;
3207
3214
3208
3215
} ) ;
3209
3216
/**
3210
- * Hilo 1.3 .0 for amd
3217
+ * Hilo 1.4 .0 for amd
3211
3218
* Copyright 2016 alibaba.com
3212
3219
* Licensed under the MIT License
3213
3220
*/
@@ -3474,7 +3481,7 @@ return Stage;
3474
3481
3475
3482
} ) ;
3476
3483
/**
3477
- * Hilo 1.3 .0 for amd
3484
+ * Hilo 1.4 .0 for amd
3478
3485
* Copyright 2016 alibaba.com
3479
3486
* Licensed under the MIT License
3480
3487
*/
@@ -3552,7 +3559,7 @@ return Bitmap;
3552
3559
3553
3560
} ) ;
3554
3561
/**
3555
- * Hilo 1.3 .0 for amd
3562
+ * Hilo 1.4 .0 for amd
3556
3563
* Copyright 2016 alibaba.com
3557
3564
* Licensed under the MIT License
3558
3565
*/
@@ -3823,7 +3830,7 @@ return Sprite;
3823
3830
3824
3831
} ) ;
3825
3832
/**
3826
- * Hilo 1.3 .0 for amd
3833
+ * Hilo 1.4 .0 for amd
3827
3834
* Copyright 2016 alibaba.com
3828
3835
* Licensed under the MIT License
3829
3836
*/
@@ -3938,7 +3945,7 @@ return DOMElement;
3938
3945
3939
3946
} ) ;
3940
3947
/**
3941
- * Hilo 1.3 .0 for amd
3948
+ * Hilo 1.4 .0 for amd
3942
3949
* Copyright 2016 alibaba.com
3943
3950
* Licensed under the MIT License
3944
3951
*/
@@ -3948,7 +3955,7 @@ define('hilo/view/Graphics', ['hilo/core/Hilo', 'hilo/core/Class', 'hilo/view/Vi
3948
3955
3949
3956
/**
3950
3957
* @language =en
3951
- * <iframe src='../../../examples/Graphics.html?noHeader' width = '320 ' height = '400' scrolling='no'></iframe>
3958
+ * <iframe src='../../../examples/Graphics.html?noHeader' width = '430 ' height = '400' scrolling='no'></iframe>
3952
3959
* <br/>
3953
3960
* @class Graphics class contains a group of functions for creating vector graphics.
3954
3961
* @augments View
@@ -4500,7 +4507,7 @@ return Graphics;
4500
4507
4501
4508
} ) ;
4502
4509
/**
4503
- * Hilo 1.3 .0 for amd
4510
+ * Hilo 1.4 .0 for amd
4504
4511
* Copyright 2016 alibaba.com
4505
4512
* Licensed under the MIT License
4506
4513
*/
@@ -4548,7 +4555,7 @@ var Text = Class.create(/** @lends Text.prototype */{
4548
4555
this . _fontHeight = Text . measureFontHeight ( this . font ) ;
4549
4556
} ,
4550
4557
4551
- text : null ,
4558
+ text : '' ,
4552
4559
color : '#000' ,
4553
4560
textAlign : null ,
4554
4561
textVAlign : null ,
@@ -4753,7 +4760,7 @@ return Text;
4753
4760
4754
4761
} ) ;
4755
4762
/**
4756
- * Hilo 1.3 .0 for amd
4763
+ * Hilo 1.4 .0 for amd
4757
4764
* Copyright 2016 alibaba.com
4758
4765
* Licensed under the MIT License
4759
4766
*/
@@ -4937,7 +4944,7 @@ return BitmapText;
4937
4944
4938
4945
} ) ;
4939
4946
/**
4940
- * Hilo 1.3 .0 for amd
4947
+ * Hilo 1.4 .0 for amd
4941
4948
* Copyright 2016 alibaba.com
4942
4949
* Licensed under the MIT License
4943
4950
*/
@@ -5116,7 +5123,7 @@ return Button;
5116
5123
5117
5124
} ) ;
5118
5125
/**
5119
- * Hilo 1.3 .0 for amd
5126
+ * Hilo 1.4 .0 for amd
5120
5127
* Copyright 2016 alibaba.com
5121
5128
* Licensed under the MIT License
5122
5129
*/
@@ -5353,7 +5360,7 @@ return TextureAtlas;
5353
5360
5354
5361
} ) ;
5355
5362
/**
5356
- * Hilo 1.3 .0 for amd
5363
+ * Hilo 1.4 .0 for amd
5357
5364
* Copyright 2016 alibaba.com
5358
5365
* Licensed under the MIT License
5359
5366
*/
@@ -5582,7 +5589,7 @@ return Ticker;
5582
5589
5583
5590
} ) ;
5584
5591
/**
5585
- * Hilo 1.3 .0 for amd
5592
+ * Hilo 1.4 .0 for amd
5586
5593
* Copyright 2016 alibaba.com
5587
5594
* Licensed under the MIT License
5588
5595
*/
@@ -5630,7 +5637,7 @@ if (!fnProto.bind) {
5630
5637
5631
5638
} ) ;
5632
5639
/**
5633
- * Hilo 1.3 .0 for amd
5640
+ * Hilo 1.4 .0 for amd
5634
5641
* Copyright 2016 alibaba.com
5635
5642
* Licensed under the MIT License
5636
5643
*/
@@ -5769,7 +5776,7 @@ return drag;
5769
5776
5770
5777
} ) ;
5771
5778
/**
5772
- * Hilo 1.3 .0 for amd
5779
+ * Hilo 1.4 .0 for amd
5773
5780
* Copyright 2016 alibaba.com
5774
5781
* Licensed under the MIT License
5775
5782
*/
@@ -6219,7 +6226,7 @@ return Tween;
6219
6226
6220
6227
} ) ;
6221
6228
/**
6222
- * Hilo 1.3 .0 for amd
6229
+ * Hilo 1.4 .0 for amd
6223
6230
* Copyright 2016 alibaba.com
6224
6231
* Licensed under the MIT License
6225
6232
*/
@@ -6491,7 +6498,7 @@ return Ease;
6491
6498
6492
6499
} ) ;
6493
6500
/**
6494
- * Hilo 1.3 .0 for amd
6501
+ * Hilo 1.4 .0 for amd
6495
6502
* Copyright 2016 alibaba.com
6496
6503
* Licensed under the MIT License
6497
6504
*/
@@ -6539,7 +6546,7 @@ return ImageLoader;
6539
6546
6540
6547
} ) ;
6541
6548
/**
6542
- * Hilo 1.3 .0 for amd
6549
+ * Hilo 1.4 .0 for amd
6543
6550
* Copyright 2016 alibaba.com
6544
6551
* Licensed under the MIT License
6545
6552
*/
@@ -6606,7 +6613,7 @@ return ScriptLoader;
6606
6613
6607
6614
} ) ;
6608
6615
/**
6609
- * Hilo 1.3 .0 for amd
6616
+ * Hilo 1.4 .0 for amd
6610
6617
* Copyright 2016 alibaba.com
6611
6618
* Licensed under the MIT License
6612
6619
*/
@@ -6856,7 +6863,7 @@ return LoadQueue;
6856
6863
6857
6864
} ) ;
6858
6865
/**
6859
- * Hilo 1.3 .0 for amd
6866
+ * Hilo 1.4 .0 for amd
6860
6867
* Copyright 2016 alibaba.com
6861
6868
* Licensed under the MIT License
6862
6869
*/
@@ -7059,7 +7066,7 @@ return HTMLAudio;
7059
7066
7060
7067
} ) ;
7061
7068
/**
7062
- * Hilo 1.3 .0 for amd
7069
+ * Hilo 1.4 .0 for amd
7063
7070
* Copyright 2016 alibaba.com
7064
7071
* Licensed under the MIT License
7065
7072
*/
@@ -7376,7 +7383,7 @@ return WebAudio;
7376
7383
7377
7384
} ) ;
7378
7385
/**
7379
- * Hilo 1.3 .0 for amd
7386
+ * Hilo 1.4 .0 for amd
7380
7387
* Copyright 2016 alibaba.com
7381
7388
* Licensed under the MIT License
7382
7389
*/
@@ -7479,7 +7486,7 @@ return WebSound;
7479
7486
7480
7487
} ) ;
7481
7488
/**
7482
- * Hilo 1.3 .0 for amd
7489
+ * Hilo 1.4 .0 for amd
7483
7490
* Copyright 2016 alibaba.com
7484
7491
* Licensed under the MIT License
7485
7492
*/
@@ -7572,7 +7579,7 @@ return Camera;
7572
7579
7573
7580
} ) ;
7574
7581
/**
7575
- * Hilo 1.3 .0 for amd
7582
+ * Hilo 1.4 .0 for amd
7576
7583
* Copyright 2016 alibaba.com
7577
7584
* Licensed under the MIT License
7578
7585
*/
@@ -7759,7 +7766,7 @@ return Camera3d;
7759
7766
7760
7767
} ) ;
7761
7768
/**
7762
- * Hilo 1.3 .0 for amd
7769
+ * Hilo 1.4 .0 for amd
7763
7770
* Copyright 2016 alibaba.com
7764
7771
* Licensed under the MIT License
7765
7772
*/
0 commit comments