@ggraphic/editor 0.1.0-alpha.4 → 0.1.0-alpha.6

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.
Files changed (131) hide show
  1. package/dist/CanvasEditorProvider.d.ts +6 -1
  2. package/dist/collab/useYjsPageStateSync.d.ts +1 -1
  3. package/dist/collab/useYjsPageStateSync.js +5 -2
  4. package/dist/components/CanvasEditor/CanvasEditorShell.js +139 -36
  5. package/dist/components/CanvasEditor/editorShell.d.ts +6 -0
  6. package/dist/components/CanvasEditor/types.d.ts +28 -0
  7. package/dist/components/GenericCanvas.d.ts +19 -2
  8. package/dist/components/GenericCanvas.js +30 -5
  9. package/dist/components/PagePreview.d.ts +8 -1
  10. package/dist/components/PagePreview.js +4 -1
  11. package/dist/components/TopBar/DownloadSection.d.ts +24 -3
  12. package/dist/components/TopBar/DownloadSection.js +45 -7
  13. package/dist/components/TopBar/ShareDropdown.d.ts +4 -2
  14. package/dist/components/TopBar/ShareDropdown.js +2 -2
  15. package/dist/entries/export.d.ts +14 -1
  16. package/dist/entries/export.js +14 -1
  17. package/dist/entries/services.d.ts +1 -1
  18. package/dist/export/fonts/fontFiles.d.ts +100 -0
  19. package/dist/export/fonts/fontFiles.js +333 -0
  20. package/dist/export/fonts/glyphs.d.ts +113 -0
  21. package/dist/export/fonts/glyphs.js +120 -0
  22. package/dist/export/fonts/variation.d.ts +23 -0
  23. package/dist/export/fonts/variation.js +43 -0
  24. package/dist/export/pdf/pdfContent.d.ts +108 -0
  25. package/dist/export/pdf/pdfContent.js +566 -0
  26. package/dist/export/pdf/pdfFontkit.d.ts +54 -0
  27. package/dist/export/pdf/pdfFontkit.js +159 -0
  28. package/dist/export/pdf/pdfGeometry.d.ts +54 -0
  29. package/dist/export/pdf/pdfGeometry.js +228 -0
  30. package/dist/export/pdf/pdfResources.d.ts +109 -0
  31. package/dist/export/pdf/pdfResources.js +314 -0
  32. package/dist/export/pdf/writePdf.d.ts +34 -0
  33. package/dist/export/pdf/writePdf.js +165 -0
  34. package/dist/export/pptx/exportPptxDeck.d.ts +10 -2
  35. package/dist/export/pptx/exportPptxDeck.js +5 -2
  36. package/dist/export/pptx/svgPicture.d.ts +19 -0
  37. package/dist/export/pptx/svgPicture.js +64 -0
  38. package/dist/export/pptx/vectorizeElement.d.ts +9 -0
  39. package/dist/export/pptx/vectorizeElement.js +118 -0
  40. package/dist/export/pptx/writePptx.d.ts +13 -0
  41. package/dist/export/pptx/writePptx.js +17 -0
  42. package/dist/export/printPdf.d.ts +1 -0
  43. package/dist/export/printPdf.js +1 -1
  44. package/dist/export/scene/browserDeps.d.ts +32 -0
  45. package/dist/export/scene/browserDeps.js +174 -0
  46. package/dist/export/scene/imageBytes.d.ts +79 -0
  47. package/dist/export/scene/imageBytes.js +330 -0
  48. package/dist/export/scene/itemBounds.d.ts +9 -0
  49. package/dist/export/scene/itemBounds.js +40 -0
  50. package/dist/export/scene/matrix.d.ts +13 -0
  51. package/dist/export/scene/matrix.js +32 -0
  52. package/dist/export/scene/rasterLimit.d.ts +13 -0
  53. package/dist/export/scene/rasterLimit.js +24 -0
  54. package/dist/export/scene/rebaseOps.d.ts +8 -0
  55. package/dist/export/scene/rebaseOps.js +51 -0
  56. package/dist/export/scene/recordPageScene.d.ts +28 -0
  57. package/dist/export/scene/recordPageScene.js +224 -0
  58. package/dist/export/scene/recordingCanvas.d.ts +55 -0
  59. package/dist/export/scene/recordingCanvas.js +71 -0
  60. package/dist/export/scene/recordingContext.d.ts +162 -0
  61. package/dist/export/scene/recordingContext.js +1031 -0
  62. package/dist/export/scene/replayScene.d.ts +31 -0
  63. package/dist/export/scene/replayScene.js +213 -0
  64. package/dist/export/scene/resolveScene.d.ts +48 -0
  65. package/dist/export/scene/resolveScene.js +236 -0
  66. package/dist/export/scene/trustedSvgImages.d.ts +3 -0
  67. package/dist/export/scene/trustedSvgImages.js +21 -0
  68. package/dist/export/scene/types.d.ts +241 -0
  69. package/dist/export/scene/types.js +38 -0
  70. package/dist/export/slidesPdf.d.ts +10 -2
  71. package/dist/export/slidesPdf.js +8 -4
  72. package/dist/export/svg/__fixtures__/barChart.svg +1 -0
  73. package/dist/export/svg/__golden__/fixture-editable.svg +87 -0
  74. package/dist/export/svg/__golden__/fixture-outlines.svg +88 -0
  75. package/dist/export/svg/inlineSvg.d.ts +10 -0
  76. package/dist/export/svg/inlineSvg.js +119 -0
  77. package/dist/export/svg/scopeCss.d.ts +45 -0
  78. package/dist/export/svg/scopeCss.js +214 -0
  79. package/dist/export/svg/svgColor.d.ts +8 -0
  80. package/dist/export/svg/svgColor.js +46 -0
  81. package/dist/export/svg/svgImageScene.d.ts +41 -0
  82. package/dist/export/svg/svgImageScene.js +128 -0
  83. package/dist/export/svg/svgPathData.d.ts +31 -0
  84. package/dist/export/svg/svgPathData.js +466 -0
  85. package/dist/export/svg/svgToScene.d.ts +19 -0
  86. package/dist/export/svg/svgToScene.js +1183 -0
  87. package/dist/export/svg/writeSvg.d.ts +33 -0
  88. package/dist/export/svg/writeSvg.js +594 -0
  89. package/dist/export/svg/xml.d.ts +23 -0
  90. package/dist/export/svg/xml.js +49 -0
  91. package/dist/export/vectorDeps.d.ts +27 -0
  92. package/dist/export/vectorDeps.js +37 -0
  93. package/dist/export/vectorExport.d.ts +85 -0
  94. package/dist/export/vectorExport.js +287 -0
  95. package/dist/hostServices.d.ts +15 -0
  96. package/dist/i18n/de.d.ts +26 -9
  97. package/dist/i18n/de.js +26 -10
  98. package/dist/i18n/en.js +24 -0
  99. package/dist/primitives/AssetPrimitive.js +7 -2
  100. package/dist/primitives/CanvasIcons.js +6 -0
  101. package/dist/primitives/CanvasStage.js +2 -2
  102. package/dist/primitives/ChartPrimitive.d.ts +11 -1
  103. package/dist/primitives/ChartPrimitive.js +73 -19
  104. package/dist/primitives/IconPrimitive.js +3 -0
  105. package/dist/primitives/IllustrationPrimitive.js +14 -1
  106. package/dist/primitives/chartFont.d.ts +30 -0
  107. package/dist/primitives/chartFont.js +127 -0
  108. package/dist/sidebar/sections/ImageAdjustSection.js +5 -4
  109. package/dist/sidebar/sections/assets/ElementsPanel.js +4 -2
  110. package/dist/sidebar/sections/assets/assetAudience.d.ts +12 -0
  111. package/dist/sidebar/sections/assets/assetAudience.js +18 -0
  112. package/dist/sidebar/sections/assets/useElementCatalog.js +3 -2
  113. package/dist/stores/createCanvasEditorStore.d.ts +5 -2
  114. package/dist/stores/createCanvasEditorStore.js +9 -5
  115. package/dist/styles/compiled.css +1 -1
  116. package/dist/utils/canvasAssets.d.ts +11 -1
  117. package/dist/utils/canvasAssets.js +8 -0
  118. package/dist/utils/canvasIcons.js +5 -3
  119. package/dist/utils/captureStage.d.ts +19 -0
  120. package/dist/utils/captureStage.js +14 -1
  121. package/dist/utils/externalIcons.d.ts +7 -0
  122. package/dist/utils/externalIcons.js +70 -3
  123. package/dist/utils/illustrations/svgCache.js +6 -1
  124. package/dist/utils/imageFilters.d.ts +13 -0
  125. package/dist/utils/imageFilters.js +11 -0
  126. package/dist/utils/rebaseHistoryState.d.ts +9 -0
  127. package/dist/utils/rebaseHistoryState.js +26 -0
  128. package/dist/utils/zipPageImages.d.ts +8 -0
  129. package/dist/utils/zipPageImages.js +16 -4
  130. package/package.json +6 -2
  131. package/skills/ggraphic-embed/SKILL.md +33 -1
@@ -0,0 +1,241 @@
1
+ /**
2
+ * The scene IR of the vector export. A recorded page is a list of items (one per canvas
3
+ * element), each a flat list of ops. Every op carries its own absolute matrix, global alpha,
4
+ * clip stack and shadow, so a writer can emit it without keeping any canvas state.
5
+ *
6
+ * Coordinates: an op's `commands`, `xs`, `y`, gradient points and destination rect are in the
7
+ * user space of its `matrix`. `matrix` maps that space to page px. Stroke width, dash and
8
+ * pattern matrices are in the same user space.
9
+ */
10
+ /** Canvas matrix `[a, b, c, d, e, f]`: x' = a·x + c·y + e, y' = b·x + d·y + f. */
11
+ export type Matrix = readonly [a: number, b: number, c: number, d: number, e: number, f: number];
12
+ export type PathCommand = {
13
+ op: 'M' | 'L';
14
+ x: number;
15
+ y: number;
16
+ } | {
17
+ op: 'C';
18
+ x1: number;
19
+ y1: number;
20
+ x2: number;
21
+ y2: number;
22
+ x: number;
23
+ y: number;
24
+ } | {
25
+ op: 'Q';
26
+ x1: number;
27
+ y1: number;
28
+ x: number;
29
+ y: number;
30
+ } | {
31
+ op: 'Z';
32
+ };
33
+ /** `hex` is `#rrggbb`, lower case; `alpha` is 0..1. */
34
+ export interface ColorStop {
35
+ offset: number;
36
+ hex: string;
37
+ alpha: number;
38
+ }
39
+ export type Paint = {
40
+ type: 'solid';
41
+ hex: string;
42
+ alpha: number;
43
+ } | {
44
+ type: 'linear';
45
+ x0: number;
46
+ y0: number;
47
+ x1: number;
48
+ y1: number;
49
+ stops: ColorStop[];
50
+ } | {
51
+ type: 'radial';
52
+ x0: number;
53
+ y0: number;
54
+ r0: number;
55
+ x1: number;
56
+ y1: number;
57
+ r1: number;
58
+ stops: ColorStop[];
59
+ } | {
60
+ type: 'pattern';
61
+ image: SceneImageRef;
62
+ repeat: 'repeat';
63
+ matrix: Matrix;
64
+ };
65
+ export interface StrokeStyle {
66
+ width: number;
67
+ cap: CanvasLineCap;
68
+ join: CanvasLineJoin;
69
+ miterLimit: number;
70
+ dash: number[];
71
+ dashOffset: number;
72
+ }
73
+ /**
74
+ * Canvas semantics: `blur` and the offsets are in device px, the CTM does not apply to them.
75
+ * `blur` is the canvas `shadowBlur` (a Gaussian with sigma = blur / 2).
76
+ */
77
+ export interface Shadow {
78
+ hex: string;
79
+ alpha: number;
80
+ blur: number;
81
+ offsetX: number;
82
+ offsetY: number;
83
+ }
84
+ export interface ClipPath {
85
+ matrix: Matrix;
86
+ /** In the user space of `matrix`. Empty means "clip everything": the op it clips draws nothing. */
87
+ commands: PathCommand[];
88
+ rule: CanvasFillRule;
89
+ }
90
+ export interface FontSpec {
91
+ /** The first family of the CSS list, unquoted. */
92
+ family: string;
93
+ /**
94
+ * The families after the first, in order, unquoted; absent when the list had only one. What a
95
+ * viewer draws when `family` is not installed.
96
+ */
97
+ fallback?: string[];
98
+ weight: number;
99
+ style: 'normal' | 'italic';
100
+ size: number;
101
+ }
102
+ interface OpBase {
103
+ matrix: Matrix;
104
+ alpha: number;
105
+ clips: readonly ClipPath[];
106
+ shadow: Shadow | null;
107
+ }
108
+ export type SceneImageRef = {
109
+ kind: 'element';
110
+ element: CanvasImageSource;
111
+ width: number;
112
+ height: number;
113
+ } | SceneImageSource;
114
+ export type SceneImageSource = {
115
+ kind: 'svg';
116
+ markup: string;
117
+ width: number;
118
+ height: number;
119
+ } | {
120
+ kind: 'bitmap';
121
+ mime: 'image/png' | 'image/jpeg';
122
+ bytes: Uint8Array;
123
+ width: number;
124
+ height: number;
125
+ };
126
+ export type SceneOp = (OpBase & {
127
+ kind: 'path';
128
+ mode: 'fill' | 'stroke';
129
+ commands: PathCommand[];
130
+ rule: CanvasFillRule;
131
+ paint: Paint;
132
+ stroke: StrokeStyle | null;
133
+ }) | (OpBase & {
134
+ kind: 'text';
135
+ mode: 'fill' | 'stroke';
136
+ text: string;
137
+ /** One x per code point of `text` (`Array.from(text)`), in the user space of `matrix`. */
138
+ xs: number[];
139
+ /** The alphabetic baseline. */
140
+ y: number;
141
+ font: FontSpec;
142
+ paint: Paint;
143
+ stroke: StrokeStyle | null;
144
+ }) | (OpBase & {
145
+ kind: 'image';
146
+ image: SceneImageRef;
147
+ sx: number;
148
+ sy: number;
149
+ sw: number;
150
+ sh: number;
151
+ dx: number;
152
+ dy: number;
153
+ dw: number;
154
+ dh: number;
155
+ }) | (OpBase & {
156
+ kind: 'group';
157
+ ops: SceneOp[];
158
+ }) | (OpBase & {
159
+ kind: 'raster';
160
+ png: Uint8Array | null;
161
+ x: number;
162
+ y: number;
163
+ width: number;
164
+ height: number;
165
+ reason: RasterReason;
166
+ source: SceneOp[] | null;
167
+ /**
168
+ * Recorded form only: an opaque handle to what drew the island (the Konva node), for the
169
+ * rasteriser of an island whose item has no `elementId` to look the node up by. Never
170
+ * inspected here; `resolveScene` strips it, so no writer sees it.
171
+ */
172
+ nodeRef?: unknown;
173
+ });
174
+ export type RasterReason = 'filter' | 'composite' | 'unsupported-call' | 'unsupported-pattern' | 'missing-glyph' | 'font-unavailable' | 'bitmap-only-font' | 'shadow' | 'svg-unsupported' | 'image-unreadable';
175
+ export interface SceneItem {
176
+ elementId: string | null;
177
+ label: string | null;
178
+ ops: SceneOp[];
179
+ }
180
+ export interface RecordedScene {
181
+ width: number;
182
+ height: number;
183
+ items: SceneItem[];
184
+ report: ExportReport;
185
+ }
186
+ /**
187
+ * After `resolveScene`: no `element` image refs, every raster has a `png`. The writers (`writeSvg`,
188
+ * `writePdf`) take this form: they cannot draw an `element` ref (a recorded `CanvasImageSource`,
189
+ * which only exists next to the stage it was read from), and a raster op without pixels is
190
+ * written from its `source` ops at best. A scene straight from `recordPageScene` has to go
191
+ * through `resolveScene` first. `nodeRef` of a raster op is also recorded-only: `resolveScene`
192
+ * uses it to draw the island and strips it, so no writer sees one.
193
+ */
194
+ export type ExportScene = RecordedScene;
195
+ export interface ExportReport {
196
+ rasterIslands: {
197
+ page: number;
198
+ elementId: string | null;
199
+ reason: RasterReason;
200
+ }[];
201
+ /** Islands drawn at a lower resolution than asked for, because the bitmap would be too large. */
202
+ reducedRasters: {
203
+ page: number;
204
+ elementId: string | null;
205
+ }[];
206
+ unknownCalls: {
207
+ page: number;
208
+ elementId: string | null;
209
+ call: string;
210
+ }[];
211
+ missingElements: {
212
+ page: number;
213
+ elementId: string | null;
214
+ reason: 'image-unreadable';
215
+ }[];
216
+ missingGlyphs: {
217
+ page: number;
218
+ elementId: string | null;
219
+ text: string;
220
+ }[];
221
+ outlinedForLicence: string[];
222
+ /**
223
+ * Families of variable fonts drawn in the default instance of the file, though the text asks
224
+ * for another weight: fontkit cannot instance them (a WOFF2), so the weight may be off.
225
+ */
226
+ defaultInstanceFonts: string[];
227
+ rgbBrandColors: string[];
228
+ /**
229
+ * Why the vector PDF was not made: `fonts` (fonts could not be used for several elements),
230
+ * `timeout` (the writer did not finish) or `error` (the writer or a page recording failed).
231
+ * `reason` is the detail for the console.
232
+ */
233
+ fallback: {
234
+ kind: 'fonts' | 'timeout' | 'error';
235
+ reason: string;
236
+ } | null;
237
+ }
238
+ export declare function emptyReport(): ExportReport;
239
+ /** Entries are concatenated in order; the name lists are de-duplicated; the first fallback wins. */
240
+ export declare function mergeReports(a: ExportReport, b: ExportReport): ExportReport;
241
+ export {};
@@ -0,0 +1,38 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ /**
3
+ * The scene IR of the vector export. A recorded page is a list of items (one per canvas
4
+ * element), each a flat list of ops. Every op carries its own absolute matrix, global alpha,
5
+ * clip stack and shadow, so a writer can emit it without keeping any canvas state.
6
+ *
7
+ * Coordinates: an op's `commands`, `xs`, `y`, gradient points and destination rect are in the
8
+ * user space of its `matrix`. `matrix` maps that space to page px. Stroke width, dash and
9
+ * pattern matrices are in the same user space.
10
+ */
11
+ export function emptyReport() {
12
+ return {
13
+ rasterIslands: [],
14
+ reducedRasters: [],
15
+ unknownCalls: [],
16
+ missingElements: [],
17
+ missingGlyphs: [],
18
+ outlinedForLicence: [],
19
+ defaultInstanceFonts: [],
20
+ rgbBrandColors: [],
21
+ fallback: null,
22
+ };
23
+ }
24
+ const unique = (a, b) => [...new Set([...a, ...b])];
25
+ /** Entries are concatenated in order; the name lists are de-duplicated; the first fallback wins. */
26
+ export function mergeReports(a, b) {
27
+ return {
28
+ rasterIslands: [...a.rasterIslands, ...b.rasterIslands],
29
+ reducedRasters: [...a.reducedRasters, ...b.reducedRasters],
30
+ unknownCalls: [...a.unknownCalls, ...b.unknownCalls],
31
+ missingElements: [...a.missingElements, ...b.missingElements],
32
+ missingGlyphs: [...a.missingGlyphs, ...b.missingGlyphs],
33
+ outlinedForLicence: unique(a.outlinedForLicence, b.outlinedForLicence),
34
+ defaultInstanceFonts: unique(a.defaultInstanceFonts, b.defaultInstanceFonts),
35
+ rgbBrandColors: unique(a.rgbBrandColors, b.rgbBrandColors),
36
+ fallback: a.fallback ?? b.fallback,
37
+ };
38
+ }
@@ -3,7 +3,15 @@ export declare const SLIDE_PDF_PAGE_PT: {
3
3
  readonly width: 1920;
4
4
  readonly height: 1080;
5
5
  };
6
- export declare function buildSlidesPdf({ pngs, }: {
6
+ /** `size` is the page in pt: a slide by default; a digital page picks its own. */
7
+ export declare function buildSlidesPdf({ pngs, size, }: {
7
8
  pngs: (Uint8Array | (() => Uint8Array))[];
9
+ size?: {
10
+ width: number;
11
+ height: number;
12
+ };
13
+ }): Promise<Uint8Array>;
14
+ export declare function exportSlidesPdf(pageDataUrls: string[], size?: {
15
+ width: number;
16
+ height: number;
8
17
  }): Promise<Uint8Array>;
9
- export declare function exportSlidesPdf(pageDataUrls: string[]): Promise<Uint8Array>;
@@ -15,10 +15,11 @@ function dataUrlToBytes(dataUrl, index) {
15
15
  }
16
16
  /** 1920 × 1080 px bei 72 dpi: eine Folie ist so viele Punkte groß wie Pixel breit. */
17
17
  export const SLIDE_PDF_PAGE_PT = { width: 1920, height: 1080 };
18
- export async function buildSlidesPdf({ pngs, }) {
18
+ /** `size` is the page in pt: a slide by default; a digital page picks its own. */
19
+ export async function buildSlidesPdf({ pngs, size = SLIDE_PDF_PAGE_PT, }) {
19
20
  const { PDFDocument } = await import('pdf-lib');
20
21
  const doc = await PDFDocument.create();
21
- const { width, height } = SLIDE_PDF_PAGE_PT;
22
+ const { width, height } = size;
22
23
  for (const png of pngs) {
23
24
  const image = await doc.embedPng(typeof png === 'function' ? png() : png);
24
25
  const page = doc.addPage([width, height]);
@@ -26,6 +27,9 @@ export async function buildSlidesPdf({ pngs, }) {
26
27
  }
27
28
  return doc.save();
28
29
  }
29
- export async function exportSlidesPdf(pageDataUrls) {
30
- return buildSlidesPdf({ pngs: pageDataUrls.map((url, i) => () => dataUrlToBytes(url, i)) });
30
+ export async function exportSlidesPdf(pageDataUrls, size) {
31
+ return buildSlidesPdf({
32
+ pngs: pageDataUrls.map((url, i) => () => dataUrlToBytes(url, i)),
33
+ ...(size ? { size } : {}),
34
+ });
31
35
  }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" role="application" tabindex="0" class="recharts-surface" width="480" height="320" style="width: 100%; height: 100%; display: block;" viewBox="0 0 480 320" font-family="&quot;Chart Brand Sans&quot;, sans-serif"><style>@font-face{font-family:"Chart Brand Sans";font-weight:400;font-style:normal;src:url(data:font/woff2;base64,d09GMgABAAAAAA==) format("woff2")}</style><title/><desc/><g tabindex="-1" class="recharts-zIndex-layer_-100"><g class="recharts-cartesian-grid"><g class="recharts-cartesian-grid-horizontal"><line stroke-dasharray="3 3" stroke="#e0e0df" x="40" y="16" width="420" height="266" x1="40" y1="282" x2="460" y2="282" fill="none"/><line stroke-dasharray="3 3" stroke="#e0e0df" x="40" y="16" width="420" height="266" x1="40" y1="215.5" x2="460" y2="215.5" fill="none"/><line stroke-dasharray="3 3" stroke="#e0e0df" x="40" y="16" width="420" height="266" x1="40" y1="149" x2="460" y2="149" fill="none"/><line stroke-dasharray="3 3" stroke="#e0e0df" x="40" y="16" width="420" height="266" x1="40" y1="82.5" x2="460" y2="82.5" fill="none"/><line stroke-dasharray="3 3" stroke="#e0e0df" x="40" y="16" width="420" height="266" x1="40" y1="16" x2="460" y2="16" fill="none"/></g></g></g><g tabindex="-1" class="recharts-zIndex-layer_-50"/><defs><clipPath id="recharts1-clip"><rect x="40" y="16" height="266" width="420"/></clipPath></defs><g tabindex="-1" class="recharts-zIndex-layer_100"/><g tabindex="-1" class="recharts-zIndex-layer_200"/><g tabindex="-1" class="recharts-zIndex-layer_300"><g class="recharts-layer recharts-bar" id="recharts-bar-_r_0_"><g class="recharts-layer recharts-bar-rectangles"><g class="recharts-layer"><g class="recharts-layer recharts-bar-rectangle"><g class="recharts-layer recharts-inactive-bar"><path name="A" x="50.5" y="149" width="84" height="133" fill="#1D3557" class="recharts-rectangle" d="M50.5,153A 4,4,0,0,1,54.5,149L 130.5,149A 4,4,0,0,1,&#xA; 134.5,153L 134.5,282L 50.5,282Z"/></g></g><g class="recharts-layer recharts-bar-rectangle"><g class="recharts-layer recharts-inactive-bar"><path name="B" x="155.5" y="65.875" width="84" height="216.125" fill="#457B9D" class="recharts-rectangle" d="M155.5,69.875A 4,4,0,0,1,159.5,65.875L 235.5,65.875A 4,4,0,0,1,&#xA; 239.5,69.875L 239.5,282L 155.5,282Z"/></g></g><g class="recharts-layer recharts-bar-rectangle"><g class="recharts-layer recharts-inactive-bar"><path name="C" x="260.5" y="182.25" width="84" height="99.75" fill="#D62839" class="recharts-rectangle" d="M260.5,186.25A 4,4,0,0,1,264.5,182.25L 340.5,182.25A 4,4,0,0,1,&#xA; 344.5,186.25L 344.5,282L 260.5,282Z"/></g></g><g class="recharts-layer recharts-bar-rectangle"><g class="recharts-layer recharts-inactive-bar"><path name="D" x="365.5" y="16" width="84" height="266" fill="#B5470F" class="recharts-rectangle" d="M365.5,20A 4,4,0,0,1,369.5,16L 445.5,16A 4,4,0,0,1,&#xA; 449.5,20L 449.5,282L 365.5,282Z"/></g></g></g></g></g></g><g tabindex="-1" class="recharts-zIndex-layer_400"/><g tabindex="-1" class="recharts-zIndex-layer_500"><g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis"><line angle="0" height="30" orientation="bottom" x="40" y="282" width="420" class="recharts-cartesian-axis-line" stroke="#c8c8c7" fill="none" x1="40" y1="282" x2="460" y2="282"/><g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks"><g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines"><g class="recharts-layer recharts-cartesian-axis-tick"/><g class="recharts-layer recharts-cartesian-axis-tick"/><g class="recharts-layer recharts-cartesian-axis-tick"/><g class="recharts-layer recharts-cartesian-axis-tick"/></g></g></g><g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis"><line width="40" angle="0" orientation="left" x="0" y="16" height="266" class="recharts-cartesian-axis-line" stroke="#c8c8c7" fill="none" x1="40" y1="16" x2="40" y2="282"/><g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks"><g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines"><g class="recharts-layer recharts-cartesian-axis-tick"/><g class="recharts-layer recharts-cartesian-axis-tick"/><g class="recharts-layer recharts-cartesian-axis-tick"/><g class="recharts-layer recharts-cartesian-axis-tick"/><g class="recharts-layer recharts-cartesian-axis-tick"/></g></g></g></g><g tabindex="-1" class="recharts-zIndex-layer_600"/><g tabindex="-1" class="recharts-zIndex-layer_1000"/><g tabindex="-1" class="recharts-zIndex-layer_1100"/><g tabindex="-1" class="recharts-zIndex-layer_1200"/><g tabindex="-1" class="recharts-zIndex-layer_2000"><g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels"><g class="recharts-layer recharts-cartesian-axis-tick-label"><text height="30" orientation="bottom" width="420" stroke="none" font-size="13" x="92.5" y="290" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#40403f"><tspan x="92.5" dy="0.71em">A</tspan></text></g><g class="recharts-layer recharts-cartesian-axis-tick-label"><text height="30" orientation="bottom" width="420" stroke="none" font-size="13" x="197.5" y="290" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#40403f"><tspan x="197.5" dy="0.71em">B</tspan></text></g><g class="recharts-layer recharts-cartesian-axis-tick-label"><text height="30" orientation="bottom" width="420" stroke="none" font-size="13" x="302.5" y="290" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#40403f"><tspan x="302.5" dy="0.71em">C</tspan></text></g><g class="recharts-layer recharts-cartesian-axis-tick-label"><text height="30" orientation="bottom" width="420" stroke="none" font-size="13" x="407.5" y="290" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#40403f"><tspan x="407.5" dy="0.71em">D</tspan></text></g></g><g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels"><g class="recharts-layer recharts-cartesian-axis-tick-label"><text width="40" orientation="left" height="266" stroke="none" font-size="13" x="32" y="282" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#40403f"><tspan x="32" dy="0.355em">0</tspan></text></g><g class="recharts-layer recharts-cartesian-axis-tick-label"><text width="40" orientation="left" height="266" stroke="none" font-size="13" x="32" y="215.5" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#40403f"><tspan x="32" dy="0.355em">20</tspan></text></g><g class="recharts-layer recharts-cartesian-axis-tick-label"><text width="40" orientation="left" height="266" stroke="none" font-size="13" x="32" y="149" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#40403f"><tspan x="32" dy="0.355em">40</tspan></text></g><g class="recharts-layer recharts-cartesian-axis-tick-label"><text width="40" orientation="left" height="266" stroke="none" font-size="13" x="32" y="82.5" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#40403f"><tspan x="32" dy="0.355em">60</tspan></text></g><g class="recharts-layer recharts-cartesian-axis-tick-label"><text width="40" orientation="left" height="266" stroke="none" font-size="13" x="32" y="16" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#40403f"><tspan x="32" dy="0.355em">80</tspan></text></g></g></g></svg>
@@ -0,0 +1,87 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 300" width="400" height="300">
2
+ <defs>
3
+ <linearGradient id="grad-0" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="100" y2="60">
4
+ <stop offset="0" stop-color="#00a050"/>
5
+ <stop offset="1" stop-color="#005030" stop-opacity="0.5"/>
6
+ </linearGradient>
7
+ <radialGradient id="grad-1" gradientUnits="userSpaceOnUse" cx="50" cy="30" r="60" fx="50" fy="30">
8
+ <stop offset="0" stop-color="#00a050"/>
9
+ <stop offset="1" stop-color="#005030" stop-opacity="0.5"/>
10
+ </radialGradient>
11
+ <pattern id="pattern-0" patternUnits="userSpaceOnUse" width="16" height="16">
12
+ <image width="16" height="16" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoBAgM="/>
13
+ </pattern>
14
+ <clipPath id="clip-0">
15
+ <path d="M20 20L380 20L380 280L20 280Z"/>
16
+ </clipPath>
17
+ <clipPath id="clip-1">
18
+ <path d="M0 0L100 0L100 100L0 100Z" transform="translate(40,10)" clip-rule="evenodd"/>
19
+ </clipPath>
20
+ <filter id="shadow-0" filterUnits="userSpaceOnUse" x="-21" y="-21" width="442" height="342" color-interpolation-filters="sRGB">
21
+ <feGaussianBlur in="SourceAlpha" stdDeviation="5" result="blur"/>
22
+ <feOffset in="blur" dx="3" dy="5" result="offset"/>
23
+ <feFlood flood-color="#000000" flood-opacity="0.4" result="flood"/>
24
+ <feComposite in="flood" in2="offset" operator="in" result="shadow"/>
25
+ <feMerge>
26
+ <feMergeNode in="shadow"/>
27
+ <feMergeNode in="SourceGraphic"/>
28
+ </feMerge>
29
+ </filter>
30
+ <clipPath id="clip-2">
31
+ <rect x="0" y="0" width="80" height="80"/>
32
+ </clipPath>
33
+ <filter id="shadow-1" filterUnits="userSpaceOnUse" x="-8" y="-8" width="416" height="316" color-interpolation-filters="sRGB">
34
+ <feGaussianBlur in="SourceAlpha" stdDeviation="2" result="blur"/>
35
+ <feOffset in="blur" dx="0" dy="2" result="offset"/>
36
+ <feFlood flood-color="#202020" flood-opacity="1" result="flood"/>
37
+ <feComposite in="flood" in2="offset" operator="in" result="shadow"/>
38
+ <feMerge>
39
+ <feMergeNode in="shadow"/>
40
+ <feMergeNode in="SourceGraphic"/>
41
+ </feMerge>
42
+ </filter>
43
+ </defs>
44
+ <g id="el-page">
45
+ <path d="M0 0L400 0L400 300L0 300Z" fill="#f4f1e8"/>
46
+ </g>
47
+ <g id="el-rect-1" data-element-id="rect-1">
48
+ <title>Kachel &lt;1&gt; &amp; &quot;Rand&quot;</title>
49
+ <path d="M10 0L90 0C95.5 0 100 4.5 100 10L100 50Q100 60 90 60L10 60Z" fill="url(#grad-0)" fill-rule="evenodd" transform="translate(30,40)" opacity="0.8"/>
50
+ <path d="M0 0L80 0L80 40L0 40Z" fill="none" stroke="#cc3300" stroke-opacity="0.5" stroke-width="3" stroke-linecap="round" stroke-linejoin="bevel" stroke-dasharray="6 4" stroke-dashoffset="2" transform="matrix(0.978156,0.207873,-0.207873,0.978156,150,40)" opacity="0.5"/>
51
+ <path d="M10 0L90 0C95.5 0 100 4.5 100 10L100 50Q100 60 90 60L10 60Z" fill="url(#grad-1)" transform="matrix(-1,0,0,1,380,100)"/>
52
+ <path d="M0 0L60 0L60 60L0 60Z" fill="url(#pattern-0)" transform="translate(20,200)"/>
53
+ <g clip-path="url(#clip-0)">
54
+ <path d="M30 30L80 30L80 80L30 80Z" fill="#0088ff"/>
55
+ <path d="M60 60L110 60L110 110L60 110Z" fill="#ff8800"/>
56
+ <g clip-path="url(#clip-1)">
57
+ <path d="M90 90L140 90L140 140L90 140Z" fill="#8800ff"/>
58
+ </g>
59
+ </g>
60
+ </g>
61
+ <g id="el-headline" data-element-id="headline">
62
+ <title>Überschrift</title>
63
+ <g filter="url(#shadow-0)">
64
+ <text x="20 42 64 86 108 130 152" y="100" font-family="Instrument Sans, Helvetica Neue, sans-serif" font-size="40" font-weight="400" font-style="normal" xml:space="preserve" fill="#112233">Hallo →</text>
65
+ </g>
66
+ <text x="20 42" y="160" font-family="Instrument Sans, Helvetica Neue, sans-serif" font-size="40" font-weight="400" font-style="normal" xml:space="preserve" fill="none" stroke="#112233" stroke-width="1.5" stroke-linejoin="round">Hi</text>
67
+ </g>
68
+ <g id="el-icon" data-element-id="icon">
69
+ <title>Icon</title>
70
+ <svg x="10" y="20" width="48" height="48" viewBox="0 0 24 24" preserveAspectRatio="none" id="i0-root" fill="none"><defs><linearGradient id="i0-a"><stop offset="0" stop-color="#ff0000"/><stop offset="1" stop-color="#0000ff"/></linearGradient><clipPath id="i0-c"><rect width="24" height="24"/></clipPath></defs><rect class="i0-x i0-y" width="24" height="24" fill="url(#i0-a)" clip-path="url(#i0-c)"/><use xlink:href="#i0-a"/><use href="#i0-c"/><style>#i0-root #i0-a { opacity: 1 } #i0-root .i0-x { fill: #c; stroke: url(#i0-a) }</style></svg>
71
+ <svg x="80" y="20" width="48" height="48" viewBox="0 0 24 24" preserveAspectRatio="none" id="i1-root" fill="none"><defs><linearGradient id="i1-a"><stop offset="0" stop-color="#ff0000"/><stop offset="1" stop-color="#0000ff"/></linearGradient><clipPath id="i1-c"><rect width="24" height="24"/></clipPath></defs><rect class="i1-x i1-y" width="24" height="24" fill="url(#i1-a)" clip-path="url(#i1-c)"/><use xlink:href="#i1-a"/><use href="#i1-c"/><style>#i1-root #i1-a { opacity: 1 } #i1-root .i1-x { fill: #c; stroke: url(#i1-a) }</style></svg>
72
+ </g>
73
+ <g id="el-photo" data-element-id="photo">
74
+ <title>Foto</title>
75
+ <image x="-40" y="-40" width="160" height="160" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoBAgM=" clip-path="url(#clip-2)" transform="translate(200,20)"/>
76
+ <image x="300" y="20" width="50" height="50" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoBAgM="/>
77
+ </g>
78
+ <g id="el-buffer" data-element-id="buffer">
79
+ <title>Puffer</title>
80
+ <g opacity="0.5">
81
+ <path d="M250 150L330 150L330 230L250 230Z" fill="#aa0000"/>
82
+ <g filter="url(#shadow-1)">
83
+ <path d="M290 170L370 170L370 250L290 250Z" fill="#0000aa" fill-opacity="0.7"/>
84
+ </g>
85
+ </g>
86
+ </g>
87
+ </svg>
@@ -0,0 +1,88 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 300" width="400" height="300">
2
+ <defs>
3
+ <linearGradient id="grad-0" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="100" y2="60">
4
+ <stop offset="0" stop-color="#00a050"/>
5
+ <stop offset="1" stop-color="#005030" stop-opacity="0.5"/>
6
+ </linearGradient>
7
+ <radialGradient id="grad-1" gradientUnits="userSpaceOnUse" cx="50" cy="30" r="60" fx="50" fy="30">
8
+ <stop offset="0" stop-color="#00a050"/>
9
+ <stop offset="1" stop-color="#005030" stop-opacity="0.5"/>
10
+ </radialGradient>
11
+ <pattern id="pattern-0" patternUnits="userSpaceOnUse" width="16" height="16">
12
+ <image width="16" height="16" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoBAgM="/>
13
+ </pattern>
14
+ <clipPath id="clip-0">
15
+ <path d="M20 20L380 20L380 280L20 280Z"/>
16
+ </clipPath>
17
+ <clipPath id="clip-1">
18
+ <path d="M0 0L100 0L100 100L0 100Z" transform="translate(40,10)" clip-rule="evenodd"/>
19
+ </clipPath>
20
+ <filter id="shadow-0" filterUnits="userSpaceOnUse" x="-21" y="-21" width="442" height="342" color-interpolation-filters="sRGB">
21
+ <feGaussianBlur in="SourceAlpha" stdDeviation="5" result="blur"/>
22
+ <feOffset in="blur" dx="3" dy="5" result="offset"/>
23
+ <feFlood flood-color="#000000" flood-opacity="0.4" result="flood"/>
24
+ <feComposite in="flood" in2="offset" operator="in" result="shadow"/>
25
+ <feMerge>
26
+ <feMergeNode in="shadow"/>
27
+ <feMergeNode in="SourceGraphic"/>
28
+ </feMerge>
29
+ </filter>
30
+ <clipPath id="clip-2">
31
+ <rect x="0" y="0" width="80" height="80"/>
32
+ </clipPath>
33
+ <filter id="shadow-1" filterUnits="userSpaceOnUse" x="-8" y="-8" width="416" height="316" color-interpolation-filters="sRGB">
34
+ <feGaussianBlur in="SourceAlpha" stdDeviation="2" result="blur"/>
35
+ <feOffset in="blur" dx="0" dy="2" result="offset"/>
36
+ <feFlood flood-color="#202020" flood-opacity="1" result="flood"/>
37
+ <feComposite in="flood" in2="offset" operator="in" result="shadow"/>
38
+ <feMerge>
39
+ <feMergeNode in="shadow"/>
40
+ <feMergeNode in="SourceGraphic"/>
41
+ </feMerge>
42
+ </filter>
43
+ </defs>
44
+ <g id="el-page">
45
+ <path d="M0 0L400 0L400 300L0 300Z" fill="#f4f1e8"/>
46
+ </g>
47
+ <g id="el-rect-1" data-element-id="rect-1">
48
+ <title>Kachel &lt;1&gt; &amp; &quot;Rand&quot;</title>
49
+ <path d="M10 0L90 0C95.5 0 100 4.5 100 10L100 50Q100 60 90 60L10 60Z" fill="url(#grad-0)" fill-rule="evenodd" transform="translate(30,40)" opacity="0.8"/>
50
+ <path d="M0 0L80 0L80 40L0 40Z" fill="none" stroke="#cc3300" stroke-opacity="0.5" stroke-width="3" stroke-linecap="round" stroke-linejoin="bevel" stroke-dasharray="6 4" stroke-dashoffset="2" transform="matrix(0.978156,0.207873,-0.207873,0.978156,150,40)" opacity="0.5"/>
51
+ <path d="M10 0L90 0C95.5 0 100 4.5 100 10L100 50Q100 60 90 60L10 60Z" fill="url(#grad-1)" transform="matrix(-1,0,0,1,380,100)"/>
52
+ <path d="M0 0L60 0L60 60L0 60Z" fill="url(#pattern-0)" transform="translate(20,200)"/>
53
+ <g clip-path="url(#clip-0)">
54
+ <path d="M30 30L80 30L80 80L30 80Z" fill="#0088ff"/>
55
+ <path d="M60 60L110 60L110 110L60 110Z" fill="#ff8800"/>
56
+ <g clip-path="url(#clip-1)">
57
+ <path d="M90 90L140 90L140 140L90 140Z" fill="#8800ff"/>
58
+ </g>
59
+ </g>
60
+ </g>
61
+ <g id="el-headline" data-element-id="headline">
62
+ <title>Überschrift</title>
63
+ <g filter="url(#shadow-0)">
64
+ <path d="M23.44 100L23.44 71.2L26.72 71.2L26.72 100ZM42.72 100L42.72 71.2L46 71.2L46 100ZM25.12 83.56L44.16 83.56L44.16 86.44L25.12 86.44ZM57.72 100Q57.56 99.32 57.5 98.44Q57.44 97.56 57.44 96.2L57.24 96.2L57.24 86.44Q57.24 84.12 56.18 83.02Q55.12 81.92 52.76 81.92Q50.44 81.92 49.06 82.86Q47.68 83.8 47.52 85.52L44.44 85.52Q44.64 82.56 46.92 80.88Q49.2 79.2 52.88 79.2Q56.68 79.2 58.52 81Q60.36 82.8 60.36 86.4L60.36 96.2Q60.36 97.08 60.48 98.02Q60.6 98.96 60.8 100ZM50.72 100.4Q47.56 100.4 45.7 98.86Q43.84 97.32 43.84 94.64Q43.84 91.96 45.68 90.48Q47.52 89 51.04 88.4L58.16 87.2L58.16 89.84L51.52 90.88Q49.28 91.24 48.12 92.08Q46.96 92.92 46.96 94.52Q46.96 96.08 48.02 96.88Q49.08 97.68 51.16 97.68Q53.84 97.68 55.54 96.46Q57.24 95.24 57.24 93.28L57.76 96.12Q57.12 98.16 55.26 99.28Q53.4 100.4 50.72 100.4ZM67.2 100L67.2 71.2L70.4 71.2L70.4 100ZM89.2 100L89.2 71.2L92.4 71.2L92.4 100ZM119.68 100.4Q116.68 100.4 114.4 99Q112.12 97.6 110.86 95.18Q109.6 92.76 109.6 89.72Q109.6 86.64 110.88 84.28Q112.16 81.92 114.42 80.56Q116.68 79.2 119.68 79.2Q122.72 79.2 124.98 80.56Q127.24 81.92 128.5 84.28Q129.76 86.64 129.76 89.72Q129.76 92.76 128.5 95.18Q127.24 97.6 124.98 99Q122.72 100.4 119.68 100.4ZM119.68 97.68Q121.76 97.68 123.28 96.66Q124.8 95.64 125.64 93.84Q126.48 92.04 126.48 89.68Q126.48 86.16 124.62 84.04Q122.76 81.92 119.68 81.92Q116.64 81.92 114.76 84.04Q112.88 86.16 112.88 89.68Q112.88 92.04 113.72 93.84Q114.56 95.64 116.1 96.66Q117.64 97.68 119.68 97.68Z" fill="#112233"/>
65
+ <text x="152" y="100" font-family="Instrument Sans, Helvetica Neue, sans-serif" font-size="40" font-weight="400" font-style="normal" xml:space="preserve" fill="#112233">→</text>
66
+ </g>
67
+ <path d="M23.44 160L23.44 131.2L26.72 131.2L26.72 160ZM42.72 160L42.72 131.2L46 131.2L46 160ZM25.12 143.56L44.16 143.56L44.16 146.44L25.12 146.44ZM45.2 160L45.2 139.6L48.4 139.6L48.4 160ZM44.96 134.96L44.96 131.2L48.64 131.2L48.64 134.96Z" fill="none" stroke="#112233" stroke-width="1.5" stroke-linejoin="round"/>
68
+ </g>
69
+ <g id="el-icon" data-element-id="icon">
70
+ <title>Icon</title>
71
+ <svg x="10" y="20" width="48" height="48" viewBox="0 0 24 24" preserveAspectRatio="none" id="i0-root" fill="none"><defs><linearGradient id="i0-a"><stop offset="0" stop-color="#ff0000"/><stop offset="1" stop-color="#0000ff"/></linearGradient><clipPath id="i0-c"><rect width="24" height="24"/></clipPath></defs><rect class="i0-x i0-y" width="24" height="24" fill="url(#i0-a)" clip-path="url(#i0-c)"/><use xlink:href="#i0-a"/><use href="#i0-c"/><style>#i0-root #i0-a { opacity: 1 } #i0-root .i0-x { fill: #c; stroke: url(#i0-a) }</style></svg>
72
+ <svg x="80" y="20" width="48" height="48" viewBox="0 0 24 24" preserveAspectRatio="none" id="i1-root" fill="none"><defs><linearGradient id="i1-a"><stop offset="0" stop-color="#ff0000"/><stop offset="1" stop-color="#0000ff"/></linearGradient><clipPath id="i1-c"><rect width="24" height="24"/></clipPath></defs><rect class="i1-x i1-y" width="24" height="24" fill="url(#i1-a)" clip-path="url(#i1-c)"/><use xlink:href="#i1-a"/><use href="#i1-c"/><style>#i1-root #i1-a { opacity: 1 } #i1-root .i1-x { fill: #c; stroke: url(#i1-a) }</style></svg>
73
+ </g>
74
+ <g id="el-photo" data-element-id="photo">
75
+ <title>Foto</title>
76
+ <image x="-40" y="-40" width="160" height="160" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoBAgM=" clip-path="url(#clip-2)" transform="translate(200,20)"/>
77
+ <image x="300" y="20" width="50" height="50" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoBAgM="/>
78
+ </g>
79
+ <g id="el-buffer" data-element-id="buffer">
80
+ <title>Puffer</title>
81
+ <g opacity="0.5">
82
+ <path d="M250 150L330 150L330 230L250 230Z" fill="#aa0000"/>
83
+ <g filter="url(#shadow-1)">
84
+ <path d="M290 170L370 170L370 250L290 250Z" fill="#0000aa" fill-opacity="0.7"/>
85
+ </g>
86
+ </g>
87
+ </g>
88
+ </svg>
@@ -0,0 +1,10 @@
1
+ /**
2
+ * `attrs` are the attributes of the root element, with an `id` always (the caller places the
3
+ * viewport itself, from `viewBox`, `preserveAspectRatio`, `width` and `height`, and passes the
4
+ * rest on); `inner` is its content. Null when there is no `DOMParser`, the markup is not an SVG
5
+ * document, or its CSS cannot be scoped to the instance: the caller embeds it as an `<image>`.
6
+ */
7
+ export declare function inlineSvg(markup: string, prefix: string): {
8
+ attrs: Record<string, string>;
9
+ inner: string;
10
+ } | null;