stimulsoft-viewer-angular
Version:
Stimulsoft Viewer Angular
55 lines (54 loc) • 2.52 kB
TypeScript
import { ModelService } from './model.service';
import { AnimationService } from './animation.service';
import { DateTimeObject } from './objects';
import * as i0 from "@angular/core";
export declare class HelperService {
private model;
private animationService;
constructor(model: ModelService, animationService: AnimationService);
val(value: string, def?: string): string;
findPosY(obj: any, mainClassName?: string, noScroll?: boolean): number;
getScrollYOffset(obj: any, mainClassName: string): number;
findPosX(obj: any, mainClassName: string, noScroll?: boolean): number;
getScrollXOffset(obj: any, mainClassName: string): number;
showHelpWindow(url: string): void;
openNewWindow(url: string, name?: string, specs?: string): Window;
scrollToAnchor(anchorName: string, componentGuid?: string): void;
removeBookmarksLabel(): void;
getPageFromAnchorElement(anchorElement: any): any;
strToInt(value: any): number;
strToDouble(value: any): number;
copyObject(o: any): any;
getCountObjects(objectArray: any): number;
replaceMonths(value: string): string;
getDate(dateTimeObj: DateTimeObject): Date;
getDateTimeObject(date?: Date): DateTimeObject;
getDateTimeFromString(value: string, format: string): any;
getStringDateTime(object: any, dateTimeType: any): string;
dateTimeObjectToString(dateTimeObject: any, typeDateTimeObject?: any): string;
dateToLocaleString(date: any, dateTimeType?: any): string;
formatDate(formatDate: any, formatString: string): string;
getStringKey(key: string, params: any): string;
stringToTime(timeStr: string): {
hours: number;
minutes: number;
seconds: number;
};
newGuid(): string;
getCountDaysOfMonth(year: number, month: number): number;
setObjectToCenter(object: any, defaultTop?: number): any;
checkCloudAuthorization(action: any): boolean;
private getCookie_;
getCookie(name: string): string;
removeCookie(name: string): void;
setCookie(name: string, value: any, path?: any, domain?: any, secure?: any, expires?: any): void;
getNavigatorName(): string;
isTouchDevice(): boolean;
isMobileDevice(): boolean;
getHumanFileSize(value: number, decimals: number): string;
getZoomMenuItems(): any;
get helpLinks(): any;
getBackText(withoutBrackets?: boolean): string;
static ɵfac: i0.ɵɵFactoryDeclaration<HelperService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<HelperService>;
}