Skip to content

Conversation

@BryonLewis
Copy link
Collaborator

@BryonLewis BryonLewis commented Jan 17, 2026

  • enables the rotate handle with a 'grab' icon for hovering style for rectangles
  • utils.ts has some rotation calculations for calculating the angle in radians in utils
    • calculateRotationFromPolygon(): Calculates rotation angle in radians from polygon coordinates
    • isAxisAligned(): Checks if a rectangle is axis-aligned (not rotated)
    • rotatedPolygonToAxisAlignedBbox(): Converts rotated rectangles to axis-aligned bounding boxes by unrotating the polygon, preserving the original size
  • Stores the rotation value as a detection attribute called 'rotation'
  • Added logic for reserved fields for detection and track attributes
  • Added tests for rotation checking through the client spec tests.

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.

1 participant