UNPKG

1.24 kBTypeScriptView Raw
1/**
2 * Use of this source code is governed by an MIT-style license that can be
3 * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
4 */
5import { Direction } from '@angular/cdk/bidi';
6import { InjectionToken, NgZone, QueryList } from '@angular/core';
7import { NzCarouselContentDirective } from './carousel-content.directive';
8import { NzCarouselBaseStrategy } from './strategies/base-strategy';
9export type NzCarouselEffects = 'fade' | 'scrollx' | string;
10export type NzCarouselDotPosition = 'top' | 'bottom' | 'left' | 'right' | string;
11export interface NzCarouselComponentAsSource {
12 carouselContents: QueryList<NzCarouselContentDirective>;
13 el: HTMLElement;
14 nzTransitionSpeed: number;
15 vertical: boolean;
16 slickListEl: HTMLElement;
17 slickTrackEl: HTMLElement;
18 activeIndex: number;
19 dir: Direction;
20 ngZone: NgZone;
21}
22export interface NzCarouselStrategyRegistryItem {
23 name: string;
24 strategy: NzCarouselBaseStrategy;
25}
26export declare const NZ_CAROUSEL_CUSTOM_STRATEGIES: InjectionToken<NzCarouselStrategyRegistryItem[]>;
27export interface PointerVector {
28 x: number;
29 y: number;
30}
31export interface FromToInterface {
32 from: number;
33 to: number;
34}