Skip to content

Conversation

@gustedeveloper
Copy link
Collaborator

Close #757

@@ -0,0 +1,61 @@
import { ShapeType } from '@/core/model';
import { AdjustedShapeDimensions } from './shape-dimension-types';
export const calculateShapeAdjustedDimensions = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this to:

calculateShapeAdjustedDimensionsBasedOnStrokeHeight

Why this long name? Because in this case we need to be explicit when we get into this function, if not it would be hard to check what's the purpose of this function.

On the other hand, could you add unit tests to check that the function behaves as expected?

Thanks

@brauliodiez brauliodiez merged commit 72cf941 into dev Apr 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add stroke style properties

3 participants