Skip to content

Commit

Permalink
build: 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Aug 8, 2018
1 parent 9a98581 commit 2d86803
Show file tree
Hide file tree
Showing 437 changed files with 5,095 additions and 11,448 deletions.
286 changes: 186 additions & 100 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.11 for amd
* Hilo 1.2.0 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.

23 changes: 17 additions & 6 deletions build/amd/hilo/core/Hilo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Hilo 1.1.11 for amd
* Hilo 1.2.0 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down Expand Up @@ -27,7 +27,7 @@ var Hilo = {
* Hilo version
* @type String
*/
version: '1.1.11',
version: '1.2.0',
/**
* @language=en
* Gets a globally unique id. Such as Stage1, Bitmap2 etc.
Expand Down Expand Up @@ -231,12 +231,23 @@ var Hilo = {
if (this.cacheStateIfChanged(obj, ['depth'], stateCache)) {
style.zIndex = obj.depth + 1;
}
if (flag = this.cacheStateIfChanged(obj, ['pivotX', 'pivotY'], stateCache)) {
style[prefix + 'TransformOrigin'] = obj.pivotX + px + ' ' + obj.pivotY + px;
if (obj.transform){
var transform = obj.transform;
if (flag = this.cacheStateIfChanged(obj, ['pivotX', 'pivotY'], stateCache)) {
style[prefix + 'TransformOrigin'] = '0 0';
}
style[prefix + 'Transform'] = 'matrix3d(' + transform.a + ', '+ transform.b + ', 0, 0, '+ transform.c + ', '+ transform.d + ', 0, 0, 0, 0, 1, 0, '+ transform.tx + ', '+ transform.ty + ', 0, 1)';
}
if (this.cacheStateIfChanged(obj, ['x', 'y', 'rotation', 'scaleX', 'scaleY'], stateCache) || flag) {
style[prefix + 'Transform'] = this.getTransformCSS(obj);
else{
if (flag = this.cacheStateIfChanged(obj, ['pivotX', 'pivotY'], stateCache)) {
style[prefix + 'TransformOrigin'] = obj.pivotX + px + ' ' + obj.pivotY + px;
}

if (this.cacheStateIfChanged(obj, ['x', 'y', 'rotation', 'scaleX', 'scaleY'], stateCache) || flag) {
style[prefix + 'Transform'] = this.getTransformCSS(obj);
}
}

if (this.cacheStateIfChanged(obj, ['background'], stateCache)) {
style.backgroundColor = obj.background;
}
Expand Down
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.11 for amd
* Hilo 1.2.0 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.11 for amd
* Hilo 1.2.0 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.11 for amd
* Hilo 1.2.0 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.11 for amd
* Hilo 1.2.0 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.

46 changes: 45 additions & 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.11 for amd
* Hilo 1.2.0 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down Expand Up @@ -29,6 +29,50 @@ var Matrix = Class.create(/** @lends Matrix.prototype */{
this.ty = ty;
},

/**
* set
* @param {Number} a
* @param {Number} b
* @param {Number} c
* @param {Number} d
* @param {Number} tx
* @param {Number} ty
*/
set: function(a, b, c, d, tx, ty){
this.a = a;
this.b = b;
this.c = c;
this.d = d;
this.tx = tx;
this.ty = ty;

return this;
},

/**
* copy
* @param {Matrix} mat
* @return {Matrix} this
*/
copy: function(mat){
this.a = mat.a;
this.b = mat.b;
this.c = mat.c;
this.d = mat.d;
this.tx = mat.tx;
this.ty = mat.ty;

return this;
},

/**
* clone
* @return {Matrix}
*/
clone: function(){
return new Matrix().copy(this);
},

/**
* @language=en
* Link a Matrix to current Matrix, in order to make geometry effects on these two composed more effective.
Expand Down
4 changes: 2 additions & 2 deletions 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.11 for amd
* Hilo 1.2.0 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.11 for amd
* Hilo 1.2.0 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down
3 changes: 2 additions & 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.11 for amd
* Hilo 1.2.0 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
Expand Down Expand Up @@ -49,6 +49,7 @@ var LoadQueue = Class.create(/** @lends LoadQueue.prototype */{
* <li><b>loader</b> - specified resource loader. If you specify this,we abandon choosing loader inside</li>
* <li><b>noCache</b> - a tag that set on or off to prevent cache,implemented by adding timestamp inside</li>
* <li><b>size</b> - predicted resource size, help calculating loading progress</li>
* <li><b>crossOrigin</b> - Whether cross-domain is needed. eg:crossOrigin='anonymous'</li>
* </ul>
* @returns {LoadQueue} 下载队列实例本身。
*/
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.11 for amd
* Hilo 1.2.0 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.11 for amd
* Hilo 1.2.0 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.11 for amd
* Hilo 1.2.0 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.11 for amd
* Hilo 1.2.0 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.

Loading

0 comments on commit 2d86803

Please sign in to comment.