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

Commit

Permalink
update property
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed May 27, 2022
1 parent 58ba196 commit b64548c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export type Props = {
};

export default function ReearthClock({ property }: Props): JSX.Element | null {
const { animation, visible, start, end, current, stepType, rangeType, multiplier, step } =
const { animation, visible, start, stop, current, stepType, rangeType, multiplier, step } =
property?.timeline ?? {};
const startTime = useMemo(() => (start ? JulianDate.fromIso8601(start) : undefined), [start]);
const stopTime = useMemo(() => (end ? JulianDate.fromIso8601(end) : undefined), [end]);
const stopTime = useMemo(() => (stop ? JulianDate.fromIso8601(stop) : undefined), [stop]);
const currentTime = useMemo(
() => (current ? JulianDate.fromIso8601(current) : undefined),
[current],
Expand Down
6 changes: 2 additions & 4 deletions src/components/molecules/Visualizer/Engine/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,12 @@ export type SceneProperty = {
};
timeline?: {
animation?: boolean;
visible?: boolean;
current?: string;
start?: string;
end?: string;
visible?: boolean;
stop?: string;
stepType?: "rate" | "fixed";
// The rate at which the clock advances as a multiple of the system time. Enabled only when the clock type is rate.
multiplier?: number;
// The rate at which the clock advances in milliseconds. Enabled only when the clock type is fixed.
step?: number;
rangeType?: "unbounded" | "clamped" | "bounced";
};
Expand Down

0 comments on commit b64548c

Please sign in to comment.