Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Pattern.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import HexUtils from './HexUtils';
import Point from './models/Point';

class Pattern extends Component {
Expand All @@ -18,8 +17,8 @@ class Pattern extends Component {

return (
<defs>
<pattern id={id} patternUnits="objectBoundingBox" x={0} y={0} width={size.x} height={size.y}>
<image xlinkHref={link} x={0} y={0} width={size.x*2} height={size.y*2} />
<pattern id={id} patternUnits="objectBoundingBox" x={0} y={0} width="100%" height="100%">
<image xlinkHref={link} x={0} y={0} width={size.x} height={size.y} />
</pattern>
</defs>
);
Expand Down