From c5f626df107969e933b4922a10b160a3c79d5cdc Mon Sep 17 00:00:00 2001 From: lzp Date: Wed, 1 Apr 2026 16:10:16 +0800 Subject: [PATCH] 1 --- src/components/Canvas/DepthCanvas/manager/ObjectManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Canvas/DepthCanvas/manager/ObjectManager.ts b/src/components/Canvas/DepthCanvas/manager/ObjectManager.ts index 43707cc..3c263cb 100644 --- a/src/components/Canvas/DepthCanvas/manager/ObjectManager.ts +++ b/src/components/Canvas/DepthCanvas/manager/ObjectManager.ts @@ -220,8 +220,8 @@ export class ObjectManager { const isWidth = object.hasOwnProperty('width') const isHeight = object.hasOwnProperty('height') if (isWidth || isHeight) { - let width = options.width - let height = options.height + let width = isWidth ? options.width : object.width + let height = isHeight ? options.height : object.height if (type === "polygon") { if (object.points.length === 10) {// 五角星 options.points = getStarArr(width, height)