presenter 0.6.2 → 0.6.4
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/dist/animations/FadeIn.d.ts +3 -0
- package/dist/animations/FadeOut.d.ts +3 -0
- package/dist/animations/Hide.d.ts +3 -0
- package/dist/animations/Show.d.ts +3 -0
- package/dist/export.js +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/{constructors → objects}/Grid.d.ts +1 -1
- package/dist/objects/Group.d.ts +3 -0
- package/dist/objects/Line.d.ts +1 -0
- package/dist/objects/Path.d.ts +3 -0
- package/dist/presenter.js +1 -1
- package/dist/renderer/browser-canvas/utils/drawStroke.d.ts +2 -1
- package/dist/types/Animate.d.ts +3 -2
- package/package.json +4 -3
|
@@ -6,10 +6,11 @@ interface Args {
|
|
|
6
6
|
readonly ctx: UnifiedCanvasContext;
|
|
7
7
|
readonly drawn?: number | null;
|
|
8
8
|
readonly isDrawnFromCenter?: boolean;
|
|
9
|
+
readonly isRounded?: boolean;
|
|
9
10
|
readonly opacity?: number | null;
|
|
10
11
|
readonly path: UnifiedPath2D | undefined;
|
|
11
12
|
readonly pathLength?: number | null;
|
|
12
13
|
readonly width: number;
|
|
13
14
|
}
|
|
14
|
-
export declare function drawStroke({ ctx, color, drawn, isDrawnFromCenter, opacity, path, pathLength, width, }: Args): void;
|
|
15
|
+
export declare function drawStroke({ ctx, color, drawn, isDrawnFromCenter, isRounded, opacity, path, pathLength, width, }: Args): void;
|
|
15
16
|
export {};
|
package/dist/types/Animate.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface Animate<T extends SlideObject> extends BaseUnitSlideAnimation {
|
|
|
7
7
|
readonly type: typeof AnimationType.ANIMATE;
|
|
8
8
|
readonly object: T;
|
|
9
9
|
readonly props: Partial<Omit<T, "objectType">>;
|
|
10
|
+
readonly delay: number;
|
|
10
11
|
readonly duration: number;
|
|
11
12
|
readonly easing: EasingFunction;
|
|
12
13
|
/** Whether animation should block future animations from starting. */
|
|
@@ -14,5 +15,5 @@ export interface Animate<T extends SlideObject> extends BaseUnitSlideAnimation {
|
|
|
14
15
|
/** Custom interpolators to use for performing animation. */
|
|
15
16
|
readonly interpolators: Interpolator<any>[] | null;
|
|
16
17
|
}
|
|
17
|
-
export type AnimationParams<T extends SlideObject> =
|
|
18
|
-
export declare function Animate<T extends SlideObject>(object: T, props: Partial<Omit<T, "objectType">>, animationParams?: AnimationParams<T>): Animate<T>;
|
|
18
|
+
export type AnimationParams<T extends SlideObject> = Partial<Omit<Animate<T>, "object" | "props">>;
|
|
19
|
+
export declare function Animate<T extends SlideObject>(object: T, props: Partial<Omit<T, "objectType">>, animationParams?: AnimationParams<T> | number): Animate<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "presenter",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "A JavaScript presentation library",
|
|
5
5
|
"main": "dist/presenter.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/brianyu28/presenter#readme",
|
|
36
36
|
"license": "GPL-3.0-or-later",
|
|
37
|
+
"sideEffects": false,
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@types/flubber": "^0.4.0",
|
|
39
39
|
"d3-ease": "^3.0.1",
|
|
40
40
|
"flubber": "^0.4.2",
|
|
41
41
|
"pptxgenjs": "^4.0.1",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@eslint/js": "^9.35.0",
|
|
47
47
|
"@types/d3-ease": "^3.0.2",
|
|
48
|
+
"@types/flubber": "^0.4.0",
|
|
48
49
|
"@types/jest": "^30.0.0",
|
|
49
50
|
"eslint": "^9.35.0",
|
|
50
51
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"husky": "^9.1.7",
|
|
53
54
|
"jest": "^29.7.0",
|
|
54
55
|
"jest-environment-jsdom": "^29.7.0",
|
|
55
|
-
"jiti": "^2.
|
|
56
|
+
"jiti": "^2.6.1",
|
|
56
57
|
"prettier": "^3.6.2",
|
|
57
58
|
"ts-jest": "^29.4.5",
|
|
58
59
|
"ts-loader": "^9.5.1",
|