Microsoft Office Tutorials and References
In Depth Information
You can also interact with these Visio diagrams and shapes. For example, suppose you want to get more
information by clicking on a shape or to pass the information from a shape to another web part. You can achieve
these scenarios by using the JavaScript API with Visio Services.
Visio Services JavaScript Mashup API
The Visio Services JavaScript Mashup API provides great functionality for accessing or manipulating the shapes
of published diagrams. Using the API, you can alter data, shapes, and pages to make the diagrams more interactive.
There are many operations you can perform on the drawings, some of which are discussed here:
At the Control level, you can retrieve the version, display mode (Silverlight or Image), active
page, and events such as shape selection changed, diagram render complete, etc.
At the Page level, you can get the available shapes, selected shape, shape, position, and other
details.
At the Shape Collection level, you can get the count, items, and metadata, etc.
At the Shape level, you can get the shape data and hyperlink and set highlighting to the shape,
overlays, etc.
The Visio Services JavaScript Mashup API lets you create a rich user interface that combines shapes, data,
and events.
The API consists of a hierarchy of classes, methods, and events as shown in Figure 2-56 . To obtain the reference
of the Visio Web Access web part on a page you need to get the corresponding object, which can be accessed via the
Vwa.VwaControl object. The next level would be the Page object.
Figure 2-56. Visio Services JavaScript Mashup API
 
Search JabSto ::




Custom Search