animot-presenter 0.2.4 → 0.2.5
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 +35 -3
- package/dist/AnimotPresenter.svelte +191 -28
- package/dist/cdn/animot-presenter.css +1 -1
- package/dist/cdn/animot-presenter.esm.js +4184 -4111
- package/dist/cdn/animot-presenter.min.js +9 -9
- package/dist/types.d.ts +10 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface Size {
|
|
|
9
9
|
height: number;
|
|
10
10
|
}
|
|
11
11
|
export type TiltOrigin = string;
|
|
12
|
-
export type AnimatableProperty = 'position' | 'rotation' | 'tilt' | 'skew' | 'size' | 'opacity' | 'borderRadius' | 'color' | 'perspective';
|
|
12
|
+
export type AnimatableProperty = 'position' | 'rotation' | 'tilt' | 'skew' | 'size' | 'opacity' | 'borderRadius' | 'color' | 'perspective' | 'blur';
|
|
13
13
|
export interface PropertySequence {
|
|
14
14
|
property: AnimatableProperty;
|
|
15
15
|
order: number;
|
|
@@ -72,6 +72,11 @@ export interface BaseElement {
|
|
|
72
72
|
floatingAnimation?: FloatingAnimationConfig;
|
|
73
73
|
motionPathId?: string;
|
|
74
74
|
motionPathConfig?: MotionPathConfig;
|
|
75
|
+
blur?: number;
|
|
76
|
+
brightness?: number;
|
|
77
|
+
contrast?: number;
|
|
78
|
+
saturate?: number;
|
|
79
|
+
grayscale?: number;
|
|
75
80
|
}
|
|
76
81
|
export type CodeAnimationMode = 'instant' | 'typewriter' | 'highlight-changes';
|
|
77
82
|
export interface CodeAnimationConfig {
|
|
@@ -97,6 +102,9 @@ export interface CodeElement extends BaseElement {
|
|
|
97
102
|
headerStyle: 'macos' | 'windows' | 'none';
|
|
98
103
|
animation: CodeAnimationConfig;
|
|
99
104
|
transparentBackground?: boolean;
|
|
105
|
+
bgColor?: string;
|
|
106
|
+
headerRadius?: number;
|
|
107
|
+
tabRadius?: number;
|
|
100
108
|
}
|
|
101
109
|
export type TextAnimationMode = 'instant' | 'typewriter' | 'fade-words';
|
|
102
110
|
export interface TextAnimationConfig {
|
|
@@ -136,7 +144,7 @@ export interface TextElement extends BaseElement {
|
|
|
136
144
|
backgroundPositionY?: number;
|
|
137
145
|
backgroundScale?: number;
|
|
138
146
|
}
|
|
139
|
-
export type ArrowAnimationMode = 'none' | 'grow' | 'draw';
|
|
147
|
+
export type ArrowAnimationMode = 'none' | 'grow' | 'draw' | 'undraw' | 'draw-undraw';
|
|
140
148
|
export interface ArrowAnimationConfig {
|
|
141
149
|
mode: ArrowAnimationMode;
|
|
142
150
|
duration: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "animot-presenter",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Embed animated presentations anywhere. Works with vanilla JS, React, Vue, Angular, Svelte, and any frontend framework. Morphing animations, code highlighting, charts, particles, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"svelte": "./dist/index.js",
|