Skip to content

Commit

Permalink
[Chg] add test
Browse files Browse the repository at this point in the history
  • Loading branch information
bobiscool committed Jan 14, 2018
1 parent 91cd74e commit e48a5c9
Show file tree
Hide file tree
Showing 108 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions example/util/wxdraw.min.js

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions example2/util/wxdraw.js → test/util/wxdraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@ Circle.prototype = _extends({
* @Author: Thunderball.Wu
* @Date: 2017-10-23 19:04:04
* @Last Modified by: Thunderball.Wu
* @Last Modified time: 2017-11-29 10:12:31
* @Last Modified time: 2018-01-14 22:20:08
* 分离开
*/

Expand Down Expand Up @@ -2301,7 +2301,7 @@ Rect.prototype = _extends({
_points2.push(this.getPointTodraw(item[0], item[1], origin));
}, this);

this._chengeCenter(origin);
this._changeCenter(origin);
this._Points = matrixToarray(_points); //除掉矩阵多余的部分
this._detectPoints = matrixToarray(_points2); //除掉矩阵多余的部分
// //console.log(this._Points);
Expand Down Expand Up @@ -2431,8 +2431,9 @@ Rect.prototype = _extends({
// this.getMax();//拿到边界点
}
},
_chengeCenter: function _chengeCenter(origin) {
console.log(this.getPointTodraw(this.Option.x, this.Option.y, origin)[0][0], this.getPointTodraw(this.Option.x, this.Option.y, origin)[1][0]);
_changeCenter: function _changeCenter(origin) {

// console.log(this.getPointTodraw(this.Option.x, this.Option.y, origin)[0][0],this.getPointTodraw(this.Option.x, this.Option.y, origin)[1][0])
// this.Option.x = this.getPointTodraw(this.Option.x, this.Option.y, origin)[0][0]
// this.Option.y = this.getPointTodraw(this.Option.x, this.Option.y, origin)[1][0]
}
Expand Down
File renamed without changes.
9 changes: 5 additions & 4 deletions wxDraw/dist/wxdraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@ Circle.prototype = _extends({
* @Author: Thunderball.Wu
* @Date: 2017-10-23 19:04:04
* @Last Modified by: Thunderball.Wu
* @Last Modified time: 2017-11-29 10:12:31
* @Last Modified time: 2018-01-14 22:20:08
* 分离开
*/

Expand Down Expand Up @@ -2301,7 +2301,7 @@ Rect.prototype = _extends({
_points2.push(this.getPointTodraw(item[0], item[1], origin));
}, this);

this._chengeCenter(origin);
this._changeCenter(origin);
this._Points = matrixToarray(_points); //除掉矩阵多余的部分
this._detectPoints = matrixToarray(_points2); //除掉矩阵多余的部分
// //console.log(this._Points);
Expand Down Expand Up @@ -2431,8 +2431,9 @@ Rect.prototype = _extends({
// this.getMax();//拿到边界点
}
},
_chengeCenter: function _chengeCenter(origin) {
console.log(this.getPointTodraw(this.Option.x, this.Option.y, origin)[0][0], this.getPointTodraw(this.Option.x, this.Option.y, origin)[1][0]);
_changeCenter: function _changeCenter(origin) {

// console.log(this.getPointTodraw(this.Option.x, this.Option.y, origin)[0][0],this.getPointTodraw(this.Option.x, this.Option.y, origin)[1][0])
// this.Option.x = this.getPointTodraw(this.Option.x, this.Option.y, origin)[0][0]
// this.Option.y = this.getPointTodraw(this.Option.x, this.Option.y, origin)[1][0]
}
Expand Down
4 changes: 2 additions & 2 deletions wxDraw/dist/wxdraw.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wxDraw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rollup -c rollup.config.prod.js&&cp ./dist/wxdraw.min.js ../example/util",
"start": "rollup -c&&cp ./dist/wxdraw.js ../example2/util",
"start": "rollup -c&&cp ./dist/wxdraw.js ../test/util",
"bd":"rollup -c rollup.config.prod.js&&cp ./dist/wxdraw.min.js ../example/util"

},
Expand Down

0 comments on commit e48a5c9

Please sign in to comment.