diff --git a/packages/examples/vite/src/examples/svg-transform/index.jsx b/packages/examples/vite/src/examples/svg-transform/index.jsx index c22d3010f..ed7c60258 100644 --- a/packages/examples/vite/src/examples/svg-transform/index.jsx +++ b/packages/examples/vite/src/examples/svg-transform/index.jsx @@ -1,14 +1,28 @@ +/* eslint-disable react/no-array-index-key */ + import React from 'react'; import { Document, Page, Svg, G, Rect } from '@react-pdf/renderer'; +const COLORS = ['red', 'green', 'blue', 'yellow', 'purple']; + +const randBetween = (min, max) => + Math.floor(Math.random() * (max - min + 1) + min); + const SvgTransform = () => { return ( - - - - - + + + {Array.from({ length: 200 }).map((_, i) => ( + + + + ))}