MCPcopy Create free account
hub / github.com/HumbleUI/Skija / makeFromSVGString

Method makeFromSVGString

shared/java/Path.java:145–154  ·  view source on GitHub ↗
(@NotNull String svg)

Source from the content-addressed store, hash-verified

143 }
144
145 @NotNull @Contract("_ -> new")
146 public static Path makeFromSVGString(@NotNull String svg) {
147 assert svg != null : "Can't makeFromSVGString with svg == null";
148 Stats.onNativeCall();
149 long res = _nMakeFromSVGString(svg);
150 if (res == 0)
151 throw new IllegalArgumentException("Failed to parse SVG Path string: " + svg);
152 else
153 return new Path(res);
154 }
155
156 /**
157 * <p>Returns Path that is the result of applying the Op to the first path and the second path.

Callers 1

drawMakesMethod · 0.95

Calls 2

onNativeCallMethod · 0.95
_nMakeFromSVGStringMethod · 0.95

Tested by

no test coverage detected