Skip to content

Commit

Permalink
fix: misspelled word: retangle should be rectangle
Browse files Browse the repository at this point in the history
fix #291
  • Loading branch information
zouyaoji committed Oct 19, 2022
1 parent b79e08a commit a34c121
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/utils/cesium-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ export function makeCameraOptions(camera: VcCamera, ellipsoid?: Cesium.Ellipsoid
}
}
} else if (hasOwn(camera, 'rectangle')) {
const rectangle = camera.retangle
const rectangle = camera.rectangle
destination = makeRectangle(rectangle!) as Cesium.Rectangle
Rectangle.validate(destination)
if (
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ interface Cartesian4Option {

interface VcCamera {
position?: VcPosition
retangle?: RectangleInDegreeOption | Array<number>
rectangle?: RectangleInDegreeOption | Array<number>
heading?: number
pitch?: number
roll?: number
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ There are 1 ways to express `Cesium.Camera`:
```js
interface CameraOption {
position?: Cartesian3Option | CartographicInDegreeOption | Array<number>
retangle?: RectangleInDegreeOption | Array<number>
rectangle?: RectangleInDegreeOption | Array<number>
heading?: number
pitch?: number
roll?: number
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ interface Cartesian4Option {
```js
interface CameraOption {
position?: Cartesian3Option | CartographicInDegreeOption | Array<number>
retangle?: RectangleInDegreeOption | Array<number>
rectangle?: RectangleInDegreeOption | Array<number>
heading?: number
pitch?: number
roll?: number
Expand Down

0 comments on commit a34c121

Please sign in to comment.