Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve #7104 Themes API: list the properties of the header object
Browse files Browse the repository at this point in the history
OlgaLarina committed Oct 11, 2023
1 parent 1dad7c2 commit c070578
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/themes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { HorizontalAlignment, VerticalAlignment } from "./base-interfaces";

export type ImageFit = "auto" | "contain" | "cover";
export type ImageAttachment = "fixed" | "scroll";

@@ -58,9 +60,26 @@ export interface ITheme {
/**
* An object with survey header settings.
*/
header?: {[index: string]: any};
header?: IAdvancedHeader;
/**
* An object with CSS variables.
*/
cssVariables?: { [index: string]: string };
}

export interface IAdvancedHeader {
height: number;
inheritWidthFrom: "survey" | "page";
textAreaWidth: number;
// textGlowEnabled: boolean;
overlapEnabled: boolean;
backgroundImage: string;
backgroundImageOpacity: number;
backgroundImageFit: "cover" | "fill" | "contain" | "tile";
logoPositionX: HorizontalAlignment;
logoPositionY: VerticalAlignment;
titlePositionX: HorizontalAlignment;
titlePositionY: VerticalAlignment;
descriptionPositionX: HorizontalAlignment;
descriptionPositionY: VerticalAlignment;
}

0 comments on commit c070578

Please sign in to comment.