@triiiceratops/plugin-image-export 1.0.0-rc.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/LICENSE +21 -0
- package/dist/catalog.d.ts +11 -0
- package/dist/contextKey.d.ts +17 -0
- package/dist/exportImage.d.ts +46 -0
- package/dist/icons.d.ts +3 -0
- package/dist/iife.d.ts +24 -0
- package/dist/iife.js +200 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +3578 -0
- package/dist/plugin.d.ts +20 -0
- package/dist/reportError.d.ts +1 -0
- package/dist/styles.d.ts +14 -0
- package/package.json +67 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@triiiceratops/plugin-image-export` — ESM entry.
|
|
3
|
+
*
|
|
4
|
+
* Import the plugin factory and activate it explicitly on a viewer:
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { ImageDownloadPlugin } from '@triiiceratops/plugin-image-export';
|
|
8
|
+
* // Svelte: <TriiiceratopsViewer plugins={[ImageDownloadPlugin]} />
|
|
9
|
+
* // WC: viewer.plugins = [ImageDownloadPlugin];
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* The `exportImage` helpers are re-exported with their original signatures for
|
|
13
|
+
* hosts that want to drive image export programmatically.
|
|
14
|
+
*/
|
|
15
|
+
export { ImageDownloadPlugin } from './plugin';
|
|
16
|
+
export { buildImageDownloadFilename, exportCompositeCanvas, exportCurrentWorld, exportSingleImage, getCanvasImageChoices, getVisibleCanvasesForDownload, resolveCompositeCanvasSizeOptions, resolveSingleImageSizeOptions, resolveWorldSizeOptions, } from './exportImage';
|
|
17
|
+
export type { ImageDownloadFormat, ImageDownloadMode } from './exportImage';
|