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, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final JsSVGMatrix flipX()
SVGMatrix
public final JsSVGMatrix flipY()
SVGMatrix
public final JsSVGMatrix inverse()
SVGMatrix
Return 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)
SVGMatrix
public final JsSVGMatrix rotate(float angle)
SVGMatrix
public final JsSVGMatrix rotateFromVector(float x, float y)
SVGMatrix
Post-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 SVGMatrix
public final JsSVGMatrix scale(float scaleFactor)
SVGMatrix
public final JsSVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY)
SVGMatrix
scaleNonUniform
in interface SVGMatrix
public final JsSVGMatrix skewX(float angle)
SVGMatrix
public final JsSVGMatrix skewY(float angle)
SVGMatrix
public final JsSVGMatrix translate(float x, float y)
SVGMatrix
Copyright © 2018. All rights reserved.