x.smali
.class public final Lcom/horcrux/svg/x;
.super Lcom/horcrux/svg/d;
.source "SourceFile"
# annotations
.annotation build Landroid/annotation/SuppressLint;
value = {
"ViewConstructor"
}
.end annotation
# static fields
.field public static final j:[F
# instance fields
.field public a:Lcom/horcrux/svg/SVGLength;
.field public b:Lcom/horcrux/svg/SVGLength;
.field public c:Lcom/horcrux/svg/SVGLength;
.field public d:Lcom/horcrux/svg/SVGLength;
.field public e:Lcom/horcrux/svg/SVGLength;
.field public f:Lcom/horcrux/svg/SVGLength;
.field public g:Lcom/facebook/react/bridge/ReadableArray;
.field public h:Lcom/horcrux/svg/a$b;
.field public i:Landroid/graphics/Matrix;
# direct methods
.method public static constructor <clinit>()V
.registers 1
const/16 v0, 0x9
new-array v0, v0, [F
fill-array-data v0, :array_a
sput-object v0, Lcom/horcrux/svg/x;->j:[F
return-void
:array_a
.array-data 4
0x3f800000 # 1.0f
0x0
0x0
0x0
0x3f800000 # 1.0f
0x0
0x0
0x0
0x3f800000 # 1.0f
.end array-data
.end method
.method public constructor <init>(Lcom/facebook/react/bridge/ReactContext;)V
.registers 2
.line 1
invoke-direct {p0, p1}, Lcom/horcrux/svg/d;-><init>(Lcom/facebook/react/bridge/ReactContext;)V
const/4 p1, 0x0
.line 2
iput-object p1, p0, Lcom/horcrux/svg/x;->i:Landroid/graphics/Matrix;
return-void
.end method
# virtual methods
.method public final saveDefinition()V
.registers 5
.line 1
iget-object v0, p0, Lcom/horcrux/svg/VirtualView;->mName:Ljava/lang/String;
if-eqz v0, :cond_4d
const/4 v0, 0x6
new-array v0, v0, [Lcom/horcrux/svg/SVGLength;
const/4 v1, 0x0
.line 2
iget-object v2, p0, Lcom/horcrux/svg/x;->a:Lcom/horcrux/svg/SVGLength;
aput-object v2, v0, v1
const/4 v1, 0x1
iget-object v2, p0, Lcom/horcrux/svg/x;->b:Lcom/horcrux/svg/SVGLength;
aput-object v2, v0, v1
const/4 v1, 0x2
iget-object v2, p0, Lcom/horcrux/svg/x;->c:Lcom/horcrux/svg/SVGLength;
aput-object v2, v0, v1
const/4 v1, 0x3
iget-object v2, p0, Lcom/horcrux/svg/x;->d:Lcom/horcrux/svg/SVGLength;
aput-object v2, v0, v1
const/4 v1, 0x4
iget-object v2, p0, Lcom/horcrux/svg/x;->e:Lcom/horcrux/svg/SVGLength;
aput-object v2, v0, v1
const/4 v1, 0x5
iget-object v2, p0, Lcom/horcrux/svg/x;->f:Lcom/horcrux/svg/SVGLength;
aput-object v2, v0, v1
.line 3
new-instance v1, Lcom/horcrux/svg/a;
sget-object v2, Lcom/horcrux/svg/a$a;->RADIAL_GRADIENT:Lcom/horcrux/svg/a$a;
iget-object v3, p0, Lcom/horcrux/svg/x;->h:Lcom/horcrux/svg/a$b;
invoke-direct {v1, v2, v0, v3}, Lcom/horcrux/svg/a;-><init>(Lcom/horcrux/svg/a$a;[Lcom/horcrux/svg/SVGLength;Lcom/horcrux/svg/a$b;)V
.line 4
iget-object v0, p0, Lcom/horcrux/svg/x;->g:Lcom/facebook/react/bridge/ReadableArray;
.line 5
iput-object v0, v1, Lcom/horcrux/svg/a;->c:Lcom/facebook/react/bridge/ReadableArray;
.line 6
iget-object v0, p0, Lcom/horcrux/svg/x;->i:Landroid/graphics/Matrix;
if-eqz v0, :cond_38
.line 7
iput-object v0, v1, Lcom/horcrux/svg/a;->f:Landroid/graphics/Matrix;
.line 8
:cond_38
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->getSvgView()Lcom/horcrux/svg/SvgView;
move-result-object v0
.line 9
iget-object v2, p0, Lcom/horcrux/svg/x;->h:Lcom/horcrux/svg/a$b;
sget-object v3, Lcom/horcrux/svg/a$b;->USER_SPACE_ON_USE:Lcom/horcrux/svg/a$b;
if-ne v2, v3, :cond_48
.line 10
invoke-virtual {v0}, Lcom/horcrux/svg/SvgView;->getCanvasBounds()Landroid/graphics/Rect;
move-result-object v2
.line 11
iput-object v2, v1, Lcom/horcrux/svg/a;->g:Landroid/graphics/Rect;
.line 12
:cond_48
iget-object v2, p0, Lcom/horcrux/svg/VirtualView;->mName:Ljava/lang/String;
invoke-virtual {v0, v1, v2}, Lcom/horcrux/svg/SvgView;->defineBrush(Lcom/horcrux/svg/a;Ljava/lang/String;)V
:cond_4d
return-void
.end method
.method public setCx(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "cx"
.end annotation
.line 1
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->b(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/x;->e:Lcom/horcrux/svg/SVGLength;
.line 2
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setCy(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "cy"
.end annotation
.line 1
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->b(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/x;->f:Lcom/horcrux/svg/SVGLength;
.line 2
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setFx(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "fx"
.end annotation
.line 1
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->b(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/x;->a:Lcom/horcrux/svg/SVGLength;
.line 2
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setFy(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "fy"
.end annotation
.line 1
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->b(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/x;->b:Lcom/horcrux/svg/SVGLength;
.line 2
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setGradient(Lcom/facebook/react/bridge/ReadableArray;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "gradient"
.end annotation
.line 1
iput-object p1, p0, Lcom/horcrux/svg/x;->g:Lcom/facebook/react/bridge/ReadableArray;
.line 2
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setGradientTransform(Lcom/facebook/react/bridge/ReadableArray;)V
.registers 4
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "gradientTransform"
.end annotation
if-eqz p1, :cond_29
.line 1
sget-object v0, Lcom/horcrux/svg/x;->j:[F
iget v1, p0, Lcom/horcrux/svg/VirtualView;->mScale:F
invoke-static {p1, v0, v1}, Lcom/horcrux/svg/u;->c(Lcom/facebook/react/bridge/ReadableArray;[FF)I
move-result p1
const/4 v1, 0x6
if-ne p1, v1, :cond_1e
.line 2
iget-object p1, p0, Lcom/horcrux/svg/x;->i:Landroid/graphics/Matrix;
if-nez p1, :cond_18
.line 3
new-instance p1, Landroid/graphics/Matrix;
invoke-direct {p1}, Landroid/graphics/Matrix;-><init>()V
iput-object p1, p0, Lcom/horcrux/svg/x;->i:Landroid/graphics/Matrix;
.line 4
:cond_18
iget-object p1, p0, Lcom/horcrux/svg/x;->i:Landroid/graphics/Matrix;
invoke-virtual {p1, v0}, Landroid/graphics/Matrix;->setValues([F)V
goto :goto_2c
:cond_1e
const/4 v0, -0x1
if-eq p1, v0, :cond_2c
const-string p1, "ReactNative"
const-string v0, "RNSVG: Transform matrices must be of size 6"
.line 5
invoke-static {p1, v0}, Lcom/facebook/common/logging/FLog;->w(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_2c
:cond_29
const/4 p1, 0x0
.line 6
iput-object p1, p0, Lcom/horcrux/svg/x;->i:Landroid/graphics/Matrix;
.line 7
:cond_2c
:goto_2c
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setGradientUnits(I)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "gradientUnits"
.end annotation
if-eqz p1, :cond_b
const/4 v0, 0x1
if-eq p1, v0, :cond_6
goto :goto_f
.line 1
:cond_6
sget-object p1, Lcom/horcrux/svg/a$b;->USER_SPACE_ON_USE:Lcom/horcrux/svg/a$b;
iput-object p1, p0, Lcom/horcrux/svg/x;->h:Lcom/horcrux/svg/a$b;
goto :goto_f
.line 2
:cond_b
sget-object p1, Lcom/horcrux/svg/a$b;->OBJECT_BOUNDING_BOX:Lcom/horcrux/svg/a$b;
iput-object p1, p0, Lcom/horcrux/svg/x;->h:Lcom/horcrux/svg/a$b;
.line 3
:goto_f
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setRx(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "rx"
.end annotation
.line 1
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->b(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/x;->c:Lcom/horcrux/svg/SVGLength;
.line 2
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setRy(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "ry"
.end annotation
.line 1
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->b(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/x;->d:Lcom/horcrux/svg/SVGLength;
.line 2
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method