nayota-show-sdk 1.3.49 → 1.3.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/area.js +9 -0
- package/package.json +2 -2
package/api/area.js
CHANGED
|
@@ -26,6 +26,13 @@ import { requestShow } from '../utils'
|
|
|
26
26
|
* @property {string} areaClass - 区域类型id
|
|
27
27
|
* @property {string} managerName - 管理人姓名
|
|
28
28
|
* @property {number} areaSize - 区域面积(平方米)
|
|
29
|
+
* @property {Array} centerCoordinate - 区域中心坐标 [x, y]
|
|
30
|
+
* @property {string} linkType - 区域关联类型 'none'|'depart'|'device'|'link'
|
|
31
|
+
* @property {string} targetDepartId - 关联部门ID(跳转楼栋/楼层)
|
|
32
|
+
* @property {string} targetDeviceId - 关联设备ID
|
|
33
|
+
* @property {string} linkUrl - 外部链接地址
|
|
34
|
+
* @property {string} linkLabel - 外部链接展示名称
|
|
35
|
+
* @property {boolean} openInNew - 外部链接是否新开窗口
|
|
29
36
|
* @example
|
|
30
37
|
* {
|
|
31
38
|
"_id": "67073bfe463d6e00099becdd",
|
|
@@ -37,6 +44,8 @@ import { requestShow } from '../utils'
|
|
|
37
44
|
"type": "办公区",
|
|
38
45
|
"areaClass": "67073bfe463d6e00099becdd",
|
|
39
46
|
"managerName": "张三",
|
|
47
|
+
"centerCoordinate": [116.404, 39.915],
|
|
48
|
+
"linkType": "none",
|
|
40
49
|
"bounds": [
|
|
41
50
|
[
|
|
42
51
|
116.404,
|
package/package.json
CHANGED