From 49cf57559617cc826f83863f2261924ca6f547d2 Mon Sep 17 00:00:00 2001 From: ShaMan123 Date: Sun, 24 Dec 2023 05:21:13 -0800 Subject: [PATCH] mark method --- src/LayoutManager/LayoutStrategies/utils.ts | 2 +- src/shapes/Object/ObjectGeometry.ts | 5 ++++- src/shapes/Polyline.ts | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/LayoutManager/LayoutStrategies/utils.ts b/src/LayoutManager/LayoutStrategies/utils.ts index a67ceb14ec3..76fa0697911 100644 --- a/src/LayoutManager/LayoutStrategies/utils.ts +++ b/src/LayoutManager/LayoutStrategies/utils.ts @@ -34,7 +34,7 @@ export const getObjectBounds = ( const objectCenter = t ? object.getRelativeCenterPoint().transform(t) : object.getRelativeCenterPoint(); - const accountForStroke = !object.isStrokeAccountedForInDimensions(); + const accountForStroke = !object['isStrokeAccountedForInDimensions'](); const strokeUniformVector = strokeUniform && accountForStroke ? sendVectorToPlane( diff --git a/src/shapes/Object/ObjectGeometry.ts b/src/shapes/Object/ObjectGeometry.ts index 0bcd5ebddcc..2c43d9cac05 100644 --- a/src/shapes/Object/ObjectGeometry.ts +++ b/src/shapes/Object/ObjectGeometry.ts @@ -178,7 +178,10 @@ export class ObjectGeometry ); } - isStrokeAccountedForInDimensions() { + /** + * @deprecated intermidiate method to be removed, do not use + */ + protected isStrokeAccountedForInDimensions() { return false; } diff --git a/src/shapes/Polyline.ts b/src/shapes/Polyline.ts index ca4b5a69bc1..bc2b59822cc 100644 --- a/src/shapes/Polyline.ts +++ b/src/shapes/Polyline.ts @@ -205,7 +205,10 @@ export class Polyline< ); } - isStrokeAccountedForInDimensions() { + /** + * @deprecated intermidiate method to be removed, do not use + */ + protected isStrokeAccountedForInDimensions() { return this.exactBoundingBox; }