react-two.js 0.2.4 → 0.8.22-r.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -3
- package/dist/ArcSegment.d.ts +3 -2
- package/dist/Circle.d.ts +3 -2
- package/dist/Context.d.ts +8 -8
- package/dist/Ellipse.d.ts +3 -2
- package/dist/Events.d.ts +97 -0
- package/dist/Group.d.ts +2 -1
- package/dist/Image.d.ts +4 -2
- package/dist/ImageSequence.d.ts +4 -3
- package/dist/Line.d.ts +3 -2
- package/dist/Path.d.ts +3 -3
- package/dist/Points.d.ts +3 -2
- package/dist/Polygon.d.ts +3 -2
- package/dist/Properties.d.ts +1 -0
- package/dist/Provider.d.ts +3 -1
- package/dist/Rectangle.d.ts +3 -2
- package/dist/RoundedRectangle.d.ts +3 -2
- package/dist/SVG.d.ts +22 -0
- package/dist/Sprite.d.ts +4 -3
- package/dist/Star.d.ts +3 -2
- package/dist/Text.d.ts +4 -3
- package/dist/Texture.d.ts +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/react-two-main.es.js +891 -416
- package/package.json +2 -2
package/dist/Star.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Star as Instance } from 'two.js/src/shapes/star';
|
|
3
|
+
import { type EventHandlers } from './Properties';
|
|
3
4
|
export type RefStar = Instance;
|
|
4
5
|
export declare const Star: React.ForwardRefExoticComponent<{
|
|
6
|
+
visible?: boolean | undefined;
|
|
5
7
|
renderer?: {
|
|
6
8
|
type: "element" | "group" | "path" | "text" | "points" | string;
|
|
7
9
|
elem?: SVGGElement | SVGPathElement | SVGTextElement | SVGPatternElement | SVGDefsElement | SVGGradientElement | SVGLinearGradientElement | SVGRadialGradientElement | SVGImageElement | SVGClipPathElement | SVGStopElement | SVGPatternElement;
|
|
@@ -21,7 +23,6 @@ export declare const Star: React.ForwardRefExoticComponent<{
|
|
|
21
23
|
stroke?: string | import("two.js/src/effects/gradient").Gradient | import("two.js/src/effects/texture").Texture | undefined;
|
|
22
24
|
linewidth?: number | undefined;
|
|
23
25
|
opacity?: number | undefined;
|
|
24
|
-
visible?: boolean | undefined;
|
|
25
26
|
cap?: import("two.js/src/path").CapProperties | undefined;
|
|
26
27
|
join?: import("two.js/src/path").JoinProperties | undefined;
|
|
27
28
|
miter?: number | undefined;
|
|
@@ -40,6 +41,6 @@ export declare const Star: React.ForwardRefExoticComponent<{
|
|
|
40
41
|
} & {
|
|
41
42
|
x?: number;
|
|
42
43
|
y?: number;
|
|
43
|
-
} & {
|
|
44
|
+
} & Partial<EventHandlers> & {
|
|
44
45
|
children?: React.ReactNode | undefined;
|
|
45
46
|
} & React.RefAttributes<Instance>>;
|
package/dist/Text.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Text as Instance } from 'two.js/src/text';
|
|
3
|
+
import { type EventHandlers } from './Properties';
|
|
3
4
|
export type RefText = Instance;
|
|
4
5
|
export declare const Text: React.ForwardRefExoticComponent<{
|
|
5
|
-
|
|
6
|
+
visible?: boolean | undefined;
|
|
6
7
|
renderer?: {
|
|
7
8
|
type: "element" | "group" | "path" | "text" | "points" | string;
|
|
8
9
|
elem?: SVGGElement | SVGPathElement | SVGTextElement | SVGPatternElement | SVGDefsElement | SVGGradientElement | SVGLinearGradientElement | SVGRadialGradientElement | SVGImageElement | SVGClipPathElement | SVGStopElement | SVGPatternElement;
|
|
@@ -22,10 +23,10 @@ export declare const Text: React.ForwardRefExoticComponent<{
|
|
|
22
23
|
stroke?: string | import("two.js/src/effects/gradient").Gradient | import("two.js/src/effects/texture").Texture | undefined;
|
|
23
24
|
linewidth?: number | undefined;
|
|
24
25
|
opacity?: number | undefined;
|
|
25
|
-
visible?: boolean | undefined;
|
|
26
26
|
dashes?: (number[] & {
|
|
27
27
|
offset?: number;
|
|
28
28
|
}) | undefined;
|
|
29
|
+
value?: string | undefined;
|
|
29
30
|
size?: number | undefined;
|
|
30
31
|
family?: string | undefined;
|
|
31
32
|
leading?: number | undefined;
|
|
@@ -38,6 +39,6 @@ export declare const Text: React.ForwardRefExoticComponent<{
|
|
|
38
39
|
} & {
|
|
39
40
|
x?: number;
|
|
40
41
|
y?: number;
|
|
41
|
-
} & {
|
|
42
|
+
} & Partial<EventHandlers> & {
|
|
42
43
|
children?: React.ReactNode | undefined;
|
|
43
44
|
} & React.RefAttributes<Instance>>;
|
package/dist/Texture.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const Texture: React.ForwardRefExoticComponent<{
|
|
|
18
18
|
offset?: import("two.js/src/vector").Vector | undefined;
|
|
19
19
|
image?: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | undefined;
|
|
20
20
|
} & {
|
|
21
|
-
|
|
21
|
+
src?: string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
|
|
22
22
|
} & {
|
|
23
23
|
children?: React.ReactNode | undefined;
|
|
24
24
|
} & React.RefAttributes<Instance>>;
|
package/dist/main.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Provider as Canvas } from './Provider';
|
|
2
2
|
export { Context, useTwo, useFrame } from './Context';
|
|
3
3
|
export { Group, type RefGroup } from './Group';
|
|
4
|
+
export { SVG, type RefSVG } from './SVG';
|
|
4
5
|
export { Path, type RefPath } from './Path';
|
|
5
6
|
export { Points, type RefPoints } from './Points';
|
|
6
7
|
export { Text, type RefText } from './Text';
|