TransformAttribute: transform

Description Available Attribute Values Details Used by the Elements

Description

Sets an orderd list of transform definitions to be applied prior to rendering..

Available Attribute Values

The value is defined as follows:

<tranform-list>

Specifies a named list of coordinate transforms. The order in which the transforms are applied is given by the order in the list.

Details

A transform-list is named list of coordinate transforms to be applied in the order in which they appear. For example: list(translate=c(100,20), scale=1.2, rotate=c(30,100,20)) The list names and corresponding values (all numeric) are summarized in the following table Transforms

name value action
matrix a 2x3 matrix m. Transforms coordinates x,y to x'y' by c(x',y',1)<-m %*% c(x,y,1), where m'<-rbind(m,c(0,0,1).
translate x or c(x,y) Translates by c(x, y). If only x is specified, y is set to 0.
scale sx or c(sx, sy) Scales by sx, sy. If only sx is specified, sy=sx.
rotate θ or c( θ,x,y). Rotates by theta degrees about the point c(x,y). If only the θ is specified, then x=y=0.
skewX θ_x Skews along the x-axis by an angle of θ_x , where θ_x is interpreted in units of degrees.
skewY θ_y Skews along the y-axis by an angle of θ_y , where θ_y is interpreted in units of degrees.

Used by the Elements

Graphics Referencing Elements

image, use

Non-structural Container Elements

a, switch

Shape Elements

circle, ellipse, line, path, polygon, polyline, rect

Structural Container Elements

defs, g

Text Content Elements

text

Uncategorized Elements

clipPath, foreignObject


mslegrand/svgR documentation built on Jan. 21, 2020, 2:59 p.m.