com.gwidgets.api.leaflet.SVG Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwty-leaflet Show documentation
Show all versions of gwty-leaflet Show documentation
a JsInterop wrapper for the Leaflet js library
The newest version!
package com.gwidgets.api.leaflet;
import elemental2.svg.SVGElement;
import jsinterop.annotations.JsType;
@JsType(isNative = true)
public class SVG extends Renderer{
private SVG() {
super();
}
/** Returns a instance of SVGElement, corresponding to the class name passed. For example, using 'line' will return an instance of SVGLineElement.
* @return SVGElement
*/
public static native SVGElement create(String name);
/** Generates a SVG path string for multiple rings, with each ring turning into "M..L..L.." instructions
* @return String the path string
*/
public static native String pointsToPath(Point[] rings, Boolean closed);
}