From 0de64e9c70c024779ea23f4d2d3fc0cc49b4b33f Mon Sep 17 00:00:00 2001 From: 06wj <06wj@163.com> Date: Fri, 28 Apr 2017 18:13:02 +0800 Subject: [PATCH] build v1.0.4 --- CHANGELOG.md | 9 + build/amd/hilo-amd.js | 235 +++++++++++++----- build/amd/hilo-amd.min.js | 8 +- build/amd/hilo-amd.zip | Bin 179890 -> 182077 bytes build/amd/hilo/core/Class.js | 2 +- build/amd/hilo/core/Class.min.js | 2 +- build/amd/hilo/core/Hilo.js | 4 +- build/amd/hilo/core/Hilo.min.js | 4 +- build/amd/hilo/event/EventMixin.js | 2 +- build/amd/hilo/event/EventMixin.min.js | 2 +- build/amd/hilo/game/Camera.js | 2 +- build/amd/hilo/game/Camera.min.js | 2 +- build/amd/hilo/game/Camera3d.js | 2 +- build/amd/hilo/game/Camera3d.min.js | 2 +- build/amd/hilo/game/ParticleSystem.js | 2 +- build/amd/hilo/game/ParticleSystem.min.js | 2 +- build/amd/hilo/geom/Matrix.js | 2 +- build/amd/hilo/geom/Matrix.min.js | 2 +- build/amd/hilo/loader/ImageLoader.js | 2 +- build/amd/hilo/loader/ImageLoader.min.js | 2 +- build/amd/hilo/loader/LoadQueue.js | 2 +- build/amd/hilo/loader/LoadQueue.min.js | 2 +- build/amd/hilo/loader/ScriptLoader.js | 2 +- build/amd/hilo/loader/ScriptLoader.min.js | 2 +- build/amd/hilo/media/HTMLAudio.js | 2 +- build/amd/hilo/media/HTMLAudio.min.js | 2 +- build/amd/hilo/media/WebAudio.js | 2 +- build/amd/hilo/media/WebAudio.min.js | 2 +- build/amd/hilo/media/WebSound.js | 2 +- build/amd/hilo/media/WebSound.min.js | 2 +- build/amd/hilo/renderer/CanvasRenderer.js | 2 +- build/amd/hilo/renderer/CanvasRenderer.min.js | 2 +- build/amd/hilo/renderer/DOMRenderer.js | 2 +- build/amd/hilo/renderer/DOMRenderer.min.js | 2 +- build/amd/hilo/renderer/Renderer.js | 2 +- build/amd/hilo/renderer/Renderer.min.js | 2 +- build/amd/hilo/renderer/WebGLRenderer.js | 2 +- build/amd/hilo/renderer/WebGLRenderer.min.js | 2 +- build/amd/hilo/tween/Ease.js | 2 +- build/amd/hilo/tween/Ease.min.js | 2 +- build/amd/hilo/tween/Tween.js | 15 +- build/amd/hilo/tween/Tween.min.js | 4 +- build/amd/hilo/util/TextureAtlas.js | 2 +- build/amd/hilo/util/TextureAtlas.min.js | 2 +- build/amd/hilo/util/Ticker.js | 23 +- build/amd/hilo/util/Ticker.min.js | 4 +- build/amd/hilo/util/drag.js | 2 +- build/amd/hilo/util/drag.min.js | 2 +- build/amd/hilo/util/polyfill.js | 2 +- build/amd/hilo/util/polyfill.min.js | 2 +- build/amd/hilo/view/Bitmap.js | 2 +- build/amd/hilo/view/Bitmap.min.js | 2 +- build/amd/hilo/view/BitmapText.js | 2 +- build/amd/hilo/view/BitmapText.min.js | 2 +- build/amd/hilo/view/Button.js | 2 +- build/amd/hilo/view/Button.min.js | 2 +- build/amd/hilo/view/CacheMixin.js | 10 +- build/amd/hilo/view/CacheMixin.min.js | 4 +- build/amd/hilo/view/Container.js | 2 +- build/amd/hilo/view/Container.min.js | 2 +- build/amd/hilo/view/DOMElement.js | 2 +- build/amd/hilo/view/DOMElement.min.js | 2 +- build/amd/hilo/view/Drawable.js | 2 +- build/amd/hilo/view/Drawable.min.js | 2 +- build/amd/hilo/view/Graphics.js | 123 ++++++++- build/amd/hilo/view/Graphics.min.js | 4 +- build/amd/hilo/view/Sprite.js | 2 +- build/amd/hilo/view/Sprite.min.js | 2 +- build/amd/hilo/view/Stage.js | 2 +- build/amd/hilo/view/Stage.min.js | 2 +- build/amd/hilo/view/Text.js | 2 +- build/amd/hilo/view/Text.min.js | 2 +- build/amd/hilo/view/View.js | 2 +- build/amd/hilo/view/View.min.js | 2 +- build/cmd/hilo-cmd.js | 235 +++++++++++++----- build/cmd/hilo-cmd.min.js | 8 +- build/cmd/hilo-cmd.zip | Bin 179786 -> 181945 bytes build/cmd/hilo/core/Class.js | 2 +- build/cmd/hilo/core/Class.min.js | 2 +- build/cmd/hilo/core/Hilo.js | 4 +- build/cmd/hilo/core/Hilo.min.js | 4 +- build/cmd/hilo/event/EventMixin.js | 2 +- build/cmd/hilo/event/EventMixin.min.js | 2 +- build/cmd/hilo/game/Camera.js | 2 +- build/cmd/hilo/game/Camera.min.js | 2 +- build/cmd/hilo/game/Camera3d.js | 2 +- build/cmd/hilo/game/Camera3d.min.js | 2 +- build/cmd/hilo/game/ParticleSystem.js | 2 +- build/cmd/hilo/game/ParticleSystem.min.js | 2 +- build/cmd/hilo/geom/Matrix.js | 2 +- build/cmd/hilo/geom/Matrix.min.js | 2 +- build/cmd/hilo/loader/ImageLoader.js | 2 +- build/cmd/hilo/loader/ImageLoader.min.js | 2 +- build/cmd/hilo/loader/LoadQueue.js | 2 +- build/cmd/hilo/loader/LoadQueue.min.js | 2 +- build/cmd/hilo/loader/ScriptLoader.js | 2 +- build/cmd/hilo/loader/ScriptLoader.min.js | 2 +- build/cmd/hilo/media/HTMLAudio.js | 2 +- build/cmd/hilo/media/HTMLAudio.min.js | 2 +- build/cmd/hilo/media/WebAudio.js | 2 +- build/cmd/hilo/media/WebAudio.min.js | 2 +- build/cmd/hilo/media/WebSound.js | 2 +- build/cmd/hilo/media/WebSound.min.js | 2 +- build/cmd/hilo/renderer/CanvasRenderer.js | 2 +- build/cmd/hilo/renderer/CanvasRenderer.min.js | 2 +- build/cmd/hilo/renderer/DOMRenderer.js | 2 +- build/cmd/hilo/renderer/DOMRenderer.min.js | 2 +- build/cmd/hilo/renderer/Renderer.js | 2 +- build/cmd/hilo/renderer/Renderer.min.js | 2 +- build/cmd/hilo/renderer/WebGLRenderer.js | 2 +- build/cmd/hilo/renderer/WebGLRenderer.min.js | 2 +- build/cmd/hilo/tween/Ease.js | 2 +- build/cmd/hilo/tween/Ease.min.js | 2 +- build/cmd/hilo/tween/Tween.js | 15 +- build/cmd/hilo/tween/Tween.min.js | 4 +- build/cmd/hilo/util/TextureAtlas.js | 2 +- build/cmd/hilo/util/TextureAtlas.min.js | 2 +- build/cmd/hilo/util/Ticker.js | 23 +- build/cmd/hilo/util/Ticker.min.js | 4 +- build/cmd/hilo/util/drag.js | 2 +- build/cmd/hilo/util/drag.min.js | 2 +- build/cmd/hilo/util/polyfill.js | 2 +- build/cmd/hilo/util/polyfill.min.js | 2 +- build/cmd/hilo/view/Bitmap.js | 2 +- build/cmd/hilo/view/Bitmap.min.js | 2 +- build/cmd/hilo/view/BitmapText.js | 2 +- build/cmd/hilo/view/BitmapText.min.js | 2 +- build/cmd/hilo/view/Button.js | 2 +- build/cmd/hilo/view/Button.min.js | 2 +- build/cmd/hilo/view/CacheMixin.js | 10 +- build/cmd/hilo/view/CacheMixin.min.js | 4 +- build/cmd/hilo/view/Container.js | 2 +- build/cmd/hilo/view/Container.min.js | 2 +- build/cmd/hilo/view/DOMElement.js | 2 +- build/cmd/hilo/view/DOMElement.min.js | 2 +- build/cmd/hilo/view/Drawable.js | 2 +- build/cmd/hilo/view/Drawable.min.js | 2 +- build/cmd/hilo/view/Graphics.js | 123 ++++++++- build/cmd/hilo/view/Graphics.min.js | 4 +- build/cmd/hilo/view/Sprite.js | 2 +- build/cmd/hilo/view/Sprite.min.js | 2 +- build/cmd/hilo/view/Stage.js | 2 +- build/cmd/hilo/view/Stage.min.js | 2 +- build/cmd/hilo/view/Text.js | 2 +- build/cmd/hilo/view/Text.min.js | 2 +- build/cmd/hilo/view/View.js | 2 +- build/cmd/hilo/view/View.min.js | 2 +- build/commonjs/core/Class.js | 2 +- build/commonjs/core/Class.min.js | 2 +- build/commonjs/core/Hilo.js | 4 +- build/commonjs/core/Hilo.min.js | 4 +- build/commonjs/event/EventMixin.js | 2 +- build/commonjs/event/EventMixin.min.js | 2 +- build/commonjs/game/Camera.js | 2 +- build/commonjs/game/Camera.min.js | 2 +- build/commonjs/game/Camera3d.js | 2 +- build/commonjs/game/Camera3d.min.js | 2 +- build/commonjs/game/ParticleSystem.js | 2 +- build/commonjs/game/ParticleSystem.min.js | 2 +- build/commonjs/geom/Matrix.js | 2 +- build/commonjs/geom/Matrix.min.js | 2 +- build/commonjs/hilo-commonjs.zip | Bin 106687 -> 107790 bytes build/commonjs/loader/ImageLoader.js | 2 +- build/commonjs/loader/ImageLoader.min.js | 2 +- build/commonjs/loader/LoadQueue.js | 2 +- build/commonjs/loader/LoadQueue.min.js | 2 +- build/commonjs/loader/ScriptLoader.js | 2 +- build/commonjs/loader/ScriptLoader.min.js | 2 +- build/commonjs/media/HTMLAudio.js | 2 +- build/commonjs/media/HTMLAudio.min.js | 2 +- build/commonjs/media/WebAudio.js | 2 +- build/commonjs/media/WebAudio.min.js | 2 +- build/commonjs/media/WebSound.js | 2 +- build/commonjs/media/WebSound.min.js | 2 +- build/commonjs/renderer/CanvasRenderer.js | 2 +- build/commonjs/renderer/CanvasRenderer.min.js | 2 +- build/commonjs/renderer/DOMRenderer.js | 2 +- build/commonjs/renderer/DOMRenderer.min.js | 2 +- build/commonjs/renderer/Renderer.js | 2 +- build/commonjs/renderer/Renderer.min.js | 2 +- build/commonjs/renderer/WebGLRenderer.js | 2 +- build/commonjs/renderer/WebGLRenderer.min.js | 2 +- build/commonjs/tween/Ease.js | 2 +- build/commonjs/tween/Ease.min.js | 2 +- build/commonjs/tween/Tween.js | 15 +- build/commonjs/tween/Tween.min.js | 4 +- build/commonjs/util/TextureAtlas.js | 2 +- build/commonjs/util/TextureAtlas.min.js | 2 +- build/commonjs/util/Ticker.js | 23 +- build/commonjs/util/Ticker.min.js | 4 +- build/commonjs/util/drag.js | 2 +- build/commonjs/util/drag.min.js | 2 +- build/commonjs/util/polyfill.js | 2 +- build/commonjs/util/polyfill.min.js | 2 +- build/commonjs/view/Bitmap.js | 2 +- build/commonjs/view/Bitmap.min.js | 2 +- build/commonjs/view/BitmapText.js | 2 +- build/commonjs/view/BitmapText.min.js | 2 +- build/commonjs/view/Button.js | 2 +- build/commonjs/view/Button.min.js | 2 +- build/commonjs/view/CacheMixin.js | 10 +- build/commonjs/view/CacheMixin.min.js | 4 +- build/commonjs/view/Container.js | 2 +- build/commonjs/view/Container.min.js | 2 +- build/commonjs/view/DOMElement.js | 2 +- build/commonjs/view/DOMElement.min.js | 2 +- build/commonjs/view/Drawable.js | 2 +- build/commonjs/view/Drawable.min.js | 2 +- build/commonjs/view/Graphics.js | 123 ++++++++- build/commonjs/view/Graphics.min.js | 4 +- build/commonjs/view/Sprite.js | 2 +- build/commonjs/view/Sprite.min.js | 2 +- build/commonjs/view/Stage.js | 2 +- build/commonjs/view/Stage.min.js | 2 +- build/commonjs/view/Text.js | 2 +- build/commonjs/view/Text.min.js | 2 +- build/commonjs/view/View.js | 2 +- build/commonjs/view/View.min.js | 2 +- build/flash/hilo-flash.js | 2 +- build/flash/hilo-flash.min.js | 2 +- build/kissy/hilo-kissy.js | 235 +++++++++++++----- build/kissy/hilo-kissy.min.js | 8 +- build/kissy/hilo-kissy.zip | Bin 181230 -> 183393 bytes build/kissy/hilo/core/Class.js | 2 +- build/kissy/hilo/core/Class.min.js | 2 +- build/kissy/hilo/core/Hilo.js | 4 +- build/kissy/hilo/core/Hilo.min.js | 4 +- build/kissy/hilo/event/EventMixin.js | 2 +- build/kissy/hilo/event/EventMixin.min.js | 2 +- build/kissy/hilo/game/Camera.js | 2 +- build/kissy/hilo/game/Camera.min.js | 2 +- build/kissy/hilo/game/Camera3d.js | 2 +- build/kissy/hilo/game/Camera3d.min.js | 2 +- build/kissy/hilo/game/ParticleSystem.js | 2 +- build/kissy/hilo/game/ParticleSystem.min.js | 2 +- build/kissy/hilo/geom/Matrix.js | 2 +- build/kissy/hilo/geom/Matrix.min.js | 2 +- build/kissy/hilo/loader/ImageLoader.js | 2 +- build/kissy/hilo/loader/ImageLoader.min.js | 2 +- build/kissy/hilo/loader/LoadQueue.js | 2 +- build/kissy/hilo/loader/LoadQueue.min.js | 2 +- build/kissy/hilo/loader/ScriptLoader.js | 2 +- build/kissy/hilo/loader/ScriptLoader.min.js | 2 +- build/kissy/hilo/media/HTMLAudio.js | 2 +- build/kissy/hilo/media/HTMLAudio.min.js | 2 +- build/kissy/hilo/media/WebAudio.js | 2 +- build/kissy/hilo/media/WebAudio.min.js | 2 +- build/kissy/hilo/media/WebSound.js | 2 +- build/kissy/hilo/media/WebSound.min.js | 2 +- build/kissy/hilo/renderer/CanvasRenderer.js | 2 +- .../kissy/hilo/renderer/CanvasRenderer.min.js | 2 +- build/kissy/hilo/renderer/DOMRenderer.js | 2 +- build/kissy/hilo/renderer/DOMRenderer.min.js | 2 +- build/kissy/hilo/renderer/Renderer.js | 2 +- build/kissy/hilo/renderer/Renderer.min.js | 2 +- build/kissy/hilo/renderer/WebGLRenderer.js | 2 +- .../kissy/hilo/renderer/WebGLRenderer.min.js | 2 +- build/kissy/hilo/tween/Ease.js | 2 +- build/kissy/hilo/tween/Ease.min.js | 2 +- build/kissy/hilo/tween/Tween.js | 15 +- build/kissy/hilo/tween/Tween.min.js | 4 +- build/kissy/hilo/util/TextureAtlas.js | 2 +- build/kissy/hilo/util/TextureAtlas.min.js | 2 +- build/kissy/hilo/util/Ticker.js | 23 +- build/kissy/hilo/util/Ticker.min.js | 4 +- build/kissy/hilo/util/drag.js | 2 +- build/kissy/hilo/util/drag.min.js | 2 +- build/kissy/hilo/util/polyfill.js | 2 +- build/kissy/hilo/util/polyfill.min.js | 2 +- build/kissy/hilo/view/Bitmap.js | 2 +- build/kissy/hilo/view/Bitmap.min.js | 2 +- build/kissy/hilo/view/BitmapText.js | 2 +- build/kissy/hilo/view/BitmapText.min.js | 2 +- build/kissy/hilo/view/Button.js | 2 +- build/kissy/hilo/view/Button.min.js | 2 +- build/kissy/hilo/view/CacheMixin.js | 10 +- build/kissy/hilo/view/CacheMixin.min.js | 4 +- build/kissy/hilo/view/Container.js | 2 +- build/kissy/hilo/view/Container.min.js | 2 +- build/kissy/hilo/view/DOMElement.js | 2 +- build/kissy/hilo/view/DOMElement.min.js | 2 +- build/kissy/hilo/view/Drawable.js | 2 +- build/kissy/hilo/view/Drawable.min.js | 2 +- build/kissy/hilo/view/Graphics.js | 123 ++++++++- build/kissy/hilo/view/Graphics.min.js | 4 +- build/kissy/hilo/view/Sprite.js | 2 +- build/kissy/hilo/view/Sprite.min.js | 2 +- build/kissy/hilo/view/Stage.js | 2 +- build/kissy/hilo/view/Stage.min.js | 2 +- build/kissy/hilo/view/Text.js | 2 +- build/kissy/hilo/view/Text.min.js | 2 +- build/kissy/hilo/view/View.js | 2 +- build/kissy/hilo/view/View.min.js | 2 +- build/standalone/hilo-standalone.js | 235 +++++++++++++----- build/standalone/hilo-standalone.min.js | 8 +- build/standalone/hilo-standalone.zip | Bin 179577 -> 181709 bytes build/standalone/hilo/core/Class.js | 2 +- build/standalone/hilo/core/Class.min.js | 2 +- build/standalone/hilo/core/Hilo.js | 4 +- build/standalone/hilo/core/Hilo.min.js | 4 +- build/standalone/hilo/event/EventMixin.js | 2 +- build/standalone/hilo/event/EventMixin.min.js | 2 +- build/standalone/hilo/game/Camera.js | 2 +- build/standalone/hilo/game/Camera.min.js | 2 +- build/standalone/hilo/game/Camera3d.js | 2 +- build/standalone/hilo/game/Camera3d.min.js | 2 +- build/standalone/hilo/game/ParticleSystem.js | 2 +- .../hilo/game/ParticleSystem.min.js | 2 +- build/standalone/hilo/geom/Matrix.js | 2 +- build/standalone/hilo/geom/Matrix.min.js | 2 +- build/standalone/hilo/loader/ImageLoader.js | 2 +- .../standalone/hilo/loader/ImageLoader.min.js | 2 +- build/standalone/hilo/loader/LoadQueue.js | 2 +- build/standalone/hilo/loader/LoadQueue.min.js | 2 +- build/standalone/hilo/loader/ScriptLoader.js | 2 +- .../hilo/loader/ScriptLoader.min.js | 2 +- build/standalone/hilo/media/HTMLAudio.js | 2 +- build/standalone/hilo/media/HTMLAudio.min.js | 2 +- build/standalone/hilo/media/WebAudio.js | 2 +- build/standalone/hilo/media/WebAudio.min.js | 2 +- build/standalone/hilo/media/WebSound.js | 2 +- build/standalone/hilo/media/WebSound.min.js | 2 +- .../hilo/renderer/CanvasRenderer.js | 2 +- .../hilo/renderer/CanvasRenderer.min.js | 2 +- build/standalone/hilo/renderer/DOMRenderer.js | 2 +- .../hilo/renderer/DOMRenderer.min.js | 2 +- build/standalone/hilo/renderer/Renderer.js | 2 +- .../standalone/hilo/renderer/Renderer.min.js | 2 +- .../standalone/hilo/renderer/WebGLRenderer.js | 2 +- .../hilo/renderer/WebGLRenderer.min.js | 2 +- build/standalone/hilo/tween/Ease.js | 2 +- build/standalone/hilo/tween/Ease.min.js | 2 +- build/standalone/hilo/tween/Tween.js | 15 +- build/standalone/hilo/tween/Tween.min.js | 4 +- build/standalone/hilo/util/TextureAtlas.js | 2 +- .../standalone/hilo/util/TextureAtlas.min.js | 2 +- build/standalone/hilo/util/Ticker.js | 23 +- build/standalone/hilo/util/Ticker.min.js | 4 +- build/standalone/hilo/util/drag.js | 2 +- build/standalone/hilo/util/drag.min.js | 2 +- build/standalone/hilo/util/polyfill.js | 2 +- build/standalone/hilo/util/polyfill.min.js | 2 +- build/standalone/hilo/view/Bitmap.js | 2 +- build/standalone/hilo/view/Bitmap.min.js | 2 +- build/standalone/hilo/view/BitmapText.js | 2 +- build/standalone/hilo/view/BitmapText.min.js | 2 +- build/standalone/hilo/view/Button.js | 2 +- build/standalone/hilo/view/Button.min.js | 2 +- build/standalone/hilo/view/CacheMixin.js | 10 +- build/standalone/hilo/view/CacheMixin.min.js | 4 +- build/standalone/hilo/view/Container.js | 2 +- build/standalone/hilo/view/Container.min.js | 2 +- build/standalone/hilo/view/DOMElement.js | 2 +- build/standalone/hilo/view/DOMElement.min.js | 2 +- build/standalone/hilo/view/Drawable.js | 2 +- build/standalone/hilo/view/Drawable.min.js | 2 +- build/standalone/hilo/view/Graphics.js | 123 ++++++++- build/standalone/hilo/view/Graphics.min.js | 4 +- build/standalone/hilo/view/Sprite.js | 2 +- build/standalone/hilo/view/Sprite.min.js | 2 +- build/standalone/hilo/view/Stage.js | 2 +- build/standalone/hilo/view/Stage.min.js | 2 +- build/standalone/hilo/view/Text.js | 2 +- build/standalone/hilo/view/Text.min.js | 2 +- build/standalone/hilo/view/View.js | 2 +- build/standalone/hilo/view/View.min.js | 2 +- package.json | 2 +- 367 files changed, 1821 insertions(+), 741 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e68b08a3..2de34c34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ + +## [1.0.4](https://github.com/hiloteam/hilo/compare/v1.0.3...v1.0.4) (2017-04-28) + + +### Bug Fixes + +* Tween Ease.Back bug ([1ecd93c](https://github.com/hiloteam/hilo/commit/1ecd93c)) + ## [1.0.3](https://github.com/hiloteam/hilo/compare/v1.0.2...v1.0.3) (2017-04-26) @@ -15,6 +23,7 @@ ### Features +* loadQueue add support for webp (#76)([6b00c62](https://github.com/hiloteam/hilo/commit/6b00c62)) * add typescript definitions ([#83](https://github.com/hiloteam/hilo/issues/83)) ([cd3f4d6](https://github.com/hiloteam/hilo/commit/cd3f4d6)) * graphics.drawSVGPath supports all attributes except Arcs, close [#85](https://github.com/hiloteam/hilo/issues/85) ([2002f04](https://github.com/hiloteam/hilo/commit/2002f04)), closes [#85](https://github.com/hiloteam/hilo/issues/85) diff --git a/build/amd/hilo-amd.js b/build/amd/hilo-amd.js index 2916ba25..51b44ef7 100644 --- a/build/amd/hilo-amd.js +++ b/build/amd/hilo-amd.js @@ -1,5 +1,5 @@ /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -24,7 +24,7 @@ return { * Hilo version * @type String */ - version:'1.0.2', + version:'1.0.4', /** * @language=en * Gets a globally unique id. Such as Stage1, Bitmap2 etc. @@ -376,7 +376,7 @@ return Hilo; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -559,7 +559,7 @@ return Class; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -739,7 +739,7 @@ return Matrix; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -892,7 +892,7 @@ return EventMixin; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -970,7 +970,7 @@ return Drawable; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -1063,7 +1063,7 @@ return Renderer; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -1302,7 +1302,7 @@ return CanvasRenderer; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -1484,7 +1484,7 @@ return DOMRenderer; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -2052,7 +2052,7 @@ return WebGLRenderer; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -2477,7 +2477,7 @@ return View; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -2503,7 +2503,7 @@ var CacheMixin = /** @lends CacheMixin# */ { * @param {Boolean} forceUpdate is force update cache. */ cache: function(forceUpdate){ - if(forceUpdate || this._cacheDirty || !this._cacheImage){ + if(forceUpdate || this._cacheDirty || !this.drawable){ this.updateCache(); } }, @@ -2522,10 +2522,10 @@ var CacheMixin = /** @lends CacheMixin# */ { _cacheCanvas.width = this.width; _cacheCanvas.height = this.height; this._draw(_cacheContext); - this._cacheImage = new Image(); - this._cacheImage.src = _cacheCanvas.toDataURL(); this.drawable = this.drawable||new Drawable(); - this.drawable.init(this._cacheImage); + this.drawable.init({ + image:_cacheCanvas.toDataURL() + }); this._cacheDirty = false; } }, @@ -2543,7 +2543,7 @@ return CacheMixin; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -2917,7 +2917,7 @@ return Container; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -3182,7 +3182,7 @@ return Stage; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -3260,7 +3260,7 @@ return Bitmap; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -3531,7 +3531,7 @@ return Sprite; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -3632,7 +3632,7 @@ return DOMElement; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -3965,7 +3965,7 @@ return Class.create(/** @lends Graphics.prototype */{ /** * @language=en - * Draw a path from the SVG data given by parameters. + * Draw a path from the SVG data given by parameters. Not support Arcs. * Demo: *
var path = 'M250 150 L150 350 L350 350 Z';
*var shape = new Hilo.Graphics({width:500, height:500});
@@ -3975,30 +3975,137 @@ return Class.create(/** @lends Graphics.prototype */{ */ drawSVGPath: function(pathData){ var me = this, addAction = me._addAction, - path = pathData.split(/,| (?=[a-zA-Z])/); - + path = pathData.replace(/,/g, ' ').replace(/-/g, ' -').split(/(?=[a-zA-Z])/); addAction.call(me, ['beginPath']); + var currentPoint = {x:0, y:0}; + var lastControlPoint = {x:0, y:0}; + var lastCmd; for(var i = 0, len = path.length; i < len; i++){ - var str = path[i], cmd = str[0].toUpperCase(), p = str.substring(1).split(/,| /); - if(p[0].length == 0) p.shift(); + var str = path[i]; + if(!str.length){ + continue; + } + var realCmd = str[0]; + var cmd = realCmd.toUpperCase(); + var p = this._getSVGParams(str); + var useRelative = cmd !== realCmd; switch(cmd){ case 'M': + if(useRelative){ + this._convertToAbsolute(currentPoint, p); + } addAction.call(me, ['moveTo', p[0], p[1]]); + this._setCurrentPoint(currentPoint, p[0], p[1]); break; case 'L': + if(useRelative){ + this._convertToAbsolute(currentPoint, p); + } addAction.call(me, ['lineTo', p[0], p[1]]); + this._setCurrentPoint(currentPoint, p[0], p[1]); break; - case 'C': - addAction.call(me, ['bezierCurveTo', p[0], p[1], p[2], p[3], p[4], p[5]]); + case 'H': + if(useRelative){ + p[0] += currentPoint.x; + } + addAction.call(me, ['lineTo', p[0], currentPoint.y]); + currentPoint.x = p[0]; + break; + case 'V': + if(useRelative){ + p[0] += currentPoint.y; + } + addAction.call(me, ['lineTo', currentPoint.x, p[0]]); + currentPoint.y = p[0]; break; case 'Z': addAction.call(me, ['closePath']); break; + case 'C': + if(useRelative){ + this._convertToAbsolute(currentPoint, p); + } + addAction.call(me, ['bezierCurveTo', p[0], p[1], p[2], p[3], p[4], p[5]]); + lastControlPoint.x = p[2]; + lastControlPoint.y = p[3]; + this._setCurrentPoint(currentPoint, p[4], p[5]); + break; + case 'S': + if(useRelative){ + this._convertToAbsolute(currentPoint, p); + } + if(lastCmd === 'C' || lastCmd === 'S'){ + controlPoint = this._getReflectionPoint(currentPoint, lastControlPoint); + } + else{ + controlPoint = currentPoint; + } + addAction.call(me, ['bezierCurveTo', controlPoint.x, controlPoint.y, p[0], p[1], p[2], p[3]]); + lastControlPoint.x = p[0]; + lastControlPoint.y = p[1]; + this._setCurrentPoint(currentPoint, p[2], p[3]); + break; + case 'Q': + if(useRelative){ + this._convertToAbsolute(currentPoint, p); + } + addAction.call(me, ['quadraticCurveTo', p[0], p[1], p[2], p[3]]); + lastControlPoint.x = p[0]; + lastControlPoint.y = p[1]; + this._setCurrentPoint(currentPoint, p[2], p[3]); + break; + case 'T': + if(useRelative){ + this._convertToAbsolute(currentPoint, p); + } + var controlPoint; + if(lastCmd === 'Q' || lastCmd === 'T'){ + controlPoint = this._getReflectionPoint(currentPoint, lastControlPoint); + } + else{ + controlPoint = currentPoint; + } + addAction.call(me, ['quadraticCurveTo', controlPoint.x, controlPoint.y, p[0], p[1]]); + lastControlPoint = controlPoint; + this._setCurrentPoint(currentPoint, p[0], p[1]); + break; } + lastCmd = cmd; + } return me; }, + _getSVGParams:function(str){ + var p = str.substring(1).replace(/[\s]+$|^[\s]+/g, '').split(/[\s]+/); + if(p[0].length == 0) { + p.shift(); + } + for(var i = 0, l = p.length;i < l;i ++){ + p[i] = parseFloat(p[i]); + } + return p; + }, + _convertToAbsolute:function(currentPoint, data){ + for(var i = 0, l = data.length;i < l;i ++){ + if(i%2 === 0){ + data[i] += currentPoint.x; + } + else{ + data[i] += currentPoint.y; + } + } + }, + _setCurrentPoint:function(currentPoint, x, y){ + currentPoint.x = x; + currentPoint.y = y; + }, + _getReflectionPoint:function(centerPoint, point){ + return { + x:centerPoint.x * 2 - point.x, + y:centerPoint.y * 2 - point.y + }; + }, /** * @language=en @@ -4078,7 +4185,7 @@ return Graphics; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -4331,7 +4438,7 @@ return Text; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -4515,7 +4622,7 @@ return BitmapText; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -4693,7 +4800,7 @@ return Button; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -4930,7 +5037,7 @@ return TextureAtlas; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -4977,13 +5084,11 @@ var Ticker = Class.create(/** @lends Ticker.prototype */{ window[Hilo.browser.jsVendor + 'RequestAnimationFrame']; var runLoop; - if(useRAF && raf){ - var tick = function(){ - self._tick(); - }; + if(useRAF && raf && interval < 17){ + this._useRAF = true; runLoop = function(){ - self._intervalId = setTimeout(runLoop, interval); - raf(tick); + self._intervalId = raf(runLoop); + self._tick(); }; }else{ runLoop = function(){ @@ -4992,6 +5097,7 @@ var Ticker = Class.create(/** @lends Ticker.prototype */{ }; } + this._paused = false; runLoop(); }, @@ -5000,9 +5106,17 @@ var Ticker = Class.create(/** @lends Ticker.prototype */{ * Stop the ticker. */ stop: function(){ - clearTimeout(this._intervalId); + if(this._useRAF){ + var cancelRAF = window.cancelAnimationFrame || + window[Hilo.browser.jsVendor + 'CancelAnimationFrame']; + cancelRAF(this._intervalId); + } + else{ + clearTimeout(this._intervalId); + } this._intervalId = null; this._lastTime = 0; + this._paused = true; }, /** @@ -5148,7 +5262,7 @@ return Ticker; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -5196,7 +5310,7 @@ if (!fnProto.bind) { }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -5307,7 +5421,7 @@ return drag; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -5394,7 +5508,7 @@ return Class.create(/** @lends Tween.prototype */{ }, target: null, - duration: 0, + duration: 1000, delay: 0, paused: false, loop: false, @@ -5546,11 +5660,15 @@ return Class.create(/** @lends Tween.prototype */{ //elapsed ratio var ratio = elapsed / me.duration, complete = false, callback; - ratio = ratio <= 0 ? 0 : ratio >= 1 ? 1 : me.ease ? me.ease(ratio) : ratio; + ratio = ratio <= 0 ? 0 : ratio >= 1 ? 1 : ratio; + var easeRatio = me.ease ? me.ease(ratio) : ratio; if(me.reverse){ //backward - if(me._reverseFlag < 0) ratio = 1 - ratio; + if(me._reverseFlag < 0) { + ratio = 1 - ratio; + easeRatio = 1 - easeRatio; + } //forward if(ratio < 1e-7){ //repeat complete or not loop @@ -5569,7 +5687,7 @@ return Class.create(/** @lends Tween.prototype */{ me.time = elapsed; //render & update callback - me._render(ratio); + me._render(easeRatio); (callback = me.onUpdate) && callback.call(me, ratio, me); //check if complete @@ -5696,6 +5814,7 @@ return Class.create(/** @lends Tween.prototype */{ * @returns {Tween|Array} An tween instance or an array of tween instance. */ fromTo: function(target, fromProps, toProps, params){ + params = params || {}; var isArray = target instanceof Array; target = isArray ? target : [target]; @@ -5744,7 +5863,7 @@ return Tween; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -6016,7 +6135,7 @@ return Ease; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -6064,7 +6183,7 @@ return ImageLoader; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -6131,7 +6250,7 @@ return ScriptLoader; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -6380,7 +6499,7 @@ return LoadQueue; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -6583,7 +6702,7 @@ return HTMLAudio; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -6900,7 +7019,7 @@ return WebAudio; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -6998,7 +7117,7 @@ return WebSound; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -7091,7 +7210,7 @@ return Camera; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ @@ -7278,7 +7397,7 @@ return Camera3d; }); /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ diff --git a/build/amd/hilo-amd.min.js b/build/amd/hilo-amd.min.js index 8f30b36e..472a7eea 100644 --- a/build/amd/hilo-amd.min.js +++ b/build/amd/hilo-amd.min.js @@ -1,8 +1,8 @@ /** - * Hilo 1.0.2 for amd + * Hilo 1.0.4 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ -define("hilo/core/Hilo",function(){var t=function(){var e=window,i=document,r=i.documentElement,n=0;return{version:"1.0.2",getUid:function(t){var e=++n;if(t){var i=t.charCodeAt(t.length-1);return i>=48&&i<=57&&(t+="_"),t+e}return e},viewToString:function(t){for(var e,i=t;i;)e=e?i.id+"."+e:i.id,i=i.parent;return e},copy:function(t,e,i){for(var r in e)i&&!t.hasOwnProperty(r)&&void 0===t[r]||(t[r]=e[r]);return t},browser:function(){var t=navigator.userAgent,n={iphone:/iphone/i.test(t),ipad:/ipad/i.test(t),ipod:/ipod/i.test(t),ios:/iphone|ipad|ipod/i.test(t),android:/android/i.test(t),webkit:/webkit/i.test(t),chrome:/chrome/i.test(t),safari:/safari/i.test(t),firefox:/firefox/i.test(t),ie:/msie/i.test(t),opera:/opera/i.test(t),supportTouch:"ontouchstart"in e,supportCanvas:null!=i.createElement("canvas").getContext,supportStorage:!1,supportOrientation:"orientation"in e,supportDeviceMotion:"ondevicemotion"in e};try{var a="hilo";localStorage.setItem(a,a),localStorage.removeItem(a),n.supportStorage=!0}catch(o){}var s=n.jsVendor=n.webkit?"webkit":n.firefox?"webkit":n.opera?"o":n.ie?"ms":"",h=n.cssVendor="-"+s+"-",l=i.createElement("div"),c=l.style,u=void 0!=c[s+"Transform"],d=void 0!=c[s+"Perspective"];return d&&(l.id="test3d",c=i.createElement("style"),c.textContent="@media ("+h+"transform-3d){#test3d{height:3px}}",i.head.appendChild(c),r.appendChild(l),d=3==l.offsetHeight,i.head.removeChild(c),r.removeChild(l)),n.supportTransform=u,n.supportTransform3D=d,n}(),event:function(){var t="ontouchstart"in e;return{POINTER_START:t?"touchstart":"mousedown",POINTER_MOVE:t?"touchmove":"mousemove",POINTER_END:t?"touchend":"mouseup"}}(),align:{TOP_LEFT:"TL",TOP:"T",TOP_RIGHT:"TR",LEFT:"L",CENTER:"C",RIGHT:"R",BOTTOM_LEFT:"BL",BOTTOM:"B",BOTTOM_RIGHT:"BR"},getElementRect:function(t){var i;try{i=t.getBoundingClientRect()}catch(n){i={top:t.offsetTop,left:t.offsetLeft,right:t.offsetLeft+t.offsetWidth,bottom:t.offsetTop+t.offsetHeight}}var a=(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)||0,o=(e.pageYOffset||r.scrollTop)-(r.clientTop||0)||0,s=e.getComputedStyle?getComputedStyle(t):t.currentStyle,h=parseInt,l=h(s.paddingLeft)+h(s.borderLeftWidth)||0,c=h(s.paddingTop)+h(s.borderTopWidth)||0,u=h(s.paddingRight)+h(s.borderRightWidth)||0,d=h(s.paddingBottom)+h(s.borderBottomWidth)||0,f=i.top||0,p=i.left||0,v=i.right||0,m=i.bottom||0;return{left:p+a+l,top:f+o+c,width:v-u-p-l,height:m-d-f-c}},createElement:function(t,e){var r,n,a,o=i.createElement(t);for(r in e)if(n=e[r],"style"===r)for(a in n)o.style[a]=n[a];else o[r]=n;return o},getElement:function(t){return i.getElementById(t)},setElementStyleByView:function(e){var i=e.drawable,r=i.domElement.style,n=e._stateCache||(e._stateCache={}),a=t.browser.jsVendor,o="px",s=!1;if(this.cacheStateIfChanged(e,["visible"],n)&&(r.display=e.visible?"":"none"),this.cacheStateIfChanged(e,["alpha"],n)&&(r.opacity=e.alpha),e.visible&&!(e.alpha<=0)){this.cacheStateIfChanged(e,["width"],n)&&(r.width=e.width+o),this.cacheStateIfChanged(e,["height"],n)&&(r.height=e.height+o),this.cacheStateIfChanged(e,["depth"],n)&&(r.zIndex=e.depth+1),(s=this.cacheStateIfChanged(e,["pivotX","pivotY"],n))&&(r[a+"TransformOrigin"]=e.pivotX+o+" "+e.pivotY+o),(this.cacheStateIfChanged(e,["x","y","rotation","scaleX","scaleY"],n)||s)&&(r[a+"Transform"]=this.getTransformCSS(e)),this.cacheStateIfChanged(e,["background"],n)&&(r.backgroundColor=e.background),r.pointerEvents||(r.pointerEvents="none");var h=i.image;if(h){var l=h.src;l!==n.image&&(n.image=l,r.backgroundImage="url("+l+")");var c=i.rect;if(c){var u=c[0],d=c[1];u!==n.sx&&(n.sx=u,r.backgroundPositionX=-u+o),d!==n.sy&&(n.sy=d,r.backgroundPositionY=-d+o)}}var f=e.mask;if(f){var p=f.drawable.domElement.style.backgroundImage;p!==n.maskImage&&(n.maskImage=p,r[a+"MaskImage"]=p,r[a+"MaskRepeat"]="no-repeat");var v=f.x,m=f.y;v===n.maskX&&m===n.maskY||(n.maskX=v,n.maskY=m,r[a+"MaskPosition"]=v+o+" "+m+o)}}},cacheStateIfChanged:function(t,e,i){var r,n,a,o,s=!1;for(r=0,n=e.length;rxqL{nzB)w1gE-@Tj`P?Fh1D|5_ Ze>ceuQKYl5>7$G$|0%S+rG(#N5@$
zw)sh>i;lz(;s`GwGRkwrKonsUhy)SHVMIUij{-v;qs2#^VcSOP=a0y)@mf0W$HP-c
zxScneyAk)+4eefFW_Ts#yU6lUd%ePx@jdxrQ&vXxe1pD(w$DcZBiYg10%EM$>^Q!E)g2=u!m_U=@iF*c&7>lQZGEFG|4Cyijhh&D&aB2!
zMYixrLHr9x0Tu{!@G0&9c-mJV)fs|3ji3!m33Fq{D#Cll##?-nYpj*9ZlZtZ8R95j
zs4X#HAX=|>_nCCnhEHJIU2(P`rWI&US%3;1+sR&&e?spzN_d2-QIp1DCvZM2BwM-G
zK%=1qeGWm{`EHD#S6!evm2AzZVc+rrC8u0820mb85wXb*EGNLxD`L}}ciLan)YeV6
zzDQSqUPgEAu8}m1|H}lrr3pZd|I5%1B!HJa0)QWs$a$7t4%nc`>LcU;t)9g~!bHIs
zRi&Jse=y+i3l6%dX#AMNZ|t~Z3DIHahRUIrW1uNOri8PWBL?`