//>>built
define("dojox/drawing/plugins/tools/Iconize",["dojo","../../util/oo","../_Plugin","../../manager/_registry"],function(h,b,l,m){b=b.declare(l,function(c){},{onClick:function(){var c,e;for(e in this.stencils.stencils)if(console.log(" stanceil item:",this.stencils.stencils[e].id,this.stencils.stencils[e]),"path"==this.stencils.stencils[e].shortType){c=this.stencils.stencils[e];break}c&&(console.log("click Iconize plugin",c.points),this.makeIcon(c.points))},makeIcon:function(c){var e=1E4,b=1E4;c.forEach(function(a){void 0===
a.x||isNaN(a.x)||(e=Math.min(e,a.x),b=Math.min(b,a.y))});var f=0,g=0;c.forEach(function(a){void 0===a.x||isNaN(a.x)||(a.x=Number((a.x-e).toFixed(1)),a.y=Number((a.y-b).toFixed(1)),f=Math.max(f,a.x),g=Math.max(g,a.y))});console.log("xmax:",f,"ymax:",g);c.forEach(function(a){a.x=60*Number((a.x/f).toFixed(1))+20;a.y=60*Number((a.y/g).toFixed(1))+20});var d="[\n";h.forEach(c,function(a,b){d+="{\t";a.t&&(d+="t:'"+a.t+"'");void 0===a.x||isNaN(a.x)||(a.t&&(d+=", "),d+="x:"+a.x+",\t\ty:"+a.y);d+="\t}";b!=
c.length-1&&(d+=",");d+="\n"});d+="]";console.log(d);var k=h.byId("data");k&&(k.value=d)}});b.setup={name:"dojox.drawing.plugins.tools.Iconize",tooltip:"Iconize Tool",iconClass:"iconPan"};h.setObject("dojox.drawing.plugins.tools.Iconize",b);m.register(b.setup,"plugin");return b});