@twick/visualizer 0.0.1 → 0.14.0
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/.turbo/turbo-build.log +19 -0
- package/.turbo/turbo-docs.log +7 -0
- package/LICENSE +197 -0
- package/README.md +1 -1
- package/dist/mp4.wasm +0 -0
- package/dist/project.css +1 -0
- package/dist/project.js +145 -0
- package/docs/.nojekyll +1 -0
- package/docs/README.md +13 -0
- package/docs/interfaces/Animation.md +47 -0
- package/docs/interfaces/Element.md +47 -0
- package/docs/interfaces/FrameEffectPlugin.md +47 -0
- package/docs/interfaces/TextEffect.md +47 -0
- package/docs/modules.md +535 -0
- package/package.json +34 -31
- package/src/animations/blur.tsx +60 -0
- package/src/animations/breathe.tsx +60 -0
- package/src/animations/fade.tsx +60 -0
- package/src/animations/photo-rise.tsx +66 -0
- package/src/animations/photo-zoom.tsx +73 -0
- package/src/animations/rise.tsx +118 -0
- package/src/animations/succession.tsx +77 -0
- package/src/components/frame-effects.tsx +2 -4
- package/src/components/track.tsx +232 -0
- package/src/controllers/animation.controller.ts +39 -0
- package/src/controllers/element.controller.ts +43 -0
- package/src/controllers/frame-effect.controller.tsx +30 -0
- package/src/controllers/text-effect.controller.ts +33 -0
- package/src/elements/audio.element.tsx +17 -0
- package/src/elements/caption.element.tsx +87 -0
- package/src/elements/circle.element.tsx +20 -0
- package/src/elements/icon.element.tsx +20 -0
- package/src/elements/image.element.tsx +55 -0
- package/src/elements/rect.element.tsx +22 -0
- package/src/elements/scene.element.tsx +29 -0
- package/src/elements/text.element.tsx +28 -0
- package/src/elements/video.element.tsx +56 -0
- package/src/frame-effects/circle.frame.tsx +103 -0
- package/src/frame-effects/rect.frame.tsx +103 -0
- package/src/helpers/caption.utils.ts +4 -14
- package/src/helpers/constants.ts +1 -1
- package/src/helpers/element.utils.ts +222 -68
- package/src/helpers/filters.ts +1 -1
- package/src/helpers/log.utils.ts +0 -3
- package/src/helpers/timing.utils.ts +2 -21
- package/src/helpers/types.ts +103 -8
- package/src/helpers/utils.ts +20 -0
- package/src/index.ts +4 -2
- package/src/live.tsx +1 -1
- package/src/project.ts +1 -1
- package/src/sample.ts +16 -218
- package/src/text-effects/elastic.tsx +39 -0
- package/src/text-effects/erase.tsx +58 -0
- package/src/text-effects/stream-word.tsx +60 -0
- package/src/text-effects/typewriter.tsx +59 -0
- package/src/visualizer.tsx +27 -27
- package/tsconfig.json +3 -2
- package/vite.config.ts +1 -1
- package/src/components/animation.tsx +0 -7
- package/src/components/element.tsx +0 -344
- package/src/components/timeline.tsx +0 -225
package/docs/.nojekyll
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/docs/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Interface: Animation\<Params\>
|
|
2
|
+
|
|
3
|
+
## Type parameters
|
|
4
|
+
|
|
5
|
+
| Name | Type |
|
|
6
|
+
| :------ | :------ |
|
|
7
|
+
| `Params` | [`AnimationParams`](../modules.md#animationparams) |
|
|
8
|
+
|
|
9
|
+
## Table of contents
|
|
10
|
+
|
|
11
|
+
### Properties
|
|
12
|
+
|
|
13
|
+
- [name](Animation.md#name)
|
|
14
|
+
|
|
15
|
+
### Methods
|
|
16
|
+
|
|
17
|
+
- [run](Animation.md#run)
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### name
|
|
22
|
+
|
|
23
|
+
• **name**: `string`
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[helpers/types.ts:212](https://github.com/ncounterspecialist/twick/blob/7c22d63b8d885bd0a8497127883a5009346a6a6b/packages/visualizer/src/helpers/types.ts#L212)
|
|
28
|
+
|
|
29
|
+
## Methods
|
|
30
|
+
|
|
31
|
+
### run
|
|
32
|
+
|
|
33
|
+
▸ **run**(`params`): `ThreadGenerator`
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
| Name | Type |
|
|
38
|
+
| :------ | :------ |
|
|
39
|
+
| `params` | `Params` |
|
|
40
|
+
|
|
41
|
+
#### Returns
|
|
42
|
+
|
|
43
|
+
`ThreadGenerator`
|
|
44
|
+
|
|
45
|
+
#### Defined in
|
|
46
|
+
|
|
47
|
+
[helpers/types.ts:213](https://github.com/ncounterspecialist/twick/blob/7c22d63b8d885bd0a8497127883a5009346a6a6b/packages/visualizer/src/helpers/types.ts#L213)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Interface: Element\<Params\>
|
|
2
|
+
|
|
3
|
+
## Type parameters
|
|
4
|
+
|
|
5
|
+
| Name | Type |
|
|
6
|
+
| :------ | :------ |
|
|
7
|
+
| `Params` | [`ElementParams`](../modules.md#elementparams) |
|
|
8
|
+
|
|
9
|
+
## Table of contents
|
|
10
|
+
|
|
11
|
+
### Properties
|
|
12
|
+
|
|
13
|
+
- [name](Element.md#name)
|
|
14
|
+
|
|
15
|
+
### Methods
|
|
16
|
+
|
|
17
|
+
- [create](Element.md#create)
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### name
|
|
22
|
+
|
|
23
|
+
• **name**: `string`
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[helpers/types.ts:162](https://github.com/ncounterspecialist/twick/blob/7c22d63b8d885bd0a8497127883a5009346a6a6b/packages/visualizer/src/helpers/types.ts#L162)
|
|
28
|
+
|
|
29
|
+
## Methods
|
|
30
|
+
|
|
31
|
+
### create
|
|
32
|
+
|
|
33
|
+
▸ **create**(`params`): `ThreadGenerator`
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
| Name | Type |
|
|
38
|
+
| :------ | :------ |
|
|
39
|
+
| `params` | `Params` |
|
|
40
|
+
|
|
41
|
+
#### Returns
|
|
42
|
+
|
|
43
|
+
`ThreadGenerator`
|
|
44
|
+
|
|
45
|
+
#### Defined in
|
|
46
|
+
|
|
47
|
+
[helpers/types.ts:163](https://github.com/ncounterspecialist/twick/blob/7c22d63b8d885bd0a8497127883a5009346a6a6b/packages/visualizer/src/helpers/types.ts#L163)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Interface: FrameEffectPlugin\<Params\>
|
|
2
|
+
|
|
3
|
+
## Type parameters
|
|
4
|
+
|
|
5
|
+
| Name | Type |
|
|
6
|
+
| :------ | :------ |
|
|
7
|
+
| `Params` | [`FrameEffectParams`](../modules.md#frameeffectparams) |
|
|
8
|
+
|
|
9
|
+
## Table of contents
|
|
10
|
+
|
|
11
|
+
### Properties
|
|
12
|
+
|
|
13
|
+
- [name](FrameEffectPlugin.md#name)
|
|
14
|
+
|
|
15
|
+
### Methods
|
|
16
|
+
|
|
17
|
+
- [run](FrameEffectPlugin.md#run)
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### name
|
|
22
|
+
|
|
23
|
+
• **name**: `string`
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[helpers/types.ts:224](https://github.com/ncounterspecialist/twick/blob/7c22d63b8d885bd0a8497127883a5009346a6a6b/packages/visualizer/src/helpers/types.ts#L224)
|
|
28
|
+
|
|
29
|
+
## Methods
|
|
30
|
+
|
|
31
|
+
### run
|
|
32
|
+
|
|
33
|
+
▸ **run**(`params`): `ThreadGenerator`
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
| Name | Type |
|
|
38
|
+
| :------ | :------ |
|
|
39
|
+
| `params` | `Params` |
|
|
40
|
+
|
|
41
|
+
#### Returns
|
|
42
|
+
|
|
43
|
+
`ThreadGenerator`
|
|
44
|
+
|
|
45
|
+
#### Defined in
|
|
46
|
+
|
|
47
|
+
[helpers/types.ts:225](https://github.com/ncounterspecialist/twick/blob/7c22d63b8d885bd0a8497127883a5009346a6a6b/packages/visualizer/src/helpers/types.ts#L225)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Interface: TextEffect\<Params\>
|
|
2
|
+
|
|
3
|
+
## Type parameters
|
|
4
|
+
|
|
5
|
+
| Name | Type |
|
|
6
|
+
| :------ | :------ |
|
|
7
|
+
| `Params` | [`TextEffectParams`](../modules.md#texteffectparams) |
|
|
8
|
+
|
|
9
|
+
## Table of contents
|
|
10
|
+
|
|
11
|
+
### Properties
|
|
12
|
+
|
|
13
|
+
- [name](TextEffect.md#name)
|
|
14
|
+
|
|
15
|
+
### Methods
|
|
16
|
+
|
|
17
|
+
- [run](TextEffect.md#run)
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### name
|
|
22
|
+
|
|
23
|
+
• **name**: `string`
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[helpers/types.ts:185](https://github.com/ncounterspecialist/twick/blob/7c22d63b8d885bd0a8497127883a5009346a6a6b/packages/visualizer/src/helpers/types.ts#L185)
|
|
28
|
+
|
|
29
|
+
## Methods
|
|
30
|
+
|
|
31
|
+
### run
|
|
32
|
+
|
|
33
|
+
▸ **run**(`params`): `Generator`\<`unknown`, `any`, `any`\>
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
| Name | Type |
|
|
38
|
+
| :------ | :------ |
|
|
39
|
+
| `params` | `Params` |
|
|
40
|
+
|
|
41
|
+
#### Returns
|
|
42
|
+
|
|
43
|
+
`Generator`\<`unknown`, `any`, `any`\>
|
|
44
|
+
|
|
45
|
+
#### Defined in
|
|
46
|
+
|
|
47
|
+
[helpers/types.ts:186](https://github.com/ncounterspecialist/twick/blob/7c22d63b8d885bd0a8497127883a5009346a6a6b/packages/visualizer/src/helpers/types.ts#L186)
|