0.1.9 • Published 9 months ago

@ithinkdt/jt-web-3d v0.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@ithinkdt/jt-web-3d

bom 3d模型的 jt数据在web端的展示工具

how to install

For TypeScript such as Angular Vue React

install

npm i @ithinkdt/jt-web-3d --save-dev

Import

import jt-web from '@ithinkdt/jt-web-3d';

publish

根目录运行

npm run build

修改package.json中的版本号后

npm publish

How to use

html

// 这里的 id 固定 JT_WEB, class 固定 siemens-app-container
<div class="siemens-app-container" id="JT_WEB"></div>

js

初始化 (渲染配置)

const jt_web = jt_web({ // 数据 data: { title: '测试产品', // 模型组件名称 psId: '122', // 模型组件ID "units": 5,
} })

DATA 数据格式

Data {
  bboxMax: number[];
  bboxMin: number[];
  mat64: string;
  psId: string;
  title: string;
 children: NonleafNode[] | LeafNode[];
}
LeafNode {
  b64data: string;
  bboxMax: number[];
  bboxMin: number[];
  psId: string;
  title: string;
  units: 5;
  xform: number[];
}
NonleafNode {
  bboxMax: number[];
  bboxMin: number[];
  psId: string;
  title: string;
  children: NonleafNode[] | LeafNode[];
}

Change log

0.1.8

10 months ago

0.1.9

9 months ago

0.1.7

11 months ago

0.1.6

12 months ago

0.1.3

1 year ago

0.1.5

1 year ago

0.1.2

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

3 years ago