@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
22 lines (21 loc) • 1.41 kB
TypeScript
import { IPropertyPaneDropdownOption } from '@microsoft/sp-property-pane';
import { IImageFit, IImageCover, IImageTarget, IImageZoom, IGetHeroChoice } from './Types';
import { ImageFit, ImageCoverStyle } from 'office-ui-fabric-react/lib/Image';
export declare const imgFitChoices: IPropertyPaneDropdownOption[];
export declare function getImgFit(findMe: IImageFit): ImageFit;
export declare const imgCoverChoices: IPropertyPaneDropdownOption[];
export declare function getImgCover(findMe: IImageCover): ImageCoverStyle;
export declare const imgTargetChoices: IPropertyPaneDropdownOption[];
export declare const imgTargetChoicesAll: IPropertyPaneDropdownOption[];
export declare function getTarget(findMe: IImageTarget): "_self" | "_blank" | "_parent" | "_top";
export declare const heroChoices: IPropertyPaneDropdownOption[];
export declare function getHeroChoice(findMe: IGetHeroChoice): "none" | "left" | "right" | "footer" | "header";
export declare const hoverZoomChoices: IPropertyPaneDropdownOption[];
export declare const hoverZoomChoicesAll: IPropertyPaneDropdownOption[];
export declare function getHoverZoom(findMe: IImageZoom): 0 | 1 | 1.2 | 1.1;
export declare const hoverEffectChoices: IPropertyPaneDropdownOption[];
/**
* Currently just place holder in case needed.
* @param findMe
*/
export declare function getHoverEffect(findMe: string): 0 | 1 | 1.2 | 1.1 | undefined;