Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2cd7f413da | ||
![]() |
aed2217f2e | ||
![]() |
98cd31e18c |
15
.vscode/settings.json
vendored
15
.vscode/settings.json
vendored
@@ -1,3 +1,16 @@
|
|||||||
|
// 将设置放入此文件中以覆盖默认值和用户设置。
|
||||||
{
|
{
|
||||||
"editor.formatOnSave": true
|
"typescript.tsdk": "node_modules\\typescript\\lib",
|
||||||
|
//格式化设置
|
||||||
|
"editor.tabSize": 4,
|
||||||
|
"editor.formatOnPaste": true,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
//格式设置
|
||||||
|
"typescript.format.placeOpenBraceOnNewLineForFunctions": true,
|
||||||
|
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": true,
|
||||||
|
"typescript.referencesCodeLens.enabled": true,
|
||||||
|
"javascript.format.placeOpenBraceOnNewLineForFunctions": true,
|
||||||
|
"javascript.format.enable": true,
|
||||||
|
"files.insertFinalNewline": true,
|
||||||
|
"editor.detectIndentation": true,
|
||||||
}
|
}
|
||||||
|
2
dist/createBoard.js
vendored
2
dist/createBoard.js
vendored
@@ -83,7 +83,7 @@ function createBoard(boardData) {
|
|||||||
if (boardPts && boardPts.length !== 0)
|
if (boardPts && boardPts.length !== 0)
|
||||||
for (let i = 0; i < boardPts.length; i++) {
|
for (let i = 0; i < boardPts.length; i++) {
|
||||||
let pt = getVec(boardPts[i]);
|
let pt = getVec(boardPts[i]);
|
||||||
if (pt.z !== undefined)
|
if (boardPts[i].z !== undefined)
|
||||||
pt.applyMatrix4(matInv);
|
pt.applyMatrix4(matInv);
|
||||||
pts.push(new THREE.Vector2(pt.x, pt.y));
|
pts.push(new THREE.Vector2(pt.x, pt.y));
|
||||||
buls.push(boardBuls[i]);
|
buls.push(boardBuls[i]);
|
||||||
|
2
dist/createBoard.js.map
vendored
2
dist/createBoard.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cadview",
|
"name": "cadview",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@@ -105,7 +105,7 @@ export function createBoard(boardData: object)
|
|||||||
for (let i = 0; i < boardPts.length; i++)
|
for (let i = 0; i < boardPts.length; i++)
|
||||||
{
|
{
|
||||||
let pt = getVec(boardPts[i]);
|
let pt = getVec(boardPts[i]);
|
||||||
if (pt.z !== undefined)
|
if (boardPts[i].z !== undefined)
|
||||||
pt.applyMatrix4(matInv);
|
pt.applyMatrix4(matInv);
|
||||||
pts.push(new THREE.Vector2(pt.x, pt.y));
|
pts.push(new THREE.Vector2(pt.x, pt.y));
|
||||||
buls.push(boardBuls[i]);
|
buls.push(boardBuls[i]);
|
||||||
|
Reference in New Issue
Block a user