All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.svg.SVGTransform Maven / Gradle / Ivy

There is a newer version: 2.27
Show newest version
package elemental2.svg;

import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class SVGTransform {
  @JsOverlay
  public static final double SVG_TRANSFORM_MATRIX = SVGTransform__Constants.SVG_TRANSFORM_MATRIX;

  @JsOverlay
  public static final double SVG_TRANSFORM_ROTATE = SVGTransform__Constants.SVG_TRANSFORM_ROTATE;

  @JsOverlay
  public static final double SVG_TRANSFORM_SCALE = SVGTransform__Constants.SVG_TRANSFORM_SCALE;

  @JsOverlay
  public static final double SVG_TRANSFORM_SKEWX = SVGTransform__Constants.SVG_TRANSFORM_SKEWX;

  @JsOverlay
  public static final double SVG_TRANSFORM_SKEWY = SVGTransform__Constants.SVG_TRANSFORM_SKEWY;

  @JsOverlay
  public static final double SVG_TRANSFORM_TRANSLATE =
      SVGTransform__Constants.SVG_TRANSFORM_TRANSLATE;

  @JsOverlay
  public static final double SVG_TRANSFORM_UNKNOWN = SVGTransform__Constants.SVG_TRANSFORM_UNKNOWN;

  public double angle;
  public SVGMatrix matrix;
  public int type;

  public native void setMatrix(SVGMatrix matrix);

  public native void setRotate(double angle, double cx, double cy);

  public native void setScale(double sx, double sy);

  public native void setSkewX(double angle);

  public native void setSkewY(double angle);

  public native void setTranslate(double tx, double ty);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy