@liustack/pptfast 0.1.0 → 0.4.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/README.md +114 -11
- package/README.zh-CN.md +108 -11
- package/dist/chunk-4W2YZPJJ.js +564 -0
- package/dist/chunk-4W2YZPJJ.js.map +1 -0
- package/dist/chunk-7N4HGSMW.js +19013 -0
- package/dist/chunk-7N4HGSMW.js.map +1 -0
- package/dist/chunk-HFRNKYZ6.js +54 -0
- package/dist/chunk-HFRNKYZ6.js.map +1 -0
- package/dist/chunk-L524YK63.js +19 -0
- package/dist/chunk-L524YK63.js.map +1 -0
- package/dist/cli.js +1094 -44
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1716 -62
- package/dist/index.js +66 -6
- package/dist/node.d.ts +3 -2
- package/dist/node.js +2 -2
- package/dist/pixel-audit-4DXKLFBV.js +176 -0
- package/dist/pixel-audit-4DXKLFBV.js.map +1 -0
- package/dist/registry-V079Jkry.d.ts +40 -0
- package/package.json +6 -4
- package/dist/chunk-4WISUDXE.js +0 -34
- package/dist/chunk-4WISUDXE.js.map +0 -1
- package/dist/chunk-DVMJWFDL.js +0 -14465
- package/dist/chunk-DVMJWFDL.js.map +0 -1
- package/dist/chunk-G76EVNVT.js +0 -14
- package/dist/chunk-G76EVNVT.js.map +0 -1
- package/dist/registry-CYKxZ0-U.d.ts +0 -11
package/dist/chunk-G76EVNVT.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// src/platform/registry.ts
|
|
2
|
-
var current = {};
|
|
3
|
-
function installPlatform(p) {
|
|
4
|
-
current = { ...current, ...p };
|
|
5
|
-
}
|
|
6
|
-
function getPlatform() {
|
|
7
|
-
return current;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
installPlatform,
|
|
12
|
-
getPlatform
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=chunk-G76EVNVT.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/platform/registry.ts"],"sourcesContent":["/** Environment seams. The SDK entry stays browser-safe: Node implementations\n * live in ./node and are installed explicitly (CLI does it automatically). */\nexport interface PptfastPlatform {\n /** DOMParser constructor used to parse rendered SVG markup. */\n domParser?: typeof DOMParser\n /** Re-encode an image data URL to PNG (Office rejects webp and friends). */\n recodeImageToPng?: (dataUrl: string) => Promise<string>\n}\n\nlet current: PptfastPlatform = {}\n\nexport function installPlatform(p: PptfastPlatform): void {\n current = { ...current, ...p }\n}\n\nexport function getPlatform(): PptfastPlatform {\n return current\n}\n"],"mappings":";AASA,IAAI,UAA2B,CAAC;AAEzB,SAAS,gBAAgB,GAA0B;AACxD,YAAU,EAAE,GAAG,SAAS,GAAG,EAAE;AAC/B;AAEO,SAAS,cAA+B;AAC7C,SAAO;AACT;","names":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** Environment seams. The SDK entry stays browser-safe: Node implementations
|
|
2
|
-
* live in ./node and are installed explicitly (CLI does it automatically). */
|
|
3
|
-
interface PptfastPlatform {
|
|
4
|
-
/** DOMParser constructor used to parse rendered SVG markup. */
|
|
5
|
-
domParser?: typeof DOMParser;
|
|
6
|
-
/** Re-encode an image data URL to PNG (Office rejects webp and friends). */
|
|
7
|
-
recodeImageToPng?: (dataUrl: string) => Promise<string>;
|
|
8
|
-
}
|
|
9
|
-
declare function installPlatform(p: PptfastPlatform): void;
|
|
10
|
-
|
|
11
|
-
export { type PptfastPlatform as P, installPlatform as i };
|