Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alindas committed Oct 17, 2023
1 parent c8fb8d5 commit f2a8e48
Show file tree
Hide file tree
Showing 64 changed files with 29,382 additions and 3,867 deletions.
1 change: 1 addition & 0 deletions antd.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions antd.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/index-38d1c173.css

This file was deleted.

3,858 changes: 0 additions & 3,858 deletions assets/index-79637d95.js

This file was deleted.

51 changes: 51 additions & 0 deletions doc/guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## 3D组态编辑器(v0.2.0)

### 场景操作
1.操作模式为框选时,鼠标左键绘制框图,鼠标右键旋转场景;
2.其他操作模式,鼠标左键旋转场景,鼠标右键移动场景;
3.点击场景方向盒轴线控制相机正朝向;

### 自定义开发脚本

接收三个参数,local 是本地环境变量;services 为云端数据,model 为当前模型。

示例一:根据云端数据的 local 数据池改变模型外观,需要返回一个解除脚本的执行方法。

```typescript
function changeColorByStatus(local: any, services: any, model: any) {
if (!model.isMesh) {
throw new Error('该模型不具备材质,该效果不会生效');
}

const { status } = services.local;

status.onChange = (val: any) => {
switch (val) {
case 'run': {
model.material.color.set(0x008000);
break;
}

case 'stop': {
model.material.color.set(0x808080);
break;
}

case 'alarm': {
model.material.color.set(0xff0000);
break;
}

default:
break;
}
};

return () => {
status.onChange = null;
}

```
Binary file added doc/guide.pdf
Binary file not shown.
Binary file added favicon.ico
Binary file not shown.
13,218 changes: 13,218 additions & 0 deletions images/envMap/982960---222.hdr

Large diffs are not rendered by default.

Binary file added images/envMap/982960.hdr
Binary file not shown.
Binary file added images/envMap/988114-222.hdr
Binary file not shown.
Binary file added images/envMap/988114.hdr
Binary file not shown.
Binary file added images/envMap/990774.hdr
Binary file not shown.
16,075 changes: 16,075 additions & 0 deletions images/envMap/991875.hdr

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions images/login_bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 20 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<script type="module" crossorigin src="./assets/index-79637d95.js"></script>
<link rel="stylesheet" href="./assets/index-38d1c173.css">
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
/>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="stylesheet" href="/antd.chunk.css" />
<link rel="stylesheet" href="/umi.css" />
<script>
window.routerBase = "/";
</script>
<script>
//! umi version: 3.5.27
</script>
</head>
<body>
<div id="root"></div>

<script src="/lodash.js"></script>
<script src="/antd.js"></script>
<script src="/three.js"></script>
<script src="/vendors.js"></script>
<script src="/umi.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions layout__SecurityLayout.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions layout__SecurityLayout.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lodash.js

Large diffs are not rendered by default.

Binary file added model/light/ambient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/light/directional.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/light/hemisphere.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/light/point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/light/spot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/下料.FBX
Binary file not shown.
Binary file added model/other/下料.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/传送带.FBX
Binary file not shown.
Binary file added model/other/传送带.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/储液罐.FBX
Binary file not shown.
Binary file added model/other/储液罐.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/弯管.FBX
Binary file not shown.
Binary file added model/other/弯管.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/微波炉.FBX
Binary file not shown.
Binary file added model/other/微波炉.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/机器人.FBX
Binary file not shown.
Binary file added model/other/机器人.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/柱子与梁.FBX
Binary file not shown.
Binary file added model/other/柱子和梁.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/直管.FBX
Binary file not shown.
Binary file added model/other/直管.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/管道接口环.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/other/设备管道接口环.FBX
Binary file not shown.
Binary file added model/other/送料.FBX
Binary file not shown.
Binary file added model/other/送料.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/robot/rb08.FBX
Binary file not shown.
Binary file added model/robot/rb08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added model/robot/rb500.FBX
Binary file not shown.
Binary file added model/robot/rb500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions p__error__404.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions p__error__404.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions p__login.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f2a8e48

Please sign in to comment.