Skip to content

Commit

Permalink
Change properties type from "url" to "file"
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Oct 10, 2023
1 parent 61a6315 commit 7984103
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/cover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Serializer.addClass(
{ name: "textAreaWidth:number", minValue: 0, default: 512 },
{ name: "textGlowEnabled:boolean" },
{ name: "overlapEnabled:boolean" },
{ name: "backgroundImage:url" },
{ name: "backgroundImage:file" },
{ name: "backgroundImageOpacity:number", minValue: 0, maxValue: 1, default: 1 },
{ name: "backgroundImageFit", default: "cover", choices: ["cover", "fill", "contain"] },
{ name: "logoPositionX", default: "right" },
Expand Down
2 changes: 1 addition & 1 deletion src/question_image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function getCorrectImageLink(val: string): string {
Serializer.addClass(
"image",
[
{ name: "imageLink:url", serializationProperty: "locImageLink" },
{ name: "imageLink:file", serializationProperty: "locImageLink" },
{ name: "altText", serializationProperty: "locAltText", alternativeName: "text", category: "general" },
{
name: "contentMode",
Expand Down
2 changes: 1 addition & 1 deletion src/question_imagepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export class QuestionImagePickerModel extends QuestionCheckboxBase {
}
Serializer.addClass(
"imageitemvalue",
[{ name: "imageLink:url", serializationProperty: "locImageLink" }],
[{ name: "imageLink:file", serializationProperty: "locImageLink" }],
(value: any) => new ImageItemValue(value),
"itemvalue"
);
Expand Down
2 changes: 1 addition & 1 deletion src/question_signaturepad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Serializer.addClass(
default: true,
},
{
name: "backgroundImage:url",
name: "backgroundImage:file",
category: "general",
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7438,7 +7438,7 @@ Serializer.addClass("survey", [
serializationProperty: "locDescription",
dependsOn: "locale",
},
{ name: "logo:url", serializationProperty: "locLogo" },
{ name: "logo:file", serializationProperty: "locLogo" },
{ name: "logoWidth", default: "300px", minValue: 0 },
{ name: "logoHeight", default: "200px", minValue: 0 },
{
Expand Down Expand Up @@ -7654,7 +7654,7 @@ Serializer.addClass("survey", [
{ name: "width", visibleIf: (obj: any) => { return obj.widthMode === "static"; } },
{ name: "fitToContainer:boolean", default: false },
{ name: "headerView", default: "basic", choices: ["basic", "advanced"], visible: false },
{ name: "backgroundImage:url", visible: false },
{ name: "backgroundImage:file", visible: false },
{ name: "backgroundImageFit", default: "cover", choices: ["auto", "contain", "cover"], visible: false },
{ name: "backgroundImageAttachment", default: "scroll", choices: ["scroll", "fixed"], visible: false },
{ name: "backgroundOpacity:number", minValue: 0, maxValue: 1, default: 1, visible: false },
Expand Down

0 comments on commit 7984103

Please sign in to comment.