
public class JsSVGMatrix extends JsElementalMixinBase implements SVGMatrix
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsSVGMatrix() |
| Modifier and Type | Method and Description |
|---|---|
JsSVGMatrix |
flipX()
Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix.
|
JsSVGMatrix |
flipY()
Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix.
|
double |
getA() |
double |
getB() |
double |
getC() |
double |
getD() |
double |
getE() |
double |
getF() |
JsSVGMatrix |
inverse()
Return the inverse matrix
|
JsSVGMatrix |
multiply(SVGMatrix secondMatrix)
Performs matrix multiplication.
|
JsSVGMatrix |
rotate(float angle)
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.
|
JsSVGMatrix |
rotateFromVector(float x,
float y)
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.
|
JsSVGMatrix |
scale(float scaleFactor)
Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix.
|
JsSVGMatrix |
scaleNonUniform(float scaleFactorX,
float scaleFactorY)
Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix.
|
void |
setA(double param_a) |
void |
setB(double param_b) |
void |
setC(double param_c) |
void |
setD(double param_d) |
void |
setE(double param_e) |
void |
setF(double param_f) |
JsSVGMatrix |
skewX(float angle)
Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix.
|
JsSVGMatrix |
skewY(float angle)
Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix.
|
JsSVGMatrix |
translate(float x,
float y)
Post-multiplies a translation transformation on the current matrix and returns the resulting matrix.
|
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringintAt, lengthnumberAtpublic final JsSVGMatrix flipX()
SVGMatrixpublic final JsSVGMatrix flipY()
SVGMatrixpublic final JsSVGMatrix inverse()
SVGMatrixReturn the inverse matrix
Exceptions:
DOMException
with code SVG_MATRIX_NOT_INVERTABLE is raised if the matrix is not invertable.public final JsSVGMatrix multiply(SVGMatrix secondMatrix)
SVGMatrixpublic final JsSVGMatrix rotate(float angle)
SVGMatrixpublic final JsSVGMatrix rotateFromVector(float x, float y)
SVGMatrixPost-multiplies a rotation transformation on the current matrix and returns the resulting matrix. The rotation angle is determined by taking (+/-) atan(y/x). The direction of the vector (x, y) determines whether the positive or negative angle value is used.
Exceptions:
DOMException
with code SVG_INVALID_VALUE_ERR is raised if one of the parameters has an invalid value.rotateFromVector in interface SVGMatrixpublic final JsSVGMatrix scale(float scaleFactor)
SVGMatrixpublic final JsSVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY)
SVGMatrixscaleNonUniform in interface SVGMatrixpublic final JsSVGMatrix skewX(float angle)
SVGMatrixpublic final JsSVGMatrix skewY(float angle)
SVGMatrixpublic final JsSVGMatrix translate(float x, float y)
SVGMatrixCopyright © 2016. All rights reserved.