mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 10:27:17 +01:00
52 lines
4 KiB
Java
52 lines
4 KiB
Java
package androidx.compose.ui.node;
|
|
|
|
import androidx.compose.ui.graphics.GraphicsLayerScope;
|
|
import androidx.compose.ui.graphics.TransformOrigin;
|
|
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
|
|
import com.facebook.react.uimanager.ViewProps;
|
|
import expo.modules.interfaces.permissions.PermissionsResponse;
|
|
import kotlin.Metadata;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\b\u0002\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u000e\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0000J\u000e\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0013\u001a\u00020\u0014J\u000e\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0012\u001a\u00020\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\f\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\r\u001a\u00020\u000eX\u0082\u000e¢\u0006\u0004\n\u0002\u0010\u000f¨\u0006\u0017"}, d2 = {"Landroidx/compose/ui/node/LayerPositionalProperties;", "", "<init>", "()V", "scaleX", "", "scaleY", "translationX", "translationY", "rotationX", "rotationY", "rotationZ", "cameraDistance", ViewProps.TRANSFORM_ORIGIN, "Landroidx/compose/ui/graphics/TransformOrigin;", "J", "copyFrom", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, PermissionsResponse.SCOPE_KEY, "Landroidx/compose/ui/graphics/GraphicsLayerScope;", "hasSameValuesAs", "", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
final class LayerPositionalProperties {
|
|
private float rotationX;
|
|
private float rotationY;
|
|
private float rotationZ;
|
|
private float translationX;
|
|
private float translationY;
|
|
private float scaleX = 1.0f;
|
|
private float scaleY = 1.0f;
|
|
private float cameraDistance = 8.0f;
|
|
private long transformOrigin = TransformOrigin.INSTANCE.m5052getCenterSzJe1aQ();
|
|
|
|
public final void copyFrom(@NotNull GraphicsLayerScope scope) {
|
|
this.scaleX = scope.getScaleX();
|
|
this.scaleY = scope.getScaleY();
|
|
this.translationX = scope.getTranslationX();
|
|
this.translationY = scope.getTranslationY();
|
|
this.rotationX = scope.getRotationX();
|
|
this.rotationY = scope.getRotationY();
|
|
this.rotationZ = scope.getRotationZ();
|
|
this.cameraDistance = scope.getCameraDistance();
|
|
this.transformOrigin = scope.mo4841getTransformOriginSzJe1aQ();
|
|
}
|
|
|
|
public final boolean hasSameValuesAs(@NotNull LayerPositionalProperties other) {
|
|
return this.scaleX == other.scaleX && this.scaleY == other.scaleY && this.translationX == other.translationX && this.translationY == other.translationY && this.rotationX == other.rotationX && this.rotationY == other.rotationY && this.rotationZ == other.rotationZ && this.cameraDistance == other.cameraDistance && TransformOrigin.m5046equalsimpl0(this.transformOrigin, other.transformOrigin);
|
|
}
|
|
|
|
public final void copyFrom(@NotNull LayerPositionalProperties other) {
|
|
this.scaleX = other.scaleX;
|
|
this.scaleY = other.scaleY;
|
|
this.translationX = other.translationX;
|
|
this.translationY = other.translationY;
|
|
this.rotationX = other.rotationX;
|
|
this.rotationY = other.rotationY;
|
|
this.rotationZ = other.rotationZ;
|
|
this.cameraDistance = other.cameraDistance;
|
|
this.transformOrigin = other.transformOrigin;
|
|
}
|
|
}
|