11 Commits

Author SHA1 Message Date
Miguel Del Castillo
ee60729668 Addition of text outline color customization features (#452)
* Modified texture modulation to always modulate to white
 - Corrected wrong logger message call in TextRenderer
 - Corrected missing semicolon in TextRenderer
 - Corrected missing color string in state key of TextAttributes

* Modified documentation to reflect how color is now applied to the text

* Removed parameters from TextRenderer functions that are now unneeded
 - Removed getMaxLineHeight function.
 - Updated call of textRenderer.wrap in Annotation.

* Returned getMaxLineHeight function for documentation purposes

* Modified TextRenderer unit test to fit new function parameters

* First draft of DrawContext.renderText
 - Counterpart to WWA's RenderContext.renderText.

* First propagation of textAttributes to Text through DrawContext
 - Bug: ScreenText and Annotations examples show their text in
   incorrect colors.

* Modified Annotation to use new DrawContext.renderText
 - Annotations example updated to explicitly remove outline from
   the annotation's text.
 - Temporary outline settings for dc.textRenderer are now unneeded and
   are removed as well.

* Corrected Annotation's configuration of fragment program color

* Modified Placemark to use new DrawContext.renderText function

* Corrected wrong assignation of outlineColor

* Updated DrawContext.renderText and TextRenderer documentation

* Disabled Annotation's text outline by default in its constructor
 - Removed superfluous change in TextRenderer documentation
 - Removed text outline disable in Annotations example

* Changed default TextAttributes to a more appropriate name

* Refactored AnnotationAttributes' default text fields for readability
2018-02-06 09:46:05 -08:00
David Collins
7245ba35f1 Added missing semicolon in TextRenderer.test.js 2018-01-12 14:55:12 -08:00
Miguel Del Castillo
9ee36f61e7 Modified RenderText test for empty string input
- Added unit test regarding the aforementioned.
2018-01-10 13:55:31 -06:00
Miguel Del Castillo
cfa9a9dffb Modified mocked DrawContext name to reflect that it's a mockup 2018-01-09 16:29:51 -06:00
Miguel Del Castillo
9d566761d8 Modified TextRenderer unit test to align it with new constructor
- Included a mock DrawContext to avoid WebGL context requirements.
 - Added a new test of exception throwing for the constructor.
2018-01-09 16:23:17 -06:00
Miguel Del Castillo
c4073f0228 Corrected extra parameter in wrapLine call
- Made width a constant in wrap calls.
2018-01-05 15:56:38 -06:00
Miguel Del Castillo
7bf6635131 Dummy commit to trigger reload of a failed TravisCI job 2018-01-05 14:54:49 -06:00
Miguel Del Castillo
639664bc70 Modified mock textSize function to return a realistic value 2018-01-05 13:10:22 -06:00
Miguel Del Castillo
82239849a1 Added comment to TextRenderer mockup 2018-01-05 11:23:16 -06:00
Miguel Del Castillo
7c021ef932 Added tests for wrap and wrapLine functions 2018-01-05 11:16:24 -06:00
Miguel Del Castillo
87df81ea51 First draft of TextRenderer unit test 2018-01-03 17:48:13 -06:00