# 获取特效

Dandelion.RtAPI("getEffect", params, (res) => {
  console.log(res);
});

# 功能描述

获取特效

# 请求参数格式

let params = {
  id: "", //特效id
};

# 请求参数

参数名称 参数说明 是否必须 数据类型
id 特效 id true String

# 响应参数格式

{
	"backToInitialView": false,
	"bindID": "",
	"bindType": "",
	"firstView": false,
	"floorIndex": "",
	"id": "",
	"iveUrl": "",
	"loopMove": true,
	"movePathId": "",
	"moveSpeed": 0,
	"moveState": 0,
	"name": "",
	"normalColor": "",
	"parentBuildingID": "",
	"position": {
		"height": 0,
		"latitude": 0,
		"longitude": 0
	},
	"pulse": true,
	"pulseColor": "",
	"pulseTime": 0,
	"resourceId": "",
	"tags": [],
	"text": "",
	"textBoundBoxColor": "",
	"textColor": "",
	"textMargin": 0,
	"textSize": 0,
	"textVisible": true,
	"thetherNode": false,
	"visible": true
}

# 响应参数

参数名称 参数说明 类型
backToInitialView 模型是否回到初始位置 Boolean
bindID 绑定的对象 id(如果对象已被绑定会被解绑) String
bindType 绑定的对象类型 String
firstView 是否第一视角观看 Boolean
floorIndex 所在楼层 String
id id String
iveUrl ive 资源地址 String
loopMove 是否循环移动 Boolean
movePathId 沿着路径移动的路径 id String
moveSpeed 移动速度 Number
moveState 移动状态(0 播放、1 暂停、2 停止) Number
name 名称 String
normalColor 默认颜色 String
parentBuildingID 父建筑 id String
position 位置坐标 object
  height 高度 Number
  latitude 纬度 Number
  longitude 经度 Number
pulse 是否闪烁 Boolean
pulseColor 闪烁颜色 String
pulseTime 闪烁时间(单位秒) Number
resourceId 模板 id String
tags Tag 列表 Array
text 文字内容 String
textBoundBoxColor 特效包围盒颜色 String
textColor 文字颜色 String
textMargin 文字边框间距 Number
textSize 文字大小 Number
textVisible 是否显示文字 Boolean
thetherNode 视点是否跟随 Boolean
visible 显隐状态 Boolean