Skip to content

Commit

Permalink
mark method
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Dec 24, 2023
1 parent f778c9a commit 49cf575
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/LayoutManager/LayoutStrategies/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 4 additions & 1 deletion src/shapes/Object/ObjectGeometry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ export class ObjectGeometry<EventSpec extends ObjectEvents = ObjectEvents>
);
}

isStrokeAccountedForInDimensions() {
/**
* @deprecated intermidiate method to be removed, do not use
*/
protected isStrokeAccountedForInDimensions() {
return false;
}

Expand Down
5 changes: 4 additions & 1 deletion src/shapes/Polyline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ export class Polyline<
);
}

isStrokeAccountedForInDimensions() {
/**
* @deprecated intermidiate method to be removed, do not use
*/
protected isStrokeAccountedForInDimensions() {
return this.exactBoundingBox;
}

Expand Down

0 comments on commit 49cf575

Please sign in to comment.