W3C Amaya

previous top next

Creating Graphics with the Palette

To create a new SVG element in a document, move the insertion point to the position where you want to insert it, and then click the Graphics button. The Graphics button (Graphics button) displays a palette that stays on the screen until you click Done on the palette.

The available graphics elements are:

Selecting a Shape in the Palette

When you select a shape in the palette and the selection is in the HTML structure of the document, Amaya creates a new SVG element just at the beginning of the current selection and inserts the selected shape into this new SVG. Amaya generates SVG drawings as blocks, between paragraphs. To display a drawing inline, you must create it between paragraphs then edit the source code to move it.

When the current selected element is a SVG element, the new shape is added to the current SVG drawing. The new shape is added after and can overlap previous shapes.

The creation of a shape requires direct interaction:

Inserting an Image

You can insert an image within a SVG drawing. Choose Image from the XHTML menu or click the Insert Image button from the button bar and proceed in the same way as in HTML.

To insert a mathematical expression into a SVG drawing, click the Math palette when the selection is within an SVG. Amaya will generate a SVG foreignObject to embed the MathML markup.

See Also: