Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
alindas committed Nov 7, 2023
0 parents commit e7f9764
Showing 73 changed files with 221,785 additions and 0 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.

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.
28 changes: 28 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<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.41
</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.

1 change: 1 addition & 0 deletions p__login.js

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

Loading

0 comments on commit e7f9764

Please sign in to comment.