diff --git a/extras/cats.html b/extras/cats.html index 84264f22ad..0861f0bb13 100644 --- a/extras/cats.html +++ b/extras/cats.html @@ -16,7 +16,7 @@ var svg = d3.select("#test svg"); + + + + + + + + @@ -67,7 +85,37 @@ var svg = d3.select("#test svg"); .attr("cy", 0) .attr("r", get_radius_element("#cat1")); + svg.append("g") + .attr("id", "circulo") + .attr("transform", + function(d) { + return "translate(" + get_center_element("#cat3")[0] + " " + get_center_element("#cat3")[1] + ")";}) + .append("circle") + .attr("style", "fill: rgb(0, 255, 0);") + .attr("cx", 0) + .attr("cy", 0) + .attr("r", 20); + + svg.append("g") + .attr("transform", + function(d) { return "translate(" + get_pos_element("#cat3")[0] + " " + get_pos_element("#cat3")[1] + ") scale(" + get_scale_element("#cat3") + ")";}) + .append("rect") + .attr("style", "fill:none; stroke:#ffff00;stroke-width:5") + .attr("width", function(d) { return get_size_element("#cat3")[0];}) + .attr("height", function(d) { return get_size_element("#cat3")[1];}); + + svg.append("g") + .attr("transform", + function(d) { + return "translate(" + get_center_element("#cat3")[0] + " " + get_center_element("#cat3")[1] + ") scale(" + get_scale_element("#cat3") + ")";}) + .append("circle") + .attr("style", "fill: none; stroke-width: 5; stroke: rgb(0, 0, 255);") + .attr("cx", 0) + .attr("cy", 0) + .attr("r", get_radius_element("#cat3")); + arrow_by_pieces("gatete_flecha", "cat1", "cat2"); + arrow_by_pieces("gatete_flecha", "cat3", "cat4"); /** * Function get_radius_element @@ -264,7 +312,7 @@ var svg = d3.select("#test svg"); transform.translate[1] = y; arrow_head.attr("transform", transform.toString()); - + /*---------------------------------------------*/ /*------- Show the result in one time ---------*/ /*---------------------------------------------*/