1.0.7 • Published 12 months ago

hs-web3d-core v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

web 可视化 sdk开发文档

1.安装

//使用yarn安装 
yarn add hs-web3d-core
//使用npm安装
npm install hs-web3d-core

2.参考demo

var client = null;
import {web3DCoreSocket} from './index.esm.js';

var wsUrl = "ws://192.168.2.201:8089/hs-core"

const ws = new web3DCoreSocket(wsUrl, {
    appId: "1",
    sessionId: "1",
})
ws.onMessage(data => {
    console.log(data)
    
})
$(".changeColor").click(function () {
    ws.sendToEngin({
            "code": "21u3i21i21g4i1192982u3",
            "function": "CubeControl.ChangeColor",
            "type": "noCallBack",
            "parameters": {"id": "2", "color": "red"}
        }
    )
})

3.更新日志

version 1.0.2 (2023-05-08)

  • 简单方法封装

version 0.0.1 (2023-03-11)

  • 初始化
1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.3

1 year ago

0.0.1

1 year ago