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

setAttribute is not reflected #2692

Open
rwakamatsu opened this issue Oct 17, 2021 · 1 comment
Open

setAttribute is not reflected #2692

rwakamatsu opened this issue Oct 17, 2021 · 1 comment
Labels

Comments

@rwakamatsu
Copy link

rwakamatsu commented Oct 17, 2021

I wrote
"this.svgPath_.setAttribute('stroke', this.getColour());"
"this.svgPath_.setAttribute('class ', 'blocklyPathTest');"
in scratch-blocks/core/block_svg.js.

The class is reflected, but the stroke is not reflected.

Can anyone solve this?

スクリーンショット 2021-10-18 5 06 07

@ericrosenbaum
Copy link
Contributor

Did you try modifying the updateColour function? that appears to also set the stroke.

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

No branches or pull requests

3 participants