&&
This commit is contained in:
parent
4f057473cd
commit
6098b01c44
@ -24,7 +24,7 @@ export default class QPolygon extends fabric.Group {
|
||||
helpPoints = []
|
||||
helpLines = []
|
||||
constructor(points, options, canvas) {
|
||||
if (points.length !== 4 || points.length !== 6) {
|
||||
if (points.length !== 4 && points.length !== 6) {
|
||||
throw new Error('Points must be 4 or 6.')
|
||||
}
|
||||
if (!options.fontSize) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user