@mgamadeus/ddd-design-studio 0.6.1 → 0.7.1
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 +10 -0
- package/dist/canvas/index.js +344 -234
- package/dist/canvas/index.js.map +1 -1
- package/dist/{chunk-GPHJ2WQ3.js → chunk-BLRROGEA.js} +11 -2
- package/dist/chunk-BLRROGEA.js.map +1 -0
- package/dist/index.d.ts +71 -2
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GPHJ2WQ3.js.map +0 -1
package/README.md
CHANGED
|
@@ -92,6 +92,7 @@ returns the hooks. One cache tag: every query provides it, every mutation invali
|
|
|
92
92
|
| `useExpiringCommentsQuery` | `GET /comments/expiring` |
|
|
93
93
|
| `useRequestThumbnailRenderingMutation` | `POST /canvases/{projectKey}/{canvasKey}/thumbnailRenderRequests` |
|
|
94
94
|
| `useSetBoardStatusMutation` | `PATCH /canvases/{projectKey}/{canvasKey}/boards/{boardKey}/status` |
|
|
95
|
+
| `useExportBoardAsSvgMutation` | `POST /canvases/{projectKey}/{canvasKey}/boards/{boardKey}/svgExports` (optional in an `api` an application builds itself; without it the focus view has no "SVG" button) |
|
|
95
96
|
| `useCreateCommentMutation` | `POST /canvases/{projectKey}/{canvasKey}/boards/{boardKey}/comments` |
|
|
96
97
|
| `useReplyToCommentMutation` | `POST /comments/{designStudioCommentId}/replies` |
|
|
97
98
|
| `usePatchCommentMutation` | `PATCH /comments/{designStudioCommentId}` |
|
|
@@ -160,6 +161,15 @@ Inside the package, components read it with `useDesignStudio()` or the narrower
|
|
|
160
161
|
| `boardCodeNotFound(code)` | `No board has the code <code>` |
|
|
161
162
|
| `boardLinkCopied(code)` | `Link to <code> copied` |
|
|
162
163
|
| `copyBoardLink` | `Copy link` |
|
|
164
|
+
| `exportSvg` | `SVG` (focus view button; shown when the renderer is configured) |
|
|
165
|
+
| `exportSvgTitle` | `Export as SVG` |
|
|
166
|
+
| `exportSvgScope(themeLabel, hasRegion)` | `The whole board in <theme>.` / `The marked region in <theme>.` |
|
|
167
|
+
| `exportSvgStart` | `Export` |
|
|
168
|
+
| `exportSvgRunning` | `Exporting…` |
|
|
169
|
+
| `exportSvgSizes(svg, gzip, raster)` | `SVG 153 KB (gzip 49 KB) · raster WebP 30 KB` |
|
|
170
|
+
| `exportSvgDiffering(percent)` | `Differs from the raster picture in 5.3 % of the pixels.` |
|
|
171
|
+
| `exportSvgLostEffects` | `Raster \| SVG \| differing pixels in red. Glass (backdrop-filter), blend modes and some filters are lost in SVG.` |
|
|
172
|
+
| `exportSvgDownload` | `Download SVG` |
|
|
163
173
|
|
|
164
174
|
```ts
|
|
165
175
|
const ENVIRONMENT: DesignStudioEnvironment = {
|