Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 2 additions & 22 deletions package/src/utils/enteringAnimation.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import type {
MarkerDescriptor as PublicMarkerDescriptor,
OverlayEnteringAnimation,
} from '../types/overlays';
import type {
MarkerDescriptor,
OverlayEnteringAnimationDescriptor,
} from '../native/specs/overlays';
import type { OverlayEnteringAnimation } from '../types/overlays';
import type { OverlayEnteringAnimationDescriptor } from '../native/specs/overlays';

export function normalizeEnteringAnimation(
animation: OverlayEnteringAnimation | undefined,
Expand All @@ -29,17 +23,3 @@ export function normalizeEnteringAnimation(
reduceMotion: animation.reduceMotion,
};
}

export function normalizeMarkerDescriptor(
marker: PublicMarkerDescriptor,
): MarkerDescriptor {
return {
id: marker.id,
coordinate: marker.coordinate,
title: marker.title,
subtitle: marker.subtitle,
draggable: marker.draggable,
clusterable: marker.clusterable,
enteringAnimation: normalizeEnteringAnimation(marker.enteringAnimation),
};
}
Loading