Constructor
new ApiAnimation()
Methods
animationDrawer(pos, layer)
- Description:
抽屉抽出动画
Parameters:
Name | Type | Description |
---|---|---|
pos |
Array.<object> | animationRoom方法回调函数返回的内容 |
layer |
number | 楼层 |
animationLabel(id)
- Description:
鼠标移入标签时触发动效,表现为上下跳动
Parameters:
Name | Type | Description |
---|---|---|
id |
string | number | tileset id |
animationLabelIn(id)
- Description:
鼠标移入标签时触发动效,表现为向上跳动
Parameters:
Name | Type | Description |
---|---|---|
id |
string | number | tileset id |
animationLabelOut(id)
- Description:
鼠标移出标签时触发动效,表现为向下跳动
Parameters:
Name | Type | Description |
---|---|---|
id |
string | number | tileset id |
animationLayerOpen(callback)
- Description:
楼层展开动画
Parameters:
Name | Type | Description |
---|---|---|
callback |
callback | 动画结束触发的回调函数 |
animationRestoreDrawer(pos, callback)
- Description:
除选中楼层之外的楼层还原动画
Parameters:
Name | Type | Description |
---|---|---|
pos |
Array.<object> | animationRoom方法回调函数返回的内容 |
callback |
callback | 回调函数 |
animationRestoreFloor(pos)
- Description:
抽屉还原动画
Parameters:
Name | Type | Description |
---|---|---|
pos |
Array.<object> | animationRoom方法回调函数返回的内容 |