survey-creator-core
Version:
Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.
58 lines (57 loc) • 1.7 kB
TypeScript
import { Base, SurveyModel } from "survey-core";
import { SurveyCreatorModel } from "../creator-base";
import "./simulator.scss";
export declare class SurveySimulatorModel extends Base {
private surveyProvider;
private surveyChanged;
private updateSimulatorStyle;
constructor(surveyProvider: SurveyCreatorModel);
landscape: boolean;
survey: SurveyModel;
device: string;
orientation: string;
considerDPI: boolean;
isRunning: boolean;
simulatorEnabled: boolean;
simulatorScaleEnabled: boolean;
private currZoomScale;
get zoomScale(): number;
activateZoom: () => void;
deactivateZoom: () => void;
private listenTryToZoomWithWheel;
private tryToZoomWithWheel;
private listenTryToZoom;
tryToZoom(data: any, event: any): boolean;
private changeZoomScale;
private zoomSimulator;
resetZoomParameters(): void;
get activeDevice(): string;
set activeDevice(device: string);
get landscapeOrientation(): boolean;
get scale(): number;
get hasFrame(): boolean;
get simulatorFrame(): {
scale: number;
frameWidth: number;
frameHeight: number;
landscapedFrameWidth: number;
landscapedFrameHeight: number;
deviceWidth: number;
deviceHeight: number;
cssClass: string;
};
getRootCss(): string;
}
export declare var DEFAULT_MONITOR_DPI: number;
export declare var simulatorDevices: {
[index: string]: {
cssPixelRatio?: number;
ppi?: number;
width?: number;
height?: number;
deviceType: string;
title: string;
cssClass?: string;
visibleIndex?: number;
};
};