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

feat(render): Add forced init option on lazy rendering #3884

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

netil
Copy link
Member

@netil netil commented Sep 20, 2024

Issue

#3106

Details

Make to initialize when chart element isn't visible, but render.lazy=false is set

@netil netil added the feature label Sep 20, 2024
@netil netil self-assigned this Sep 20, 2024
Make to initialize when chart element isn't visible, but
render.lazy=false is set

Ref naver#3106
@coveralls
Copy link

coveralls commented Sep 20, 2024

Coverage Status

coverage: 94.234% (-0.01%) from 94.246%
when pulling 072c58b on netil:render#3106
into d762dbd on naver:master.

@netil netil merged commit 218ce46 into naver:master Sep 20, 2024
10 checks passed
@netil netil deleted the render#3106 branch September 20, 2024 10:30
// hook = () => {
// logError(`The call of APIs won't work. Please, make sure if chart element is %cvisible.`);
// };
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this has been removed ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left for future consideration as comment.

@@ -518,7 +518,7 @@ describe("Interface & initialization", () => {
}));

it("check lazy rendering on callbacks", () => new Promise(done => {
const el: any = document.body.querySelector("#chart");
const el = <HTMLDivElement>document.body.querySelector("#chart");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the modern typescript way for that is to use the document.body.querySelector("#chart") as HTMLDivElement instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants