Skip to content

Commit

Permalink
build 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Aug 28, 2017
1 parent 5db97ab commit d2e53c4
Show file tree
Hide file tree
Showing 386 changed files with 1,844 additions and 2,416 deletions.
572 changes: 253 additions & 319 deletions build/amd/hilo-amd.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/amd/hilo-amd.min.js

Large diffs are not rendered by default.

Binary file modified build/amd/hilo-amd.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion build/amd/hilo/core/Class.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/core/Class.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 13 additions & 80 deletions build/amd/hilo/core/Hilo.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
define('hilo/core/Hilo', function(){
define('hilo/core/Hilo', ['hilo/util/browser', 'hilo/util/util'], function(browser, util){



var win = window, doc = document, docElem = doc.documentElement,
uid = 0;

var hasWarnedDict = {};

/**
* @language=en
* @namespace Hilo The underlying core set of methods.
* @static
* @module hilo/core/Hilo
* @requires hilo/util/browser
* @requires hilo/util/util
*/
var Hilo = (function(){

var win = window, doc = document, docElem = doc.documentElement,
uid = 0;

var hasWarnedDict = {};
return {
var Hilo = {
/**
* Hilo version
* @type String
*/
version:'1.1.0',
version:'1.1.2',
/**
* @language=en
* Gets a globally unique id. Such as Stage1, Bitmap2 etc.
Expand Down Expand Up @@ -67,11 +67,7 @@ return {
* @returns {Object} Object after copying.
*/
copy: function(target, source, strict){
for(var key in source){
if(!strict || target.hasOwnProperty(key) || target[key] !== undefined){
target[key] = source[key];
}
}
util.copy(target, source, strict);
if(!hasWarnedDict.copy){
hasWarnedDict.copy = true;
console.warn('Hilo.copy has been Deprecated! Use Hilo.util.copy instead.');
Expand All @@ -82,69 +78,9 @@ return {
/**
* @language=en
* Browser feature set includes:
* <ul>
* <li><b>jsVendor</b> - Browser vendors js value CSS prefix. For example: webkit.</li>
* <li><b>cssVendor</b> - Browser vendors css value CSS prefix.</li>
* <li><b>supportTransform</b> - Whether to support CSS Transform transformation.</li>
* <li><b>supportTransform3D</b> - Whether to support CSS Transform 3D transformation.</li>
* <li><b>supportStorage</b> - Whether to support local stores like localStorage.</li>
* <li><b>supportTouch</b> - Whether to support the touch event.</li>
* <li><b>supportCanvas</b> - Whether to support the canvas element.</li>
* </ul>
* @see browser
*/
browser: (function(){
var ua = navigator.userAgent;
var data = {
iphone: /iphone/i.test(ua),
ipad: /ipad/i.test(ua),
ipod: /ipod/i.test(ua),
ios: /iphone|ipad|ipod/i.test(ua),
android: /android/i.test(ua),
webkit: /webkit/i.test(ua),
chrome: /chrome/i.test(ua),
safari: /safari/i.test(ua),
firefox: /firefox/i.test(ua),
ie: /msie/i.test(ua),
opera: /opera/i.test(ua),
supportTouch: 'ontouchstart' in win,
supportCanvas: doc.createElement('canvas').getContext != null,
supportStorage: false,
supportOrientation: 'orientation' in win,
supportDeviceMotion: 'ondevicemotion' in win
};

//`localStorage` is null or `localStorage.setItem` throws error in some cases (e.g. localStorage is disabled)
try{
var value = 'hilo';
localStorage.setItem(value, value);
localStorage.removeItem(value);
data.supportStorage = true;
}catch(e){}

//vendor prefix
var jsVendor = data.jsVendor = data.webkit ? 'webkit' : data.firefox ? 'webkit' : data.opera ? 'o' : data.ie ? 'ms' : '';
var cssVendor = data.cssVendor = '-' + jsVendor + '-';

//css transform/3d feature dectection
var testElem = doc.createElement('div'), style = testElem.style;
var supportTransform = style[jsVendor + 'Transform'] != undefined;
var supportTransform3D = style[jsVendor + 'Perspective'] != undefined;
if(supportTransform3D){
testElem.id = 'test3d';
style = doc.createElement('style');
style.textContent = '@media ('+ cssVendor +'transform-3d){#test3d{height:3px}}';
doc.head.appendChild(style);

docElem.appendChild(testElem);
supportTransform3D = testElem.offsetHeight == 3;
doc.head.removeChild(style);
docElem.removeChild(testElem);
}
data.supportTransform = supportTransform;
data.supportTransform3D = supportTransform3D;

return data;
})(),
browser: browser,

/**
* @language=en
Expand Down Expand Up @@ -375,9 +311,6 @@ return {
}
};

})();


return Hilo;

});
4 changes: 2 additions & 2 deletions build/amd/hilo/core/Hilo.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/event/EventMixin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/event/EventMixin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/game/Camera.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/game/Camera.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/game/Camera3d.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/game/Camera3d.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/game/ParticleSystem.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/game/ParticleSystem.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/geom/Matrix.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/geom/Matrix.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/loader/ImageLoader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/loader/ImageLoader.min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/loader/LoadQueue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/loader/LoadQueue.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/loader/ScriptLoader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/loader/ScriptLoader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/media/HTMLAudio.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/media/HTMLAudio.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/media/WebAudio.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/media/WebAudio.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/media/WebSound.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/media/WebSound.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/renderer/CanvasRenderer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/renderer/CanvasRenderer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/renderer/DOMRenderer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/renderer/DOMRenderer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/amd/hilo/renderer/Renderer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion build/amd/hilo/renderer/Renderer.min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
5 changes: 3 additions & 2 deletions build/amd/hilo/renderer/WebGLRenderer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Hilo 1.1.0 for amd
* Hilo 1.1.2 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
define('hilo/renderer/WebGLRenderer', ['hilo/core/Class', 'hilo/renderer/Renderer', 'hilo/geom/Matrix'], function(Class, Renderer, Matrix){
define('hilo/renderer/WebGLRenderer', ['hilo/core/Class', 'hilo/core/Hilo', 'hilo/renderer/Renderer', 'hilo/geom/Matrix'], function(Class, Hilo, Renderer, Matrix){



Expand All @@ -20,6 +20,7 @@ var DEG2RAD = Math.PI / 180;
* @param {Object} properties The properties to create a renderer, contains all writeable props of this class.
* @module hilo/renderer/WebGLRenderer
* @requires hilo/core/Class
* @requires hilo/core/Hilo
* @requires hilo/renderer/Renderer
* @requires hilo/geom/Matrix
* @property {WebGLRenderingContext} gl The WebGL context of the renderer, readonly.
Expand Down
Loading

0 comments on commit d2e53c4

Please sign in to comment.