深度画布更改
This commit is contained in:
@@ -217,11 +217,12 @@ export class ObjectManager {
|
||||
const object = this.canvasManager.getObjectById(id)
|
||||
if (!object) return null
|
||||
const type = object.type
|
||||
const isWidth = object.hasOwnProperty('width')
|
||||
const isHeight = object.hasOwnProperty('height')
|
||||
const isWidth = options.hasOwnProperty('width')
|
||||
const isHeight = options.hasOwnProperty('height')
|
||||
if (isWidth || isHeight) {
|
||||
const width = isWidth ? options.width : object.width
|
||||
const height = isHeight ? options.height : object.height
|
||||
console.log(width, height)
|
||||
if (type === "polygon") {
|
||||
if (object.points.length === 10) {// 五角星
|
||||
options.points = getStarArr(width, height)
|
||||
|
||||
Reference in New Issue
Block a user