Skip to content

Commit

Permalink
fix etalons, regenerate reactjs
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodDayForSurf committed Jan 9, 2025
1 parent fe2310a commit 73a8103
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
13 changes: 5 additions & 8 deletions apps/demos/Demos/Charts/ExportCustomMarkup/ReactJs/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,11 @@ function App() {
format: 'png',
svgToCanvas(svg, canvas) {
return new Promise((resolve) => {
return new Promise((resolve) => {
const v = Canvg.fromString(
canvas.getContext("2d"),
new XMLSerializer().serializeToString(svg)
);

resolve(v.render());
});
const v = Canvg.fromString(
canvas.getContext('2d'),
new XMLSerializer().serializeToString(svg),
);
resolve(v.render());
});
},
});
Expand Down
13 changes: 7 additions & 6 deletions apps/demos/Demos/Charts/ExportCustomMarkup/ReactJs/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ const Form = React.forwardRef((_, ref) => (
height="420px"
>
<path
d="M 0 0 L 820 0 L 820 420 L 0 420 L 0 0"
stroke="#999999"
strokeWidth="1"
strokeLinecap="butt"
fill="white"
strokeLinejoin="miter"
opacity="1"
d="M 0 0 L 820 0 L 820 420 L 0 420 L 0 0"
stroke="#999999"
strokeWidth="1"
strokeLinecap="butt"
fill="white"
strokeLinejoin="miter"
></path>
<path
d="M 13 407 L 128 407 L 232 39 L 13 39"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/demos/testing/etalons/Charts-ExportCustomMarkup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 73a8103

Please sign in to comment.