Skip to content

Commit

Permalink
use FeatureAnimation class instead of featureAnimation const value
Browse files Browse the repository at this point in the history
  • Loading branch information
smellman committed Apr 13, 2022
1 parent 5479b48 commit e18f56c
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Bounce.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation';
import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation';

export interface Options {
bounce?: number;
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Drop.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation';
import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation';

export interface Options {
speed?: number;
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Fade.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatureAnimation, { FeatureAnimationEvent, Options } from './FeatureAnimation';
import {FeatureAnimation, FeatureAnimationEvent, Options } from './FeatureAnimation';
/** Fade animation: feature fade in
* @constructor
* @extends {featureAnimation}
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/None.d.ts
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Null.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation';
import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation';

/** Do nothing
* @constructor
Expand Down
3 changes: 1 addition & 2 deletions @types/ol-ext/featureanimation/Path.d.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Shake.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation';
import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation';

export interface Options{
bounce?: number;
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Show.d.ts
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Slide.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatureAnimation, { FeatureAnimationEvent } from './FeatureAnimation';
import { FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation';

export interface Options {
speed?: number;
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Teleport.d.ts
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Throw.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatureAnimation, {FeatureAnimationEvent } from './FeatureAnimation';
import {FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation';

export interface Options {
side?: 'left' | 'right';
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/Zoom.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatureAnimation, { FeatureAnimationEvent } from './FeatureAnimation';
import { FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation';

export interface Options {
zoomOut?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/featureanimation/ZoomOut.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatureAnimation, { FeatureAnimationEvent } from './FeatureAnimation';
import { FeatureAnimation, FeatureAnimationEvent } from './FeatureAnimation';

export interface Options {
zoomOut?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions @types/ol-ext/render/AnimExtent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' {
Expand Down Expand Up @@ -48,7 +48,7 @@ declare module 'ol/layer' {
*/
animateFeature(
feature: Feature,
fanim: featureAnimation | featureAnimation[],
fanim: FeatureAnimation | FeatureAnimation[],
useFilter?: boolean
): animationControler;
}
Expand Down

0 comments on commit e18f56c

Please sign in to comment.