UNPKG

survey-creator-core

Version:

A framework-independent core package of the SurveyJS Survey Creator component. With Survey Creator, you can visually design complex, interactive JSON forms and surveys in a drag-and-drop interface.

64 lines (63 loc) 2.1 kB
import { Base, PageModel, SurveyModel, ActionContainer } from "survey-core"; import { SurveyCreatorModel } from "../../creator-base"; import { PagesController } from "../../pages-controller"; import "./designer.scss"; export declare const initialSettingsAllowShowEmptyTitleInDesignMode: boolean; export declare class TabDesignerViewModel extends Base { private minSurfaceScaling; private maxSurfaceScaling; private stepSurfaceScaling; private cssUpdater; private pagesControllerValue; unitDictionary: { [index: string]: number; }; newPage: PageModel; showNewPage: boolean; pageCount: number; designerCss: string; showPlaceholder: boolean; surfaceScale: number; surfaceCssVariables: { [index: string]: string; }; scaleCssVariables: { [index: string]: string; }; creator: SurveyCreatorModel; surfaceToolbar: ActionContainer; get displayPageDropTarget(): string; private createNewPage; private getNewPageNum; private get canShowNewPage(); private isModifiedPage; constructor(creator: SurveyCreatorModel); updateSurfaceCssVariables(): void; private initSurfaceToolbar; private forceLazyRendering; private scaleSurface; get survey(): SurveyModel; get pagesController(): PagesController; get isToolboxVisible(): boolean; get placeholderText(): string; get placeholderTitleText(): string; get placeholderDescriptionText(): string; get showSurfaceToolbar(): boolean; get showSurfaceTools(): boolean; private isUpdatingNewPage; onDesignerSurveyPropertyChanged(obj: Base, propName: string): void; private calculateDesignerCss; initSurvey(): void; private updateSurveyScaleStartDimensions; private checkNewPage; private updatePages; dispose(): void; private checkLastPageToDelete; _pages: Array<PageModel>; get pages(): Array<PageModel>; set pages(val: Array<PageModel>); private pagesAnimation; private getPagesAnimationOptions; clickDesigner(): void; getRootCss(): string; }