diff --git a/resources/docs/widgets/plots.md b/resources/docs/widgets/plots.md index 5961a6eb..26dfb7a1 100644 --- a/resources/docs/widgets/plots.md +++ b/resources/docs/widgets/plots.md @@ -261,7 +261,23 @@ Image displays an image from a file path/url or from a base64 encoded image stri ### `value` - type: `string` -- default: `empty` +- default: `''` - usage : initial image - file url or absolute path - [base64 encoded image](https://duckduckgo.com/?q=base64+encode+image&ia=web) : `data:image/...` + + +## Svg + +```js +{ + type:'svg', + // etc +} +``` + +### `svg` +- type: `string` +- default: `''` +- usage : svg xml definition + - will be wrapped in a `` element diff --git a/src/browser/js/app/widgets/plots/svg.js b/src/browser/js/app/widgets/plots/svg.js index 5362cf49..7163774e 100644 --- a/src/browser/js/app/widgets/plots/svg.js +++ b/src/browser/js/app/widgets/plots/svg.js @@ -26,7 +26,6 @@ class Svg extends Widget { _svg:'svg', svg:'', - noborder: false, _osc:'osc',