### debugControl.showDir Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example for the origin parameter in showDir. ```javascript { x: 0, y: 0, z: 0 } ``` -------------------------------- ### lineWidthConfig Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for lineWidthConfig parameter. ```javascript { ShowLineWidth:1,//线段展示的宽度 建议宽度1 ChoseBGColorWidth:2,//线段选中展示的背景色区域宽度 建议宽度2 ClickAreaWidth:10//线段的点击响应范围区域 建议宽度10 } ``` -------------------------------- ### styleConfig Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for styleConfig parameter. ```javascript { ShowLineStyleObject:{//显示区域的样式 color:'red', opacity:1.0 }, ChoseBGStyleObject:{ color:'red', opacity:1.0 } } ``` -------------------------------- ### setHtmlDomTip_APP Example (tipConfig) Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for tipConfig in setHtmlDomTip_APP. ```javascript 参数结构同 createTip_HtmlDom API参数结构保持一致 ``` -------------------------------- ### Example (styleObject) Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of style object for drawing. ```javascript { color: 'red', opacity: 0.3 } ``` -------------------------------- ### styleObject Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for styleObject parameter. ```javascript { color:'red', opacity:1.0 } ``` -------------------------------- ### clientConfig Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for clientConfig parameter in setClientConfig method. ```javascript { "ClientType": "Android", //运行平台 目前支持的平台 Android "ClientParam": { "JavaObject": "PersagyWeb3dAndroidObject" //Android WebView对象映射名称 } } ``` -------------------------------- ### lineArray Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for lineArray parameter. ```javascript [ { "X": 0, "Y": 0, "Z": 0 } ] ``` -------------------------------- ### setHtmlDomTip_APP Example (clickBlock) Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of a click callback function for setHtmlDomTip_APP. ```javascript (e)=>{ e//返回内容为domTipContent中的Param属性 } ``` -------------------------------- ### createEqDeviceAccessPoints_ShowTip Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for accessPointContent when creating a Tip panel based on coordinates and direction. ```javascript { TipCustomID:'', HelpLineStyle:{ color:'red', length:100 }, AssessPointContent:{ Position:{X:-42.835,Y:0,Z:0}, Direction:{X:-1,Y:0,Z:0} }, DomTipContent:{ Type:"GateGroup_DomTip", BGStyle:{ BorderColor:'red', BGColor:'#ffffff' }, Content:{ Title:'1', Color:'#000000' }, Param:{ //内容自定义 } } } ``` -------------------------------- ### Example floorContent parameter Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the floorContent parameter used in startRunDefaultOcc. ```javascript { "需要计算的模型ID":{ outline:[], } } ``` -------------------------------- ### Floor Configuration Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for the floorConfig parameter used in setFloorConfig. ```javascript { projectID: '', //项目ID floorID: '', //楼层ID floorElevation: '', //楼层标高 floorHeight: '' //楼层高度 } ``` -------------------------------- ### lineWidthConfig Example for createSegmentsLineWichClick Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for lineWidthConfig parameter in createSegmentsLineWichClick. ```javascript { ShowLineWidth:0.001,//线段展示的宽度 建议宽度0.001 ChoseBGColorWidth:2,//线段选中展示的背景色区域宽度 建议宽度2 ClickAreaWidth:10//线段的点击响应范围区域 建议宽度10 } ``` -------------------------------- ### styleConfig Example for createSegmentsLineWichClick Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for styleConfig parameter in createSegmentsLineWichClick. ```javascript { ShowLineStyleObject:{ color:'red', opacity:1.0 }, ChoseBGStyleObject:{ color:'red', opacity:1.0 } } ``` -------------------------------- ### detectionVerticalTube Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the return data structure for the detectionVerticalTube method. ```javascript [ { ID:'', Code:'' } ] ``` -------------------------------- ### lodConfigWithCustom parameter example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the lodConfigWithCustom parameter for custom loading configurations. ```javascript { //自定义本次加载的模型地址 burl:'https://qa-revit.ysbdtp.com', //加载完轻量化文件之后需要加载的ID loadIDList:[''], //加载完轻量化文件之后需要排除的ID excludeIDList:[''] } ``` -------------------------------- ### Example for setUpdateWanTouBlockContent Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example usage of setUpdateWanTouBlockContent with different content structures for error messages and data display. ```javascript (content)=>{}content 内容结构//编辑模型位置异常信息{ messageName:'UpdateTranslateWanError_MoreDir', content:'因为存在多个关系方向,所以无法移动'}//显示逆向立管数据之后管线分类染色{ messageName:'wanTouData_ShowLineColor', content:{ //激活的管线 activateLineID: [], //激活并且产生关系的管线 connectedLineID: [], //激活但是存在异常的管线 activateAndError: [], //当前楼层的管线ID floorLine: [], //楼上延伸下来的管线ID topFloorLine: [], //楼下延伸上来的管线ID bottomFloorLine: [] }} //逆向立管数据更新{ messageName:'UpdateData_UpdateWanTouData', content:[]//场景中逆向弯头数据源}//管线平行操作异常 选中的管线不符合平行的条件{ messageName:'UpdateError__ParallelError', content:[]//不符合条件的平行管线的ID}//绘制完成 弯头不合法{ messageName:'UpdateError__SaveError', content:''} ``` -------------------------------- ### setUpdateVerticalTubeErrorBlock Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structures for the block callback in setUpdateVerticalTubeErrorBlock, illustrating different error types. ```javascript // { messageName:'VerticalTube_Dir_Error', content:'' } // { messageName:'VerticalTube_TranslateWan_Error', content:'' } // { messageName:'VerticalTube_Rotate_Error', content:'' } ``` -------------------------------- ### setAutoShowOrHiddenTipDataSource Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example data source structure for setAutoShowOrHiddenTipDataSource. ```json [ { "IconUrl":"", "MeshID":"", "CustomTipID":"" } ] ``` -------------------------------- ### lookatWithCustomPosition_FrontView Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the center parameter in lookatWithCustomPosition_FrontView. ```javascript { x:0, y:0, z:0 } ``` -------------------------------- ### lineWidthConfig Example for setLineStyleWithClick Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for lineWidthConfig parameter in setLineStyleWithClick. ```javascript { ShowLineWidth:1,//线段展示的宽度 实线 默认宽度1 虚线默认宽度0.001 ChoseBGColorWidth:2,//线段选中展示的背景色区域宽度 ClickAreaWidth:10//线段的点击响应范围区域 } ``` -------------------------------- ### getCameraState Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the return value for __getViewPosTo3DPos. ```javascript { x:0, y:0, z:controls.target.z } ``` -------------------------------- ### floorList parameter example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the floorList parameter. ```javascript [ { FloorID:"",//楼层ID(不能为空) CodeList:[""]//楼层下的六位编码类型列表(如果为空则表示加载整层) } ] ``` -------------------------------- ### getCameraStateWithFloor Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the stateBlock callback format for getCameraStateWithFloor. ```javascript (stateObject) => { //返回内容与getCameraState API一样 直接保持即可 } ``` -------------------------------- ### createPanleWithLine Example (lineArray structure) Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the lineArray parameter when creating a panel with lines. ```javascript [ { "X": 0, "Y": 0, "Z": 0 } ] ``` -------------------------------- ### Update Style Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of how to provide style object for updating mesh styles. ```javascript {r,g,b,a} ``` -------------------------------- ### Example Data Source for setPersistentDisplayIconTipDataSource Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md This example shows the structure of the data source expected by the tipHelp.setPersistentDisplayIconTipDataSource method. ```javascript [ { "IconUrl":"", "MeshID":"", "CustomTipID":"" } ] ``` -------------------------------- ### Example of tipConfig for createTip_SpriteIcon Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md This example indicates that the tipConfig parameter for createTip_SpriteIcon has a structure consistent with createTip_HtmlDom. ```javascript tipConfig参数的结构同showTip_HtmlDom-API的参数结构保持一致 ``` -------------------------------- ### Example for detectionVerticalTubeData Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the return data structure for the detectionVerticalTubeData method. ```javascript [ { CustomID:'', Code:'', DirID:'', IsClick:false, } ] ``` -------------------------------- ### inBoxSelection Example: selectStartBlock Format Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for the selectStartBlock callback function in inBoxSelection. ```javascript ()=>{} ``` -------------------------------- ### loadMeshToSceneControl.loadMeshWithFBXArray urlArray parameter example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the urlArray parameter for loading FBX models. ```javascript [ { "Url":"",//下载地址 "CustomID":"",//自定义ID "Position":{ "x":0, "Y":0, "z":0 }, "Style":{//FBX模型默认样式 "color":"#ffffff", "opacity":1.0 } } ] ``` -------------------------------- ### createMeshWithCustomGeometry Example (meshData format) Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the meshData parameter, including geometry information. ```javascript { //是否是族库模型 IsComponents:true, //几何体信息 GeometryPosition:[0,0,0...], //顶点索引 Index:[], //矩阵信息 Matrix:[0,0,0.....] } ``` -------------------------------- ### Example for removeWanTou_NiXiangLiGuan callback Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example callback function for removeWanTou_NiXiangLiGuan, showing the structure of the content parameter. ```javascript (content)=>{ } content结构 { liGuanConfig_Param:{},//mergeLine_NiXiangGuanLi API的入参 customID_Param:'', inEditorModel_CreateWanTouWithClickLine_NiXiangLiGuan API入参 } ``` -------------------------------- ### setBoxSelectionStyle Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the styleObject parameter format for setting box selection styles. ```javascript background: rgba(0, 145, 255, 0.1);border: 2px solid #0091ff; ``` -------------------------------- ### setSpaceStyle Example: styleObject Format Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for the styleObject parameter when setting space styles. ```javascript { color:'red',//颜色 opacity:1.0,//透明度 } ``` -------------------------------- ### setSpaceStyle Example: lineStyleObject Format Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for the lineStyleObject parameter when setting space styles. ```javascript { color:'red',//颜色 opacity:1.0,//透明度 如果空间模型开启渐变则不支持动态修改透明度 linewidth:1,//线条宽度 } ``` -------------------------------- ### setBoxSelectConfig Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the selectConfig parameter structure for setting box selection configuration options. ```javascript { //框选触发操作的方式 0 左键 1 滚轮 2 右键 默认左键 PC端生效 APP端只支持单手框选 PointerdownButtonType:0, } ``` -------------------------------- ### updateIconTip Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for tipArray in updateIconTip. ```javascript [ { "IconUrl":"", "CustomTipID":"" } ] ``` -------------------------------- ### initDefaultScene configUrl parameter example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Download address for all project configuration files. ```javascript ["./JsonConfig/PorjectConfig.json"] ``` -------------------------------- ### getBoxAllPoints Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example return value for getBoxAllPoints, illustrating the format of bounding box vertices. ```javascript //第一个元素表示X 第二个元素表示Y 第三个元素表示Z [ //上顶面的四个顶点 [0,0,0], [0,0,0], [0,0,0], [0,0,0], //下底面的四个顶点 [0,0,0], [0,0,0], [0,0,0], [0,0,0] ] ``` -------------------------------- ### Example (codeConfig explanation) Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Explanation of the codeConfig parameter for opening multi-click intercept help. ```javascript { "六位编码": { "Content": "机电设备" } } ``` -------------------------------- ### createSpaceMesh_CommonComponent Example: styleObject Format Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for the styleObject parameter, defining color and opacity. ```javascript { color:'red',//颜色 opacity:1.0//透明度 } ``` -------------------------------- ### createOccHiddenStateTip Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example demonstrating the usage of `createOccHiddenStateTip` function, including parameters for listener code array and icon content. ```javascript //listenerCodeArray [ { Code:'',//编码名称 IDArray:['']//id列表 } ] //iconContent结构参考 { IconUrl:'',//图片地址 scale3DSize:1//三维视角 图片缩放比例 } ``` -------------------------------- ### initDefaultScene configObject parameter example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Parameter content is exactly the same as the scene configuration file content. For example, dynamic configuration download address. ```javascript { // Set the model request address for the entire project "Url": { "burl": "https://qa-revit.ysbdtp.com",// Lightweight service address } } ``` -------------------------------- ### setAutoIconTipSequenceBlock Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the sequenceBlock parameter in setAutoIconTipSequenceBlock. ```javascript (e)=>{ //格式参考 [ { MeshID:'', TipID:'', State:0 } ] //列表排序默认权重规则 3>2>1>0 对于需要显示的Tip 会按照距离屏幕中心点以及当前视角状态下距离相机的距离 从最近到最远排序 } ``` -------------------------------- ### Example of tipConfig for createTip_TextWithBGView Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md This example shows the structure of the tipConfig parameter for createTip_TextWithBGView, referencing the structure of createTip_HtmlDom and bgViewStyle. ```javascript { ...同showTip_HtmlDom-API参数保持一致 bgViewStyle:{ ...默认取配置文件的bgViewStyle标签配置选项 } } ``` -------------------------------- ### setCameraStateWithFloor Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the messageObject callback format for setCameraStateWithFloor. ```javascript (messageObject) => { { State:0//0-表示视角不合法 1-表示视角合法 } } ``` -------------------------------- ### Example (outLineConfig parameter) Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Parameter structure should be consistent with the interface structure returned by the physical world. Only outline information points with 5 vertices are accepted. ```javascript 参数结构同物理世界返回接口结构保持一致即可 只接受顶点数量等于5的outline信息点 ``` -------------------------------- ### filterAllProjectVerticalTubeData Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the filterNewDataBlock callback in filterAllProjectVerticalTubeData. ```javascript (e)=>{ e// { newData:[], justShowDataID:[] } } ``` -------------------------------- ### getVerticalTubeHeightChange Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the updateBlock callback in getVerticalTubeHeightChange. ```javascript (e)=>{ e// { Height:0, IsClientUpdate:false } } ``` -------------------------------- ### Example (lookatConfig parameter) Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Parameter structure is consistent with the lookatWithScene_FrontView API structure. ```javascript 参数结构同 lookatWithScene_FrontView API结构一致 ``` -------------------------------- ### inDrawWindowAndDoor Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the drawConfig parameter format for inDrawWindowAndDoor. ```javascript { //当前编辑的类型 0 门 1 窗户 DrawType:0, //标记模型的尺寸 Size:{ X:0, Y:0, Z:0 }, Style:{ color:'red', opacity:0.3 } } ``` -------------------------------- ### setDrawDoorAndWindowBlock Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the updateBlock parameter structure for setDrawDoorAndWindowBlock. ```javascript (e)=>{ Type:'AllPointNumber',//回调参数类型 Param:{ Number:0 } } Type类型分类 AllPointNumber 数量统计信息 ``` -------------------------------- ### loadSceneMeshWithPipeline buildAllPipelineData parameter example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Pipeline data for all floors of the current building. ```javascript [ { "FloorID":"",//Floor ID "FloorElevation":0,//Floor elevation "FloorHeight":0,//Floor height "LoadMeshContext":[{ "Code":"",//Model code "MeshIDArray":[{ "MeshID":"",//Model ID "Box":{ "MinX":0, "MinY":0, "MinZ":0, "MaxX":0, "MaxY":0, "MaxZ":0 } }] }] } ] ``` -------------------------------- ### lookatWithCodeArray_FrontView Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for floorIDArray used in lookatWithCodeArray_FrontView. ```javascript ['楼层ID'] ``` -------------------------------- ### Example for getEidtorState Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the editorStateBlock parameter in the getEidtorState method. ```javascript { NowEditroNumber:0 } ``` -------------------------------- ### lodConfigWithCustom parameter example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the lodConfigWithCustom parameter, used for custom loading configurations, including lists of IDs to load or exclude. ```javascript { //加载完轻量化文件之后需要加载的ID loadIDList:[''], //加载完轻量化文件之后需要排除的ID excludeIDList:[''], } ``` -------------------------------- ### loadEndBlock parameter example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the loadEndBlock callback function. ```javascript (progressObject)=>{ //progressObject 本次加载进度对象 { isEnd: false,//类型 bool 加载是否完成 endLodNumber: 0,//类型 Number 本次加载完成进度 allLodNumber: 0//类型 Number 本次加载总进度 } } ``` -------------------------------- ### Example for CopyConfig parameter in copyTip_SpirteIconTip Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md This example demonstrates the structure of the CopyConfig parameter for copying SpriteIcon tips, including scale and tipConfig options. ```javascript { scale_3D:0,//三维场景的缩放系数 scale_2D:0,//二维屏幕图模式的缩放系数 tipConfig:null,//...同showTip_HtmlDom-API参数保持一致 } ``` -------------------------------- ### Example: getBoxSize return value Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Illustrates the XYZ format for bounding box dimensions, with a comment explaining each element. ```javascript //第一个元素代表X-长 第二个元素代表Y-宽 第三个元素代表Z-高 [0,0,0] ``` -------------------------------- ### modelArray Parameter Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example structure for the modelArray parameter in the setModelArray method. ```javascript ['业务模块编号'] ``` -------------------------------- ### createSpaceMesh_CommonComponent Example: loadConfig Format Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for the loadConfig parameter, including options for face deletion, outline creation, opacity gradient, and outline zooming. ```javascript { isRemoveTopFace:false,//拉起的三维空间是否删除上下底面 isCreateOutLine:false,//是否渲染轮廓线 isOpacityGradient:false//透明度是否在垂直方向上渐变 isOnlyCreateOutLine:false//是否只渲染空间的外轮廓 忽略孔洞 zoomNumber:-200//轮廓空间缩放距离 防止空间的外轮廓互相重叠的情况 } ``` -------------------------------- ### Example for dataArray parameter Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Reference for dataArray parameter format. ```javascript dataArray数据结构请参考虚拟关系显示数据结构说明 ``` -------------------------------- ### getGroupCenterWithID Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the return value for getGroupCenterWithID, representing XYZ coordinates. ```javascript [x,y,z] ``` -------------------------------- ### getAllIDWithScene Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example of the return value for getAllIDWithScene, which lists all IDs in the scene. ```javascript ["Eq1101059001b557cd0e5d9f4baa92f3a47cc2c8d9c0"] ``` -------------------------------- ### getBoxSize_Array Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example return value for getBoxSize_Array, showing dimensions for each ID. ```javascript //第一个元素代表X-长 第二个元素代表Y-宽 第三个元素代表Z-高 [[0,0,0],null,[0,0,0]] ``` -------------------------------- ### Example (loadConfig parameter) Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Parameter structure is consistent with the loadMeshWithCodeList_Server API. For example, to exclude specific model IDs during loading. ```javascript 参数结构同 loadMeshWithCodeList_Server API结构一致 例如需要加载过程中排除特定模型ID ``` -------------------------------- ### messageToClientBlock Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for messageToClientBlock callback function in setVirtuallyMessageContentToClientBlock method. ```javascript function (messageList) { messageList 为一个完整的指令集合 { "AllLength": 1, "NowIndex": 0, ... } } ``` -------------------------------- ### setWanTouStyle styleObject Parameter Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for the styleObject parameter used in setWanTouStyle. ```js { color:'red',//非必填 opacity:1.0////非必填 } ``` -------------------------------- ### detectionRayOrLine clickData Parameter Example Source: https://github.com/tiandaowentao/dtxv23d/blob/master/API.md Example format for the clickData parameter in the detectionRayOrLine method. ```javascript ```