mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-22 17:00:23 +00:00
Add ability to specify pattern repeat via options
This commit is contained in:
parent
72fb3e8d32
commit
d645c4e7dc
2 changed files with 6 additions and 0 deletions
3
dist/all.js
vendored
3
dist/all.js
vendored
|
|
@ -4646,6 +4646,9 @@ fabric.Pattern = fabric.util.createClass(/** @scope fabric.Pattern.prototype */
|
|||
? new Function(options.source)
|
||||
: options.source;
|
||||
}
|
||||
if (options.repeat) {
|
||||
this.repeat = options.repeat;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@ fabric.Pattern = fabric.util.createClass(/** @scope fabric.Pattern.prototype */
|
|||
? new Function(options.source)
|
||||
: options.source;
|
||||
}
|
||||
if (options.repeat) {
|
||||
this.repeat = options.repeat;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue