Skip to content

Commit 1996b31

Browse files
fix: OnSvgLayoutEvent types
1 parent 62b9d78 commit 1996b31

15 files changed

+61
-61
lines changed

src/fabric/CircleNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type ColorStruct = Readonly<{
3434

3535
type OnSvgLayoutEvent = Readonly<{
3636
layout: {
37-
x: Int32;
38-
y: Int32;
39-
width: Int32;
40-
height: Int32;
37+
x: Float;
38+
y: Float;
39+
width: Float;
40+
height: Float;
4141
};
4242
}>;
4343

src/fabric/ClipPathNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type ColorStruct = Readonly<{
3434

3535
type OnSvgLayoutEvent = Readonly<{
3636
layout: {
37-
x: Int32;
38-
y: Int32;
39-
width: Int32;
40-
height: Int32;
37+
x: Float;
38+
y: Float;
39+
width: Float;
40+
height: Float;
4141
};
4242
}>;
4343

src/fabric/EllipseNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type ColorStruct = Readonly<{
3434

3535
type OnSvgLayoutEvent = Readonly<{
3636
layout: {
37-
x: Int32;
38-
y: Int32;
39-
width: Int32;
40-
height: Int32;
37+
x: Float;
38+
y: Float;
39+
width: Float;
40+
height: Float;
4141
};
4242
}>;
4343

src/fabric/ForeignObjectNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type ColorStruct = Readonly<{
3434

3535
type OnSvgLayoutEvent = Readonly<{
3636
layout: {
37-
x: Int32;
38-
y: Int32;
39-
width: Int32;
40-
height: Int32;
37+
x: Float;
38+
y: Float;
39+
width: Float;
40+
height: Float;
4141
};
4242
}>;
4343
interface SvgRenderableCommonProps {

src/fabric/GroupNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type ColorStruct = Readonly<{
3434

3535
type OnSvgLayoutEvent = Readonly<{
3636
layout: {
37-
x: Int32;
38-
y: Int32;
39-
width: Int32;
40-
height: Int32;
37+
x: Float;
38+
y: Float;
39+
width: Float;
40+
height: Float;
4141
};
4242
}>;
4343

src/fabric/ImageNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ type ColorStruct = Readonly<{
4646

4747
type OnSvgLayoutEvent = Readonly<{
4848
layout: {
49-
x: Int32;
50-
y: Int32;
51-
width: Int32;
52-
height: Int32;
49+
x: Float;
50+
y: Float;
51+
width: Float;
52+
height: Float;
5353
};
5454
}>;
5555

src/fabric/LineNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type ColorStruct = Readonly<{
3434

3535
type OnSvgLayoutEvent = Readonly<{
3636
layout: {
37-
x: Int32;
38-
y: Int32;
39-
width: Int32;
40-
height: Int32;
37+
x: Float;
38+
y: Float;
39+
width: Float;
40+
height: Float;
4141
};
4242
}>;
4343

src/fabric/MaskNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type ColorStruct = Readonly<{
3434

3535
type OnSvgLayoutEvent = Readonly<{
3636
layout: {
37-
x: Int32;
38-
y: Int32;
39-
width: Int32;
40-
height: Int32;
37+
x: Float;
38+
y: Float;
39+
width: Float;
40+
height: Float;
4141
};
4242
}>;
4343

src/fabric/PathNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type ColorStruct = Readonly<{
3434

3535
type OnSvgLayoutEvent = Readonly<{
3636
layout: {
37-
x: Int32;
38-
y: Int32;
39-
width: Int32;
40-
height: Int32;
37+
x: Float;
38+
y: Float;
39+
width: Float;
40+
height: Float;
4141
};
4242
}>;
4343
interface SvgRenderableCommonProps {

src/fabric/RectNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type ColorStruct = Readonly<{
3434

3535
type OnSvgLayoutEvent = Readonly<{
3636
layout: {
37-
x: Int32;
38-
y: Int32;
39-
width: Int32;
40-
height: Int32;
37+
x: Float;
38+
y: Float;
39+
width: Float;
40+
height: Float;
4141
};
4242
}>;
4343

0 commit comments

Comments
 (0)