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

Elaborate on style property documentation #290

Open
rgov opened this issue Sep 29, 2024 · 3 comments
Open

Elaborate on style property documentation #290

rgov opened this issue Sep 29, 2024 · 3 comments

Comments

@rgov
Copy link

rgov commented Sep 29, 2024

The style property, e.g., Body.style is documented as "Styling for dev-tools" without elaboration. It is used in the testbed examples like Soccer to change the stroke and fill colors of the bodies.

I can't follow the repo history very well but there used to be a render property used similarly. The examples currently live show outdated examples that use render and a deprecated Testbed constructor.

@rgov

This comment was marked as off-topic.

@thelabcat
Copy link

The above comment by @SagarChandra07 is likely malware, do not download it.

Confirmed. 17 positives on VirusTotal. They are spamming it everywhere. Please report!

@piqnt piqnt deleted a comment Sep 29, 2024
@shakiba
Copy link
Collaborator

shakiba commented Sep 30, 2024

That's correct, 'render' is replaced by 'style'.

'render' was experimental and was not documented, it should still work but it is not included in the typescript API.

Please note that, as mentioned in the docs, style is for dev-tools and debugging purpose (render was also for debugging purpose).

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

No branches or pull requests

3 participants