new LayerBuilding(params)
- Description:
- 楼宇拆解,支持楼层隐藏、推出等功能
- Source:
- objects/other/LayerBuilding.js, line6
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | 参数
Properties
|
Methods
backBuildingToNormal()
- Description:
- 楼宇恢复默认状态
- Source:
- objects/other/LayerBuilding.js, line112
hideAboveFloor(number)
- Description:
- 隐藏输入的楼以上的楼层
- Source:
- objects/other/LayerBuilding.js, line212
Parameters:
Name | Type | Description |
---|---|---|
number |
number | 楼层 |
hideAll()
- Description:
- 隐藏所有楼层
- Source:
- objects/other/LayerBuilding.js, line234
hideBuildings(numbers)
- Description:
- 隐藏楼层
- Source:
- objects/other/LayerBuilding.js, line182
Parameters:
Name | Type | Description |
---|---|---|
numbers |
Array | 楼层,[-1, 1] |
layeringBuilding()
- Description:
- 楼宇分解
- Source:
- objects/other/LayerBuilding.js, line95
pullBuilding(number)
- Description:
- 楼宇处于分解状态时,抽出楼层
- Source:
- objects/other/LayerBuilding.js, line130
Parameters:
Name | Type | Description |
---|---|---|
number |
number | 楼层 |
pushBuilding(number)
- Description:
- 楼宇处于分解状态时,推回楼层
- Source:
- objects/other/LayerBuilding.js, line156
Parameters:
Name | Type | Description |
---|---|---|
number |
number | 楼层 |
showAll()
- Description:
- 显示所有楼层
- Source:
- objects/other/LayerBuilding.js, line225
showBuildings(numbers)
- Description:
- 显示楼层
- Source:
- objects/other/LayerBuilding.js, line197
Parameters:
Name | Type | Description |
---|---|---|
numbers |
Array | 楼层,[-1, 1] |