Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying CONTENT_GAP_VERT_SCALE and other read-only properties of the FlatQuestion object raises a TypeScript error #349

Closed
JaneSjs opened this issue Nov 11, 2024 · 0 comments
Assignees
Labels
bug user issue An issue or bug reported by users.

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Nov 11, 2024

T20649 - Issue with Modifying Read-Only Properties in SurveyJS PDF Generator for Angular
https://surveyjs.answerdesk.io/internal/ticket/details/T20649


public static readonly CONTENT_INDENT_SCALE: number = 1.0;

A TS compilation error occurs when using the code from the Customize PDF Forms demo.

import { FlatQuestion } from "survey-pdf";

// Decrease the horizontal indent of the question content
FlatQuestion.CONTENT_INDENT_SCALE = 0;
// Decrease the vertical indent of the question content
FlatQuestion.CONTENT_GAP_VERT_SCALE = 0.1;
@JaneSjs JaneSjs added bug user issue An issue or bug reported by users. labels Nov 11, 2024
@RomanTsukanov RomanTsukanov changed the title The Customize PDF Forms Demo uses read-only API - Cannot assign to 'CONTENT_GAP_VERT_SCALE' because it is a read-only property Modifying CONTENT_GAP_VERT_SCALE and other read-olnly properties of the FlatQuestion object raises a TypeScript error Nov 13, 2024
@RomanTsukanov RomanTsukanov changed the title Modifying CONTENT_GAP_VERT_SCALE and other read-olnly properties of the FlatQuestion object raises a TypeScript error Modifying CONTENT_GAP_VERT_SCALE and other read-only properties of the FlatQuestion object raises a TypeScript error Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users.
Projects
None yet
Development

No branches or pull requests

2 participants