<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/wt-toolkit/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/wt-toolkit/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 23 Sep 2007 13:45:03 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wt-toolkit/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>function to manually set line color</title><link>https://sourceforge.net/p/wt-toolkit/feature-requests/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Manually specify line color with the addLine and addCurve methods&lt;/p&gt;
&lt;p&gt;wtLineChart.prototype.addCurve = function(ptList, _color)&lt;br /&gt;
{&lt;br /&gt;
if (ptList.length&amp;lt;3)&lt;br /&gt;
throw "wtLineChart::addCurve(): the length of ptList should be greater than or equal to 3";&lt;br /&gt;
if (_color.length&amp;lt;3)&lt;br /&gt;
throw "wtLineChart::addCurve(): color should be a string greater than or equal to 3";&lt;br /&gt;
this.add("curve",ptList,_color);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;also modified private function .add&lt;/p&gt;
&lt;p&gt;wtLineChart.prototype.add = function(_type,ptList,_color)&lt;br /&gt;
{&lt;br /&gt;
var domNode = $_(this);&lt;/p&gt;
&lt;p&gt;// if user passed a color string, either grab an autogenerated color&lt;br /&gt;
// or store the user color as a wtColor object in the color array&lt;br /&gt;
if (_color=="auto" || _color=="")&lt;br /&gt;
{&lt;br /&gt;
var color = domNode.colorGen.colorArray[domNode.path_.length].toString();&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
var color = _color;&lt;br /&gt;
domNode.colorGen.colorArray[domNode.path_.length] = new wtColor(_color);&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gordon</dc:creator><pubDate>Sun, 23 Sep 2007 13:45:03 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netcd4959c58b2eb5de0f6dca791a4826ad7a7b6bfd</guid></item><item><title>function to set font weight</title><link>https://sourceforge.net/p/wt-toolkit/feature-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;font color and font style have functions, but nothing for font weight (normal or bold).&lt;/p&gt;
&lt;p&gt;(in wt_vector.js, wtText)&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt;
Sets the font weight of the text&lt;br /&gt;
@param {String} _weight The font style ( normal, bold )&lt;br /&gt;
*/&lt;br /&gt;
wtText.prototype.setFontWeight = function(_weight)&lt;br /&gt;
{&lt;br /&gt;
_weight = _weight.toLowerCase();&lt;br /&gt;
if (!(_weight == "normal" || _weight == "bold"))&lt;br /&gt;
throw "wtText::setFontWeight(): the font weight should be 'normal' or 'bold'";&lt;/p&gt;
&lt;p&gt;var domNode = $_(this);&lt;br /&gt;
if (isMSIE())&lt;br /&gt;
{&lt;br /&gt;
this.get("divNode").get("style").fontWeight = _weight;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
domNode.setAttribute("font-weight",_weight);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gordon</dc:creator><pubDate>Sun, 23 Sep 2007 13:41:46 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net7c7194f7cc3f2bfd51220b2aab7c3d3c3b420f9b</guid></item><item><title>method to reposition wtText object via javascript</title><link>https://sourceforge.net/p/wt-toolkit/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Not sure if this is the proper way to move a wtText object once it has been created, but I couldn't see any other easy way to do it.&lt;/p&gt;
&lt;p&gt;(added to wt_vector.js)&lt;/p&gt;
&lt;p&gt;New function for the wtText prototype:&lt;br /&gt;
/**&lt;br /&gt;
Sets the x,y location of the text&lt;br /&gt;
@param {Number,Number} x,y The x and y location&lt;br /&gt;
*/&lt;br /&gt;
wtText.prototype.setXY = function(_x,_y)&lt;br /&gt;
{&lt;/p&gt;
&lt;p&gt;if (isMSIE())&lt;br /&gt;
{&lt;br /&gt;
this.get("divNode").get("style").left = _x;&lt;br /&gt;
this.get("divNode").get("style").top = _y;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
$_(this).setAttribute("x", _x);&lt;br /&gt;
$_(this).setAttribute("y", _y);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gordon</dc:creator><pubDate>Sun, 23 Sep 2007 13:39:54 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net5ed9c5bd4dde68dd908a49a7604db49ae0efe205</guid></item></channel></rss>