From e18f56c0f33bc1706992b87c164b3d30e8a09070 Mon Sep 17 00:00:00 2001 From: Taro Matsuzawa Date: Wed, 13 Apr 2022 14:37:51 +0900 Subject: [PATCH] use FeatureAnimation class instead of featureAnimation const value --- @types/ol-ext/featureanimation/Bounce.d.ts | 2 +- @types/ol-ext/featureanimation/Drop.d.ts | 2 +- @types/ol-ext/featureanimation/Fade.d.ts | 2 +- @types/ol-ext/featureanimation/None.d.ts | 2 +- @types/ol-ext/featureanimation/Null.d.ts | 2 +- @types/ol-ext/featureanimation/Path.d.ts | 3 +-- @types/ol-ext/featureanimation/Shake.d.ts | 2 +- @types/ol-ext/featureanimation/Show.d.ts | 2 +- @types/ol-ext/featureanimation/Slide.d.ts | 2 +- @types/ol-ext/featureanimation/Teleport.d.ts | 2 +- @types/ol-ext/featureanimation/Throw.d.ts | 2 +- @types/ol-ext/featureanimation/Zoom.d.ts | 2 +- @types/ol-ext/featureanimation/ZoomOut.d.ts | 2 +- @types/ol-ext/render/AnimExtent.d.ts | 4 ++-- 14 files changed, 15 insertions(+), 16 deletions(-) diff --git a/@types/ol-ext/featureanimation/Bounce.d.ts b/@types/ol-ext/featureanimation/Bounce.d.ts index ccde6a3..a502438 100644 --- a/@types/ol-ext/featureanimation/Bounce.d.ts +++ b/@types/ol-ext/featureanimation/Bounce.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation'; +import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation'; export interface Options { bounce?: number; diff --git a/@types/ol-ext/featureanimation/Drop.d.ts b/@types/ol-ext/featureanimation/Drop.d.ts index 2fad135..ddfd457 100644 --- a/@types/ol-ext/featureanimation/Drop.d.ts +++ b/@types/ol-ext/featureanimation/Drop.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation'; +import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation'; export interface Options { speed?: number; diff --git a/@types/ol-ext/featureanimation/Fade.d.ts b/@types/ol-ext/featureanimation/Fade.d.ts index 002ce59..e02249d 100644 --- a/@types/ol-ext/featureanimation/Fade.d.ts +++ b/@types/ol-ext/featureanimation/Fade.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, { FeatureAnimationEvent, Options } from './FeatureAnimation'; +import {FeatureAnimation, FeatureAnimationEvent, Options } from './FeatureAnimation'; /** Fade animation: feature fade in * @constructor * @extends {featureAnimation} diff --git a/@types/ol-ext/featureanimation/None.d.ts b/@types/ol-ext/featureanimation/None.d.ts index 6853b8f..cd02276 100644 --- a/@types/ol-ext/featureanimation/None.d.ts +++ b/@types/ol-ext/featureanimation/None.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, {FeatureAnimationEvent, Options } from './FeatureAnimation'; +import {FeatureAnimation, FeatureAnimationEvent, Options } from './FeatureAnimation'; /** Do nothing for a given duration * @constructor * @extends {featureAnimation} diff --git a/@types/ol-ext/featureanimation/Null.d.ts b/@types/ol-ext/featureanimation/Null.d.ts index d6f9b67..5d63a40 100644 --- a/@types/ol-ext/featureanimation/Null.d.ts +++ b/@types/ol-ext/featureanimation/Null.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation'; +import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation'; /** Do nothing * @constructor diff --git a/@types/ol-ext/featureanimation/Path.d.ts b/@types/ol-ext/featureanimation/Path.d.ts index 52d15bf..2b50833 100644 --- a/@types/ol-ext/featureanimation/Path.d.ts +++ b/@types/ol-ext/featureanimation/Path.d.ts @@ -1,7 +1,6 @@ import Feature from 'ol/Feature'; import { LineString } from 'ol/geom'; -import { FeatureAnimationEvent } from './FeatureAnimation'; -import FeatureAnimation from './FeatureAnimation'; +import { FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation'; export interface Options { speed?: number; diff --git a/@types/ol-ext/featureanimation/Shake.d.ts b/@types/ol-ext/featureanimation/Shake.d.ts index b20150e..b0cfe34 100644 --- a/@types/ol-ext/featureanimation/Shake.d.ts +++ b/@types/ol-ext/featureanimation/Shake.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation'; +import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation'; export interface Options{ bounce?: number; diff --git a/@types/ol-ext/featureanimation/Show.d.ts b/@types/ol-ext/featureanimation/Show.d.ts index 0161c4d..cb06d4a 100644 --- a/@types/ol-ext/featureanimation/Show.d.ts +++ b/@types/ol-ext/featureanimation/Show.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, { Options, FeatureAnimationEvent } from './FeatureAnimation'; +import { FeatureAnimation, Options, FeatureAnimationEvent } from './FeatureAnimation'; /** Show an object for a given duration * @constructor * @extends {featureAnimation} diff --git a/@types/ol-ext/featureanimation/Slide.d.ts b/@types/ol-ext/featureanimation/Slide.d.ts index effe26f..e74aa5b 100644 --- a/@types/ol-ext/featureanimation/Slide.d.ts +++ b/@types/ol-ext/featureanimation/Slide.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, { FeatureAnimationEvent } from './FeatureAnimation'; +import { FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation'; export interface Options { speed?: number; diff --git a/@types/ol-ext/featureanimation/Teleport.d.ts b/@types/ol-ext/featureanimation/Teleport.d.ts index 15fbcff..6f47591 100644 --- a/@types/ol-ext/featureanimation/Teleport.d.ts +++ b/@types/ol-ext/featureanimation/Teleport.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, { Options, FeatureAnimationEvent } from './FeatureAnimation'; +import { FeatureAnimation, Options, FeatureAnimationEvent } from './FeatureAnimation'; /** Teleport a feature at a given place * @constructor * @extends {featureAnimation} diff --git a/@types/ol-ext/featureanimation/Throw.d.ts b/@types/ol-ext/featureanimation/Throw.d.ts index 3b11826..dbaca95 100644 --- a/@types/ol-ext/featureanimation/Throw.d.ts +++ b/@types/ol-ext/featureanimation/Throw.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation'; +import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation'; export interface Options { side?: 'left' | 'right'; diff --git a/@types/ol-ext/featureanimation/Zoom.d.ts b/@types/ol-ext/featureanimation/Zoom.d.ts index 6246107..28f68fa 100644 --- a/@types/ol-ext/featureanimation/Zoom.d.ts +++ b/@types/ol-ext/featureanimation/Zoom.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, { FeatureAnimationEvent } from './FeatureAnimation'; +import { FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation'; export interface Options { zoomOut?: boolean; diff --git a/@types/ol-ext/featureanimation/ZoomOut.d.ts b/@types/ol-ext/featureanimation/ZoomOut.d.ts index e03efab..536b3e1 100644 --- a/@types/ol-ext/featureanimation/ZoomOut.d.ts +++ b/@types/ol-ext/featureanimation/ZoomOut.d.ts @@ -1,4 +1,4 @@ -import FeatureAnimation, { FeatureAnimationEvent } from './FeatureAnimation'; +import { FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation'; export interface Options { zoomOut?: boolean; diff --git a/@types/ol-ext/render/AnimExtent.d.ts b/@types/ol-ext/render/AnimExtent.d.ts index c562ffe..e716fdb 100644 --- a/@types/ol-ext/render/AnimExtent.d.ts +++ b/@types/ol-ext/render/AnimExtent.d.ts @@ -2,7 +2,7 @@ import { Coordinate } from 'ol/coordinate'; import { ProjectionLike } from 'ol/proj'; import { Stroke } from 'ol/style'; import Feature from 'ol/Feature'; -import featureAnimation from '../featureanimation/FeatureAnimation'; +import { FeatureAnimation } from '../featureanimation/FeatureAnimation'; import { animationControler } from '../featureanimation/FeatureAnimation'; declare module 'ol/Map' { @@ -48,7 +48,7 @@ declare module 'ol/layer' { */ animateFeature( feature: Feature, - fanim: featureAnimation | featureAnimation[], + fanim: FeatureAnimation | FeatureAnimation[], useFilter?: boolean ): animationControler; }