Skip to content

Commit

Permalink
add diagonalRightToLeft to pattern example
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisja committed Jun 18, 2020
1 parent 25a5021 commit bd3ab7b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/vx-demo/src/sandboxes/vx-pattern/Example.tsx
Expand Up @@ -52,6 +52,16 @@ const Patterns: React.FC<{ id: string }>[] = [
orientation={['diagonal']}
/>
),
({ id }) => (
<PatternLines
id={id}
height={6}
width={6}
stroke="black"
strokeWidth={1}
orientation={['diagonalRightToLeft']}
/>
),
({ id }) => (
<PatternLines
id={id}
Expand Down Expand Up @@ -100,7 +110,7 @@ const Patterns: React.FC<{ id: string }>[] = [
];

export default function Example({ width, height, margin = defaultMargin }: PatternProps) {
const numColumns = width > 600 ? 4 : 2;
const numColumns = 3;
const numRows = Patterns.length / numColumns;
const columnWidth = Math.max((width - margin.left - margin.right) / numColumns, 0);
const rowHeight = Math.max((height - margin.bottom - margin.top) / numRows, 0);
Expand Down

0 comments on commit bd3ab7b

Please sign in to comment.