
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
cbim-render-viewcube
Advanced tools
这是一个配合 cbim-render-sdk 使用的插件,欢迎使用,如有不足,欢迎指正。 持续更新中...
安装方式:npm install cbim-render-viewcube --save
引用方式:import ViewCube from 'cbim-render-viewcube'
ThreeJS的支持:npm install three --save
import ViewCube from 'cbim-render-viewcube'
// 下面代码放在cbim-render-sdk返回的数据之后
switch (data.type) {
case 'LoadStatus':
if (data.status === 'Finished') {
// renderViewer 为 cbim-render-sdk 实例化之后的对象
let viewCube = new ViewCube('容器ID', {
width: 120,
height: 120,
enableRotate: true,
styles: 'position: absolute; left: 10px; top: 10px;',
sendData: response => {
renderViewer.ws.sendData(response)
}
})
}
break
}
// <script src="https://cdn.jsdelivr.net/npm/three@latest" type="text/javascript" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/cbim-render-viewcube@latest" type="text/javascript" charset="utf-8"></script>
// 下面代码放在cbim-render-sdk返回的数据之后
switch (data.type) {
case 'LoadStatus':
if (data.status === 'Finished') {
// renderViewer 为 cbim-render-sdk 实例化之后的对象
let viewCube = new ViewCube('容器ID', {
width: 120,
height: 120,
styles: 'position: absolute; left: 10px; top: 10px;',
sendData: response => {
renderViewer.ws.sendData(response)
}
})
}
break
}
// 下面代码放在cbim-render-sdk返回的数据之后
switch (data.type) {
case 'viewQuat':
viewCube && viewCube.coordinateAxesUpdateByQuat(JSON.parse(data.viewQuat))
break
}
FAQs
渲染引擎独立的ViewCube
We found that cbim-render-viewcube demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.