presenter 0.7.1 → 0.7.2
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/export/powerpoint-renderer/objects/renderSvg.d.ts +3 -0
- package/dist/export.js +30 -29
- package/dist/export.js.map +1 -0
- package/dist/export.mjs +933 -846
- package/dist/export.mjs.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/objects/SVG.d.ts +13 -0
- package/dist/presenter.js +3 -2
- package/dist/presenter.js.map +1 -0
- package/dist/presenter.mjs +742 -662
- package/dist/presenter.mjs.map +1 -0
- package/dist/renderer/browser-canvas/objects/renderSvg.d.ts +3 -0
- package/dist/types/ObjectType.d.ts +1 -0
- package/dist/utils/presentation/getSvgImageUrlById.d.ts +7 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export declare const ObjectType: {
|
|
|
9
9
|
readonly POLYGON: "Polygon";
|
|
10
10
|
readonly RECTANGLE: "Rectangle";
|
|
11
11
|
readonly SLIDE_OBJECT: "SlideObject";
|
|
12
|
+
readonly SVG: "SVG";
|
|
12
13
|
readonly TEXT: "Text";
|
|
13
14
|
};
|
|
14
15
|
export type ObjectType = (typeof ObjectType)[keyof typeof ObjectType];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Presentation } from '../../types/Presentation';
|
|
2
|
+
/**
|
|
3
|
+
* Extracts all SVG objects from slides and returns a mapping from image ID to URL.
|
|
4
|
+
* In the case of SVGs, the image URL and path are both the SVG string itself.
|
|
5
|
+
* SVG strings are transformed into data URLs in the image loading process.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getSvgImageUrlById(presentation: Presentation): Record<string, string>;
|