1 dojo.require("dojox.gfx.silverlight");
3 dojo.experimental("dojox.gfx.silverlight_attach");
6 dojox.gfx.attachNode = function(node){
7 // summary: creates a shape from a Node
8 // node: Node: an Silverlight node
9 return null; // for now
10 if(!node) return null;
12 switch(node.tagName.toLowerCase()){
13 case dojox.gfx.Rect.nodeType:
14 s = new dojox.gfx.Rect(node);
16 case dojox.gfx.Ellipse.nodeType:
17 if(node.width == node.height){
18 s = new dojox.gfx.Circle(node);
20 s = new dojox.gfx.Ellipse(node);
23 case dojox.gfx.Polyline.nodeType:
24 s = new dojox.gfx.Polyline(node);
26 case dojox.gfx.Path.nodeType:
27 s = new dojox.gfx.Path(node);
29 case dojox.gfx.Line.nodeType:
30 s = new dojox.gfx.Line(node);
32 case dojox.gfx.Image.nodeType:
33 s = new dojox.gfx.Image(node);
35 case dojox.gfx.Text.nodeType:
36 s = new dojox.gfx.Text(node);
40 //console.debug("FATAL ERROR! tagName = " + node.tagName);
44 if(!(s instanceof dojox.gfx.Image)){
49 return s; // dojox.gfx.Shape
52 dojox.gfx.attachSurface = function(node){
53 // summary: creates a surface from a Node
54 // node: Node: an Silverlight node
55 return null; // dojox.gfx.Surface
58 var attachFill = function(rawNode){
59 // summary: deduces a fill style from a Node.
60 // rawNode: Node: an Silverlight node
61 return null; // Object
64 var attachStroke = function(rawNode){
65 // summary: deduces a stroke style from a Node.
66 // rawNode: Node: an SVG node
67 return null; // Object
70 var attachTransform = function(rawNode){
71 // summary: deduces a transformation matrix from a Node.
72 // rawNode: Node: an Silverlight node
73 return null; // dojox.gfx.matrix.Matrix
76 var attachFont = function(rawNode){
77 // summary: deduces a font style from a Node.
78 // rawNode: Node: an Silverlight node
79 return null; // Object
82 var attachShape = function(rawNode){
83 // summary: builds a shape from a Node.
84 // rawNode: Node: an Silverlight node
85 return null; // dojox.gfx.Shape