mathbox-react 0.0.2 → 0.0.5-dev
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/.eslintrc.js +3 -2
- package/.github/workflows/lint.yaml +3 -1
- package/.prettierrc +1 -0
- package/babel.config.js +3 -0
- package/build/cjs/index.js +2 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/types/components/Cartesian.spec.d.ts +1 -0
- package/build/cjs/types/components/Mathbox.d.ts +7 -0
- package/build/cjs/types/components/MathboxNodeContext.d.ts +4 -0
- package/build/cjs/types/components/components.d.ts +261 -0
- package/build/cjs/types/components/hooks.d.ts +4 -0
- package/build/cjs/types/components/index.d.ts +2 -0
- package/build/cjs/types/components/types.d.ts +7 -0
- package/build/cjs/types/index.d.ts +1 -0
- package/build/cjs/types/stories/utils.d.ts +5 -0
- package/build/cjs/types/testSetup.d.ts +1 -0
- package/build/cjs/types/testUtils.d.ts +1 -0
- package/build/esm/index.js +16 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/types/components/Cartesian.spec.d.ts +1 -0
- package/build/esm/types/components/Mathbox.d.ts +7 -0
- package/build/esm/types/components/MathboxNodeContext.d.ts +4 -0
- package/build/esm/types/components/components.d.ts +261 -0
- package/build/esm/types/components/hooks.d.ts +4 -0
- package/build/esm/types/components/index.d.ts +2 -0
- package/build/esm/types/components/types.d.ts +7 -0
- package/build/esm/types/index.d.ts +1 -0
- package/build/esm/types/stories/utils.d.ts +5 -0
- package/build/esm/types/testSetup.d.ts +1 -0
- package/build/esm/types/testUtils.d.ts +1 -0
- package/build/index.d.ts +272 -0
- package/jest.config.js +12 -0
- package/mathbox-react-0.0.4.tgz +0 -0
- package/package.json +17 -6
- package/scratch.js +149 -0
- package/src/components/Cartesian.spec.tsx +101 -0
- package/src/components/Mathbox.tsx +50 -33
- package/src/components/MathboxNodeContext.ts +6 -0
- package/src/components/components.tsx +361 -0
- package/src/components/hooks.ts +51 -0
- package/src/components/index.ts +2 -0
- package/src/components/types.ts +9 -0
- package/src/index.ts +1 -3
- package/src/stories/Cartesian.stories.tsx +36 -0
- package/src/stories/Grid.stories.tsx +38 -0
- package/src/stories/Mathbox.stories.tsx +16 -0
- package/src/stories/Point.stories.tsx +68 -0
- package/src/stories/utils.tsx +31 -0
- package/src/testSetup.ts +3 -0
- package/src/testUtils.ts +46 -0
- package/tsconfig.base.json +0 -1
- package/tsconfig.json +1 -0
- package/src/components/Mathbox.stories.tsx +0 -28
- package/src/types.d.ts +0 -4
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Props, NodeType, MathboxSelection } from "mathbox";
|
|
3
|
+
import { WithChildren } from "./types";
|
|
4
|
+
declare type MathboxComponent<T extends NodeType> = React.ForwardRefExoticComponent<WithChildren<Props[T]> & React.RefAttributes<MathboxSelection<T>>>;
|
|
5
|
+
/**
|
|
6
|
+
* Component wrapper for mathbox [`area`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#dataarea).
|
|
7
|
+
*/
|
|
8
|
+
export declare const Area: MathboxComponent<"area">;
|
|
9
|
+
/**
|
|
10
|
+
* Component wrapper for mathbox [`array`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#dataarray).
|
|
11
|
+
*/
|
|
12
|
+
declare const MBArray: MathboxComponent<"array">;
|
|
13
|
+
export { MBArray as Array };
|
|
14
|
+
/**
|
|
15
|
+
* Component wrapper for mathbox [`axis`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawaxis).
|
|
16
|
+
*/
|
|
17
|
+
export declare const Axis: MathboxComponent<"axis">;
|
|
18
|
+
/**
|
|
19
|
+
* Component wrapper for mathbox [`camera`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#cameracamera).
|
|
20
|
+
*/
|
|
21
|
+
export declare const Camera: MathboxComponent<"camera">;
|
|
22
|
+
/**
|
|
23
|
+
* Component wrapper for mathbox [`cartesian`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewcartesian).
|
|
24
|
+
*/
|
|
25
|
+
export declare const Cartesian: MathboxComponent<"cartesian">;
|
|
26
|
+
/**
|
|
27
|
+
* Component wrapper for mathbox [`cartesian4`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewcartesian4).
|
|
28
|
+
*/
|
|
29
|
+
export declare const Cartesian4: MathboxComponent<"cartesian4">;
|
|
30
|
+
/**
|
|
31
|
+
* Component wrapper for mathbox [`clamp`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorclamp).
|
|
32
|
+
*/
|
|
33
|
+
export declare const Clamp: MathboxComponent<"clamp">;
|
|
34
|
+
/**
|
|
35
|
+
* Component wrapper for mathbox [`clock`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#timeclock).
|
|
36
|
+
*/
|
|
37
|
+
export declare const Clock: MathboxComponent<"clock">;
|
|
38
|
+
/**
|
|
39
|
+
* Component wrapper for mathbox [`compose`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#rttcompose).
|
|
40
|
+
*/
|
|
41
|
+
export declare const Compose: MathboxComponent<"compose">;
|
|
42
|
+
/**
|
|
43
|
+
* Component wrapper for mathbox [`dom`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#overlaydom).
|
|
44
|
+
*/
|
|
45
|
+
export declare const Dom: MathboxComponent<"dom">;
|
|
46
|
+
/**
|
|
47
|
+
* Component wrapper for mathbox [`face`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawface).
|
|
48
|
+
*/
|
|
49
|
+
export declare const Face: MathboxComponent<"face">;
|
|
50
|
+
/**
|
|
51
|
+
* Component wrapper for mathbox [`format`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#textformat).
|
|
52
|
+
*/
|
|
53
|
+
export declare const Format: MathboxComponent<"format">;
|
|
54
|
+
/**
|
|
55
|
+
* Component wrapper for mathbox [`fragment`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformfragment).
|
|
56
|
+
*/
|
|
57
|
+
export declare const Fragment: MathboxComponent<"fragment">;
|
|
58
|
+
/**
|
|
59
|
+
* Component wrapper for mathbox [`grid`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawgrid).
|
|
60
|
+
*/
|
|
61
|
+
export declare const Grid: MathboxComponent<"grid">;
|
|
62
|
+
/**
|
|
63
|
+
* Component wrapper for mathbox [`group`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#basegroup).
|
|
64
|
+
*/
|
|
65
|
+
export declare const Group: MathboxComponent<"group">;
|
|
66
|
+
/**
|
|
67
|
+
* Component wrapper for mathbox [`grow`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorgrow).
|
|
68
|
+
*/
|
|
69
|
+
export declare const Grow: MathboxComponent<"grow">;
|
|
70
|
+
/**
|
|
71
|
+
* Component wrapper for mathbox [`html`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#overlayhtml).
|
|
72
|
+
*/
|
|
73
|
+
export declare const Html: MathboxComponent<"html">;
|
|
74
|
+
/**
|
|
75
|
+
* Component wrapper for mathbox [`inherit`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#baseinherit).
|
|
76
|
+
*/
|
|
77
|
+
export declare const Inherit: MathboxComponent<"inherit">;
|
|
78
|
+
/**
|
|
79
|
+
* Component wrapper for mathbox [`interval`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datainterval).
|
|
80
|
+
*/
|
|
81
|
+
export declare const Interval: MathboxComponent<"interval">;
|
|
82
|
+
/**
|
|
83
|
+
* Component wrapper for mathbox [`join`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorjoin).
|
|
84
|
+
*/
|
|
85
|
+
export declare const Join: MathboxComponent<"join">;
|
|
86
|
+
/**
|
|
87
|
+
* Component wrapper for mathbox [`label`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#textlabel).
|
|
88
|
+
*/
|
|
89
|
+
export declare const Label: MathboxComponent<"label">;
|
|
90
|
+
/**
|
|
91
|
+
* Component wrapper for mathbox [`layer`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformlayer).
|
|
92
|
+
*/
|
|
93
|
+
export declare const Layer: MathboxComponent<"layer">;
|
|
94
|
+
/**
|
|
95
|
+
* Component wrapper for mathbox [`lerp`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorlerp).
|
|
96
|
+
*/
|
|
97
|
+
export declare const Lerp: MathboxComponent<"lerp">;
|
|
98
|
+
/**
|
|
99
|
+
* Component wrapper for mathbox [`line`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawline).
|
|
100
|
+
*/
|
|
101
|
+
export declare const Line: MathboxComponent<"line">;
|
|
102
|
+
/**
|
|
103
|
+
* Component wrapper for mathbox [`mask`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformmask).
|
|
104
|
+
*/
|
|
105
|
+
export declare const Mask: MathboxComponent<"mask">;
|
|
106
|
+
/**
|
|
107
|
+
* Component wrapper for mathbox [`matrix`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datamatrix).
|
|
108
|
+
*/
|
|
109
|
+
export declare const Matrix: MathboxComponent<"matrix">;
|
|
110
|
+
/**
|
|
111
|
+
* Component wrapper for mathbox [`memo`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatormemo).
|
|
112
|
+
*/
|
|
113
|
+
export declare const Memo: MathboxComponent<"memo">;
|
|
114
|
+
/**
|
|
115
|
+
* Component wrapper for mathbox [`move`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentmove).
|
|
116
|
+
*/
|
|
117
|
+
export declare const Move: MathboxComponent<"move">;
|
|
118
|
+
/**
|
|
119
|
+
* Component wrapper for mathbox [`now`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#timenow).
|
|
120
|
+
*/
|
|
121
|
+
export declare const Now: MathboxComponent<"now">;
|
|
122
|
+
/**
|
|
123
|
+
* Component wrapper for mathbox [`play`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentplay).
|
|
124
|
+
*/
|
|
125
|
+
export declare const Play: MathboxComponent<"play">;
|
|
126
|
+
/**
|
|
127
|
+
* Component wrapper for mathbox [`point`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawpoint).
|
|
128
|
+
*/
|
|
129
|
+
export declare const Point: MathboxComponent<"point">;
|
|
130
|
+
/**
|
|
131
|
+
* Component wrapper for mathbox [`polar`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewpolar).
|
|
132
|
+
*/
|
|
133
|
+
export declare const Polar: MathboxComponent<"polar">;
|
|
134
|
+
/**
|
|
135
|
+
* Component wrapper for mathbox [`present`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentpresent).
|
|
136
|
+
*/
|
|
137
|
+
export declare const Present: MathboxComponent<"present">;
|
|
138
|
+
/**
|
|
139
|
+
* Component wrapper for mathbox [`readback`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorreadback).
|
|
140
|
+
*/
|
|
141
|
+
export declare const Readback: MathboxComponent<"readback">;
|
|
142
|
+
/**
|
|
143
|
+
* Component wrapper for mathbox [`repeat`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorrepeat).
|
|
144
|
+
*/
|
|
145
|
+
export declare const Repeat: MathboxComponent<"repeat">;
|
|
146
|
+
/**
|
|
147
|
+
* Component wrapper for mathbox [`resample`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorresample).
|
|
148
|
+
*/
|
|
149
|
+
export declare const Resample: MathboxComponent<"resample">;
|
|
150
|
+
/**
|
|
151
|
+
* Component wrapper for mathbox [`retext`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#textretext).
|
|
152
|
+
*/
|
|
153
|
+
export declare const Retext: MathboxComponent<"retext">;
|
|
154
|
+
/**
|
|
155
|
+
* Component wrapper for mathbox [`reveal`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentreveal).
|
|
156
|
+
*/
|
|
157
|
+
export declare const Reveal: MathboxComponent<"reveal">;
|
|
158
|
+
/**
|
|
159
|
+
* Component wrapper for mathbox [`rtt`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#rttrtt).
|
|
160
|
+
*/
|
|
161
|
+
export declare const Rtt: MathboxComponent<"rtt">;
|
|
162
|
+
/**
|
|
163
|
+
* Component wrapper for mathbox [`scale`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datascale).
|
|
164
|
+
*/
|
|
165
|
+
export declare const Scale: MathboxComponent<"scale">;
|
|
166
|
+
/**
|
|
167
|
+
* Component wrapper for mathbox [`shader`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#shadershader).
|
|
168
|
+
*/
|
|
169
|
+
export declare const Shader: MathboxComponent<"shader">;
|
|
170
|
+
/**
|
|
171
|
+
* Component wrapper for mathbox [`slice`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorslice).
|
|
172
|
+
*/
|
|
173
|
+
export declare const Slice: MathboxComponent<"slice">;
|
|
174
|
+
/**
|
|
175
|
+
* Component wrapper for mathbox [`slide`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentslide).
|
|
176
|
+
*/
|
|
177
|
+
export declare const Slide: MathboxComponent<"slide">;
|
|
178
|
+
/**
|
|
179
|
+
* Component wrapper for mathbox [`spherical`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewspherical).
|
|
180
|
+
*/
|
|
181
|
+
export declare const Spherical: MathboxComponent<"spherical">;
|
|
182
|
+
/**
|
|
183
|
+
* Component wrapper for mathbox [`split`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorsplit).
|
|
184
|
+
*/
|
|
185
|
+
export declare const Split: MathboxComponent<"split">;
|
|
186
|
+
/**
|
|
187
|
+
* Component wrapper for mathbox [`spread`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorspread).
|
|
188
|
+
*/
|
|
189
|
+
export declare const Spread: MathboxComponent<"spread">;
|
|
190
|
+
/**
|
|
191
|
+
* Component wrapper for mathbox [`step`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentstep).
|
|
192
|
+
*/
|
|
193
|
+
export declare const Step: MathboxComponent<"step">;
|
|
194
|
+
/**
|
|
195
|
+
* Component wrapper for mathbox [`stereographic`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewstereographic).
|
|
196
|
+
*/
|
|
197
|
+
export declare const Stereographic: MathboxComponent<"stereographic">;
|
|
198
|
+
/**
|
|
199
|
+
* Component wrapper for mathbox [`stereographic4`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewstereographic4).
|
|
200
|
+
*/
|
|
201
|
+
export declare const Stereographic4: MathboxComponent<"stereographic4">;
|
|
202
|
+
/**
|
|
203
|
+
* Component wrapper for mathbox [`strip`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawstrip).
|
|
204
|
+
*/
|
|
205
|
+
export declare const Strip: MathboxComponent<"strip">;
|
|
206
|
+
/**
|
|
207
|
+
* Component wrapper for mathbox [`subdivide`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorsubdivide).
|
|
208
|
+
*/
|
|
209
|
+
export declare const Subdivide: MathboxComponent<"subdivide">;
|
|
210
|
+
/**
|
|
211
|
+
* Component wrapper for mathbox [`surface`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawsurface).
|
|
212
|
+
*/
|
|
213
|
+
export declare const Surface: MathboxComponent<"surface">;
|
|
214
|
+
/**
|
|
215
|
+
* Component wrapper for mathbox [`swizzle`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorswizzle).
|
|
216
|
+
*/
|
|
217
|
+
export declare const Swizzle: MathboxComponent<"swizzle">;
|
|
218
|
+
/**
|
|
219
|
+
* Component wrapper for mathbox [`text`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#texttext).
|
|
220
|
+
*/
|
|
221
|
+
export declare const Text: MathboxComponent<"text">;
|
|
222
|
+
/**
|
|
223
|
+
* Component wrapper for mathbox [`ticks`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawticks).
|
|
224
|
+
*/
|
|
225
|
+
export declare const Ticks: MathboxComponent<"ticks">;
|
|
226
|
+
/**
|
|
227
|
+
* Component wrapper for mathbox [`transform`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformtransform).
|
|
228
|
+
*/
|
|
229
|
+
export declare const Transform: MathboxComponent<"transform">;
|
|
230
|
+
/**
|
|
231
|
+
* Component wrapper for mathbox [`transform4`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformtransform4).
|
|
232
|
+
*/
|
|
233
|
+
export declare const Transform4: MathboxComponent<"transform4">;
|
|
234
|
+
/**
|
|
235
|
+
* Component wrapper for mathbox [`transpose`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatortranspose).
|
|
236
|
+
*/
|
|
237
|
+
export declare const Transpose: MathboxComponent<"transpose">;
|
|
238
|
+
/**
|
|
239
|
+
* Component wrapper for mathbox [`unit`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#baseunit).
|
|
240
|
+
*/
|
|
241
|
+
export declare const Unit: MathboxComponent<"unit">;
|
|
242
|
+
/**
|
|
243
|
+
* Component wrapper for mathbox [`vector`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawvector).
|
|
244
|
+
*/
|
|
245
|
+
export declare const Vector: MathboxComponent<"vector">;
|
|
246
|
+
/**
|
|
247
|
+
* Component wrapper for mathbox [`vertex`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformvertex).
|
|
248
|
+
*/
|
|
249
|
+
export declare const Vertex: MathboxComponent<"vertex">;
|
|
250
|
+
/**
|
|
251
|
+
* Component wrapper for mathbox [`view`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewview).
|
|
252
|
+
*/
|
|
253
|
+
export declare const View: MathboxComponent<"view">;
|
|
254
|
+
/**
|
|
255
|
+
* Component wrapper for mathbox [`volume`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datavolume).
|
|
256
|
+
*/
|
|
257
|
+
export declare const Volume: MathboxComponent<"volume">;
|
|
258
|
+
/**
|
|
259
|
+
* Component wrapper for mathbox [`voxel`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datavoxel).
|
|
260
|
+
*/
|
|
261
|
+
export declare const Voxel: MathboxComponent<"voxel">;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { MathboxSelection, Props } from "mathbox";
|
|
3
|
+
import type { WithChildren } from "./types";
|
|
4
|
+
export declare const useMathboxAPI: <T extends keyof Props>(name: T, props: WithChildren<Props[T]>, ref: React.Ref<MathboxSelection<T> | null>) => MathboxSelection<T> | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { MathboxSelection, NodeType } from "mathbox";
|
|
3
|
+
import React from "react";
|
|
4
|
+
export declare type WithChildren<T> = {
|
|
5
|
+
children?: ReactNode | ReactNode[];
|
|
6
|
+
} & T;
|
|
7
|
+
export declare type MathboxRef<T extends NodeType> = React.Ref<MathboxSelection<T>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const CustomMathbox: React.ForwardRefExoticComponent<Pick<Pick<{
|
|
3
|
+
options?: any;
|
|
4
|
+
initialCameraPosition?: number[] | undefined;
|
|
5
|
+
} & React.HTMLProps<HTMLDivElement>, "label" | "step" | "value" | "children" | "data" | "width" | "height" | "type" | "id" | "style" | "color" | "span" | "size" | "start" | "loop" | "target" | "sizes" | "shape" | "cite" | "form" | "slot" | "summary" | "title" | "pattern" | "options" | "initialCameraPosition" | "list" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<import("mathbox").MathboxSelection<"root">>, "label" | "step" | "value" | "children" | "data" | "width" | "height" | "type" | "id" | "style" | "color" | "span" | "size" | "start" | "loop" | "target" | "sizes" | "shape" | "cite" | "form" | "slot" | "summary" | "title" | "pattern" | "options" | "initialCameraPosition" | "list" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<import("mathbox").MathboxSelection<"root">>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getMockContext: () => any;
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { NodeType, Props, MathboxSelection } from 'mathbox';
|
|
3
|
+
|
|
4
|
+
declare type WithChildren<T> = {
|
|
5
|
+
children?: ReactNode | ReactNode[];
|
|
6
|
+
} & T;
|
|
7
|
+
|
|
8
|
+
declare type MathboxComponent<T extends NodeType> = React.ForwardRefExoticComponent<WithChildren<Props[T]> & React.RefAttributes<MathboxSelection<T>>>;
|
|
9
|
+
/**
|
|
10
|
+
* Component wrapper for mathbox [`area`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#dataarea).
|
|
11
|
+
*/
|
|
12
|
+
declare const Area: MathboxComponent<"area">;
|
|
13
|
+
/**
|
|
14
|
+
* Component wrapper for mathbox [`array`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#dataarray).
|
|
15
|
+
*/
|
|
16
|
+
declare const MBArray: MathboxComponent<"array">;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Component wrapper for mathbox [`axis`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawaxis).
|
|
20
|
+
*/
|
|
21
|
+
declare const Axis: MathboxComponent<"axis">;
|
|
22
|
+
/**
|
|
23
|
+
* Component wrapper for mathbox [`camera`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#cameracamera).
|
|
24
|
+
*/
|
|
25
|
+
declare const Camera: MathboxComponent<"camera">;
|
|
26
|
+
/**
|
|
27
|
+
* Component wrapper for mathbox [`cartesian`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewcartesian).
|
|
28
|
+
*/
|
|
29
|
+
declare const Cartesian: MathboxComponent<"cartesian">;
|
|
30
|
+
/**
|
|
31
|
+
* Component wrapper for mathbox [`cartesian4`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewcartesian4).
|
|
32
|
+
*/
|
|
33
|
+
declare const Cartesian4: MathboxComponent<"cartesian4">;
|
|
34
|
+
/**
|
|
35
|
+
* Component wrapper for mathbox [`clamp`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorclamp).
|
|
36
|
+
*/
|
|
37
|
+
declare const Clamp: MathboxComponent<"clamp">;
|
|
38
|
+
/**
|
|
39
|
+
* Component wrapper for mathbox [`clock`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#timeclock).
|
|
40
|
+
*/
|
|
41
|
+
declare const Clock: MathboxComponent<"clock">;
|
|
42
|
+
/**
|
|
43
|
+
* Component wrapper for mathbox [`compose`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#rttcompose).
|
|
44
|
+
*/
|
|
45
|
+
declare const Compose: MathboxComponent<"compose">;
|
|
46
|
+
/**
|
|
47
|
+
* Component wrapper for mathbox [`dom`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#overlaydom).
|
|
48
|
+
*/
|
|
49
|
+
declare const Dom: MathboxComponent<"dom">;
|
|
50
|
+
/**
|
|
51
|
+
* Component wrapper for mathbox [`face`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawface).
|
|
52
|
+
*/
|
|
53
|
+
declare const Face: MathboxComponent<"face">;
|
|
54
|
+
/**
|
|
55
|
+
* Component wrapper for mathbox [`format`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#textformat).
|
|
56
|
+
*/
|
|
57
|
+
declare const Format: MathboxComponent<"format">;
|
|
58
|
+
/**
|
|
59
|
+
* Component wrapper for mathbox [`fragment`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformfragment).
|
|
60
|
+
*/
|
|
61
|
+
declare const Fragment: MathboxComponent<"fragment">;
|
|
62
|
+
/**
|
|
63
|
+
* Component wrapper for mathbox [`grid`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawgrid).
|
|
64
|
+
*/
|
|
65
|
+
declare const Grid: MathboxComponent<"grid">;
|
|
66
|
+
/**
|
|
67
|
+
* Component wrapper for mathbox [`group`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#basegroup).
|
|
68
|
+
*/
|
|
69
|
+
declare const Group: MathboxComponent<"group">;
|
|
70
|
+
/**
|
|
71
|
+
* Component wrapper for mathbox [`grow`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorgrow).
|
|
72
|
+
*/
|
|
73
|
+
declare const Grow: MathboxComponent<"grow">;
|
|
74
|
+
/**
|
|
75
|
+
* Component wrapper for mathbox [`html`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#overlayhtml).
|
|
76
|
+
*/
|
|
77
|
+
declare const Html: MathboxComponent<"html">;
|
|
78
|
+
/**
|
|
79
|
+
* Component wrapper for mathbox [`inherit`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#baseinherit).
|
|
80
|
+
*/
|
|
81
|
+
declare const Inherit: MathboxComponent<"inherit">;
|
|
82
|
+
/**
|
|
83
|
+
* Component wrapper for mathbox [`interval`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datainterval).
|
|
84
|
+
*/
|
|
85
|
+
declare const Interval: MathboxComponent<"interval">;
|
|
86
|
+
/**
|
|
87
|
+
* Component wrapper for mathbox [`join`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorjoin).
|
|
88
|
+
*/
|
|
89
|
+
declare const Join: MathboxComponent<"join">;
|
|
90
|
+
/**
|
|
91
|
+
* Component wrapper for mathbox [`label`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#textlabel).
|
|
92
|
+
*/
|
|
93
|
+
declare const Label: MathboxComponent<"label">;
|
|
94
|
+
/**
|
|
95
|
+
* Component wrapper for mathbox [`layer`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformlayer).
|
|
96
|
+
*/
|
|
97
|
+
declare const Layer: MathboxComponent<"layer">;
|
|
98
|
+
/**
|
|
99
|
+
* Component wrapper for mathbox [`lerp`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorlerp).
|
|
100
|
+
*/
|
|
101
|
+
declare const Lerp: MathboxComponent<"lerp">;
|
|
102
|
+
/**
|
|
103
|
+
* Component wrapper for mathbox [`line`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawline).
|
|
104
|
+
*/
|
|
105
|
+
declare const Line: MathboxComponent<"line">;
|
|
106
|
+
/**
|
|
107
|
+
* Component wrapper for mathbox [`mask`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformmask).
|
|
108
|
+
*/
|
|
109
|
+
declare const Mask: MathboxComponent<"mask">;
|
|
110
|
+
/**
|
|
111
|
+
* Component wrapper for mathbox [`matrix`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datamatrix).
|
|
112
|
+
*/
|
|
113
|
+
declare const Matrix: MathboxComponent<"matrix">;
|
|
114
|
+
/**
|
|
115
|
+
* Component wrapper for mathbox [`memo`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatormemo).
|
|
116
|
+
*/
|
|
117
|
+
declare const Memo: MathboxComponent<"memo">;
|
|
118
|
+
/**
|
|
119
|
+
* Component wrapper for mathbox [`move`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentmove).
|
|
120
|
+
*/
|
|
121
|
+
declare const Move: MathboxComponent<"move">;
|
|
122
|
+
/**
|
|
123
|
+
* Component wrapper for mathbox [`now`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#timenow).
|
|
124
|
+
*/
|
|
125
|
+
declare const Now: MathboxComponent<"now">;
|
|
126
|
+
/**
|
|
127
|
+
* Component wrapper for mathbox [`play`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentplay).
|
|
128
|
+
*/
|
|
129
|
+
declare const Play: MathboxComponent<"play">;
|
|
130
|
+
/**
|
|
131
|
+
* Component wrapper for mathbox [`point`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawpoint).
|
|
132
|
+
*/
|
|
133
|
+
declare const Point: MathboxComponent<"point">;
|
|
134
|
+
/**
|
|
135
|
+
* Component wrapper for mathbox [`polar`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewpolar).
|
|
136
|
+
*/
|
|
137
|
+
declare const Polar: MathboxComponent<"polar">;
|
|
138
|
+
/**
|
|
139
|
+
* Component wrapper for mathbox [`present`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentpresent).
|
|
140
|
+
*/
|
|
141
|
+
declare const Present: MathboxComponent<"present">;
|
|
142
|
+
/**
|
|
143
|
+
* Component wrapper for mathbox [`readback`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorreadback).
|
|
144
|
+
*/
|
|
145
|
+
declare const Readback: MathboxComponent<"readback">;
|
|
146
|
+
/**
|
|
147
|
+
* Component wrapper for mathbox [`repeat`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorrepeat).
|
|
148
|
+
*/
|
|
149
|
+
declare const Repeat: MathboxComponent<"repeat">;
|
|
150
|
+
/**
|
|
151
|
+
* Component wrapper for mathbox [`resample`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorresample).
|
|
152
|
+
*/
|
|
153
|
+
declare const Resample: MathboxComponent<"resample">;
|
|
154
|
+
/**
|
|
155
|
+
* Component wrapper for mathbox [`retext`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#textretext).
|
|
156
|
+
*/
|
|
157
|
+
declare const Retext: MathboxComponent<"retext">;
|
|
158
|
+
/**
|
|
159
|
+
* Component wrapper for mathbox [`reveal`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentreveal).
|
|
160
|
+
*/
|
|
161
|
+
declare const Reveal: MathboxComponent<"reveal">;
|
|
162
|
+
/**
|
|
163
|
+
* Component wrapper for mathbox [`rtt`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#rttrtt).
|
|
164
|
+
*/
|
|
165
|
+
declare const Rtt: MathboxComponent<"rtt">;
|
|
166
|
+
/**
|
|
167
|
+
* Component wrapper for mathbox [`scale`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datascale).
|
|
168
|
+
*/
|
|
169
|
+
declare const Scale: MathboxComponent<"scale">;
|
|
170
|
+
/**
|
|
171
|
+
* Component wrapper for mathbox [`shader`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#shadershader).
|
|
172
|
+
*/
|
|
173
|
+
declare const Shader: MathboxComponent<"shader">;
|
|
174
|
+
/**
|
|
175
|
+
* Component wrapper for mathbox [`slice`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorslice).
|
|
176
|
+
*/
|
|
177
|
+
declare const Slice: MathboxComponent<"slice">;
|
|
178
|
+
/**
|
|
179
|
+
* Component wrapper for mathbox [`slide`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentslide).
|
|
180
|
+
*/
|
|
181
|
+
declare const Slide: MathboxComponent<"slide">;
|
|
182
|
+
/**
|
|
183
|
+
* Component wrapper for mathbox [`spherical`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewspherical).
|
|
184
|
+
*/
|
|
185
|
+
declare const Spherical: MathboxComponent<"spherical">;
|
|
186
|
+
/**
|
|
187
|
+
* Component wrapper for mathbox [`split`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorsplit).
|
|
188
|
+
*/
|
|
189
|
+
declare const Split: MathboxComponent<"split">;
|
|
190
|
+
/**
|
|
191
|
+
* Component wrapper for mathbox [`spread`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorspread).
|
|
192
|
+
*/
|
|
193
|
+
declare const Spread: MathboxComponent<"spread">;
|
|
194
|
+
/**
|
|
195
|
+
* Component wrapper for mathbox [`step`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#presentstep).
|
|
196
|
+
*/
|
|
197
|
+
declare const Step: MathboxComponent<"step">;
|
|
198
|
+
/**
|
|
199
|
+
* Component wrapper for mathbox [`stereographic`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewstereographic).
|
|
200
|
+
*/
|
|
201
|
+
declare const Stereographic: MathboxComponent<"stereographic">;
|
|
202
|
+
/**
|
|
203
|
+
* Component wrapper for mathbox [`stereographic4`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewstereographic4).
|
|
204
|
+
*/
|
|
205
|
+
declare const Stereographic4: MathboxComponent<"stereographic4">;
|
|
206
|
+
/**
|
|
207
|
+
* Component wrapper for mathbox [`strip`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawstrip).
|
|
208
|
+
*/
|
|
209
|
+
declare const Strip: MathboxComponent<"strip">;
|
|
210
|
+
/**
|
|
211
|
+
* Component wrapper for mathbox [`subdivide`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorsubdivide).
|
|
212
|
+
*/
|
|
213
|
+
declare const Subdivide: MathboxComponent<"subdivide">;
|
|
214
|
+
/**
|
|
215
|
+
* Component wrapper for mathbox [`surface`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawsurface).
|
|
216
|
+
*/
|
|
217
|
+
declare const Surface: MathboxComponent<"surface">;
|
|
218
|
+
/**
|
|
219
|
+
* Component wrapper for mathbox [`swizzle`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatorswizzle).
|
|
220
|
+
*/
|
|
221
|
+
declare const Swizzle: MathboxComponent<"swizzle">;
|
|
222
|
+
/**
|
|
223
|
+
* Component wrapper for mathbox [`text`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#texttext).
|
|
224
|
+
*/
|
|
225
|
+
declare const Text: MathboxComponent<"text">;
|
|
226
|
+
/**
|
|
227
|
+
* Component wrapper for mathbox [`ticks`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawticks).
|
|
228
|
+
*/
|
|
229
|
+
declare const Ticks: MathboxComponent<"ticks">;
|
|
230
|
+
/**
|
|
231
|
+
* Component wrapper for mathbox [`transform`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformtransform).
|
|
232
|
+
*/
|
|
233
|
+
declare const Transform: MathboxComponent<"transform">;
|
|
234
|
+
/**
|
|
235
|
+
* Component wrapper for mathbox [`transform4`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformtransform4).
|
|
236
|
+
*/
|
|
237
|
+
declare const Transform4: MathboxComponent<"transform4">;
|
|
238
|
+
/**
|
|
239
|
+
* Component wrapper for mathbox [`transpose`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#operatortranspose).
|
|
240
|
+
*/
|
|
241
|
+
declare const Transpose: MathboxComponent<"transpose">;
|
|
242
|
+
/**
|
|
243
|
+
* Component wrapper for mathbox [`unit`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#baseunit).
|
|
244
|
+
*/
|
|
245
|
+
declare const Unit: MathboxComponent<"unit">;
|
|
246
|
+
/**
|
|
247
|
+
* Component wrapper for mathbox [`vector`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#drawvector).
|
|
248
|
+
*/
|
|
249
|
+
declare const Vector: MathboxComponent<"vector">;
|
|
250
|
+
/**
|
|
251
|
+
* Component wrapper for mathbox [`vertex`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#transformvertex).
|
|
252
|
+
*/
|
|
253
|
+
declare const Vertex: MathboxComponent<"vertex">;
|
|
254
|
+
/**
|
|
255
|
+
* Component wrapper for mathbox [`view`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#viewview).
|
|
256
|
+
*/
|
|
257
|
+
declare const View: MathboxComponent<"view">;
|
|
258
|
+
/**
|
|
259
|
+
* Component wrapper for mathbox [`volume`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datavolume).
|
|
260
|
+
*/
|
|
261
|
+
declare const Volume: MathboxComponent<"volume">;
|
|
262
|
+
/**
|
|
263
|
+
* Component wrapper for mathbox [`voxel`](https://gitgud.io/unconed/mathbox/-/blob/master/docs/primitives.md#datavoxel).
|
|
264
|
+
*/
|
|
265
|
+
declare const Voxel: MathboxComponent<"voxel">;
|
|
266
|
+
|
|
267
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<{
|
|
268
|
+
options?: any;
|
|
269
|
+
initialCameraPosition?: number[] | undefined;
|
|
270
|
+
} & React.HTMLProps<HTMLDivElement>, "label" | "step" | "value" | "children" | "data" | "width" | "height" | "type" | "id" | "style" | "color" | "span" | "size" | "start" | "loop" | "target" | "sizes" | "shape" | "cite" | "form" | "slot" | "summary" | "title" | "pattern" | "options" | "initialCameraPosition" | "list" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<MathboxSelection<"root">>>;
|
|
271
|
+
|
|
272
|
+
export { Area, MBArray as Array, Axis, Camera, Cartesian, Cartesian4, Clamp, Clock, Compose, Dom, Face, Format, Fragment, Grid, Group, Grow, Html, Inherit, Interval, Join, Label, Layer, Lerp, Line, Mask, _default as Mathbox, Matrix, Memo, Move, Now, Play, Point, Polar, Present, Readback, Repeat, Resample, Retext, Reveal, Rtt, Scale, Shader, Slice, Slide, Spherical, Split, Spread, Step, Stereographic, Stereographic4, Strip, Subdivide, Surface, Swizzle, Text, Ticks, Transform, Transform4, Transpose, Unit, Vector, Vertex, View, Volume, Voxel };
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
preset: "ts-jest",
|
|
3
|
+
transform: {
|
|
4
|
+
"^.+\\.(ts|tsx)?$": "ts-jest",
|
|
5
|
+
"^.+\\.(js|jsx)$": "babel-jest",
|
|
6
|
+
},
|
|
7
|
+
transformIgnorePatterns: [
|
|
8
|
+
"node_modules/(?!(mathbox|threestrap|three|shadergraph)/)",
|
|
9
|
+
],
|
|
10
|
+
testEnvironment: "jsdom",
|
|
11
|
+
setupFiles: ["./src/testSetup.ts"],
|
|
12
|
+
}
|