root / trunk / web / dojo / dojox / gfx / silverlight_attach.js @ 10
History | View | Annotate | Download (1.26 KB)
1 |
/*
|
---|---|
2 |
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
3 |
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
4 |
see: http://dojotoolkit.org/license for details
|
5 |
*/
|
6 |
|
7 |
|
8 |
dojo.require("dojox.gfx.silverlight");
|
9 |
dojo.experimental("dojox.gfx.silverlight_attach");
|
10 |
(function(){
|
11 |
dojox.gfx.attachNode=function(_1){ |
12 |
return null; |
13 |
if(!_1){
|
14 |
return null; |
15 |
} |
16 |
var s=null; |
17 |
switch(_1.tagName.toLowerCase()){
|
18 |
case dojox.gfx.Rect.nodeType:
|
19 |
s=new dojox.gfx.Rect(_1);
|
20 |
break;
|
21 |
case dojox.gfx.Ellipse.nodeType:
|
22 |
if(_1.width==_1.height){
|
23 |
s=new dojox.gfx.Circle(_1);
|
24 |
}else{
|
25 |
s=new dojox.gfx.Ellipse(_1);
|
26 |
} |
27 |
break;
|
28 |
case dojox.gfx.Polyline.nodeType:
|
29 |
s=new dojox.gfx.Polyline(_1);
|
30 |
break;
|
31 |
case dojox.gfx.Path.nodeType:
|
32 |
s=new dojox.gfx.Path(_1);
|
33 |
break;
|
34 |
case dojox.gfx.Line.nodeType:
|
35 |
s=new dojox.gfx.Line(_1);
|
36 |
break;
|
37 |
case dojox.gfx.Image.nodeType:
|
38 |
s=new dojox.gfx.Image(_1);
|
39 |
break;
|
40 |
case dojox.gfx.Text.nodeType:
|
41 |
s=new dojox.gfx.Text(_1);
|
42 |
_2(s); |
43 |
break;
|
44 |
default:
|
45 |
return null; |
46 |
} |
47 |
_3(s); |
48 |
if(!(s instanceof dojox.gfx.Image)){ |
49 |
_4(s); |
50 |
_5(s); |
51 |
} |
52 |
_6(s); |
53 |
return s;
|
54 |
}; |
55 |
dojox.gfx.attachSurface=function(_7){ |
56 |
return null; |
57 |
}; |
58 |
var _4=function(_8){ |
59 |
return null; |
60 |
}; |
61 |
var _5=function(_9){ |
62 |
return null; |
63 |
}; |
64 |
var _6=function(_a){ |
65 |
return null; |
66 |
}; |
67 |
var _2=function(_b){ |
68 |
return null; |
69 |
}; |
70 |
var _3=function(_c){ |
71 |
return null; |
72 |
}; |
73 |
})(); |