@wework/floormap.gl
Advanced tools
Comparing version 0.8.5-rc1 to 0.8.5-rc2
{ | ||
"name": "@wework/floormap.gl", | ||
"version": "0.8.5-rc1", | ||
"version": "0.8.5-rc2", | ||
"module": "dist/index.es.js", | ||
@@ -71,4 +71,4 @@ "main": "dist/index.js", | ||
"three-line-2d": "^1.1.6", | ||
"three.textsprite": "18.10.24" | ||
"three.texttexture": "19.0.0" | ||
} | ||
} |
@@ -286,7 +286,7 @@ # floormap.gl | ||
| Name | Type | Description | | ||
| ------------- | ------- | ------------------------------------------------------------------------ | | ||
| zoomLevel | number | zoom level of the camera view, default is `1` | | ||
| enableRotate | boolean | to enable to control and rotate the camera view angle, default is `true` | | ||
| maxPolarAngle | number | max horizontal rotation of the camera in degree, default is `90` | | ||
| Name | Type | Description | | ||
| ------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------- | | ||
| zoomLevel | number | zoom level of the camera view, default is `1` | | ||
| enableRotate | boolean | to enable to control and rotate the camera view angle, default is `true` | | ||
| maxPolarAngle | number | max horizontal rotation of the camera in degree, default is `90`. If you set it to `0` it will disable the camera to rotate in 3D view | | ||
@@ -304,2 +304,3 @@ # List of APIs in floormap.gl | ||
- [setCameraViewAngle](#setCameraViewAngle) | ||
- [setMaxCameraViewAngle](#setMaxCameraViewAngle) | ||
- [createInstancedMesh](#createInstancedMesh) | ||
@@ -431,2 +432,7 @@ - [addToInstancedMesh](#addToInstancedMesh) | ||
| Parameters | Type | Description | | ||
| --------------- | ------ | ---------------------------------------------------------- | | ||
| polarAngle | number | rotation angle in 3d view, default is `0` degree | | ||
| azimuthAngle | number | rotation angle in 2d view, default is `0` degree | | ||
###### Example: | ||
@@ -440,2 +446,22 @@ | ||
### setMaxCameraViewAngle | ||
Set the maximum camera rotation view angle | ||
`.setMaxCameraViewAngle({ maxPolarAngle: Number, maxAzimuthAngle: Number })` | ||
| Parameters | Type | Description | | ||
| --------------- | ------ | ---------------------------------------------------------- | | ||
| maxPolarAngle | number | how far you can rotate in 3d view, default is `90` degree | | ||
| maxAzimuthAngle | number | how far you can rotate in 2d view, default is `360` degree | | ||
###### Example: | ||
```javascript | ||
renderer.setMaxCameraViewAngle({ maxPolarAngle: 90, maxAzimuthAngle: 360 }) | ||
renderer.setMaxCameraViewAngle({ maxPolarAngle: 0 }) // Here is one way to disable 3D view | ||
``` | ||
--- | ||
### getIdsByTags | ||
@@ -442,0 +468,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3269267
4634
939
+ Addedthree.texttexture@19.0.0
+ Addedthree.texttexture@19.0.0(transitive)
- Removedthree.textsprite@18.10.24
- Removedthree@0.97.0(transitive)
- Removedthree.textsprite@18.10.24(transitive)
- Removedthree.texttexture@18.10.24(transitive)