1
This commit is contained in:
@@ -220,8 +220,8 @@ export class ObjectManager {
|
|||||||
const isWidth = object.hasOwnProperty('width')
|
const isWidth = object.hasOwnProperty('width')
|
||||||
const isHeight = object.hasOwnProperty('height')
|
const isHeight = object.hasOwnProperty('height')
|
||||||
if (isWidth || isHeight) {
|
if (isWidth || isHeight) {
|
||||||
let width = options.width
|
let width = isWidth ? options.width : object.width
|
||||||
let height = options.height
|
let height = isHeight ? options.height : object.height
|
||||||
if (type === "polygon") {
|
if (type === "polygon") {
|
||||||
if (object.points.length === 10) {// 五角星
|
if (object.points.length === 10) {// 五角星
|
||||||
options.points = getStarArr(width, height)
|
options.points = getStarArr(width, height)
|
||||||
|
|||||||
Reference in New Issue
Block a user