Skip to content

Commit 03e4a5f

Browse files
committed
Update docs for @reactodia/workspace@0.30.1
1 parent ccdeaa9 commit 03e4a5f

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

docs/components/canvas.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ It is possible to export a "snapshot" of currently rendered canvas content into
158158
:::note
159159
When exporting into an SVG, the resulting document would include all diagram content as well as every CSS rule which applies to any DOM element inside the diagram content.
160160

161+
If possible, every image referenced from `<img>` elements, `mask` (`mask-image`) and `background` (`background-image`) CSS properties are fetched and embedded as base64 data URL strings. To ensure that images can be embedded (to export the diagram as a complete raster image) it is required that a used image can be loaded into a [`<img crossorigin="anonymous">`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/crossorigin) element.
162+
161163
Diagram is always exported in the [light theme](/docs/concepts/design-system.mdx).
162164
:::
163165

docs/concepts/i18n.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function TranslationOverride() {
5454

5555
Additional built-in or custom translation can be used the same way by loading the JSON bundle externally and
5656
pass them with `translations` property in th order of the one with the high priority to low priority.
57-
Default `en` translation (`@reactodia/workspace/i18n/translations/en.reactodia-translation.json`) is always
57+
Default `en` translation [`@reactodia/workspace/i18n/translations/en.reactodia-translation.json`](https://github.com/reactodia/reactodia-workspace/blob/master/i18n/translations/en.reactodia-translation.json) is always
5858
enabled as a fallback unless `useDefaultTranslation={false}` is specified:
5959
```tsx
6060
import enUkTranslation from './en-uk.reactodia-translation.json';

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reactodia/reactodia.github.io",
3-
"version": "0.30.0",
3+
"version": "0.30.1",
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",
@@ -20,7 +20,7 @@
2020
"@docusaurus/theme-live-codeblock": "^3.8.1",
2121
"@easyops-cn/docusaurus-search-local": "^0.51.0",
2222
"@mdx-js/react": "^3.1.0",
23-
"@reactodia/workspace": "^0.30.0",
23+
"@reactodia/workspace": "^0.30.1",
2424
"clsx": "^2.1.1",
2525
"n3": "^1.17.2",
2626
"prism-react-renderer": "^2.4.1",

0 commit comments

Comments
 (0)