summaryrefslogtreecommitdiffstats
path: root/ksvg/test/ecma/bbox/bbox.js
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:47:59 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:47:59 -0600
commitc2637a0da6d9a1c8626ca39f8451ab3b7cda487a (patch)
treebe38034f085e8be24f14f329f87a611d319e6259 /ksvg/test/ecma/bbox/bbox.js
parent3fd343f2c6b0545bd750b2939c74be3834b13274 (diff)
downloadtdegraphics-c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.tar.gz
tdegraphics-c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'ksvg/test/ecma/bbox/bbox.js')
-rw-r--r--ksvg/test/ecma/bbox/bbox.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksvg/test/ecma/bbox/bbox.js b/ksvg/test/ecma/bbox/bbox.js
index 88eaa592..2d692694 100644
--- a/ksvg/test/ecma/bbox/bbox.js
+++ b/ksvg/test/ecma/bbox/bbox.js
@@ -13,12 +13,12 @@ function bbox_loop(drawit, number)
for(var i = 0; i < number; i++)
{
- var tqshape = doc.getElementById("test-" + i);
- var bbox = tqshape.getBBox();
+ var shape = doc.getElementById("test-" + i);
+ var bbox = shape.getBBox();
if(drawit == "true")
{
- draw_it(doc, bbox, tqshape, i + 1);
+ draw_it(doc, bbox, shape, i + 1);
}
else
{
@@ -27,13 +27,13 @@ function bbox_loop(drawit, number)
}
}
-function do_string(tqshape, number)
+function do_string(shape, number)
{
- var string = "\nShape " + number + "\nX = " + tqshape.x + "\nY = " + tqshape.y + "\nW = " + tqshape.width + "\nH = " + shape.height;
+ var string = "\nShape " + number + "\nX = " + shape.x + "\nY = " + shape.y + "\nW = " + shape.width + "\nH = " + shape.height;
alert(string);
}
-function draw_it(doc, bbox, tqshape, number)
+function draw_it(doc, bbox, shape, number)
{
var element = doc.createElement("rect");
element.setAttribute("x", bbox.x);
@@ -45,7 +45,7 @@ function draw_it(doc, bbox, tqshape, number)
element.setAttribute("stroke-width", "3");
element.setAttribute("id", "bbox" + number);
- tqshape.getParentNode().appendChild(element);
+ shape.getParentNode().appendChild(element);
}
function gen_buttons(evt, number)