presenter 0.5.1 → 0.5.3
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/354.js +2 -0
- package/dist/354.js.LICENSE.txt +20 -0
- package/dist/418.js +2 -0
- package/dist/418.js.LICENSE.txt +1 -0
- package/dist/661.js +1 -0
- package/dist/jest.config.d.ts +13 -0
- package/dist/presenter-code.js +1 -0
- package/dist/presenter-export.js +2 -0
- package/dist/presenter-export.js.LICENSE.txt +313 -0
- package/dist/presenter-morph.js +1 -0
- package/dist/presenter.js +1 -0
- package/dist/src/code/codeBlock.d.ts +108 -0
- package/dist/src/code/index.d.ts +1 -0
- package/dist/src/export/index.d.ts +24 -0
- package/dist/src/export/util.d.ts +4 -0
- package/dist/src/index.d.ts +25 -0
- package/dist/src/library/bullets.d.ts +15 -0
- package/dist/src/library/mainTitle.d.ts +4 -0
- package/dist/src/library/slideTitle.d.ts +4 -0
- package/dist/src/morph/index.d.ts +34 -0
- package/dist/src/objects/arrow.d.ts +62 -0
- package/dist/src/objects/circle.d.ts +24 -0
- package/dist/src/objects/grid.d.ts +17 -0
- package/dist/src/objects/group.d.ts +28 -0
- package/dist/src/objects/iframe.d.ts +16 -0
- package/dist/src/objects/image.d.ts +20 -0
- package/dist/src/objects/line.d.ts +19 -0
- package/dist/src/objects/mask.d.ts +13 -0
- package/dist/src/objects/paragraph.d.ts +21 -0
- package/dist/src/objects/path.d.ts +29 -0
- package/dist/src/objects/polygon.d.ts +13 -0
- package/dist/src/objects/rectangle.d.ts +26 -0
- package/dist/src/objects/screenCapture.d.ts +17 -0
- package/dist/src/objects/text.d.ts +67 -0
- package/dist/src/objects/text.test.d.ts +1 -0
- package/dist/src/objects/vectorGraphic.d.ts +48 -0
- package/dist/src/presentation/object.d.ts +132 -0
- package/dist/src/presentation/presentation.d.ts +153 -0
- package/dist/src/presentation/presentation.test.d.ts +1 -0
- package/dist/src/presentation/slide.d.ts +43 -0
- package/dist/src/presentation/storage.d.ts +9 -0
- package/dist/src/util/animation.d.ts +60 -0
- package/dist/src/util/easing.d.ts +12 -0
- package/dist/src/util/easing.test.d.ts +1 -0
- package/dist/src/util/position.d.ts +11 -0
- package/dist/src/util/richText.d.ts +19 -0
- package/dist/webpack.config.d.ts +70 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface Position {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}
|
|
5
|
+
export declare class BoundingBox {
|
|
6
|
+
origin: Position;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
constructor(origin: Position, width: number, height: number);
|
|
10
|
+
static fromElement(element: SVGGraphicsElement): BoundingBox;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TextContent } from "../objects/text";
|
|
2
|
+
export interface RichTextProps {
|
|
3
|
+
fontStyle?: string;
|
|
4
|
+
fontWeight?: string | number;
|
|
5
|
+
fontSize?: string | number;
|
|
6
|
+
fontFamily?: string;
|
|
7
|
+
textDecoration?: string;
|
|
8
|
+
smallCaps?: boolean;
|
|
9
|
+
color?: string;
|
|
10
|
+
dy?: number;
|
|
11
|
+
superscript?: boolean;
|
|
12
|
+
subscript?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type RichTextSpan = string | [string, RichTextProps];
|
|
15
|
+
export declare function preserveLeadingSpaces(content: TextContent): TextContent;
|
|
16
|
+
/**
|
|
17
|
+
* Given rich text configuration, returns the corresponding tspan nodes.
|
|
18
|
+
*/
|
|
19
|
+
export declare function generateTextNodes(lines: (string | RichTextSpan[])[], lineSpacing?: string, anchor?: "start" | "middle" | "end"): Node[];
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export let mode: string;
|
|
2
|
+
export namespace entry {
|
|
3
|
+
export namespace presenter {
|
|
4
|
+
let _import: string;
|
|
5
|
+
export { _import as import };
|
|
6
|
+
export let filename: string;
|
|
7
|
+
export namespace library {
|
|
8
|
+
let name: string;
|
|
9
|
+
let type: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export namespace _export {
|
|
13
|
+
let _import_1: string;
|
|
14
|
+
export { _import_1 as import };
|
|
15
|
+
let filename_1: string;
|
|
16
|
+
export { filename_1 as filename };
|
|
17
|
+
export namespace library_1 {
|
|
18
|
+
let name_1: string;
|
|
19
|
+
export { name_1 as name };
|
|
20
|
+
let type_1: string;
|
|
21
|
+
export { type_1 as type };
|
|
22
|
+
}
|
|
23
|
+
export { library_1 as library };
|
|
24
|
+
}
|
|
25
|
+
export { _export as export };
|
|
26
|
+
export namespace morph {
|
|
27
|
+
let _import_2: string;
|
|
28
|
+
export { _import_2 as import };
|
|
29
|
+
let filename_2: string;
|
|
30
|
+
export { filename_2 as filename };
|
|
31
|
+
export namespace library_2 {
|
|
32
|
+
let name_2: string;
|
|
33
|
+
export { name_2 as name };
|
|
34
|
+
let type_2: string;
|
|
35
|
+
export { type_2 as type };
|
|
36
|
+
}
|
|
37
|
+
export { library_2 as library };
|
|
38
|
+
}
|
|
39
|
+
export namespace code {
|
|
40
|
+
let _import_3: string;
|
|
41
|
+
export { _import_3 as import };
|
|
42
|
+
let filename_3: string;
|
|
43
|
+
export { filename_3 as filename };
|
|
44
|
+
export namespace library_3 {
|
|
45
|
+
let name_3: string;
|
|
46
|
+
export { name_3 as name };
|
|
47
|
+
let type_3: string;
|
|
48
|
+
export { type_3 as type };
|
|
49
|
+
}
|
|
50
|
+
export { library_3 as library };
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export namespace output {
|
|
54
|
+
let path: string;
|
|
55
|
+
let libraryTarget: string;
|
|
56
|
+
let globalObject: string;
|
|
57
|
+
}
|
|
58
|
+
export namespace watchOptions {
|
|
59
|
+
let ignored: string[];
|
|
60
|
+
}
|
|
61
|
+
export namespace resolve {
|
|
62
|
+
let extensions: string[];
|
|
63
|
+
}
|
|
64
|
+
export namespace module {
|
|
65
|
+
let rules: {
|
|
66
|
+
test: RegExp;
|
|
67
|
+
use: string;
|
|
68
|
+
exclude: RegExp[];
|
|
69
|
+
}[];
|
|
70
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "presenter",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "A JavaScript presentation library",
|
|
5
5
|
"main": "dist/presenter.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"animejs": "^3.2.2",
|
|
48
48
|
"flubber": "^0.4.2",
|
|
49
49
|
"html-to-image": "^1.11.11",
|
|
50
|
-
"jspdf": "^
|
|
50
|
+
"jspdf": "^3.0.0",
|
|
51
51
|
"svg2pdf.js": "^2.2.4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|