SVG Tiny

SVG Tiny 1.2 Spec

  • The SVG Working Group does not provide a normative DTD for SVG Tiny 1.2 but instead provides a normative RelaxNG schema.
  • 1.6 Definition: 一些基本概念介紹以及鏈接,可用於碩論
  • How to reference this specification:
  • When referencing this specification as a whole or when referencing a chapter or major section, use the undated URI, http://www.w3.org/TR/SVGTiny12/ , where possible. This allows the reference to always refer to the latest version of this specification.

Scriptable

  • The combination of scripting and the HTML DOM is often termed "Dynamic HTML" and is widely used for animation, interactivity and presentational effects. Similarly SVG allows the script-based manipulation of the document tree us-ing a subset of the XML DOM and the SVG uDOM.

Rendering Model

  • The painters model
  • Types of graphics elements
  • Shapes: lines, curves
  • Text
  • Repalced content
  • Raster images
  • Video
  • Animation
  • Foreign Objects
  • Rendering shapes and text
  • fill, stroke: independent, has opacity
  • paint:
  • Solid color
  • Gradients (linear, radial)

Document Structure

  • svg’ element: 
  • version, baseProfile, width, height, viewBox, …
  • This specification corresponds to baseProfile="tiny" and version="1.2" .
  • g’ element:
  • ‘id’, ‘xml: id’
  • 在 group 中的元素擁有 group 的屬性
  • defs’ element
  • discard’ element
  • title’ and desc element
  • use’ element
  • image’ element: must reference content that is a raster image format
  • switch’ element: five conditional processing attributes
  • requiredExtensions
  • requiredFeatures
  • requiredFonts
  • requiredFormats
  • systemLanguage
  • prefetch’ element
  • Attributes common to all elements: id, class, role, …

Animation

  • mpath

Libsvgtiny

介紹