Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: rename animation option to withoutAnimation in lookAt (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya01 committed Nov 23, 2022
1 parent abb4ed9 commit 846a6e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function useEngineRef(
lookAt: (camera, options) => {
const viewer = cesium.current?.cesiumElement;
if (!viewer || viewer.isDestroyed()) return;
if (options?.animation) {
if (options?.withoutAnimation) {
return lookAtWithoutAnimation(viewer.scene, { ...getCamera(viewer), ...camera });
}
cancelCameraFlight.current?.();
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/Visualizer/Engine/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export type CameraOptions = {
/** Seconds */
duration?: number;
easing?: (time: number) => number;
animation?: boolean;
withoutAnimation?: boolean;
};

export type ClusterProps = {
Expand Down

0 comments on commit 846a6e2

Please sign in to comment.