PHP Classes

File: doc/SVGReference.md

Recommend this page to a friend!
  Classes of Stefan Kientzler   SVG Creator   doc/SVGReference.md   Download  
File: doc/SVGReference.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: SVG Creator
Compose vectorial graphics and generate SVG files
Author: By
Last change: Added marker support
Date: 4 months ago
Size: 3,328 bytes
 

Contents

Class file image Download

a

TODO

animate

Animation is not supported so far since i haven't take care about yet (more precisely i haven't needed it so far).

  • animateMotion
  • animateTransform
  • mpath
  • set

circle

SVGCircle

clipPath

Check, if needed...

defs

Implemented as protected oDefs property in SVG using SVGElement element. 'Defs' can be added uaing the method addDef() of SVG. No need for an own class.

desc

Is not supported/needed so far.

ellipse

SVGEllipse

filter

SVGFilter SVGFilterEffect

supported filters

  • `SVGBlendFilter`
  • `SVGColorMatrix`
  • `SVGComponentTransfer`
  • `SVGComposite`
  • `SVGDiffuseLighting`
  • `SVGDropShadowFilter`
  • `SVGFloodFilter`
  • `SVGGaussianBlur`
  • `SVGMerge`
  • `SVGOffset`
  • `SVGSpecularLighting`
  • `SVGTurbulence`

so far unsupported filters

  • feConvolveMatrix
  • feDisplacementMap
  • feImage
  • feMorphology
  • feTile

foreignObject

Is not supported/needed so far.

g

SVGGroup

image

SVGImage

line

SVGLine

linearGradient

SVGLinearGradient

marker

MDN Web Docs

TODO

mask

MDN Web Docs

metadata

Is not supported/needed so far.

path

SVGPath

pattern

MDN Web Docs

Check for implementation

polygon

SVGPolygon

polyline

SVGPolyline

radialGradient

SVGRadialGradient

rect

SVGRect

script

MDN Web Docs

No direct support so far - just create and add a SVGCData('script') instead.

stop

SVGGradientStop

style

Implemented as method addStyleDef() in SVG using SVGCData element. No need for an own class.

switch

MDN Web Docs

No direct support so far - just create and add a SVGElement('switch') instead.

symbol

text

SVGText

textpath

SVGTextPath

title

Implemented as method setTitle() in SVGElement. No need for an own class.

tspan

use

view

Elements by category

  • Animation elements - animate - animateMotion - animateTransform - mpath - set
  • Shape elements - circle - ellipse - line - path - polygon - polyline - rect
  • Text elements - text - textPath - tspan
  • Container elements - a - defs - g - marker - mask - pattern - svg - switch - symbol
  • Descriptive elements - desc - metadata - title
  • Filter elements - filter - feBlend - feColorMatrix - feComponentTransfer - feComposite - feConvolveMatrix - feDiffuseLighting - feDisplacementMap - feDistantLight - feDropShadow - feFlood - feFuncA - feFuncB - feFuncG - feFuncR - feGaussianBlur - feImage - feMerge - feMergeNode - feMorphology - feOffset - fePointLight - feSpecularLighting - feSpotLight - feTile - feTurbulence
  • Gradient elements - linearGradient - radialGradient - stop
  • Graphics elements - image
  • Graphics referencing elements - use
  • other elements - style - script

> Note: The SVG 2 spec requires that any unknown elements be treated as 'g' for the purpose of rendering.