4 Commits
1.0.2 ... 1.0.3

Author SHA1 Message Date
ChenX
f138585a5c 更新版本号 2018-05-29 09:28:26 +08:00
ChenX
83207410ad 修正错误的判断 2018-05-29 09:27:09 +08:00
ChenX
28f91d7904 Merge branch 'master' of http://git.cf/cx/CADViewComponent 2018-05-29 09:26:04 +08:00
ChenX
10cc259261 对于空的pts 数组也支持 2018-05-29 09:26:01 +08:00
4 changed files with 4 additions and 4 deletions

2
dist/createBoard.js vendored
View File

@@ -80,7 +80,7 @@ function createBoard(boardData) {
boardMat.setPosition(pBase);
matInv.getInverse(boardMat, true);
}
if (boardPts)
if (boardPts && boardPts.length !== 0)
for (let i = 0; i < boardPts.length; i++) {
let pt = getVec(boardPts[i]);
if (pt.z !== undefined)

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "cadview",
"version": "1.0.2",
"version": "1.0.3",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -101,7 +101,7 @@ export function createBoard(boardData: object)
matInv.getInverse(boardMat, true);
}
if (boardPts)
if (boardPts && boardPts.length !== 0)
for (let i = 0; i < boardPts.length; i++)
{
let pt = getVec(boardPts[i]);