Drawing with Dojox GFX

Source: Internet
Author: User
Tags include new features require dojo toolkit

Dojo Toolkit and DojoX GFX

Ajax has almost become the standard configuration for every network application in a Web2.0 era where almost all pages require a friendly and rich user experience. But Ajax application is not an easy thing, he brings many previous WEB applications do not have the management and challenges, mainly include:

A large amount of code requires the introduction of more efficient code organization, such as an object-oriented approach

The incompatibility between browsers limits the efficiency of development, directly resulting in an inverse ratio of the number of hair and the number of browsers in the programmer.

Increasingly rich feature bands require more powerful class library support

So, choosing a good JavaScript framework as a starting point for web development is an important thing. Now there are a lot of similar JavaScript frameworks that can help you reduce stress. For a comparison of the main JavaScript frameworks, John Resig has written a good overview of the JavaScript framework, and it can be seen that dojo is an excellent one. Dojo is an Open-source JavaScript toolkit that began in 2004. is one of the projects sponsored by Dojo Foundation and has been supported by many enterprises.

Dojo has been upgraded several times, and the current (writing) latest version is 1.3.2, and the code's basic organizational structure is as follows:

Figure 1.Dojo Basic Organizational structure

Among them, Dojo base and Core are the foundation of the entire framework. Dijit is a handy set of dojo developed by Widget,dojox refers to the Dojo EXtensions, which includes both mature and stable extensions, as well as new ideas for incubators and some new features of the test platform. Unlike Dijit, components in DojoX do not guarantee internationalization and good accessibility.

GFX is a cross-platform graphics generation package, with the underlying model broadly referencing SVG, while the presentation layer supports both SVG and VML. GFX can help users generate vector maps based on Web pages, enabling dynamic generation and interaction with users. Graphics that can be supported include rectangles (Rectangle), arcs (Circle), ellipses (Ellipse), polygons (polygon), lines (line), Paths (polygon), pictures (image), text, Text Path (Textpath).

If you download the Dojo source code, you can find all the demo and test files in it, you can find that using GFX can create very beautiful graphics and interactive effects. Like this tiger head:

Figure 2.Dojo GFX Sample

Users can then download the relevant source code from the Dojo website to view the demo and test files inside.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.