From 061b43af93bbd2f8f2b1eb113d5fde234b0ef756 Mon Sep 17 00:00:00 2001 From: RomanTsukanov Date: Mon, 10 Feb 2025 13:10:58 +0400 Subject: [PATCH] Describe the `allowZoom` property --- packages/survey-creator-core/src/creator-base.ts | 5 +++++ packages/survey-creator-core/src/creator-options.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/packages/survey-creator-core/src/creator-base.ts b/packages/survey-creator-core/src/creator-base.ts index 7b1cb0fcf2..cbf65323b1 100644 --- a/packages/survey-creator-core/src/creator-base.ts +++ b/packages/survey-creator-core/src/creator-base.ts @@ -181,6 +181,11 @@ export class SurveyCreatorModel extends Base */ @property({ defaultValue: false }) showThemeTab: boolean; @property({ defaultValue: true }) showCreatorThemeSettings: boolean; + /** + * Specifies whether the "Zoom In", "Zoom Out", and "Zoom to 100%" buttons are available. + * + * Default value: `true` + */ @property({ defaultValue: true }) allowZoom: boolean; /** * Specifies whether to display the Translation tab. diff --git a/packages/survey-creator-core/src/creator-options.ts b/packages/survey-creator-core/src/creator-options.ts index 4194a25664..e5384fd49f 100644 --- a/packages/survey-creator-core/src/creator-options.ts +++ b/packages/survey-creator-core/src/creator-options.ts @@ -53,6 +53,11 @@ export interface ICreatorOptions { */ showThemeTab?: boolean; showCreatorThemeSettings?: boolean; + /** + * Specifies whether the "Zoom In", "Zoom Out", and "Zoom to 100%" buttons are available. + * + * Default value: `true` + */ allowZoom?: boolean; /** * Specifies whether to call the [`saveSurveyFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveSurveyFunc) and [`saveThemeFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveThemeFunc) functions each time survey or theme settings are changed.