forked from NG-ZORRO/ng-zorro-antd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.ts
44 lines (36 loc) · 1.22 KB
/
typings.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { Direction } from '@angular/cdk/bidi';
import { InjectionToken, NgZone, QueryList } from '@angular/core';
import { NzCarouselContentDirective } from './carousel-content.directive';
import { NzCarouselBaseStrategy } from './strategies/base-strategy';
export type NzCarouselEffects = 'fade' | 'scrollx' | string;
export type NzCarouselDotPosition = 'top' | 'bottom' | 'left' | 'right' | string;
export interface NzCarouselComponentAsSource {
carouselContents: QueryList<NzCarouselContentDirective>;
el: HTMLElement;
nzTransitionSpeed: number;
vertical: boolean;
slickListEl: HTMLElement;
slickTrackEl: HTMLElement;
activeIndex: number;
dir: Direction;
ngZone: NgZone;
}
export interface NzCarouselStrategyRegistryItem {
name: string;
strategy: NzCarouselBaseStrategy;
}
export const NZ_CAROUSEL_CUSTOM_STRATEGIES = new InjectionToken<NzCarouselStrategyRegistryItem[]>(
'nz-carousel-custom-strategies'
);
export interface PointerVector {
x: number;
y: number;
}
export interface FromToInterface {
from: number;
to: number;
}