Text color fails when textbox rotated
See original GitHub issueI am finding an odd behavior when I colorize text in a textbox and rotate it. When I use a primary color, say red (0xFF0000), the rotated text will be as expected, red. However, when I use an alternate color flavoring, say 0x974435, the rotated text becomes white. So what is going on?
Also, I think I found a problem when supplying a three element array for the RGB colors. The code in text.js is expecting an object looking like {r:0,g:0,b} and the vector_helper.js function is simply sending back the array. So the following code in vector_helper.js
function transformColorToRGB(code) {
return (Array.isArray(code)) ? code : hexToRgb(code);
}
should be:
function transformColorToRGB(code) {
return (Array.isArray(code)) ? { r:code[0], g:code[1], b:code[2] } : hexToRgb(code);
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Rotated text symbols are oriented upside down in ArcGIS Pro
When editing in the Layout view in ArcGIS Pro, the font, size, and color of text symbols are customized according to the context...
Read more >Text Box Rotation Issue - vba - Stack Overflow
I am trying to write a macro to insert a custom watermark in my Word document. The code works perfectly for the first...
Read more >Rotated Text causes error in EngageOne Generate - Precisely
I have lines from a PostScript file with the text rotated by rotating the Text Box. You can see that from the point...
Read more >How to rotate the annotation text box? - MATLAB Answers
Yes, as both Answers you referred to note specifically you can't rotate an annotation textbox and to use text object or textarrow instead....
Read more >Color and Rotation of TextBox on DrawingSketch - Inventor
Hi all. I have two questions. 1) I want to change color of textbox on DrawingSketch. But still without any efect. Set oTextBox...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How does the documentation get updated? The rotation nomenclature for text indicates rotation is fixed to 0, 90, 180,… and that is no longer true? Same goes for the rectangle fix I am going to put in. Rectangles will now be able to be rotated.
Fix in
hummus-recipe@1.8.2